QElectroTech
0.70
|
#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 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.
Definition at line 33 of file elementitemeditor.h.
ElementItemEditor::ElementItemEditor | ( | QETElementEditor * | editor, |
QWidget * | parent = nullptr |
||
) |
Constructeur
editor | QETElementEditor auquel cet editeur appartient |
parent | QWidget parent de cet editeur |
Definition at line 27 of file elementitemeditor.cpp.
|
inlineoverride |
Definition at line 39 of file elementitemeditor.h.
|
private |
|
pure virtual |
Implemented in StyleEditor, PolygonEditor, ArcEditor, LineEditor, EllipseEditor, TerminalEditor, RectangleEditor, TextEditor, and DynamicTextFieldEditor.
|
virtual |
Detache l'editeur de la primitive qu'il edite. Equivaut a setPart(0)
Definition at line 63 of file elementitemeditor.cpp.
References setPart().
|
virtual |
Definition at line 34 of file elementitemeditor.cpp.
References element_editor.
Referenced by DynamicTextFieldEditor::fillInfoComboBox(), and DynamicTextFieldEditor::on_m_elmt_info_cb_activated().
|
virtual |
Definition at line 39 of file elementitemeditor.cpp.
References element_editor.
Referenced by RectangleEditor::editingFinished(), EllipseEditor::editingFinished(), LineEditor::lineEditingFinished(), DynamicTextFieldEditor::on_m_elmt_info_cb_activated(), undoStack(), ArcEditor::updateArcA(), ArcEditor::updateArcRect(), ArcEditor::updateArcS(), LineEditor::updateLineEndLength1(), LineEditor::updateLineEndLength2(), LineEditor::updateLineEndType1(), and LineEditor::updateLineEndType2().
|
virtual |
Definition at line 49 of file elementitemeditor.cpp.
References element_type_name.
|
virtual |
name | Nom du type d'element edite |
Definition at line 54 of file elementitemeditor.cpp.
References element_type_name.
|
pure virtual |
Implemented in StyleEditor, PolygonEditor, ArcEditor, LineEditor, EllipseEditor, TerminalEditor, RectangleEditor, TextEditor, and DynamicTextFieldEditor.
Referenced by detach(), and QETElementEditor::slot_updateInformations().
|
inlinevirtual |
Reimplemented in StyleEditor.
Definition at line 54 of file elementitemeditor.h.
|
virtual |
Definition at line 44 of file elementitemeditor.cpp.
References elementScene().
Referenced by StyleEditor::makeUndo(), DynamicTextFieldEditor::on_m_alignment_pb_clicked(), DynamicTextFieldEditor::on_m_color_kpb_changed(), TextEditor::on_m_color_pb_changed(), DynamicTextFieldEditor::on_m_composite_text_pb_clicked(), DynamicTextFieldEditor::on_m_elmt_info_cb_activated(), TextEditor::on_m_font_pb_clicked(), DynamicTextFieldEditor::on_m_font_pb_clicked(), DynamicTextFieldEditor::on_m_frame_cb_clicked(), DynamicTextFieldEditor::on_m_rotation_sb_editingFinished(), DynamicTextFieldEditor::on_m_size_sb_editingFinished(), DynamicTextFieldEditor::on_m_text_from_cb_activated(), DynamicTextFieldEditor::on_m_user_text_le_editingFinished(), DynamicTextFieldEditor::on_m_width_sb_editingFinished(), DynamicTextFieldEditor::on_m_x_sb_editingFinished(), DynamicTextFieldEditor::on_m_y_sb_editingFinished(), PolygonEditor::updatePolygonClosedState(), PolygonEditor::updatePolygonPoints(), TerminalEditor::updatePos(), and TerminalEditor::updateTerminalO().
|
pure virtual |
Implemented in DynamicTextFieldEditor, and TextEditor.
|
private |
Definition at line 61 of file elementitemeditor.h.
Referenced by elementEditor(), and elementScene().
|
private |
Definition at line 62 of file elementitemeditor.h.
Referenced by elementTypeName(), and setElementTypeName().