QElectroTech
0.8-dev
|
#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 text. 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 text 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 group. 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 group is expanded and selected. More... | |
void | setElement (Element *element) override |
ElementPropertiesWidget::setElement Set element 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 text. Set the dynamics text tab as current tab, expand and select the item that represent text. More... | |
void | setTextsGroup (ElementTextItemGroup *group) |
ElementPropertiesWidget::setTextsGroup Conveniance function : same as call : ElementPropertiesWidget::setElement, with parameter the parent element of group. Set the dynamics text tab as current tab, expand and select the item that represent group. 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... | |
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 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 | |
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 |
ElementPropertiesWidget::ElementPropertiesWidget Default constructor.
elmt | |
parent |
|
explicit |
ElementPropertiesWidget::ElementPropertiesWidget Same as default constructor, the edited element, is the parent element of text. 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 text is expanded and selected.
text | |
parent |
|
explicit |
ElementPropertiesWidget::ElementPropertiesWidget Same as default constructor, the edited element, is the parent element of group. 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 group is expanded and selected.
group | |
parent |
|
private |
ElementPropertiesWidget::addGeneralWidget Add or update the general widget on this tab widget.
|
overridevirtual |
ElementPropertiesWidget::apply Apply the new properties by pushing an undo command to the parent project's undo stack of element.
Reimplemented from PropertiesEditorWidget.
|
private |
ElementPropertiesWidget::build Build the content of this widget.
|
slot |
ElementPropertiesWidget::editElement If m_element is a custom element, emit findElementRequired and editElementRequired.
|
signal |
|
slot |
ElementPropertiesWidget::findInPanel If m_element is a custom element, emit findElementRequired.
|
private |
ElementPropertiesWidget::generalWidget.
|
overridevirtual |
ElementPropertiesWidget::reset Reset the edited properties.
Reimplemented from PropertiesEditorWidget.
void ElementPropertiesWidget::setDynamicText | ( | DynamicElementTextItem * | text | ) |
ElementPropertiesWidget::setDynamicText convenience function: same as call : ElementPropertiesWidget::setElement, with parameter the parent element of text. Set the dynamics text tab as current tab, expand and select the item that represent text.
text |
|
overridevirtual |
ElementPropertiesWidget::setElement Set element to be the edited element.
element |
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.
void ElementPropertiesWidget::setTextsGroup | ( | ElementTextItemGroup * | group | ) |
ElementPropertiesWidget::setTextsGroup Conveniance function : same as call : ElementPropertiesWidget::setElement, with parameter the parent element of group. Set the dynamics text tab as current tab, expand and select the item that represent group.
group |
|
overrideprivatevirtual |
ElementPropertiesWidget::updateUi Update the content of this widget.
Reimplemented from PropertiesEditorWidget.
|
private |
|
private |
|
private |
|
private |