QElectroTech  0.70
Classes | Functions
autonum Namespace Reference

Classes

class  AssignVariables
 The AssignVariables class This class assign variable of a formula string. Return the final string used to be displayed from a formula string. More...
 
class  sequentialNumbers
 

Functions

void setSequentialToList (QStringList &list, NumerotationContext &context, const QString &type)
 setSequentialToList Append all sequential of type owned by in list More...
 
void setFolioSequentialToHash (QStringList &list, QHash< QString, QStringList > &hash, const QString &autoNumName)
 setFolioSequentialToHash Insert all value of in with key More...
 
void setSequential (const QString &label, sequentialNumbers &seqStruct, NumerotationContext &context, Diagram *diagram, const QString &hashKey)
 setSequential Fill seqStruct More...
 
QString numerotationContextToFormula (const NumerotationContext &nc)
 numerotationContextToFormula More...
 
QString elementPrefixForLocation (const ElementsLocation &location)
 elementPrefixForLocation More...
 

Function Documentation

◆ elementPrefixForLocation()

QString autonum::elementPrefixForLocation ( const ElementsLocation location)

elementPrefixForLocation

Parameters
location
Returns
the prefix for an element represented by location, prefix can be null. Search for a prefix only if represent an element embedded in a project

Definition at line 484 of file assignvariables.cpp.

References QETApp::commonElementsDir(), QETApp::customElementsDir(), ElementsLocation::fileName(), ElementsLocation::isProject(), and ElementsLocation::parent().

Referenced by Element::Element().

◆ numerotationContextToFormula()

QString autonum::numerotationContextToFormula ( const NumerotationContext nc)

◆ setFolioSequentialToHash()

void autonum::setFolioSequentialToHash ( QStringList &  list,
QHash< QString, QStringList > &  hash,
const QString &  autoNumName 
)

setFolioSequentialToHash Insert all value of in with key

Parameters
list: list to get values from
hash: hash to have values inserted
autoNumName: name to use as key of hash

Definition at line 330 of file assignvariables.cpp.

Referenced by setSequential().

◆ setSequential()

void autonum::setSequential ( const QString &  label,
sequentialNumbers seqStruct,
NumerotationContext context,
Diagram diagram,
const QString &  hashKey 
)

setSequential Fill seqStruct

Parameters
label: label of sequential to fill (sequ_, sequf_, seqt_, ect....)
seqStruct: struct to fill
context: numerotation context use to know the current sequential num.
diagram: diagram where the sequential occur, notably use when label is folio type (sequf_, seqtf_, seqhf_), to keep up to date the current sequential of folio.
hashKey: the hash key used to store the sequential for folio type.

Definition at line 367 of file assignvariables.cpp.

References autonum::sequentialNumbers::hundred, autonum::sequentialNumbers::hundred_folio, NumerotationContext::isEmpty(), Diagram::m_elmt_hundredfolio_max, Diagram::m_elmt_tenfolio_max, Diagram::m_elmt_unitfolio_max, setFolioSequentialToHash(), setSequentialToList(), autonum::sequentialNumbers::ten, autonum::sequentialNumbers::ten_folio, autonum::sequentialNumbers::unit, and autonum::sequentialNumbers::unit_folio.

Referenced by ConductorAutoNumerotation::newProperties(), ConductorAutoNumerotation::numerateNewConductor(), and Element::setUpFormula().

◆ setSequentialToList()

void autonum::setSequentialToList ( QStringList &  list,
NumerotationContext context,
const QString &  type 
)

setSequentialToList Append all sequential of type owned by in list

Parameters
list: list to have value inserted
context: numerotation context to retrieve value
type: type of sequential (unit, unitfolio, ten, tenfolio, hundred, hundredfolio)

Definition at line 306 of file assignvariables.cpp.

References NumerotationContext::itemAt(), and NumerotationContext::size().

Referenced by setSequential().