QElectroTech
0.70
|
The ElementPropertiesEditorWidget class This class provide a dialog for edit various property of element, like the type (master, slave, report etc....) and kind info. More...
#include <elementpropertieseditorwidget.h>
Public Member Functions | |
ElementPropertiesEditorWidget (QString &basic_type, DiagramContext &kind_info, DiagramContext &elmt_info, QWidget *parent=nullptr) | |
ElementPropertiesEditorWidget::ElementPropertiesEditorWidget Default constructor. More... | |
~ElementPropertiesEditorWidget () override | |
ElementPropertiesEditorWidget::~ElementPropertiesEditorWidget Default destructor. More... | |
void | upDateInterface () |
ElementPropertiesEditorWidget::upDateInterface Update the interface with the curent value. More... | |
Private Slots | |
void | on_m_buttonBox_accepted () |
ElementPropertiesEditorWidget::on_m_buttonBox_accepted Action on button accepted : the new information is set. More... | |
void | on_m_base_type_cb_currentIndexChanged (int index) |
ElementPropertiesEditorWidget::on_m_base_type_cb_currentIndexChanged. More... | |
Private Member Functions | |
void | setUpInterface () |
ElementPropertiesEditorWidget::setUpInterface. More... | |
void | updateTree () |
void | populateTree () |
ElementPropertiesEditorWidget::populateTree Create QTreeWidgetItem of the tree widget and populate it. More... | |
Private Attributes | |
Ui::ElementPropertiesEditorWidget * | ui |
QString & | m_basic_type |
DiagramContext & | m_kind_info |
DiagramContext & | m_elmt_info |
The ElementPropertiesEditorWidget class This class provide a dialog for edit various property of element, like the type (master, slave, report etc....) and kind info.
Definition at line 34 of file elementpropertieseditorwidget.h.
|
explicit |
ElementPropertiesEditorWidget::ElementPropertiesEditorWidget Default constructor.
basic_type | : QString of the drawed element |
kind_info | : DiagramContext to store kindInfo of drawed element |
elmt_info | : the information of element (label, manufacturer etc...] |
parent | : parent widget |
Definition at line 54 of file elementpropertieseditorwidget.cpp.
References setUpInterface(), ui, and upDateInterface().
|
override |
ElementPropertiesEditorWidget::~ElementPropertiesEditorWidget Default destructor.
Definition at line 70 of file elementpropertieseditorwidget.cpp.
References ui.
|
privateslot |
ElementPropertiesEditorWidget::on_m_base_type_cb_currentIndexChanged.
index | : Action when combo-box base type index change |
Definition at line 200 of file elementpropertieseditorwidget.cpp.
References ui, and updateTree().
Referenced by upDateInterface().
|
privateslot |
ElementPropertiesEditorWidget::on_m_buttonBox_accepted Action on button accepted : the new information is set.
Definition at line 171 of file elementpropertieseditorwidget.cpp.
References DiagramContext::addValue(), m_basic_type, m_elmt_info, m_kind_info, and ui.
|
private |
ElementPropertiesEditorWidget::populateTree Create QTreeWidgetItem of the tree widget and populate it.
Definition at line 153 of file elementpropertieseditorwidget.cpp.
References QETApp::elementTranslatedInfoKey(), m_elmt_info, ui, and DiagramContext::value().
Referenced by setUpInterface().
|
private |
ElementPropertiesEditorWidget::setUpInterface.
Definition at line 99 of file elementpropertieseditorwidget.cpp.
References populateTree(), QET::Icons::tr, and ui.
Referenced by ElementPropertiesEditorWidget().
void ElementPropertiesEditorWidget::upDateInterface | ( | ) |
ElementPropertiesEditorWidget::upDateInterface Update the interface with the curent value.
Definition at line 79 of file elementpropertieseditorwidget.cpp.
References m_basic_type, m_kind_info, on_m_base_type_cb_currentIndexChanged(), and ui.
Referenced by ElementPropertiesEditorWidget().
|
private |
Definition at line 131 of file elementpropertieseditorwidget.cpp.
References ui.
Referenced by on_m_base_type_cb_currentIndexChanged().
|
private |
Definition at line 58 of file elementpropertieseditorwidget.h.
Referenced by on_m_buttonBox_accepted(), and upDateInterface().
|
private |
Definition at line 59 of file elementpropertieseditorwidget.h.
Referenced by on_m_buttonBox_accepted(), and populateTree().
|
private |
Definition at line 59 of file elementpropertieseditorwidget.h.
Referenced by on_m_buttonBox_accepted(), and upDateInterface().
|
private |
Definition at line 57 of file elementpropertieseditorwidget.h.
Referenced by ElementPropertiesEditorWidget(), on_m_base_type_cb_currentIndexChanged(), on_m_buttonBox_accepted(), populateTree(), setUpInterface(), upDateInterface(), updateTree(), and ~ElementPropertiesEditorWidget().