QElectroTech
0.8-dev
|
#include <dynamicelementtextitemeditor.h>
Public Member Functions | |
DynamicElementTextItemEditor (Element *element, QWidget *parent=nullptr) | |
~DynamicElementTextItemEditor () override | |
void | setElement (Element *element) override |
QString | title () const override |
PropertiesEditorWidget::title. More... | |
bool | setLiveEdit (bool live_edit) override |
PropertiesEditorWidget::setLiveEdit Set the editor in live edit mode. When an editor is in live edit mode, every change is applied immediately (no need to call apply). If live edit can be enable, return true, else false. By default this method do nothing and return false (live edit is disable). Herited class of PropertiesEditorWidget must reimplemente this methode to manage the live edit mode. More... | |
void | apply () override |
void | setCurrentText (DynamicElementTextItem *text) |
DynamicElementTextItemEditor::setCurrentText Expand and select the item for text text. More... | |
void | setCurrentGroup (ElementTextItemGroup *group) |
DynamicElementTextItemEditor::setCurrentGroup Expand and select the item for group group. More... | |
QUndoCommand * | associatedUndo () const override |
PropertiesEditorWidget::associatedUndo By default, return a nullptr. More... | |
Public Member Functions inherited from AbstractElementPropertiesEditorWidget | |
AbstractElementPropertiesEditorWidget (QWidget *parent=nullptr) | |
Public Member Functions inherited from PropertiesEditorWidget | |
PropertiesEditorWidget (QWidget *parent=nullptr) | |
PropertiesEditorWidget::PropertiesEditorWidget Constructor. More... | |
virtual void | reset () |
virtual void | updateUi () |
bool | isLiveEdit () const |
PropertiesEditorWidget::isLiveEdit. More... | |
Private Slots | |
void | on_m_add_text_clicked () |
DynamicElementTextItemEditor::on_m_add_text_clicked Add a new dynamic text. More... | |
void | on_m_remove_selection_clicked () |
DynamicElementTextItemEditor::on_m_remove_selection_clicked Remove the selected item. More... | |
void | on_m_add_group_clicked () |
DynamicElementTextItemEditor::on_m_add_group_clicked Add a new group. More... | |
void | on_m_tree_view_clicked (const QModelIndex &index) |
void | on_m_export_pb_clicked () |
void | on_m_import_pb_clicked () |
Private Member Functions | |
void | dataEdited () |
Private Attributes | |
Ui::DynamicElementTextItemEditor * | ui |
DynamicElementTextModel * | m_model = nullptr |
Additional Inherited Members | |
Protected Member Functions inherited from PropertiesEditorWidget | |
virtual void | enableLiveEdit () |
virtual void | disableLiveEdit () |
Protected Attributes inherited from AbstractElementPropertiesEditorWidget | |
QPointer< Element > | m_element |
Protected Attributes inherited from PropertiesEditorWidget | |
bool | m_live_edit |
|
explicit |
|
override |
|
overridevirtual |
Reimplemented from PropertiesEditorWidget.
|
overridevirtual |
PropertiesEditorWidget::associatedUndo By default, return a nullptr.
Reimplemented from PropertiesEditorWidget.
|
private |
|
privateslot |
DynamicElementTextItemEditor::on_m_add_group_clicked Add a new group.
|
privateslot |
DynamicElementTextItemEditor::on_m_add_text_clicked Add a new dynamic text.
|
privateslot |
|
privateslot |
|
privateslot |
DynamicElementTextItemEditor::on_m_remove_selection_clicked Remove the selected item.
|
privateslot |
void DynamicElementTextItemEditor::setCurrentGroup | ( | ElementTextItemGroup * | group | ) |
DynamicElementTextItemEditor::setCurrentGroup Expand and select the item for group group.
group |
void DynamicElementTextItemEditor::setCurrentText | ( | DynamicElementTextItem * | text | ) |
DynamicElementTextItemEditor::setCurrentText Expand and select the item for text text.
text |
|
overridevirtual |
Implements AbstractElementPropertiesEditorWidget.
|
overridevirtual |
PropertiesEditorWidget::setLiveEdit Set the editor in live edit mode. When an editor is in live edit mode, every change is applied immediately (no need to call apply). If live edit can be enable, return true, else false. By default this method do nothing and return false (live edit is disable). Herited class of PropertiesEditorWidget must reimplemente this methode to manage the live edit mode.
live_edit | true to enable live edit |
Reimplemented from PropertiesEditorWidget.
|
inlineoverridevirtual |
PropertiesEditorWidget::title.
Reimplemented from PropertiesEditorWidget.
|
private |
|
private |