#include <vtranslatemeasurements.h>
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::QmuTranslation > | m_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::QmuTranslation > | m_guiTexts |
QMap< QString, qmu::QmuTranslation > | m_descriptions |
QMap< QString, QString > | m_numbers |
QMap< QString, QString > | m_formulas |
Definition at line 64 of file vtranslatemeasurements.h.
VTranslateMeasurements::VTranslateMeasurements | ( | ) |
Definition at line 61 of file vtranslatemeasurements.cpp.
References InitMeasurements().
|
virtual |
Definition at line 72 of file vtranslatemeasurements.cpp.
QString VTranslateMeasurements::Description | ( | const QString & | measurement | ) | const |
Definition at line 147 of file vtranslatemeasurements.cpp.
References m_descriptions.
Referenced by MeasurementDatabaseDialog::showDescription().
QString VTranslateMeasurements::guiText | ( | const QString & | measurement | ) | const |
Definition at line 134 of file vtranslatemeasurements.cpp.
References m_guiTexts.
Referenced by MeasurementDatabaseDialog::showDescription(), and TMainWindow::ShowMDiagram().
|
private |
Definition at line 207 of file vtranslatemeasurements.cpp.
References height_M, heightAnkle_M, heightAnkleHigh_M, heightArmpit_M, heightBustpoint_M, heightCalf_M, heightGlutealFold_M, heightHighhip_M, heightHip_M, heightKnee_M, heightKneeToAnkle_M, heightNeckBack_M, heightNeckBackToKnee_M, heightNeckBackToWaistSide_M, heightNeckFront_M, heightNeckSide_M, heightScapula_M, heightShoulderTip_M, heightWaistBack_M, heightWaistFront_M, heightWaistSide_M, heightWaistSideToHip_M, heightWaistSideToKnee_M, InitMeasurement(), and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 380 of file vtranslatemeasurements.cpp.
References InitMeasurement(), translate, widthAbdomenToHip_M, widthBust_M, widthHip_M, widthShoulder_M, and widthWaist_M.
Referenced by InitMeasurements().
|
private |
Definition at line 427 of file vtranslatemeasurements.cpp.
References indentAnkleHigh_M, indentNeckBack_M, indentWaistBack_M, InitMeasurement(), and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 460 of file vtranslatemeasurements.cpp.
References handCirc_M, handLength_M, handPalmCirc_M, handPalmLength_M, handPalmWidth_M, InitMeasurement(), and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 505 of file vtranslatemeasurements.cpp.
References footCirc_M, footInstepCirc_M, footLength_M, footWidth_M, InitMeasurement(), and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 544 of file vtranslatemeasurements.cpp.
References headChinToNeckBack_M, headCirc_M, headCrownToNeckBack_M, headDepth_M, headLength_M, headWidth_M, InitMeasurement(), and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 599 of file vtranslatemeasurements.cpp.
References bodyArmfoldCirc_M, bodyBustCirc_M, bodyTorsoCirc_M, bustArcB_M, bustArcF_M, bustArcHalfB_M, bustArcHalfF_M, bustCirc_M, highbustArcB_M, highbustArcF_M, highbustArcHalfB_M, highbustArcHalfF_M, highbustCirc_M, highhipArcB_M, highhipArcF_M, highhipArcHalfB_M, highhipArcHalfF_M, highhipCirc_M, hipArcB_M, hipArcF_M, hipArcHalfB_M, hipArcHalfF_M, hipCirc_M, hipCircWithAbdomen_M, hipWithAbdomenArcF_M, InitMeasurement(), lowbustArcB_M, lowbustArcF_M, lowbustArcHalfB_M, lowbustArcHalfF_M, lowbustCirc_M, neckArcB_M, neckArcF_M, neckArcHalfB_M, neckArcHalfF_M, neckCirc_M, neckMidCirc_M, ribArcB_M, ribArcF_M, ribArcHalfB_M, ribArcHalfF_M, ribCirc_M, size_M, translate, waistArcB_M, waistArcF_M, waistArcHalfB_M, waistArcHalfF_M, and waistCirc_M.
Referenced by InitMeasurements().
|
private |
Definition at line 958 of file vtranslatemeasurements.cpp.
References acrossBackToWaistB_M, armpitToWaistSide_M, bustToWaistB_M, bustToWaistF_M, highbustToWaistB_M, highbustToWaistF_M, InitMeasurement(), lowbustToWaistB_M, lowbustToWaistF_M, neckBackToAcrossBack_M, neckBackToBustB_M, neckBackToHighbustB_M, neckBackToWaistB_M, neckFrontToBustF_M, neckFrontToHighbustF_M, neckFrontToWaistF_M, neckFrontToWaistFlatF_M, neckSideToBustB_M, neckSideToBustF_M, neckSideToHighbustB_M, neckSideToHighbustF_M, neckSideToWaistB_M, neckSideToWaistBustpointF_M, neckSideToWaistF_M, neckSideToWaistScapulaB_M, ribToWaistSide_M, shoulderCenterToHighbustB_M, shoulderCenterToHighbustF_M, shoulderSlopeNeckBackAngle_M, shoulderSlopeNeckBackHeight_M, shoulderSlopeNeckSideAngle_M, shoulderSlopeNeckSideLength_M, shoulderSlopeShoulderTipAngle_M, shoulderTipToArmfoldB_M, shoulderTipToArmfoldF_M, shoulderTipToWaistSideB_M, shoulderTipToWaistSideF_M, translate, waistToHighhipB_M, waistToHighhipF_M, waistToHighhipSide_M, waistToHipB_M, waistToHipF_M, and waistToHipSide_M.
Referenced by InitMeasurements().
|
private |
Definition at line 1263 of file vtranslatemeasurements.cpp.
References acrossBackB_M, acrossBackHalfB_M, acrossChestF_M, acrossChestHalfF_M, armfoldToArmfoldB_M, armfoldToArmfoldF_M, InitMeasurement(), neckBackToShoulderTipB_M, neckFrontToShoulderTipF_M, neckWidth_M, shoulderLength_M, shoulderTipToShoulderTipB_M, shoulderTipToShoulderTipF_M, shoulderTipToShoulderTipHalfB_M, shoulderTipToShoulderTipHalfF_M, and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 1374 of file vtranslatemeasurements.cpp.
References bustpointNeckSideToWaist_M, bustpointToBustpoint_M, bustpointToBustpointHalf_M, bustpointToBustpointHalter_M, bustpointToLowbust_M, bustpointToNeckFront_M, bustpointToNeckSide_M, bustpointToShoulderCenter_M, bustpointToShoulderTip_M, bustpointToWaist_M, bustpointToWaistFront_M, InitMeasurement(), and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 1461 of file vtranslatemeasurements.cpp.
References InitMeasurement(), neckBackToWaistSide_M, neckFrontToWaistSide_M, neckSideToArmfoldB_M, neckSideToArmfoldF_M, neckSideToArmpitB_M, neckSideToArmpitF_M, neckSideToBustSideB_M, neckSideToBustSideF_M, neckSideToWaistSideB_M, neckSideToWaistSideF_M, shoulderTipToWaistB_1inOffset_M, shoulderTipToWaistBack_M, shoulderTipToWaistFront_M, and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 1565 of file vtranslatemeasurements.cpp.
References armAboveElbowCirc_M, armArmpitToElbow_M, armArmpitToWrist_M, armElbowCirc_M, armElbowCircBent_M, armElbowToWrist_M, armElbowToWristBent_M, armElbowToWristInside_M, armLowerCirc_M, armNeckSideToFingerTip_M, armNeckSideToOuterElbow_M, armNeckSideToWrist_M, armscyeCirc_M, armscyeLength_M, armscyeWidth_M, armShoulderTipToArmfoldLine_M, armShoulderTipToElbow_M, armShoulderTipToElbowBent_M, armShoulderTipToWrist_M, armShoulderTipToWristBent_M, armUpperCirc_M, armWristCirc_M, InitMeasurement(), and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 1733 of file vtranslatemeasurements.cpp.
References InitMeasurement(), legAnkleCirc_M, legAnkleDiagCirc_M, legAnkleHighCirc_M, legCalfCirc_M, legCrotchToAnkle_M, legCrotchToFloor_M, legKneeCirc_M, legKneeCircBent_M, legKneeSmallCirc_M, legThighMidCirc_M, legThighUpperCirc_M, legWaistSideToAnkle_M, legWaistSideToFloor_M, legWaistSideToKnee_M, and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 1844 of file vtranslatemeasurements.cpp.
References crotchLength_M, crotchLengthB_M, crotchLengthF_M, InitMeasurement(), riseLengthB_M, riseLengthDiag_M, riseLengthF_M, riseLengthSide_M, riseLengthSideSitting_M, and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 1916 of file vtranslatemeasurements.cpp.
References armAcrossBackCenterToElbowBent_M, armAcrossBackCenterToWristBent_M, armArmscyeBackCenterToWristBent_M, armNeckBackToElbowBent_M, armNeckBackToWristBent_M, armNeckSideToElbowBent_M, armNeckSideToWristBent_M, InitMeasurement(), neckBackToWaistFront_M, translate, waistNaturalArcB_M, waistNaturalArcF_M, waistNaturalCirc_M, waistToNaturalWaistB_M, waistToNaturalWaistF_M, and waistToWaistHalter_M.
Referenced by InitMeasurements().
|
private |
Definition at line 2032 of file vtranslatemeasurements.cpp.
References acrossBackCenterToArmfoldFrontToAcrossBackCenter_M, armfoldToArmfoldBust_M, armfoldToBustFront_M, armscyeArc_M, highbustBackOverShoulderToArmfoldFront_M, highbustBackOverShoulderToWaistFront_M, highbustBOverShoulderToHighbustF_M, InitMeasurement(), neckBackToArmfoldFront_M, neckBackToArmfoldFrontToHighbustBack_M, neckBackToArmfoldFrontToNeckBack_M, neckBackToArmfoldFrontToWaistSide_M, neckBackToBustFront_M, and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 2134 of file vtranslatemeasurements.cpp.
References dartWidthBust_M, dartWidthShoulder_M, dartWidthWaist_M, InitMeasurement(), and translate.
Referenced by InitMeasurements().
|
private |
Definition at line 193 of file vtranslatemeasurements.cpp.
References m_descriptions, m_formulas, m_guiTexts, m_measurements, and m_numbers.
Referenced by InitGroupA(), InitGroupB(), InitGroupC(), InitGroupD(), InitGroupE(), InitGroupF(), InitGroupG(), InitGroupH(), InitGroupI(), InitGroupJ(), InitGroupK(), InitGroupL(), InitGroupM(), InitGroupN(), InitGroupO(), InitGroupP(), and InitGroupQ().
|
private |
Definition at line 171 of file vtranslatemeasurements.cpp.
References InitGroupA(), InitGroupB(), InitGroupC(), InitGroupD(), InitGroupE(), InitGroupF(), InitGroupG(), InitGroupH(), InitGroupI(), InitGroupJ(), InitGroupK(), InitGroupL(), InitGroupM(), InitGroupN(), InitGroupO(), InitGroupP(), and InitGroupQ().
Referenced by Retranslate(), and VTranslateMeasurements().
bool VTranslateMeasurements::MeasurementsFromUser | ( | QString & | newFormula, |
int | position, | ||
const QString & | token, | ||
int & | bias | ||
) | const |
MeasurementsFromUser translate measurement to internal look.
newFormula | [in|out] expression to translate |
position | token position |
token | token to translate |
bias | hold change of length between translated and origin token string |
Definition at line 84 of file vtranslatemeasurements.cpp.
References m_measurements.
Referenced by VTranslateVars::FormulaFromUser(), and VTranslateVars::VarFromUser().
QString VTranslateMeasurements::MFormula | ( | const QString & | measurement | ) | const |
Definition at line 128 of file vtranslatemeasurements.cpp.
References m_formulas.
QString VTranslateMeasurements::MNumber | ( | const QString & | measurement | ) | const |
Definition at line 115 of file vtranslatemeasurements.cpp.
References m_numbers.
Referenced by ListNumbers(), MeasurementDatabaseDialog::showDescription(), and TMainWindow::ShowMDiagram().
QString VTranslateMeasurements::MToUser | ( | const QString & | measurement | ) | const |
Definition at line 102 of file vtranslatemeasurements.cpp.
References m_measurements.
|
virtual |
Reimplemented in VTranslateVars.
Definition at line 160 of file vtranslatemeasurements.cpp.
References InitMeasurements(), m_descriptions, m_formulas, m_guiTexts, m_measurements, and m_numbers.
Referenced by VTranslateVars::Retranslate().
|
private |
Definition at line 86 of file vtranslatemeasurements.h.
Referenced by Description(), InitMeasurement(), and Retranslate().
|
private |
Definition at line 88 of file vtranslatemeasurements.h.
Referenced by InitMeasurement(), MFormula(), and Retranslate().
|
private |
Definition at line 85 of file vtranslatemeasurements.h.
Referenced by guiText(), InitMeasurement(), and Retranslate().
|
protected |
Definition at line 81 of file vtranslatemeasurements.h.
Referenced by VTranslateVars::FormulaToUser(), InitMeasurement(), MeasurementsFromUser(), MToUser(), Retranslate(), and VTranslateVars::VarToUser().
|
private |
Definition at line 87 of file vtranslatemeasurements.h.
Referenced by InitMeasurement(), MNumber(), and Retranslate().