QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
potentialselectordialog.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 POTENTIALSELECTORDIALOG_H
19#define POTENTIALSELECTORDIALOG_H
20
21#include "../autoNum/assignvariables.h"
22#include "../conductorproperties.h"
23
24#include <QDialog>
25class Conductor;
26class QUndoCommand;
27class Element;
28
44
45namespace Ui {
47}
48
69class PotentialSelectorDialog : public QDialog
70{
71 Q_OBJECT
72
73 public:
75 QList<ConductorProperties> list,
76 QWidget *parent = nullptr);
77
78 public:
80 Conductor *conductor,
81 QUndoCommand *parent_undo = nullptr,
82 QWidget *parent = nullptr);
84 Element *report,
85 QUndoCommand *parent_undo = nullptr,
86 QWidget *parent = nullptr);
87 ~PotentialSelectorDialog() override;
88
89
90 private slots:
92
93 private:
94 void buildWidget();
95
96 private:
97 Ui::PotentialSelectorDialog *ui;
100 QUndoCommand *m_parent_undo;
103 QList <ConductorProperties> m_properties_list;
104 QList <Conductor *> m_conductors_to_change;
105 int m_selected = 0;
106};
107#endif // POTENTIALSELECTORDIALOG_H
Definition potentialselectordialog.h:30
AbstractPotentialSelector()
Definition potentialselectordialog.h:32
QList< ConductorProperties > m_properties_list_2
Definition potentialselectordialog.h:41
int m_conductor_number_1
Definition potentialselectordialog.h:39
QList< Conductor * > m_conductors_list_1
Definition potentialselectordialog.h:42
autonum::sequentialNumbers m_seq_num_2
Definition potentialselectordialog.h:38
autonum::sequentialNumbers m_seq_num_1
Definition potentialselectordialog.h:38
QList< Conductor * > m_conductors_list_2
Definition potentialselectordialog.h:42
virtual ~AbstractPotentialSelector()
Definition potentialselectordialog.h:35
QList< ConductorProperties > m_properties_list_1
Definition potentialselectordialog.h:40
int m_conductor_number_2
Definition potentialselectordialog.h:39
virtual bool isValid() const =0
Definition conductor.h:43
The ConductorProperties class This class represents the functional properties of a particular conduct...
Definition conductorproperties.h:68
Definition element.h:43
The PotentialSelectorDialog class This dialog is used when user try to connect two existing potential...
Definition potentialselectordialog.h:70
void on_buttonBox_accepted()
PotentialSelectorDialog::on_buttonBox_accepted Action when user click on OK button.
Definition potentialselectordialog.cpp:406
Conductor * m_conductor
Definition potentialselectordialog.h:98
Ui::PotentialSelectorDialog * ui
Definition potentialselectordialog.h:97
void buildWidget()
PotentialSelectorDialog::buildWidget Build the dialog.
Definition potentialselectordialog.cpp:292
QList< ConductorProperties > m_properties_list
Definition potentialselectordialog.h:103
Element * m_report
Definition potentialselectordialog.h:99
QUndoCommand * m_parent_undo
Definition potentialselectordialog.h:100
static ConductorProperties chosenProperties(QList< ConductorProperties > list, QWidget *parent=nullptr)
Definition potentialselectordialog.cpp:191
int m_selected
Definition potentialselectordialog.h:105
autonum::sequentialNumbers m_sequential_num
Definition potentialselectordialog.h:101
AbstractPotentialSelector * m_potential_selector
Definition potentialselectordialog.h:102
QList< Conductor * > m_conductors_to_change
Definition potentialselectordialog.h:104
~PotentialSelectorDialog() override
Definition potentialselectordialog.cpp:282
Definition assignvariables.h:34
Definition autonumberingdockwidget.h:26