|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef DYNAMICELEMENTTEXTITEMEDITOR_H
19 #define DYNAMICELEMENTTEXTITEMEDITOR_H
39 QWidget *parent =
nullptr);
43 QString
title()
const override {
return tr(
"Textes");}
45 void apply()
override;
62 Ui::DynamicElementTextItemEditor *
ui;
66 #endif // DYNAMICELEMENTTEXTITEMEDITOR_H
QString title() const override
PropertiesEditorWidget::title.
Definition: dynamicelementtextitemeditor.h:43
Definition: dynamicelementtextitemeditor.h:33
QModelIndex indexFromText(DynamicElementTextItem *text) const
DynamicElementTextModel::indexFromText.
Definition: dynamicelementtextmodel.cpp:478
~DynamicElementTextItemEditor() override
Definition: dynamicelementtextitemeditor.cpp:46
The DynamicElementTextItem class This class provide a simple text field of element who can be added o...
Definition: dynamicelementtextitem.h:39
void on_m_add_group_clicked()
DynamicElementTextItemEditor::on_m_add_group_clicked Add a new group.
Definition: dynamicelementtextitemeditor.cpp:242
ElementTextItemGroup * groupFromIndex(const QModelIndex &index) const
DynamicElementTextModel::groupFromIndex.
Definition: dynamicelementtextmodel.cpp:887
Definition: deleteqgraphicsitemcommand.h:31
DynamicElementTextItem * textFromIndex(const QModelIndex &index) const
DynamicElementTextModel::textFromIndex.
Definition: dynamicelementtextmodel.cpp:404
void setCurrentGroup(ElementTextItemGroup *group)
DynamicElementTextItemEditor::setCurrentGroup Expand and select the item for group group.
Definition: dynamicelementtextitemeditor.cpp:159
The DynamicElementTextModel class A model to use with QtView. This model display and can edit the val...
Definition: dynamicelementtextmodel.h:36
Definition: diagramcontent.h:46
bool indexIsText(const QModelIndex &index) const
DynamicElementTextModel::indexIsText.
Definition: dynamicelementtextmodel.cpp:948
Ui::DynamicElementTextItemEditor * ui
Definition: dynamicelementtextitemeditor.h:62
DynamicElementTextItemEditor(Element *element, QWidget *parent=nullptr)
Definition: dynamicelementtextitemeditor.cpp:34
void on_m_remove_selection_clicked()
DynamicElementTextItemEditor::on_m_remove_selection_clicked Remove the selected item.
Definition: dynamicelementtextitemeditor.cpp:220
The AddTextsGroupCommand class Manage the adding of a texts group.
Definition: addelementtextcommand.h:54
QUndoCommand * associatedUndo() const override
PropertiesEditorWidget::associatedUndo By default, return a nullptr.
Definition: dynamicelementtextitemeditor.cpp:170
Definition: elementtextpattern.h:43
void on_m_tree_view_clicked(const QModelIndex &index)
Definition: dynamicelementtextitemeditor.cpp:252
void on_m_export_pb_clicked()
Definition: dynamicelementtextitemeditor.cpp:260
bool setLiveEdit(bool live_edit) override
PropertiesEditorWidget::setLiveEdit Set the editor in live edit mode. When an editor is in live edit ...
Definition: dynamicelementtextitemeditor.cpp:67
void apply() override
Definition: dynamicelementtextitemeditor.cpp:73
void setElement(Element *element) override
Definition: dynamicelementtextitemeditor.cpp:51
The RemoveTextsGroupCommand class Manage the removinf of a texts group.
Definition: addelementtextcommand.h:85
void setCurrentText(DynamicElementTextItem *text)
DynamicElementTextItemEditor::setCurrentText Expand and select the item for text text.
Definition: dynamicelementtextitemeditor.cpp:142
Definition: elementtextpattern.h:28
Definition: autonumberingdockwidget.h:25
void on_m_import_pb_clicked()
Definition: dynamicelementtextitemeditor.cpp:265
Definition: dynamicelementtextmodel.h:131
QSet< DynamicElementTextItem * > m_element_texts
Definition: diagramcontent.h:77
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
Definition: elementtextitemgroup.h:36
QUndoCommand * undoForEditedGroup(ElementTextItemGroup *group, QUndoCommand *parent_undo=nullptr) const
DynamicElementTextModel::undoForEditedGroup.
Definition: dynamicelementtextmodel.cpp:625
void on_m_add_text_clicked()
DynamicElementTextItemEditor::on_m_add_text_clicked Add a new dynamic text.
Definition: dynamicelementtextitemeditor.cpp:199
QModelIndex indexFromGroup(ElementTextItemGroup *group) const
DynamicElementTextModel::indexFromGroup.
Definition: dynamicelementtextmodel.cpp:933
void dataEdited()
Definition: dynamicelementtextitemeditor.cpp:189
bool indexIsGroup(const QModelIndex &index) const
DynamicElementTextModel::indexIsGroup.
Definition: dynamicelementtextmodel.cpp:978
DynamicElementTextModel * m_model
Definition: dynamicelementtextitemeditor.h:63
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
Definition: qpropertyundocommand.h:34
QIcon tr
Definition: qeticons.cpp:206
QUndoCommand * undoForEditedText(DynamicElementTextItem *deti, QUndoCommand *parent_undo=nullptr) const
DynamicElementTextModel::undoForEditedText.
Definition: dynamicelementtextmodel.cpp:496
The AddElementTextCommand class Manage the adding of element text.
Definition: addelementtextcommand.h:34