QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ElementItemEditor Class Referenceabstract

#include <elementitemeditor.h>

Inheritance diagram for ElementItemEditor:
Inheritance graph
Collaboration diagram for ElementItemEditor:
Collaboration graph

Public Member Functions

 ElementItemEditor (QETElementEditor *, QWidget *=nullptr)
 
 ~ElementItemEditor () override
 
virtual QETElementEditorelementEditor () const
 
virtual ElementSceneelementScene () const
 
virtual QUndoStack & undoStack () const
 
virtual QString elementTypeName () const
 
virtual void setElementTypeName (const QString &)
 
virtual void detach ()
 
virtual bool setPart (CustomElementPart *)=0
 
virtual bool setParts (QList< CustomElementPart * >)
 
virtual CustomElementPartcurrentPart () const =0
 
virtual QList< CustomElementPart * > currentParts () const =0
 
virtual void updateForm ()=0
 

Private Member Functions

 ElementItemEditor (const ElementItemEditor &)
 

Private Attributes

QETElementEditorelement_editor
 
QString element_type_name
 

Detailed Description

This is the base class for primitives editors within the element editor. It provides methods to access the editor itself, the undo stack, the edition scene and even a method to easily take a ChangePartCommand into account.

Constructor & Destructor Documentation

◆ ElementItemEditor() [1/2]

ElementItemEditor::ElementItemEditor ( QETElementEditor editor,
QWidget *  parent = nullptr 
)

Constructeur

Parameters
editorQETElementEditor auquel cet editeur appartient
parentQWidget parent de cet editeur

◆ ~ElementItemEditor()

ElementItemEditor::~ElementItemEditor ( )
inlineoverride

◆ ElementItemEditor() [2/2]

ElementItemEditor::ElementItemEditor ( const ElementItemEditor )
private

Member Function Documentation

◆ currentPart()

virtual CustomElementPart * ElementItemEditor::currentPart ( ) const
pure virtual

◆ currentParts()

virtual QList< CustomElementPart * > ElementItemEditor::currentParts ( ) const
pure virtual

◆ detach()

void ElementItemEditor::detach ( )
virtual

Detache l'editeur de la primitive qu'il edite. Equivaut a setPart(0)

See also
setPart
Here is the call graph for this function:

◆ elementEditor()

QETElementEditor * ElementItemEditor::elementEditor ( ) const
virtual
Returns
le QETElementEditor auquel cet editeur appartient
Here is the caller graph for this function:

◆ elementScene()

ElementScene * ElementItemEditor::elementScene ( ) const
virtual
Returns
l'ElementScene contenant les parties editees par cet editeur
Here is the call graph for this function:
Here is the caller graph for this function:

◆ elementTypeName()

QString ElementItemEditor::elementTypeName ( ) const
virtual
Returns
Le nom du type d'element edite

◆ setElementTypeName()

void ElementItemEditor::setElementTypeName ( const QString &  name)
virtual
Parameters
nameNom du type d'element edite

◆ setPart()

virtual bool ElementItemEditor::setPart ( CustomElementPart )
pure virtual

Implemented in ArcEditor, StyleEditor, TerminalEditor, DynamicTextFieldEditor, EllipseEditor, LineEditor, PolygonEditor, RectangleEditor, and TextEditor.

Here is the caller graph for this function:

◆ setParts()

virtual bool ElementItemEditor::setParts ( QList< CustomElementPart * >  )
inlinevirtual

◆ undoStack()

QUndoStack & ElementItemEditor::undoStack ( ) const
virtual
Returns
la QUndoStack a utiliser pour les annulations
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateForm()

virtual void ElementItemEditor::updateForm ( )
pure virtual

Member Data Documentation

◆ element_editor

QETElementEditor* ElementItemEditor::element_editor
private

◆ element_type_name

QString ElementItemEditor::element_type_name
private

The documentation for this class was generated from the following files: