Seamly2D
Code documentation
VTranslateMeasurements Class Reference

#include <vtranslatemeasurements.h>

Inheritance diagram for VTranslateMeasurements:
Collaboration diagram for VTranslateMeasurements:

Public Member Functions

 VTranslateMeasurements ()
 
virtual ~VTranslateMeasurements ()
 
bool MeasurementsFromUser (QString &newFormula, int position, const QString &token, int &bias) const
 MeasurementsFromUser translate measurement to internal look. More...
 
QString MToUser (const QString &measurement) const
 
QString MNumber (const QString &measurement) const
 
QString MFormula (const QString &measurement) const
 
QString guiText (const QString &measurement) const
 
QString Description (const QString &measurement) const
 
virtual void Retranslate ()
 

Protected Attributes

QMap< QString, qmu::QmuTranslationm_measurements
 

Private Member Functions

void InitGroupA ()
 
void InitGroupB ()
 
void InitGroupC ()
 
void InitGroupD ()
 
void InitGroupE ()
 
void InitGroupF ()
 
void InitGroupG ()
 
void InitGroupH ()
 
void InitGroupI ()
 
void InitGroupJ ()
 
void InitGroupK ()
 
void InitGroupL ()
 
void InitGroupM ()
 
void InitGroupN ()
 
void InitGroupO ()
 
void InitGroupP ()
 
void InitGroupQ ()
 
void InitMeasurements ()
 
void InitMeasurement (const QString &name, const qmu::QmuTranslation &m, const qmu::QmuTranslation &g, const qmu::QmuTranslation &d, const QString &number, const QString &formula=QString())
 

Private Attributes

QMap< QString, qmu::QmuTranslationm_guiTexts
 
QMap< QString, qmu::QmuTranslationm_descriptions
 
QMap< QString, QString > m_numbers
 
QMap< QString, QString > m_formulas
 

Detailed Description

Definition at line 64 of file vtranslatemeasurements.h.

Constructor & Destructor Documentation

◆ VTranslateMeasurements()

VTranslateMeasurements::VTranslateMeasurements ( )

Definition at line 61 of file vtranslatemeasurements.cpp.

References InitMeasurements().

◆ ~VTranslateMeasurements()

VTranslateMeasurements::~VTranslateMeasurements ( )
virtual

Definition at line 72 of file vtranslatemeasurements.cpp.

Member Function Documentation

◆ Description()

QString VTranslateMeasurements::Description ( const QString &  measurement) const

Definition at line 147 of file vtranslatemeasurements.cpp.

References m_descriptions.

Referenced by MeasurementDatabaseDialog::showDescription().

◆ guiText()

QString VTranslateMeasurements::guiText ( const QString &  measurement) const

◆ InitGroupA()

◆ InitGroupB()

void VTranslateMeasurements::InitGroupB ( )
private

◆ InitGroupC()

void VTranslateMeasurements::InitGroupC ( )
private

◆ InitGroupD()

void VTranslateMeasurements::InitGroupD ( )
private

◆ InitGroupE()

void VTranslateMeasurements::InitGroupE ( )
private

◆ InitGroupF()

void VTranslateMeasurements::InitGroupF ( )
private

◆ InitGroupG()

◆ InitGroupH()

◆ InitGroupI()

◆ InitGroupJ()

◆ InitGroupK()

◆ InitGroupL()

◆ InitGroupM()

◆ InitGroupN()

void VTranslateMeasurements::InitGroupN ( )
private

◆ InitGroupO()

◆ InitGroupP()

◆ InitGroupQ()

void VTranslateMeasurements::InitGroupQ ( )
private

◆ InitMeasurement()

void VTranslateMeasurements::InitMeasurement ( const QString &  name,
const qmu::QmuTranslation m,
const qmu::QmuTranslation g,
const qmu::QmuTranslation d,
const QString &  number,
const QString &  formula = QString() 
)
private

◆ InitMeasurements()

◆ MeasurementsFromUser()

bool VTranslateMeasurements::MeasurementsFromUser ( QString &  newFormula,
int  position,
const QString &  token,
int &  bias 
) const

MeasurementsFromUser translate measurement to internal look.

Parameters
newFormula[in|out] expression to translate
positiontoken position
tokentoken to translate
biashold change of length between translated and origin token string
Returns
true if was found measurement with same name.

Definition at line 84 of file vtranslatemeasurements.cpp.

References m_measurements.

Referenced by VTranslateVars::FormulaFromUser(), and VTranslateVars::VarFromUser().

◆ MFormula()

QString VTranslateMeasurements::MFormula ( const QString &  measurement) const

Definition at line 128 of file vtranslatemeasurements.cpp.

References m_formulas.

◆ MNumber()

QString VTranslateMeasurements::MNumber ( const QString &  measurement) const

◆ MToUser()

QString VTranslateMeasurements::MToUser ( const QString &  measurement) const

Definition at line 102 of file vtranslatemeasurements.cpp.

References m_measurements.

◆ Retranslate()

void VTranslateMeasurements::Retranslate ( )
virtual

Member Data Documentation

◆ m_descriptions

QMap<QString, qmu::QmuTranslation> VTranslateMeasurements::m_descriptions
private

Definition at line 86 of file vtranslatemeasurements.h.

Referenced by Description(), InitMeasurement(), and Retranslate().

◆ m_formulas

QMap<QString, QString> VTranslateMeasurements::m_formulas
private

Definition at line 88 of file vtranslatemeasurements.h.

Referenced by InitMeasurement(), MFormula(), and Retranslate().

◆ m_guiTexts

QMap<QString, qmu::QmuTranslation> VTranslateMeasurements::m_guiTexts
private

Definition at line 85 of file vtranslatemeasurements.h.

Referenced by guiText(), InitMeasurement(), and Retranslate().

◆ m_measurements

QMap<QString, qmu::QmuTranslation> VTranslateMeasurements::m_measurements
protected

◆ m_numbers

QMap<QString, QString> VTranslateMeasurements::m_numbers
private

Definition at line 87 of file vtranslatemeasurements.h.

Referenced by InitMeasurement(), MNumber(), and Retranslate().


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