|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef ASSIGNVARIABLES_H
19 #define ASSIGNVARIABLES_H
23 #include <QStringList>
45 QDomElement
toXml(QDomDocument &document,
const QString& tag_name = QString(
"sequentialNumbers"))
const;
46 void fromXml(
const QDomElement &element);
90 #endif // ASSIGNVARIABLES_H
unsigned int number() const
Definition: diagramposition.h:41
QHash< QString, QStringList > m_elmt_tenfolio_max
Definition: diagram.h:102
DiagramContext projectProperties()
Definition: qetproject.cpp:1669
QList< QString > keys(KeyOrder=None) const
Definition: diagramcontext.cpp:49
Diagram * m_diagram
Definition: assignvariables.h:74
Definition: assignvariables.h:35
void clear()
Definition: assignvariables.cpp:165
Q_DECLARE_METATYPE(NamesList)
void fromXml(const QDomElement &element)
sequentialNumbers::fromXml Import sequential values from a QDomElement
Definition: assignvariables.cpp:138
static QString customElementsDir()
QETApp::customElementsDir.
Definition: qetapp.cpp:657
QString fileName() const
ElementLocation::fileName.
Definition: elementslocation.cpp:793
bool isEmpty() const
NumerotationContext::isEmpty.
Definition: numerotationcontext.cpp:101
bool operator!=(const sequentialNumbers &other) const
Definition: assignvariables.cpp:78
QString letter() const
Definition: diagramposition.h:42
sequentialNumbers()
sequentialNumbers::sequentialNumbers
Definition: assignvariables.cpp:34
QStringList unit_folio
Definition: assignvariables.h:50
void setSequentialToList(QStringList &list, NumerotationContext &context, const QString &type)
setSequentialToList Append all sequential of type type owned by context in list
Definition: assignvariables.cpp:363
QString numerotationContextToFormula(const NumerotationContext &nc)
numerotationContextToFormula
Definition: assignvariables.cpp:473
void assignSequence()
Definition: assignvariables.cpp:320
Definition: numerotationcontext.h:31
DiagramContext additionalFields() const
Definition: bordertitleblock.h:127
BorderTitleBlock border_and_titleblock
Diagram dimensions and title block.
Definition: diagram.h:83
QETProject * project() const
Diagram::project.
Definition: diagram.cpp:2326
int size() const
NumerotationContext::size.
Definition: numerotationcontext.cpp:93
The AssignVariables class This class assign variable of a formula string. Return the final string use...
Definition: assignvariables.h:63
QDomElement textToDomElement(QDomDocument &document, const QString &tag_name, const QString &value)
QETXML::textToDomElement Return a QDomElement, created from document, with tag name tag_name and text...
Definition: qetxml.cpp:296
static QString replaceVariable(const QString &formula, const DiagramContext &dc)
AssignVariables::replaceVariable Replace the variables in formula in form %{my-var} to the correspond...
Definition: assignvariables.cpp:208
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
ElementsLocation parent() const
ElementsLocation::parent.
Definition: elementslocation.cpp:346
AssignVariables(const QString &formula, const sequentialNumbers &seqStruct, Diagram *diagram, const Element *elmt=nullptr)
Definition: assignvariables.cpp:235
void setSequential(const QString &label, sequentialNumbers &seqStruct, NumerotationContext &context, Diagram *diagram, const QString &hashKey)
setSequential Fill seqStruct
Definition: assignvariables.cpp:434
static QString commonElementsDir()
QETApp::commonElementsDir.
Definition: qetapp.cpp:598
void assignTitleBlockVar()
Definition: assignvariables.cpp:292
QString getPrefix() const
Element::getPrefix get Element Prefix.
Definition: element.cpp:1699
QString elementPrefixForLocation(const ElementsLocation &location)
elementPrefixForLocation
Definition: assignvariables.cpp:553
QStringList hundred_folio
Definition: assignvariables.h:54
sequentialNumbers m_seq_struct
Definition: assignvariables.h:77
QString m_assigned_label
Definition: assignvariables.h:76
DiagramPosition convertPosition(const QPointF &)
Diagram::convertPosition.
Definition: diagram.cpp:2223
QVariant value(const QString &key) const
Definition: diagramcontext.cpp:100
bool isProject() const
ElementsLocation::isProject.
Definition: elementslocation.cpp:459
const Element * m_element
Definition: assignvariables.h:78
static QString formulaToLabel(QString formula, sequentialNumbers &seqStruct, Diagram *diagram, const Element *elmt=nullptr)
AssignVariables::formulaToLabel Return the formula with variable assigned (ready to be displayed)
Definition: assignvariables.cpp:187
void setFolioSequentialToHash(QStringList &list, QHash< QString, QStringList > &hash, const QString &autoNumName)
setFolioSequentialToHash Insert all value of list in hash with key autoNumName
Definition: assignvariables.cpp:389
The ElementsLocation class This class represents the location, the location of an element or of a cat...
Definition: elementslocation.h:46
void assignProjectVar()
Definition: assignvariables.cpp:306
QHash< QString, QStringList > m_elmt_hundredfolio_max
Definition: diagram.h:103
sequentialNumbers & operator=(const sequentialNumbers &other)
Definition: assignvariables.cpp:49
~sequentialNumbers()
Definition: assignvariables.cpp:47
QStringList itemAt(const int) const
NumerotationContext::itemAt.
Definition: numerotationcontext.cpp:110
QDomElement toXml(QDomDocument &document, const QString &tag_name=QString("sequentialNumbers")) const
sequentialNumbers::toXml export this sequential numbers into a QDomElement.
Definition: assignvariables.cpp:94
QStringList ten_folio
Definition: assignvariables.h:52
QString m_arg_formula
Definition: assignvariables.h:75
QHash< QString, QStringList > m_elmt_unitfolio_max
Hash containing max values for folio sequential autonums in this diagram.
Definition: diagram.h:101
Definition: assignvariables.cpp:30
bool operator==(const sequentialNumbers &other) const
Definition: assignvariables.cpp:65
QStringList unit
Definition: assignvariables.h:49
QStringList ten
Definition: assignvariables.h:51
Definition: diagramcontext.h:56
QStringList hundred
Definition: assignvariables.h:53