QElectroTech
0.70
|
The DynamicTextFieldEditor class This class provide a widget used to edit the property of a dynamic text field. More...
#include <dynamictextfieldeditor.h>
Public Member Functions | |
DynamicTextFieldEditor (QETElementEditor *editor, PartDynamicTextField *text_field=nullptr, QWidget *parent=nullptr) | |
~DynamicTextFieldEditor () override | |
bool | setPart (CustomElementPart *part) override |
DynamicTextFieldEditor::setPart Set as current edited part of this widget. More... | |
CustomElementPart * | currentPart () const override |
DynamicTextFieldEditor::currentPart. More... | |
void | updateForm () override |
![]() | |
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 | setParts (QList< CustomElementPart *>) |
Private Slots | |
void | on_m_x_sb_editingFinished () |
void | on_m_y_sb_editingFinished () |
void | on_m_rotation_sb_editingFinished () |
void | on_m_user_text_le_editingFinished () |
void | on_m_size_sb_editingFinished () |
void | on_m_frame_cb_clicked () |
void | on_m_width_sb_editingFinished () |
void | on_m_elmt_info_cb_activated (const QString &arg1) |
void | on_m_text_from_cb_activated (int index) |
void | on_m_composite_text_pb_clicked () |
void | on_m_alignment_pb_clicked () |
void | on_m_font_pb_clicked () |
void | on_m_color_kpb_changed (const QColor &newColor) |
Private Member Functions | |
void | fillInfoComboBox () |
DynamicTextFieldEditor::fillInfoComboBox Fill the combo box "element information". More... | |
Private Attributes | |
Ui::DynamicTextFieldEditor * | ui |
QPointer< PartDynamicTextField > | m_text_field |
QList< QMetaObject::Connection > | m_connection_list |
The DynamicTextFieldEditor class This class provide a widget used to edit the property of a dynamic text field.
Definition at line 32 of file dynamictextfieldeditor.h.
|
explicit |
Definition at line 32 of file dynamictextfieldeditor.cpp.
References fillInfoComboBox(), setPart(), and ui.
|
override |
Definition at line 44 of file dynamictextfieldeditor.cpp.
References m_connection_list, and ui.
|
overridevirtual |
DynamicTextFieldEditor::currentPart.
Implements ElementItemEditor.
Definition at line 94 of file dynamictextfieldeditor.cpp.
References m_text_field.
|
private |
DynamicTextFieldEditor::fillInfoComboBox Fill the combo box "element information".
Definition at line 135 of file dynamictextfieldeditor.cpp.
References ElementItemEditor::elementEditor(), QETApp::elementInfoKeys(), QETElementEditor::elementScene(), QETApp::elementTranslatedInfoKey(), ElementScene::elementType(), and ui.
Referenced by DynamicTextFieldEditor().
|
privateslot |
Definition at line 277 of file dynamictextfieldeditor.cpp.
References m_text_field, QET::Icons::tr, and ElementItemEditor::undoStack().
|
privateslot |
Definition at line 305 of file dynamictextfieldeditor.cpp.
References m_text_field, QET::Icons::tr, and ElementItemEditor::undoStack().
|
privateslot |
Definition at line 263 of file dynamictextfieldeditor.cpp.
References m_text_field, CompositeTextEditDialog::plainText(), and ElementItemEditor::undoStack().
|
privateslot |
Definition at line 221 of file dynamictextfieldeditor.cpp.
References ElementItemEditor::elementEditor(), ElementItemEditor::elementScene(), m_text_field, QET::Icons::tr, ui, and ElementItemEditor::undoStack().
|
privateslot |
Definition at line 290 of file dynamictextfieldeditor.cpp.
References m_text_field, QET::Icons::tr, ui, and ElementItemEditor::undoStack().
|
privateslot |
Definition at line 197 of file dynamictextfieldeditor.cpp.
References m_text_field, QET::Icons::tr, ui, and ElementItemEditor::undoStack().
|
privateslot |
Definition at line 173 of file dynamictextfieldeditor.cpp.
References QPropertyUndoCommand::enableAnimation(), m_text_field, QET::Icons::tr, ui, and ElementItemEditor::undoStack().
|
privateslot |
Definition at line 188 of file dynamictextfieldeditor.cpp.
References m_text_field, QET::Icons::tr, ui, and ElementItemEditor::undoStack().
|
privateslot |
Definition at line 237 of file dynamictextfieldeditor.cpp.
References DynamicElementTextItem::CompositeText, DynamicElementTextItem::ElementInfo, m_text_field, QET::Icons::tr, ui, ElementItemEditor::undoStack(), and DynamicElementTextItem::UserText.
Referenced by updateForm().
|
privateslot |
Definition at line 181 of file dynamictextfieldeditor.cpp.
References m_text_field, QET::Icons::tr, ui, and ElementItemEditor::undoStack().
|
privateslot |
Definition at line 209 of file dynamictextfieldeditor.cpp.
References m_text_field, QET::Icons::tr, ui, and ElementItemEditor::undoStack().
|
privateslot |
Definition at line 157 of file dynamictextfieldeditor.cpp.
References QPropertyUndoCommand::enableAnimation(), m_text_field, QET::Icons::tr, ui, and ElementItemEditor::undoStack().
|
privateslot |
Definition at line 165 of file dynamictextfieldeditor.cpp.
References QPropertyUndoCommand::enableAnimation(), m_text_field, QET::Icons::tr, ui, and ElementItemEditor::undoStack().
|
overridevirtual |
DynamicTextFieldEditor::setPart Set as current edited part of this widget.
part |
Implements ElementItemEditor.
Definition at line 58 of file dynamictextfieldeditor.cpp.
References PartDynamicTextField::colorChanged(), PartDynamicTextField::compositeTextChanged(), PartDynamicTextField::fontChanged(), PartDynamicTextField::frameChanged(), PartDynamicTextField::infoNameChanged(), m_connection_list, m_text_field, PartDynamicTextField::taggChanged(), PartDynamicTextField::textChanged(), PartDynamicTextField::textFromChanged(), PartDynamicTextField::textWidthChanged(), CustomElementPart::toItem(), PartDynamicTextField::Type, and updateForm().
Referenced by DynamicTextFieldEditor().
|
overridevirtual |
Implements ElementItemEditor.
Definition at line 98 of file dynamictextfieldeditor.cpp.
References DynamicElementTextItem::CompositeText, QET::correctAngle(), DynamicElementTextItem::ElementInfo, m_text_field, on_m_text_from_cb_activated(), ui, and DynamicElementTextItem::UserText.
Referenced by setPart().
|
private |
Definition at line 66 of file dynamictextfieldeditor.h.
Referenced by setPart(), and ~DynamicTextFieldEditor().
|
private |
Definition at line 65 of file dynamictextfieldeditor.h.
Referenced by currentPart(), on_m_alignment_pb_clicked(), on_m_color_kpb_changed(), on_m_composite_text_pb_clicked(), on_m_elmt_info_cb_activated(), on_m_font_pb_clicked(), on_m_frame_cb_clicked(), on_m_rotation_sb_editingFinished(), on_m_size_sb_editingFinished(), on_m_text_from_cb_activated(), on_m_user_text_le_editingFinished(), on_m_width_sb_editingFinished(), on_m_x_sb_editingFinished(), on_m_y_sb_editingFinished(), setPart(), and updateForm().
|
private |
Definition at line 64 of file dynamictextfieldeditor.h.
Referenced by DynamicTextFieldEditor(), fillInfoComboBox(), on_m_elmt_info_cb_activated(), on_m_font_pb_clicked(), on_m_frame_cb_clicked(), on_m_rotation_sb_editingFinished(), on_m_size_sb_editingFinished(), on_m_text_from_cb_activated(), on_m_user_text_le_editingFinished(), on_m_width_sb_editingFinished(), on_m_x_sb_editingFinished(), on_m_y_sb_editingFinished(), updateForm(), and ~DynamicTextFieldEditor().