QElectroTech 0.100.0-dev
|
#include <elementitemeditor.h>
Public Member Functions | |
ElementItemEditor (QETElementEditor *, QWidget *=nullptr) | |
~ElementItemEditor () override | |
virtual QETElementEditor * | elementEditor () const |
virtual ElementScene * | elementScene () 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 CustomElementPart * | currentPart () const =0 |
virtual QList< CustomElementPart * > | currentParts () const =0 |
virtual void | updateForm ()=0 |
Private Member Functions | |
ElementItemEditor (const ElementItemEditor &) | |
Private Attributes | |
QETElementEditor * | element_editor |
QString | element_type_name |
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.
ElementItemEditor::ElementItemEditor | ( | QETElementEditor * | editor, |
QWidget * | parent = nullptr |
||
) |
Constructeur
editor | QETElementEditor auquel cet editeur appartient |
parent | QWidget parent de cet editeur |
|
inlineoverride |
|
private |
|
pure virtual |
Implemented in ArcEditor, StyleEditor, DynamicTextFieldEditor, EllipseEditor, LineEditor, PolygonEditor, RectangleEditor, TerminalEditor, and TextEditor.
|
pure virtual |
Implemented in ArcEditor, StyleEditor, DynamicTextFieldEditor, EllipseEditor, LineEditor, PolygonEditor, RectangleEditor, TerminalEditor, and TextEditor.
|
virtual |
Detache l'editeur de la primitive qu'il edite. Equivaut a setPart(0)
|
virtual |
|
virtual |
|
virtual |
|
virtual |
name | Nom du type d'element edite |
|
pure virtual |
Implemented in ArcEditor, StyleEditor, TerminalEditor, DynamicTextFieldEditor, EllipseEditor, LineEditor, PolygonEditor, RectangleEditor, and TextEditor.
|
inlinevirtual |
Reimplemented in ArcEditor, EllipseEditor, LineEditor, RectangleEditor, StyleEditor, DynamicTextFieldEditor, and TextEditor.
|
virtual |
|
pure virtual |
Implemented in DynamicTextFieldEditor, EllipseEditor, LineEditor, PolygonEditor, TerminalEditor, and TextEditor.
|
private |
|
private |