QElectroTech  0.8-dev
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ConductorAutoNumerotation Class Reference

The ConductorAutoNumerotation class. More...

#include <conductorautonumerotation.h>

Collaboration diagram for ConductorAutoNumerotation:
Collaboration graph

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

Diagramm_diagram
 
Conductorm_conductor
 
QList< Conductor * > conductor_list
 
QUndoCommand * m_parent_undo
 

Detailed Description

The ConductorAutoNumerotation class.

Constructor & Destructor Documentation

◆ ConductorAutoNumerotation()

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)

Parameters
conductor: the conductor to apply automatic numerotation
diagram: the diagram of conductor
parent_undo: parent undo command

Member Function Documentation

◆ applyText()

void ConductorAutoNumerotation::applyText ( const QString &  t)

ConductorAutoNumerotation::applyText apply the text t to conductor_ and all conductors at the same potential.

Parameters
t: Conductor text
Here is the call graph for this function:
Here is the caller graph for this function:

◆ newProperties()

void ConductorAutoNumerotation::newProperties ( Diagram diagram,
ConductorProperties cp,
autonum::sequentialNumbers seq 
)
static

ConductorAutoNumerotation::newProperties Create a new properties according to the current autonum rule of diagram.

Parameters
diagram: Diagram class
cp: ConductorProperties
seq: sequentialNumbers
Here is the call graph for this function:
Here is the caller graph for this function:

◆ numerate()

void ConductorAutoNumerotation::numerate ( )

ConductorAutoNumerotation::numerate execute the automatic numerotation.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ numerateNewConductor()

void ConductorAutoNumerotation::numerateNewConductor ( )
private

ConductorAutoNumerotation::numerateNewConductor create and apply a new numerotation to m_conductor.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ numeratePotential()

void ConductorAutoNumerotation::numeratePotential ( )
private

ConductorAutoNumerotation::numeratePotential Numerate a conductor on an existing potential.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ conductor_list

QList<Conductor *> ConductorAutoNumerotation::conductor_list
private

◆ m_conductor

Conductor* ConductorAutoNumerotation::m_conductor
private

◆ m_diagram

Diagram* ConductorAutoNumerotation::m_diagram
private

◆ m_parent_undo

QUndoCommand* ConductorAutoNumerotation::m_parent_undo
private

The documentation for this class was generated from the following files: