|
QElectroTech
0.70
|
The IndiTextPropertiesWidget class This widget is used to edit the properties of one or several independent text item. More...
#include <inditextpropertieswidget.h>
Private Slots | |
| void | on_m_advanced_editor_pb_clicked () |
| IndiTextPropertiesWidget::on_m_advanced_editor_pb_clicked. More... | |
| void | on_m_break_html_pb_clicked () |
| void | on_m_font_pb_clicked () |
Private Member Functions | |
| void | setUpEditConnection () |
| IndiTextPropertiesWidget::setUpEditConnection Disconnect the previous connection, and reconnect the connection between the editors widgets and void IndiTextPropertiesWidget::apply function. More... | |
| void | updateUi () override |
| IndiTextPropertiesWidget::updateUi. More... | |
Private Attributes | |
| Ui::IndiTextPropertiesWidget * | ui |
| QPointer< IndependentTextItem > | m_text |
| QList< QPointer< IndependentTextItem > > | m_text_list |
| QList< QMetaObject::Connection > | m_connect_list |
| QList< QMetaObject::Connection > | m_edit_connection |
| QFont | m_selected_font |
| bool | m_font_is_selected = false |
Additional Inherited Members | |
Protected Member Functions inherited from PropertiesEditorWidget | |
| virtual void | enableLiveEdit () |
| virtual void | disableLiveEdit () |
Protected Attributes inherited from PropertiesEditorWidget | |
| bool | m_live_edit |
The IndiTextPropertiesWidget class This widget is used to edit the properties of one or several independent text item.
Definition at line 33 of file inditextpropertieswidget.h.
| IndiTextPropertiesWidget::IndiTextPropertiesWidget | ( | IndependentTextItem * | text = nullptr, |
| QWidget * | parent = nullptr |
||
| ) |
IndiTextPropertiesWidget::IndiTextPropertiesWidget.
| text | : the text to edit |
| parent | : the parent widget of this widget |
Definition at line 32 of file inditextpropertieswidget.cpp.
| IndiTextPropertiesWidget::IndiTextPropertiesWidget | ( | QList< IndependentTextItem *> | text_list, |
| QWidget * | parent = nullptr |
||
| ) |
IndiTextPropertiesWidget::IndiTextPropertiesWidget.
| text_list | : a list of texts to edit |
| parent | : the parent widget of this widget |
Definition at line 47 of file inditextpropertieswidget.cpp.
|
override |
IndiTextPropertiesWidget::~IndiTextPropertiesWidget.
Definition at line 58 of file inditextpropertieswidget.cpp.
References ui.
|
overridevirtual |
IndiTextPropertiesWidget::apply Apply the current edition through a QUndoCommand pushed to the undo stack of text's diagram.
Reimplemented from PropertiesEditorWidget.
Definition at line 116 of file inditextpropertieswidget.cpp.
References associatedUndo(), m_text, m_text_list, and Diagram::undoStack().
Referenced by on_m_font_pb_clicked(), and setUpEditConnection().
|
overridevirtual |
IndiTextPropertiesWidget::associatedUndo.
Reimplemented from PropertiesEditorWidget.
Definition at line 168 of file inditextpropertieswidget.cpp.
References m_font_is_selected, PropertiesEditorWidget::m_live_edit, m_selected_font, m_text, m_text_list, QPropertyUndoCommand::setAnimated(), QET::Icons::tr, and ui.
Referenced by apply().
|
privateslot |
IndiTextPropertiesWidget::on_m_advanced_editor_pb_clicked.
Definition at line 422 of file inditextpropertieswidget.cpp.
References m_text.
|
privateslot |
Definition at line 428 of file inditextpropertieswidget.cpp.
References m_text, m_text_list, and updateUi().
|
privateslot |
Definition at line 440 of file inditextpropertieswidget.cpp.
References apply(), m_font_is_selected, m_selected_font, m_text, m_text_list, QET::Icons::tr, and ui.
|
overridevirtual |
IndiTextPropertiesWidget::setLiveEdit.
| live_edit |
Reimplemented from PropertiesEditorWidget.
Definition at line 145 of file inditextpropertieswidget.cpp.
References m_edit_connection, PropertiesEditorWidget::m_live_edit, and setUpEditConnection().
| void IndiTextPropertiesWidget::setText | ( | IndependentTextItem * | text | ) |
IndiTextPropertiesWidget::setText.
| text | : set as edited text |
Definition at line 66 of file inditextpropertieswidget.cpp.
References DiagramTextItem::fontChanged(), m_connect_list, m_text, DiagramTextItem::textEdited(), and updateUi().
Referenced by IndiTextPropertiesWidget(), and setText().
| void IndiTextPropertiesWidget::setText | ( | QList< IndependentTextItem *> | text_list | ) |
Definition at line 85 of file inditextpropertieswidget.cpp.
References m_connect_list, m_text, m_text_list, setText(), and updateUi().
|
private |
IndiTextPropertiesWidget::setUpEditConnection Disconnect the previous connection, and reconnect the connection between the editors widgets and void IndiTextPropertiesWidget::apply function.
Definition at line 320 of file inditextpropertieswidget.cpp.
References apply(), m_edit_connection, m_text_list, and ui.
Referenced by setLiveEdit(), and updateUi().
|
overrideprivatevirtual |
IndiTextPropertiesWidget::updateUi.
Reimplemented from PropertiesEditorWidget.
Definition at line 344 of file inditextpropertieswidget.cpp.
References m_edit_connection, m_text, m_text_list, setUpEditConnection(), QET::Icons::tr, and ui.
Referenced by on_m_break_html_pb_clicked(), and setText().
|
private |
Definition at line 61 of file inditextpropertieswidget.h.
Referenced by setText().
|
private |
Definition at line 61 of file inditextpropertieswidget.h.
Referenced by setLiveEdit(), setUpEditConnection(), and updateUi().
|
private |
Definition at line 64 of file inditextpropertieswidget.h.
Referenced by associatedUndo(), and on_m_font_pb_clicked().
|
private |
Definition at line 63 of file inditextpropertieswidget.h.
Referenced by associatedUndo(), and on_m_font_pb_clicked().
|
private |
Definition at line 59 of file inditextpropertieswidget.h.
Referenced by apply(), associatedUndo(), on_m_advanced_editor_pb_clicked(), on_m_break_html_pb_clicked(), on_m_font_pb_clicked(), setText(), and updateUi().
|
private |
Definition at line 60 of file inditextpropertieswidget.h.
Referenced by apply(), associatedUndo(), on_m_break_html_pb_clicked(), on_m_font_pb_clicked(), setText(), setUpEditConnection(), and updateUi().
|
private |
Definition at line 58 of file inditextpropertieswidget.h.
Referenced by associatedUndo(), IndiTextPropertiesWidget(), on_m_font_pb_clicked(), setUpEditConnection(), updateUi(), and ~IndiTextPropertiesWidget().
1.8.15