QElectroTech  0.8-dev
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
ElementPropertiesEditorWidget Class Reference

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>

Inherits QDialog.

Collaboration diagram for ElementPropertiesEditorWidget:
Collaboration graph

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
 
DiagramContextm_kind_info
 
DiagramContextm_elmt_info
 

Detailed Description

The ElementPropertiesEditorWidget class This class provide a dialog for edit various property of element, like the type (master, slave, report etc....) and kind info.

Constructor & Destructor Documentation

◆ ElementPropertiesEditorWidget()

ElementPropertiesEditorWidget::ElementPropertiesEditorWidget ( QString &  basic_type,
DiagramContext kind_info,
DiagramContext elmt_info,
QWidget *  parent = nullptr 
)
explicit

ElementPropertiesEditorWidget::ElementPropertiesEditorWidget Default constructor.

Parameters
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
Here is the call graph for this function:

◆ ~ElementPropertiesEditorWidget()

ElementPropertiesEditorWidget::~ElementPropertiesEditorWidget ( )
override

Member Function Documentation

◆ on_m_base_type_cb_currentIndexChanged

void ElementPropertiesEditorWidget::on_m_base_type_cb_currentIndexChanged ( int  index)
privateslot

ElementPropertiesEditorWidget::on_m_base_type_cb_currentIndexChanged.

Parameters
index: Action when combo-box base type index change
Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_m_buttonBox_accepted

void ElementPropertiesEditorWidget::on_m_buttonBox_accepted ( )
privateslot

ElementPropertiesEditorWidget::on_m_buttonBox_accepted Action on button accepted : the new information is set.

Here is the call graph for this function:

◆ populateTree()

void ElementPropertiesEditorWidget::populateTree ( )
private

ElementPropertiesEditorWidget::populateTree Create QTreeWidgetItem of the tree widget and populate it.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUpInterface()

void ElementPropertiesEditorWidget::setUpInterface ( )
private

ElementPropertiesEditorWidget::setUpInterface.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ upDateInterface()

void ElementPropertiesEditorWidget::upDateInterface ( )

ElementPropertiesEditorWidget::upDateInterface Update the interface with the curent value.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateTree()

void ElementPropertiesEditorWidget::updateTree ( )
private
Here is the caller graph for this function:

Member Data Documentation

◆ m_basic_type

QString& ElementPropertiesEditorWidget::m_basic_type
private

◆ m_elmt_info

DiagramContext & ElementPropertiesEditorWidget::m_elmt_info
private

◆ m_kind_info

DiagramContext& ElementPropertiesEditorWidget::m_kind_info
private

◆ ui

Ui::ElementPropertiesEditorWidget* ElementPropertiesEditorWidget::ui
private

The documentation for this class was generated from the following files: