20 #include "ui_conductorpropertiesdialog.h" 38 m_cpw -> setHiddenOneTextPerFolio(
true);
40 if (conductor -> diagram() -> defaultConductorProperties.m_one_text_per_folio ==
true &&
41 conductor -> relatedPotentialConductors().size()) {
44 ui -> main_layout -> insertWidget(0,
m_cpw);
67 QVariant old_value, new_value;
72 undo->setText(
tr(
"Modifier les propriétés d'un conducteur",
"undo caption"));
76 undo->setText(
tr(
"Modifier les propriétés de plusieurs conducteurs",
"undo caption"));
80 old_value.setValue(potential_conductor->
properties());
103 return ui -> m_apply_all_cb -> isChecked();
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
ConductorProperties properties
Conductor::properties.
ConductorProperties properties() const
ConductorPropertiesDialog::properties.
~ConductorPropertiesDialog() override
ConductorPropertiesDialog::~ConductorPropertiesDialog.
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...
static void PropertiesDialog(Conductor *conductor, QWidget *parent=nullptr)
ConductorPropertiesDialog::PropertiesDialog Static method for open and apply properties.
bool applyAll() const
ConductorPropertiesDialog::applyAll.
Diagram * diagram() const
Ui::ConductorPropertiesDialog * ui
ConductorPropertiesDialog(Conductor *conductor, QWidget *parent=nullptr)
ConductorPropertiesDialog::ConductorPropertiesDialog Constructor.
ConductorPropertiesWidget * m_cpw