QElectroTech  0.8-dev
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 type owned by context in list More...
 
void setFolioSequentialToHash (QStringList &list, QHash< QString, QStringList > &hash, const QString &autoNumName)
 setFolioSequentialToHash Insert all value of list in hash with key autoNumName 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 location represent an element embedded in a project
Here is the call graph for this function:
Here is the caller graph for this function:

◆ numerotationContextToFormula()

QString autonum::numerotationContextToFormula ( const NumerotationContext nc)

numerotationContextToFormula

Parameters
nc
Returns
the numerotation context, converted to formula
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFolioSequentialToHash()

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

setFolioSequentialToHash Insert all value of list in hash with key autoNumName

Parameters
list: list to get values from
hash: hash to have values inserted
autoNumName: name to use as key of hash
Here is the caller graph for this function:

◆ 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.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSequentialToList()

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

setSequentialToList Append all sequential of type type owned by context 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)
Here is the call graph for this function:
Here is the caller graph for this function: