QElectroTech
0.70
|
#include <elementpropertieswidget.h>
Public Slots | |
void | findInPanel () |
ElementPropertiesWidget::findInPanel If m_element is a custom element, emit findElementRequired. More... | |
void | editElement () |
ElementPropertiesWidget::editElement If m_element is a custom element, emit findElementRequired and editElementRequired. More... | |
Signals | |
void | findEditClicked () |
Public Member Functions | |
ElementPropertiesWidget (Element *elmt, QWidget *parent=nullptr) | |
ElementPropertiesWidget::ElementPropertiesWidget Default constructor. More... | |
ElementPropertiesWidget (DynamicElementTextItem *text, QWidget *parent=nullptr) | |
ElementPropertiesWidget::ElementPropertiesWidget Same as default constructor, the edited element, is the parent element of . The only difference with default constructor, is that the current tab is the tab for dynamic texts, and the item in the tree that represent is expanded and selected. More... | |
ElementPropertiesWidget (ElementTextItemGroup *group, QWidget *parent=nullptr) | |
ElementPropertiesWidget::ElementPropertiesWidget Same as default constructor, the edited element, is the parent element of . The only difference with default constructor, is that the current tab is the tab for dynamic texts, and the item in the tree that represent is expanded and selected. More... | |
void | setElement (Element *element) override |
ElementPropertiesWidget::setElement Set to be the edited element. More... | |
void | setDynamicText (DynamicElementTextItem *text) |
ElementPropertiesWidget::setDynamicText convenience function: same as call : ElementPropertiesWidget::setElement, with parameter the parent element of . Set the dynamics text tab as current tab, expand and select the item that represent . More... | |
void | setTextsGroup (ElementTextItemGroup *group) |
ElementPropertiesWidget::setTextsGroup Conveniance function : same as call : ElementPropertiesWidget::setElement, with parameter the parent element of . Set the dynamics text tab as current tab, expand and select the item that represent . More... | |
void | apply () override |
ElementPropertiesWidget::apply Apply the new properties by pushing an undo command to the parent project's undo stack of element. More... | |
void | reset () override |
ElementPropertiesWidget::reset Reset the edited properties. 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... | |
![]() | |
AbstractElementPropertiesEditorWidget (QWidget *parent=nullptr) | |
![]() | |
PropertiesEditorWidget (QWidget *parent=nullptr) | |
PropertiesEditorWidget::PropertiesEditorWidget Constructor. More... | |
virtual QUndoCommand * | associatedUndo () const |
PropertiesEditorWidget::associatedUndo By default, return a nullptr. More... | |
virtual QString | title () const |
PropertiesEditorWidget::title. More... | |
bool | isLiveEdit () const |
PropertiesEditorWidget::isLiveEdit. More... | |
Private Member Functions | |
void | buildGui () |
ElementPropertiesWidget::build Build the content of this widget. More... | |
void | updateUi () override |
ElementPropertiesWidget::updateUi Update the content of this widget. More... | |
void | addGeneralWidget () |
ElementPropertiesWidget::addGeneralWidget Add or update the general widget on this tab widget. More... | |
QWidget * | generalWidget () |
ElementPropertiesWidget::generalWidget. More... | |
Private Attributes | |
Diagram * | m_diagram |
QTabWidget * | m_tab |
QList< AbstractElementPropertiesEditorWidget * > | m_list_editor |
QWidget * | m_general_widget |
Additional Inherited Members | |
![]() | |
virtual void | enableLiveEdit () |
virtual void | disableLiveEdit () |
![]() | |
QPointer< Element > | m_element |
![]() | |
bool | m_live_edit |
Definition at line 31 of file elementpropertieswidget.h.
|
explicit |
ElementPropertiesWidget::ElementPropertiesWidget Default constructor.
elmt | |
parent |
Definition at line 40 of file elementpropertieswidget.cpp.
References buildGui(), and setElement().
|
explicit |
ElementPropertiesWidget::ElementPropertiesWidget Same as default constructor, the edited element, is the parent element of . The only difference with default constructor, is that the current tab is the tab for dynamic texts, and the item in the tree that represent is expanded and selected.
text | |
parent |
Definition at line 58 of file elementpropertieswidget.cpp.
References buildGui(), QetGraphicsItem::diagram(), m_diagram, DynamicElementTextItem::parentElement(), and setDynamicText().
|
explicit |
ElementPropertiesWidget::ElementPropertiesWidget Same as default constructor, the edited element, is the parent element of . The only difference with default constructor, is that the current tab is the tab for dynamic texts, and the item in the tree that represent is expanded and selected.
group | |
parent |
Definition at line 79 of file elementpropertieswidget.cpp.
References buildGui(), QetGraphicsItem::diagram(), m_diagram, setTextsGroup(), and Element::Type.
|
private |
ElementPropertiesWidget::addGeneralWidget Add or update the general widget on this tab widget.
Definition at line 323 of file elementpropertieswidget.cpp.
References generalWidget(), m_general_widget, m_tab, and QET::Icons::tr.
Referenced by setElement(), and updateUi().
|
overridevirtual |
ElementPropertiesWidget::apply Apply the new properties by pushing an undo command to the parent project's undo stack of element.
Reimplemented from PropertiesEditorWidget.
Definition at line 171 of file elementpropertieswidget.cpp.
References PropertiesEditorWidget::associatedUndo(), AbstractElementPropertiesEditorWidget::m_element, m_list_editor, and PropertiesEditorWidget::updateUi().
|
private |
ElementPropertiesWidget::build Build the content of this widget.
Definition at line 243 of file elementpropertieswidget.cpp.
References m_tab.
Referenced by ElementPropertiesWidget().
|
slot |
ElementPropertiesWidget::editElement If m_element is a custom element, emit findElementRequired and editElementRequired.
Definition at line 229 of file elementpropertieswidget.cpp.
References Diagram::editElementRequired(), findEditClicked(), Diagram::findElementRequired(), m_diagram, and AbstractElementPropertiesEditorWidget::m_element.
Referenced by generalWidget().
|
signal |
Referenced by editElement(), Element::editProperty(), and findInPanel().
|
slot |
ElementPropertiesWidget::findInPanel If m_element is a custom element, emit findElementRequired.
Definition at line 216 of file elementpropertieswidget.cpp.
References findEditClicked(), Diagram::findElementRequired(), m_diagram, and AbstractElementPropertiesEditorWidget::m_element.
Referenced by generalWidget().
|
private |
ElementPropertiesWidget::generalWidget.
Definition at line 340 of file elementpropertieswidget.cpp.
References editElement(), QET::Icons::ElementEdit, findInPanel(), m_diagram, AbstractElementPropertiesEditorWidget::m_element, m_tab, QET::Icons::tr, and QET::Icons::ZoomDraw.
Referenced by addGeneralWidget().
|
overridevirtual |
ElementPropertiesWidget::reset Reset the edited properties.
Reimplemented from PropertiesEditorWidget.
Definition at line 197 of file elementpropertieswidget.cpp.
References m_list_editor, and PropertiesEditorWidget::reset().
void ElementPropertiesWidget::setDynamicText | ( | DynamicElementTextItem * | text | ) |
ElementPropertiesWidget::setDynamicText convenience function: same as call : ElementPropertiesWidget::setElement, with parameter the parent element of . Set the dynamics text tab as current tab, expand and select the item that represent .
text |
Definition at line 126 of file elementpropertieswidget.cpp.
References m_list_editor, m_tab, DynamicElementTextItem::parentElement(), DynamicElementTextItemEditor::setCurrentText(), and setElement().
Referenced by ElementPropertiesWidget().
|
overridevirtual |
ElementPropertiesWidget::setElement Set to be the edited element.
element |
Implements AbstractElementPropertiesEditorWidget.
Definition at line 98 of file elementpropertieswidget.cpp.
References addGeneralWidget(), Element::linkType(), AbstractElementPropertiesEditorWidget::m_element, m_list_editor, AbstractElementPropertiesEditorWidget::setElement(), and updateUi().
Referenced by ElementPropertiesWidget(), setDynamicText(), and setTextsGroup().
|
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.
Definition at line 201 of file elementpropertieswidget.cpp.
References m_list_editor, PropertiesEditorWidget::m_live_edit, and PropertiesEditorWidget::setLiveEdit().
void ElementPropertiesWidget::setTextsGroup | ( | ElementTextItemGroup * | group | ) |
ElementPropertiesWidget::setTextsGroup Conveniance function : same as call : ElementPropertiesWidget::setElement, with parameter the parent element of . Set the dynamics text tab as current tab, expand and select the item that represent .
group |
Definition at line 149 of file elementpropertieswidget.cpp.
References m_list_editor, m_tab, DynamicElementTextItemEditor::setCurrentGroup(), setElement(), and Element::Type.
Referenced by ElementPropertiesWidget().
|
overrideprivatevirtual |
ElementPropertiesWidget::updateUi Update the content of this widget.
Reimplemented from PropertiesEditorWidget.
Definition at line 255 of file elementpropertieswidget.cpp.
References addGeneralWidget(), AbstractElementPropertiesEditorWidget::m_element, m_general_widget, m_list_editor, PropertiesEditorWidget::m_live_edit, m_tab, Element::Master, Element::NextReport, Element::PreviousReport, Element::Simple, Element::Slave, and Element::Terminale.
Referenced by setElement().
|
private |
Definition at line 60 of file elementpropertieswidget.h.
Referenced by editElement(), ElementPropertiesWidget(), findInPanel(), and generalWidget().
|
private |
Definition at line 63 of file elementpropertieswidget.h.
Referenced by addGeneralWidget(), and updateUi().
|
private |
Definition at line 62 of file elementpropertieswidget.h.
Referenced by apply(), reset(), setDynamicText(), setElement(), setLiveEdit(), setTextsGroup(), and updateUi().
|
private |
Definition at line 61 of file elementpropertieswidget.h.
Referenced by addGeneralWidget(), buildGui(), generalWidget(), setDynamicText(), setTextsGroup(), and updateUi().