QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
potentialselectordialog.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2026 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
23
24#include <QDialog>
25class Conductor;
26class QUndoCommand;
27class Element;
28
44
45namespace Ui {
47}
48
73class PotentialSelectorDialog : public QDialog
74{
75 Q_OBJECT
76
77 public:
79 QList<ConductorProperties> list,
80 QWidget *parent = nullptr,
81 bool *cancelled = nullptr);
82
83 public:
85 Conductor *conductor,
86 QUndoCommand *parent_undo = nullptr,
87 QWidget *parent = nullptr);
89 Element *report,
90 QUndoCommand *parent_undo = nullptr,
91 QWidget *parent = nullptr);
92 ~PotentialSelectorDialog() override;
93
94
95 private slots:
97
98 private:
99 void buildWidget();
100
101 private:
102 Ui::PotentialSelectorDialog *ui;
105 QUndoCommand *m_parent_undo;
108 QList <ConductorProperties> m_properties_list;
109 QList <Conductor *> m_conductors_to_change;
110 int m_selected = 0;
111};
112#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:44
The ConductorProperties class This class represents the functional properties of a particular conduct...
Definition conductorproperties.h:68
Definition element.h:44
The PotentialSelectorDialog class This dialog is used when user try to connect two existing potential...
Definition potentialselectordialog.h:74
static ConductorProperties chosenProperties(QList< ConductorProperties > list, QWidget *parent=nullptr, bool *cancelled=nullptr)
Definition potentialselectordialog.cpp:191
void on_buttonBox_accepted()
PotentialSelectorDialog::on_buttonBox_accepted Action when user click on OK button.
Definition potentialselectordialog.cpp:423
Conductor * m_conductor
Definition potentialselectordialog.h:103
Ui::PotentialSelectorDialog * ui
Definition potentialselectordialog.h:102
void buildWidget()
PotentialSelectorDialog::buildWidget Build the dialog.
Definition potentialselectordialog.cpp:309
QList< ConductorProperties > m_properties_list
Definition potentialselectordialog.h:108
Element * m_report
Definition potentialselectordialog.h:104
QUndoCommand * m_parent_undo
Definition potentialselectordialog.h:105
int m_selected
Definition potentialselectordialog.h:110
autonum::sequentialNumbers m_sequential_num
Definition potentialselectordialog.h:106
AbstractPotentialSelector * m_potential_selector
Definition potentialselectordialog.h:107
QList< Conductor * > m_conductors_to_change
Definition potentialselectordialog.h:109
~PotentialSelectorDialog() override
Definition potentialselectordialog.cpp:299
PotentialSelectorDialog(Conductor *conductor, QUndoCommand *parent_undo=nullptr, QWidget *parent=nullptr)
PotentialSelectorDialog::PotentialSelectorDialog Constructor when we link two potentiels together,...
Definition potentialselectordialog.cpp:263
Definition assignvariables.h:35
Definition autonumberingdockwidget.h:30