QElectroTech
0.70
|
The PotentialSelectorDialog class This dialog is used when user try to connect two existing potential together. The dialog ask to user to make a choice between the properties of the two existing potential, to apply it for the new potential. More...
#include <potentialselectordialog.h>
Public Member Functions | |
PotentialSelectorDialog (Conductor *conductor, QUndoCommand *parent_undo=nullptr, QWidget *parent=nullptr) | |
PotentialSelectorDialog::PotentialSelectorDialog Constructor when we link two potentiels together, with a conductor. More... | |
PotentialSelectorDialog (Element *report, QUndoCommand *parent_undo=nullptr, QWidget *parent=nullptr) | |
PotentialSelectorDialog::PotentialSelectorDialog Constructor when we link two potentiels together, with a folio report. More... | |
~PotentialSelectorDialog () override | |
Static Public Member Functions | |
static ConductorProperties | chosenProperties (QList< ConductorProperties > list, QWidget *parent=nullptr) |
Private Slots | |
void | on_buttonBox_accepted () |
PotentialSelectorDialog::on_buttonBox_accepted Action when user click on OK button. More... | |
Private Member Functions | |
void | buildWidget () |
PotentialSelectorDialog::buildWidget Build the dialog. More... | |
Private Attributes | |
Ui::PotentialSelectorDialog * | ui |
Conductor * | m_conductor |
Element * | m_report |
QUndoCommand * | m_parent_undo |
autonum::sequentialNumbers | m_sequential_num |
AbstractPotentialSelector * | m_potential_selector |
QList< ConductorProperties > | m_properties_list |
QList< Conductor * > | m_conductors_to_change |
int | m_selected = 0 |
The PotentialSelectorDialog class This dialog is used when user try to connect two existing potential together. The dialog ask to user to make a choice between the properties of the two existing potential, to apply it for the new potential.
Each constructor have a QUndoCommand for parameter If isn't null, when user click on OK button, the dialog will use the parent-undo as parent of the undo command that describe the changes. If is null, the created undo-command is push to the undo stack of the parent diagram of a conductor in potential. else we apply the change without a QUndoCommand.
the static function chosenProperties, open a dialog who ask user to make a choice between the given properties
Definition at line 60 of file potentialselectordialog.h.
|
explicit |
PotentialSelectorDialog::PotentialSelectorDialog Constructor when we link two potentiels together, with a conductor.
conductor | : the new conductor who connect to existing potential |
parent_undo | : undo parent to use. |
parent | : parent widget. |
Definition at line 220 of file potentialselectordialog.cpp.
References buildWidget(), m_potential_selector, and ui.
|
explicit |
PotentialSelectorDialog::PotentialSelectorDialog Constructor when we link two potentiels together, with a folio report.
report | : one of the report used to link the potentials (report must be linked to another report) |
parent_undo | : undo parent to use |
parent | : parent widget |
Definition at line 239 of file potentialselectordialog.cpp.
References buildWidget(), m_potential_selector, and ui.
|
override |
Definition at line 251 of file potentialselectordialog.cpp.
References m_potential_selector, and ui.
|
private |
PotentialSelectorDialog::buildWidget Build the dialog.
Definition at line 261 of file potentialselectordialog.cpp.
References AbstractPotentialSelector::m_conductor_number_1, AbstractPotentialSelector::m_conductor_number_2, AbstractPotentialSelector::m_conductors_list_1, AbstractPotentialSelector::m_conductors_list_2, m_conductors_to_change, ConductorProperties::m_function, m_potential_selector, m_properties_list, AbstractPotentialSelector::m_properties_list_1, AbstractPotentialSelector::m_properties_list_2, AbstractPotentialSelector::m_seq_num_1, AbstractPotentialSelector::m_seq_num_2, m_sequential_num, ConductorProperties::m_tension_protocol, ConductorProperties::text, QET::Icons::tr, and ui.
Referenced by PotentialSelectorDialog().
|
static |
Definition at line 169 of file potentialselectordialog.cpp.
References QET::Icons::tr.
Referenced by ConductorCreator::setUpPropertieToUse().
|
privateslot |
PotentialSelectorDialog::on_buttonBox_accepted Action when user click on OK button.
Definition at line 330 of file potentialselectordialog.cpp.
References Element::AllReport, ConductorProperties::applyForEqualAttributes(), Element::conductors(), QetGraphicsItem::diagram(), Conductor::diagram(), FormulaAssistantDialog::formula(), Element::isFree(), AbstractPotentialSelector::isValid(), Element::linkType(), m_conductor, m_conductors_to_change, ConductorProperties::m_formula, m_parent_undo, m_potential_selector, m_properties_list, m_report, m_sequential_num, Conductor::properties, Conductor::relatedPotentialConductors(), Conductor::sequenceNum, FormulaAssistantDialog::setForbiddenVariables(), FormulaAssistantDialog::setFormula(), FormulaAssistantDialog::setText(), QET::Icons::tr, and Diagram::undoStack().
|
private |
Definition at line 81 of file potentialselectordialog.h.
Referenced by on_buttonBox_accepted().
|
private |
Definition at line 87 of file potentialselectordialog.h.
Referenced by buildWidget(), and on_buttonBox_accepted().
|
private |
Definition at line 83 of file potentialselectordialog.h.
Referenced by on_buttonBox_accepted().
|
private |
Definition at line 85 of file potentialselectordialog.h.
Referenced by buildWidget(), on_buttonBox_accepted(), PotentialSelectorDialog(), and ~PotentialSelectorDialog().
|
private |
Definition at line 86 of file potentialselectordialog.h.
Referenced by buildWidget(), and on_buttonBox_accepted().
|
private |
Definition at line 82 of file potentialselectordialog.h.
Referenced by on_buttonBox_accepted().
|
private |
Definition at line 88 of file potentialselectordialog.h.
|
private |
Definition at line 84 of file potentialselectordialog.h.
Referenced by buildWidget(), and on_buttonBox_accepted().
|
private |
Definition at line 80 of file potentialselectordialog.h.
Referenced by buildWidget(), PotentialSelectorDialog(), and ~PotentialSelectorDialog().