QElectroTech  0.70
elementpropertieseditorwidget.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2019 The QElectroTech Team
3  This file is part of QElectroTech.
4 
5  QElectroTech is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 2 of the License, or
8  (at your option) any later version.
9 
10  QElectroTech is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef ELEMENTPROPERTIESEDITORWIDGET_H
19 #define ELEMENTPROPERTIESEDITORWIDGET_H
20 
21 #include <QDialog>
22 #include <QAbstractButton>
23 #include "diagramcontext.h"
24 
25 namespace Ui {
27 }
28 
34 class ElementPropertiesEditorWidget : public QDialog
35 {
36  Q_OBJECT
37 
38  //METHODS
39  public:
40  explicit ElementPropertiesEditorWidget(QString &basic_type, DiagramContext &kind_info, DiagramContext &elmt_info, QWidget *parent = nullptr);
42 
43  void upDateInterface();
44 
45  private:
46  void setUpInterface();
47  void updateTree();
48  void populateTree();
49 
50  //SLOTS
51  private slots:
54 
55  //ATTRIBUTES
56  private:
57  Ui::ElementPropertiesEditorWidget *ui;
58  QString &m_basic_type;
60  &m_elmt_info;
61 };
62 
63 #endif // ELEMENTPROPERTIESEDITORWIDGET_H
Ui::ElementPropertiesEditorWidget * ui
void populateTree()
ElementPropertiesEditorWidget::populateTree Create QTreeWidgetItem of the tree widget and populate it...
void on_m_base_type_cb_currentIndexChanged(int index)
ElementPropertiesEditorWidget::on_m_base_type_cb_currentIndexChanged.
The ElementPropertiesEditorWidget class This class provide a dialog for edit various property of elem...
void on_m_buttonBox_accepted()
ElementPropertiesEditorWidget::on_m_buttonBox_accepted Action on button accepted : the new informatio...
ElementPropertiesEditorWidget(QString &basic_type, DiagramContext &kind_info, DiagramContext &elmt_info, QWidget *parent=nullptr)
ElementPropertiesEditorWidget::ElementPropertiesEditorWidget Default constructor. ...
void upDateInterface()
ElementPropertiesEditorWidget::upDateInterface Update the interface with the curent value...
void setUpInterface()
ElementPropertiesEditorWidget::setUpInterface.
~ElementPropertiesEditorWidget() override
ElementPropertiesEditorWidget::~ElementPropertiesEditorWidget Default destructor. ...