QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
elementpropertieseditorwidget.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 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 "../../diagramcontext.h"
22#include "../../properties/elementdata.h"
23
24#include <QAbstractButton>
25#include <QDialog>
26
27namespace Ui {
29}
30
36class ElementPropertiesEditorWidget : public QDialog
37{
38 Q_OBJECT
39
40 //METHODS
41 public:
42 explicit ElementPropertiesEditorWidget(ElementData data, QWidget *parent = nullptr);
44
46
47 private:
48 void upDateInterface();
49 void setUpInterface();
50 void updateTree();
51 void populateTree();
52
53 //SLOTS
54 private slots:
57
58 //ATTRIBUTES
59 private:
60 Ui::ElementPropertiesEditorWidget *ui;
62};
63
64#endif // ELEMENTPROPERTIESEDITORWIDGET_H
The ElementData class WARNING This class inherit from PropertiesInterface but only fromXml is actuall...
Definition elementdata.h:32
The ElementPropertiesEditorWidget class This class provide a dialog for edit various property of elem...
Definition elementpropertieseditorwidget.h:37
void upDateInterface()
ElementPropertiesEditorWidget::upDateInterface Update the interface with the current value.
Definition elementpropertieseditorwidget.cpp:81
void setUpInterface()
ElementPropertiesEditorWidget::setUpInterface.
Definition elementpropertieseditorwidget.cpp:116
ElementData editedData()
Definition elementpropertieseditorwidget.h:45
ElementData m_data
Definition elementpropertieseditorwidget.h:61
void on_m_buttonBox_accepted()
ElementPropertiesEditorWidget::on_m_buttonBox_accepted Action on button accepted : the new informatio...
Definition elementpropertieseditorwidget.cpp:215
Ui::ElementPropertiesEditorWidget * ui
Definition elementpropertieseditorwidget.h:60
void populateTree()
ElementPropertiesEditorWidget::populateTree Create QTreeWidgetItem of the tree widget and populate it...
Definition elementpropertieseditorwidget.cpp:197
~ElementPropertiesEditorWidget() override
ElementPropertiesEditorWidget::~ElementPropertiesEditorWidget Default destructor.
Definition elementpropertieseditorwidget.cpp:72
void on_m_base_type_cb_currentIndexChanged(int index)
ElementPropertiesEditorWidget::on_m_base_type_cb_currentIndexChanged.
Definition elementpropertieseditorwidget.cpp:252
void updateTree()
Definition elementpropertieseditorwidget.cpp:161
Definition autonumberingdockwidget.h:26