QElectroTech
0.8-dev
|
The ConductorAutoNumerotation class. More...
#include <conductorautonumerotation.h>
Public Member Functions | |
ConductorAutoNumerotation (Conductor *conductor, Diagram *diagram, QUndoCommand *undo_parent=nullptr) | |
ConductorAutoNumerotation::ConductorAutoNumerotation Constructor of autonum, after create a class, call numerate to apply the autonum. When autonum is applyed, they do with an undo command added to the stack of diagram. If you give a parent_undo at constructor, the undo command create in this class have parent_undo for parent, and wasn't added to the stack of diagram (it's the responsabillty of the parent_undo) More... | |
void | numerate () |
ConductorAutoNumerotation::numerate execute the automatic numerotation. More... | |
void | applyText (const QString &) |
ConductorAutoNumerotation::applyText apply the text t to conductor_ and all conductors at the same potential. More... | |
Static Public Member Functions | |
static void | newProperties (Diagram *diagram, ConductorProperties &cp, autonum::sequentialNumbers &seq) |
ConductorAutoNumerotation::newProperties Create a new properties according to the current autonum rule of diagram. More... | |
Private Member Functions | |
void | numeratePotential () |
ConductorAutoNumerotation::numeratePotential Numerate a conductor on an existing potential. More... | |
void | numerateNewConductor () |
ConductorAutoNumerotation::numerateNewConductor create and apply a new numerotation to m_conductor. More... | |
Private Attributes | |
Diagram * | m_diagram |
Conductor * | m_conductor |
QList< Conductor * > | conductor_list |
QUndoCommand * | m_parent_undo |
The ConductorAutoNumerotation class.
ConductorAutoNumerotation::ConductorAutoNumerotation | ( | Conductor * | conductor, |
Diagram * | diagram, | ||
QUndoCommand * | parent_undo = nullptr |
||
) |
ConductorAutoNumerotation::ConductorAutoNumerotation Constructor of autonum, after create a class, call numerate to apply the autonum. When autonum is applyed, they do with an undo command added to the stack of diagram. If you give a parent_undo at constructor, the undo command create in this class have parent_undo for parent, and wasn't added to the stack of diagram (it's the responsabillty of the parent_undo)
conductor | : the conductor to apply automatic numerotation |
diagram | : the diagram of conductor |
parent_undo | : parent undo command |
void ConductorAutoNumerotation::applyText | ( | const QString & | t | ) |
ConductorAutoNumerotation::applyText apply the text t to conductor_ and all conductors at the same potential.
t | : Conductor text |
|
static |
ConductorAutoNumerotation::newProperties Create a new properties according to the current autonum rule of diagram.
diagram | : Diagram class |
cp | : ConductorProperties |
seq | : sequentialNumbers |
void ConductorAutoNumerotation::numerate | ( | ) |
ConductorAutoNumerotation::numerate execute the automatic numerotation.
|
private |
ConductorAutoNumerotation::numerateNewConductor create and apply a new numerotation to m_conductor.
|
private |
ConductorAutoNumerotation::numeratePotential Numerate a conductor on an existing potential.
|
private |
|
private |
|
private |
|
private |