|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef POTENTIALSELECTORDIALOG_H
19 #define POTENTIALSELECTORDIALOG_H
74 QList<ConductorProperties> list,
75 QWidget *parent =
nullptr);
80 QUndoCommand *parent_undo =
nullptr,
81 QWidget *parent =
nullptr);
84 QUndoCommand *parent_undo =
nullptr,
85 QWidget *parent =
nullptr);
96 Ui::PotentialSelectorDialog *
ui;
106 #endif // POTENTIALSELECTORDIALOG_H
@ Terminale
Definition: element.h:57
bool isValid() const override
Definition: potentialselectordialog.cpp:178
QList< Conductor * > conductors() const
Terminal::conductors.
Definition: terminal.cpp:715
autonum::sequentialNumbers sequenceNum
Definition: conductor.h:49
virtual kind linkType() const
Definition: element.h:159
Terminal * terminal2
Definition: conductor.h:68
The LinkReportPotentialSelector class Use for get the conductor propertie when two potentials is link...
Definition: potentialselectordialog.cpp:142
PotentialSelectorDialog(Conductor *conductor, QUndoCommand *parent_undo=nullptr, QWidget *parent=nullptr)
PotentialSelectorDialog::PotentialSelectorDialog Constructor when we link two potentiels together,...
Definition: potentialselectordialog.cpp:242
Definition: assignvariables.h:35
QList< ConductorProperties > m_properties_list_2
Definition: potentialselectordialog.h:40
QList< Element * > linkedElements()
Element::linkedElements.
Definition: element.h:258
QList< Conductor * > m_conductors_list_1
Definition: potentialselectordialog.h:41
Definition: potentialselectordialog.h:29
void on_buttonBox_accepted()
PotentialSelectorDialog::on_buttonBox_accepted Action when user click on OK button.
Definition: potentialselectordialog.cpp:386
Diagram * diagram() const
Definition: qetgraphicsitem.cpp:40
QList< ConductorProperties > m_properties_list
Definition: potentialselectordialog.h:102
void buildWidget()
PotentialSelectorDialog::buildWidget Build the dialog.
Definition: potentialselectordialog.cpp:288
virtual ~AbstractPotentialSelector()
Definition: potentialselectordialog.h:34
Element * m_report
Definition: potentialselectordialog.h:98
Diagram * diagram() const
Definition: conductor.cpp:559
~NewConductorPotentialSelector() override
Definition: potentialselectordialog.cpp:131
The NewConductorPotentialSelector class Use for get the conductor propertie when two potentials is li...
Definition: potentialselectordialog.cpp:37
virtual void linkToElement(Element *)
Definition: element.h:154
Element * parentElement() const
Terminal::parentElement.
Definition: terminal.cpp:822
bool m_is_valid
Definition: potentialselectordialog.cpp:134
autonum::sequentialNumbers m_seq_num_1
Definition: potentialselectordialog.h:37
Terminal * terminal1
Definition: conductor.h:67
int m_conductor_number_2
Definition: potentialselectordialog.h:38
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
QList< Conductor * > m_conductors_to_change
Definition: potentialselectordialog.h:103
void getPotential(Terminal *terminal, autonum::sequentialNumbers &seq_num, int &number, QList< ConductorProperties > &properties_list, QList< Conductor * > &c_list)
getPotential Get the conductor propertie of the potential at terminal, and the number of wire in this...
Definition: potentialselectordialog.cpp:82
void removeConductor(Conductor *conductor)
Terminal::removeConductor Remove a conductor from this terminal.
Definition: terminal.cpp:239
Conductor * m_conductor
Definition: potentialselectordialog.h:97
void applyForEqualAttributes(QList< ConductorProperties > list)
ConductorProperties::applyForEqualAttributes Test each attribute of properties in the list separatly....
Definition: conductorproperties.cpp:464
Ui::PotentialSelectorDialog * ui
Definition: potentialselectordialog.h:96
bool m_is_valid
Definition: potentialselectordialog.cpp:181
ConductorProperties properties
Definition: conductor.h:48
static ConductorProperties chosenProperties(QList< ConductorProperties > list, QWidget *parent=nullptr)
Definition: potentialselectordialog.cpp:187
QList< Conductor * > m_conductors_list_2
Definition: potentialselectordialog.h:41
QString m_function
Definition: conductorproperties.h:90
bool isFree() const
Definition: element.h:230
QList< Terminal * > terminals() const
Element::terminals.
Definition: element.cpp:136
QUndoStack & undoStack()
Diagram::undoStack.
Definition: diagram.h:397
@ AllReport
Definition: element.h:54
bool addConductor(Conductor *conductor)
Terminal::addConductor Add a conductor to this terminal.
Definition: terminal.cpp:215
bool isValid() const override
Definition: potentialselectordialog.cpp:70
virtual void unlinkAllElements()
Definition: element.h:155
Definition: autonumberingdockwidget.h:25
int m_selected
Definition: potentialselectordialog.h:104
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
~PotentialSelectorDialog() override
Definition: potentialselectordialog.cpp:278
autonum::sequentialNumbers m_sequential_num
Definition: potentialselectordialog.h:100
QString m_formula
Definition: conductorproperties.h:94
AbstractPotentialSelector * m_potential_selector
Definition: potentialselectordialog.h:101
int m_conductor_number_1
Definition: potentialselectordialog.h:38
The PotentialSelectorDialog class This dialog is used when user try to connect two existing potential...
Definition: potentialselectordialog.h:69
~LinkReportPotentialSelector() override
Definition: potentialselectordialog.cpp:176
The ConductorProperties class This class represents the functional properties of a particular conduct...
Definition: conductorproperties.h:68
autonum::sequentialNumbers m_seq_num_2
Definition: potentialselectordialog.h:37
AbstractPotentialSelector()
Definition: potentialselectordialog.h:31
QUndoCommand * m_parent_undo
Definition: potentialselectordialog.h:99
QList< ConductorProperties > m_properties_list_1
Definition: potentialselectordialog.h:39
QList< Conductor * > conductors() const
Element::conductors.
Definition: element.cpp:146
Definition: conductor.h:43
QString m_wire_color
Definition: conductorproperties.h:92
The Terminal class This class represents a terminal of an electrical element, i.e....
Definition: terminal.h:35
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
Definition: qpropertyundocommand.h:34
LinkReportPotentialSelector(Element *report)
Definition: potentialselectordialog.cpp:144
QString text
Definition: conductorproperties.h:89
QString m_tension_protocol
Definition: conductorproperties.h:91
NewConductorPotentialSelector(Conductor *conductor)
Definition: potentialselectordialog.cpp:39
QIcon tr
Definition: qeticons.cpp:206
QString m_wire_section
Definition: conductorproperties.h:93
virtual bool isValid() const =0