40 m_conductor (conductor),
41 conductor_list (conductor -> relatedPotentialConductors().toList()),
42 m_parent_undo (parent_undo)
63 QVariant old_value, new_value;
65 old_value.setValue(cp);
67 new_value.setValue(cp);
69 QUndoCommand *undo =
nullptr;
78 undo =
new QUndoCommand();
80 undo->setText(
QObject::tr(
"Modifier les propriétés d'un conducteur",
"undo caption"));
86 undo->setText(
QObject::tr(
"Modifier les propriétés de plusieurs conducteurs",
"undo caption"));
91 old_value.setValue(cp2);
93 new_value.setValue(cp2);
133 bool properties_equal =
true;
137 properties_equal =
false;
140 if (properties_equal)
147 QStringList text_list;
148 QStringList formula_list;
152 text_list << cp.
text;
160 QList<ConductorProperties> cp_list;
QList< Conductor * > conductor_list
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
void numerateNewConductor()
ConductorAutoNumerotation::numerateNewConductor create and apply a new numerotation to ...
QString conductorCurrentAutoNum() const
QETProject::conductorCurrentAutoNum.
static void newProperties(Diagram *diagram, ConductorProperties &cp, autonum::sequentialNumbers &seq)
ConductorAutoNumerotation::newProperties Create a new properties according to the current autonum rul...
ConductorProperties properties
Conductor::properties.
static QString formulaToLabel(QString formula, sequentialNumbers &seqStruct, Diagram *diagram, const Element *elmt=nullptr)
AssignVariables::formulaToLabel Return the with variable assigned (ready to be displayed) ...
QETDiagramEditor * diagramEditor() const
Conductor::diagramEditor.
QHash< QString, NumerotationContext > conductorAutoNum() const
QETProject::conductorAutoNum.
NumerotationContext next()
NumerotationContextCommands::next.
void numeratePotential()
ConductorAutoNumerotation::numeratePotential Numerate a conductor on an existing potential.
int type() const override
void applyText(const QString &)
ConductorAutoNumerotation::applyText apply the text to and all conductors at the same potential...
void setSequential(const QString &label, sequentialNumbers &seqStruct, NumerotationContext &context, Diagram *diagram, const QString &hashKey)
setSequential Fill seqStruct
QString numerotationContextToFormula(const NumerotationContext &nc)
numerotationContextToFormula
void setProperties(const ConductorProperties &property)
QUndoCommand * m_parent_undo
autonum::sequentialNumbers & rSequenceNum()
void addConductorAutoNum(const QString &key, const NumerotationContext &context)
QETProject::addConductorAutoNum Add a new conductor numerotation context. If key already exist...
QString conductorsAutonumName() const
Diagram::conductorsAutonumName.
void numerate()
ConductorAutoNumerotation::numerate execute the automatic numerotation.
ConductorAutoNumerotation(Conductor *conductor, Diagram *diagram, QUndoCommand *undo_parent=nullptr)
ConductorAutoNumerotation::ConductorAutoNumerotation Constructor of autonum, after create a class...
The PotentialSelectorDialog class This dialog is used when user try to connect two existing potential...
bool isEmpty() const
NumerotationContext::isEmpty.
void applyForEqualAttributes(QList< ConductorProperties > list)
ConductorProperties::applyForEqualAttributes Test each attribute of properties in the list separatly...
QETProject * project() const
bool eachStrIsEqual(const QStringList &qsl)
QET::eachStrIsEqual.