![]() |
QElectroTech
0.8-dev
|
The ElementInfoWidget class this class is a widget to edit an element informations. More...
#include <elementinfowidget.h>


Public Member Functions | |
| ElementInfoWidget (Element *elmt, QWidget *parent=nullptr) | |
| ElementInfoWidget::ElementInfoWidget Constructor. More... | |
| ~ElementInfoWidget () override | |
| ElementInfoWidget::~ElementInfoWidget Destructor. More... | |
| void | setElement (Element *element) override |
| ElementInfoWidget::setElement Set element to be the edited element. More... | |
| void | apply () override |
| ElementInfoWidget::apply Apply the new information with a new undo command (got with method associatedUndo) pushed to the stack of element project. More... | |
| QUndoCommand * | associatedUndo () const override |
| ElementInfoWidget::associatedUndo If the edited info is different of the actual element info, return a QUndoCommand with the change. If no change return nullptr;. More... | |
| QString | title () const override |
| PropertiesEditorWidget::title. More... | |
| bool | setLiveEdit (bool live_edit) override |
| ElementInfoWidget::setLiveEdit. More... | |
| void | updateUi () override |
| ElementInfoWidget::updateUi fill information fetch in m_element_info to the corresponding line edit. More... | |
| DiagramContext | currentInfo () const |
| ElementInfoWidget::currentInfo. 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 () |
| bool | isLiveEdit () const |
| PropertiesEditorWidget::isLiveEdit. More... | |
Protected Member Functions | |
| bool | event (QEvent *event) override |
| ElementInfoWidget::event Reimplemented from QWidget::event Only give focus to the first line edit at first activation. After send the event to QWidget. More... | |
| void | enableLiveEdit () override |
| ElementInfoWidget::enableLiveEdit Enable the live edit mode. More... | |
| void | disableLiveEdit () override |
| ElementInfoWidget::disableLiveEdit disable the live edit mode. More... | |
Private Slots | |
| void | firstActivated () |
| ElementInfoWidget::firstActivated Slot activated when this widget is show. Set the focus to the first line edit provided by this widget. More... | |
| void | elementInfoChange () |
| ElementInfoWidget::elementInfoChange This slot is called when m_element::elementInformation change. More... | |
Private Member Functions | |
| void | buildInterface () |
| ElementInfoWidget::buildInterface Build the widget. More... | |
| ElementInfoPartWidget * | infoPartWidgetForKey (const QString &key) const |
| ElementInfoWidget::infoPartWidgetForKey. More... | |
Private Attributes | |
| Ui::ElementInfoWidget * | ui |
| QList< ElementInfoPartWidget * > | m_eipw_list |
| bool | m_first_activation |
Additional Inherited Members | |
Protected Attributes inherited from AbstractElementPropertiesEditorWidget | |
| QPointer< Element > | m_element |
Protected Attributes inherited from PropertiesEditorWidget | |
| bool | m_live_edit |
The ElementInfoWidget class this class is a widget to edit an element informations.
|
explicit |
ElementInfoWidget::ElementInfoWidget Constructor.
| elmt | element to edit information |
| parent | parent widget |

|
override |
ElementInfoWidget::~ElementInfoWidget Destructor.
|
overridevirtual |
ElementInfoWidget::apply Apply the new information with a new undo command (got with method associatedUndo) pushed to the stack of element project.
Reimplemented from PropertiesEditorWidget.


|
overridevirtual |
ElementInfoWidget::associatedUndo If the edited info is different of the actual element info, return a QUndoCommand with the change. If no change return nullptr;.
Reimplemented from PropertiesEditorWidget.


|
private |
ElementInfoWidget::buildInterface Build the widget.


| DiagramContext ElementInfoWidget::currentInfo | ( | ) | const |
ElementInfoWidget::currentInfo.


|
overrideprotectedvirtual |
ElementInfoWidget::disableLiveEdit disable the live edit mode.
Reimplemented from PropertiesEditorWidget.


|
privateslot |
ElementInfoWidget::elementInfoChange This slot is called when m_element::elementInformation change.


|
overrideprotectedvirtual |
ElementInfoWidget::enableLiveEdit Enable the live edit mode.
Reimplemented from PropertiesEditorWidget.


|
overrideprotected |
ElementInfoWidget::event Reimplemented from QWidget::event Only give focus to the first line edit at first activation. After send the event to QWidget.
| event |

|
privateslot |
ElementInfoWidget::firstActivated Slot activated when this widget is show. Set the focus to the first line edit provided by this widget.

|
private |
ElementInfoWidget::infoPartWidgetForKey.
| key |


|
overridevirtual |
ElementInfoWidget::setElement Set element to be the edited element.
| element |
Implements AbstractElementPropertiesEditorWidget.


|
overridevirtual |
ElementInfoWidget::setLiveEdit.
| live_edit | true : enable the live edit mode, false disable |
Reimplemented from PropertiesEditorWidget.

|
inlineoverridevirtual |
PropertiesEditorWidget::title.
Reimplemented from PropertiesEditorWidget.
|
overridevirtual |
ElementInfoWidget::updateUi fill information fetch in m_element_info to the corresponding line edit.
Reimplemented from PropertiesEditorWidget.


|
private |
|
private |
|
private |
1.8.18