QElectroTech
0.8-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 TerminalEditor, StyleEditor, ArcEditor, LineEditor, EllipseEditor, RectangleEditor, TextEditor, DynamicTextFieldEditor, and PolygonEditor.
|
pure virtual |
Implemented in TerminalEditor, StyleEditor, ArcEditor, LineEditor, EllipseEditor, RectangleEditor, TextEditor, DynamicTextFieldEditor, and PolygonEditor.
|
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 RectangleEditor, TextEditor, DynamicTextFieldEditor, PolygonEditor, TerminalEditor, StyleEditor, ArcEditor, LineEditor, and EllipseEditor.
|
inlinevirtual |
Reimplemented in StyleEditor, TextEditor, DynamicTextFieldEditor, TerminalEditor, ArcEditor, LineEditor, EllipseEditor, and RectangleEditor.
|
virtual |
|
pure virtual |
Implemented in DynamicTextFieldEditor, PolygonEditor, and TextEditor.
|
private |
|
private |