QElectroTech
0.70
|
The AssignVariables class This class assign variable of a formula string. Return the final string used to be displayed from a formula string. More...
#include <assignvariables.h>
Static Public Member Functions | |
static QString | formulaToLabel (QString formula, sequentialNumbers &seqStruct, Diagram *diagram, const Element *elmt=nullptr) |
AssignVariables::formulaToLabel Return the with variable assigned (ready to be displayed) More... | |
static QString | replaceVariable (const QString &formula, const DiagramContext &dc) |
AssignVariables::replaceVariable Replace the variables in in form %{my-var} to the corresponding value stored in . More... | |
Private Member Functions | |
AssignVariables (const QString &formula, const sequentialNumbers &seqStruct, Diagram *diagram, const Element *elmt=nullptr) | |
void | assignTitleBlockVar () |
void | assignProjectVar () |
void | assignSequence () |
Private Attributes | |
Diagram * | m_diagram = nullptr |
QString | m_arg_formula |
QString | m_assigned_label |
sequentialNumbers | m_seq_struct |
const Element * | m_element = nullptr |
The AssignVariables class This class assign variable of a formula string. Return the final string used to be displayed from a formula string.
Definition at line 62 of file assignvariables.h.
|
private |
Definition at line 201 of file assignvariables.cpp.
References assignProjectVar(), assignSequence(), assignTitleBlockVar(), Diagram::border_and_titleblock, Diagram::convertPosition(), Diagram::folioIndex(), BorderTitleBlock::folioTotal(), Element::getPrefix(), m_assigned_label, m_diagram, and m_element.
|
private |
Definition at line 250 of file assignvariables.cpp.
References DiagramContext::count(), DiagramContext::keys(), m_assigned_label, m_diagram, Diagram::project(), and QETProject::projectProperties().
Referenced by AssignVariables().
|
private |
Definition at line 264 of file assignvariables.cpp.
References autonum::sequentialNumbers::hundred, autonum::sequentialNumbers::hundred_folio, m_assigned_label, m_seq_struct, autonum::sequentialNumbers::ten, autonum::sequentialNumbers::ten_folio, autonum::sequentialNumbers::unit, and autonum::sequentialNumbers::unit_folio.
Referenced by AssignVariables().
|
private |
Definition at line 236 of file assignvariables.cpp.
References BorderTitleBlock::additionalFields(), Diagram::border_and_titleblock, DiagramContext::count(), DiagramContext::keys(), m_assigned_label, and m_diagram.
Referenced by AssignVariables().
|
static |
AssignVariables::formulaToLabel Return the with variable assigned (ready to be displayed)
formula | - the formula to work |
seqStruct | - struct where is stocked int values (struct is passed as a reference and modified by this static method) |
diagram | - the diagram where occure the formula. |
elmt | - parent element (if any) of the formula |
Definition at line 163 of file assignvariables.cpp.
References m_assigned_label, and m_seq_struct.
Referenced by CrossRefItem::AddExtraInfo(), LinkSingleElementWidget::buildTree(), DynamicElementTextItem::elementInfoChanged(), CrossRefItem::elementPositionText(), nomenclature::getElementInfo(), ConductorAutoNumerotation::numerateNewConductor(), Conductor::refreshText(), DynamicElementTextItem::reportReplacedCompositeText(), Conductor::setProperties(), Element::setUpFormula(), DynamicElementTextItem::updateLabel(), DynamicElementTextItem::updateReportText(), ProjectView::updateTabTitle(), MasterPropertiesWidget::updateUi(), ElementTextItemGroup::updateXref(), and DynamicElementTextItem::updateXref().
|
static |
AssignVariables::replaceVariable Replace the variables in in form %{my-var} to the corresponding value stored in .
formula | |
dc |
Definition at line 177 of file assignvariables.cpp.
References DiagramContext::value().
Referenced by PartDynamicTextField::elementInfoChanged(), DynamicElementTextItem::elementInfoChanged(), DynamicElementTextModel::itemDataChanged(), DynamicElementTextModel::itemsForText(), PartDynamicTextField::setCompositeText(), DynamicElementTextItem::setCompositeText(), DynamicTextItemDelegate::setModelData(), DynamicElementTextItem::setTextFrom(), and DynamicElementTextItem::updateLabel().
|
private |
Definition at line 75 of file assignvariables.h.
|
private |
Definition at line 76 of file assignvariables.h.
Referenced by assignProjectVar(), assignSequence(), assignTitleBlockVar(), AssignVariables(), and formulaToLabel().
|
private |
Definition at line 74 of file assignvariables.h.
Referenced by assignProjectVar(), assignTitleBlockVar(), and AssignVariables().
|
private |
Definition at line 78 of file assignvariables.h.
Referenced by AssignVariables().
|
private |
Definition at line 77 of file assignvariables.h.
Referenced by assignSequence(), and formulaToLabel().