QElectroTech 0.100.0-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. | |
~ElementInfoWidget () override | |
ElementInfoWidget::~ElementInfoWidget Destructor. | |
void | setElement (Element *element) override |
ElementInfoWidget::setElement Set element to be the edited element. | |
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. | |
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;. | |
QString | title () const override |
PropertiesEditorWidget::title. | |
bool | setLiveEdit (bool live_edit) override |
ElementInfoWidget::setLiveEdit. | |
void | updateUi () override |
ElementInfoWidget::updateUi fill information fetch in m_element_info to the corresponding line edit. | |
DiagramContext | currentInfo () const |
ElementInfoWidget::currentInfo. | |
Public Member Functions inherited from AbstractElementPropertiesEditorWidget | |
AbstractElementPropertiesEditorWidget (QWidget *parent=nullptr) | |
Public Member Functions inherited from PropertiesEditorWidget | |
PropertiesEditorWidget (QWidget *parent=nullptr) | |
PropertiesEditorWidget::PropertiesEditorWidget Constructor. | |
virtual void | reset () |
bool | isLiveEdit () const |
PropertiesEditorWidget::isLiveEdit. | |
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. | |
void | enableLiveEdit () override |
ElementInfoWidget::enableLiveEdit Enable the live edit mode. | |
void | disableLiveEdit () override |
ElementInfoWidget::disableLiveEdit disable the live edit mode. | |
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. | |
void | elementInfoChange () |
ElementInfoWidget::elementInfoChange This slot is called when m_element::elementInformation change. | |
Private Member Functions | |
void | buildInterface () |
ElementInfoWidget::buildInterface Build the widget. | |
ElementInfoPartWidget * | infoPartWidgetForKey (const QString &key) const |
ElementInfoWidget::infoPartWidgetForKey. | |
Private Attributes | |
Ui::ElementInfoWidget * | ui |
QList< ElementInfoPartWidget * > | m_eipw_list |
bool | m_first_activation |
bool | m_ui_builded = false |
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 |
|
private |