QElectroTech  0.8-dev
conductorpropertiesdialog.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 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 
19 #ifndef CONDUCTORPROPERTIESDIALOG_H
20 #define CONDUCTORPROPERTIESDIALOG_H
21 
22 #include <QDialog>
23 #include "conductorproperties.h"
24 
25 class Conductor;
27 
28 namespace Ui {
30 }
31 
32 class ConductorPropertiesDialog : public QDialog
33 {
34  Q_OBJECT
35 
36  public:
37  explicit ConductorPropertiesDialog (Conductor *conductor,
38  QWidget *parent = nullptr);
39  static void PropertiesDialog (Conductor *conductor,
40  QWidget *parent = nullptr);
41  ~ConductorPropertiesDialog() override;
42 
44  bool applyAll() const;
45 
46  private:
47  Ui::ConductorPropertiesDialog *ui;
49 };
50 
51 #endif // CONDUCTORPROPERTIESDIALOG_H
ConductorPropertiesWidget
Definition: conductorpropertieswidget.h:32
ConductorPropertiesDialog::~ConductorPropertiesDialog
~ConductorPropertiesDialog() override
ConductorPropertiesDialog::~ConductorPropertiesDialog.
Definition: conductorpropertiesdialog.cpp:51
conductor.h
ConductorPropertiesWidget::setHiddenAvailableAutonum
void setHiddenAvailableAutonum(const bool &hide)
ConductorPropertiesWidget::setHiddenAvailableAutonum Hide the label, combo box and push button of ava...
Definition: conductorpropertieswidget.cpp:202
Conductor::diagram
Diagram * diagram() const
Definition: conductor.cpp:559
ConductorPropertiesWidget::setDisabledShowText
void setDisabledShowText(const bool &disable=true)
ConductorPropertiesWidget::setDisabledShowText.
Definition: conductorpropertieswidget.cpp:193
ConductorPropertiesDialog
Definition: conductorpropertiesdialog.h:33
ConductorPropertiesDialog::ConductorPropertiesDialog
ConductorPropertiesDialog(Conductor *conductor, QWidget *parent=nullptr)
ConductorPropertiesDialog::ConductorPropertiesDialog Constructor.
Definition: conductorpropertiesdialog.cpp:32
Conductor::properties
ConductorProperties properties
Definition: conductor.h:48
qpropertyundocommand.h
Diagram::undoStack
QUndoStack & undoStack()
Diagram::undoStack.
Definition: diagram.h:397
conductorproperties.h
ConductorPropertiesDialog::properties
ConductorProperties properties() const
ConductorPropertiesDialog::properties.
Definition: conductorpropertiesdialog.cpp:95
Ui
Definition: autonumberingdockwidget.h:25
Conductor::relatedPotentialConductors
QSet< Conductor * > relatedPotentialConductors(const bool all_diagram=true, QList< Terminal * > *t_list=nullptr)
Conductor::relatedPotentialConductors Return all conductors at the same potential of this conductor,...
Definition: conductor.cpp:1647
ConductorPropertiesDialog::ui
Ui::ConductorPropertiesDialog * ui
Definition: conductorpropertiesdialog.h:47
ConductorProperties
The ConductorProperties class This class represents the functional properties of a particular conduct...
Definition: conductorproperties.h:68
conductorpropertiesdialog.h
Conductor
Definition: conductor.h:43
ConductorPropertiesDialog::PropertiesDialog
static void PropertiesDialog(Conductor *conductor, QWidget *parent=nullptr)
ConductorPropertiesDialog::PropertiesDialog Static method for open and apply properties.
Definition: conductorpropertiesdialog.cpp:62
conductorpropertieswidget.h
QPropertyUndoCommand
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
Definition: qpropertyundocommand.h:34
QET::Icons::tr
QIcon tr
Definition: qeticons.cpp:206
ConductorPropertiesDialog::applyAll
bool applyAll() const
ConductorPropertiesDialog::applyAll.
Definition: conductorpropertiesdialog.cpp:105
diagram.h
ConductorPropertiesDialog::m_cpw
ConductorPropertiesWidget * m_cpw
Definition: conductorpropertiesdialog.h:48