The VMeasurement class keep data row of multisize table. More...
#include <vmeasurement.h>
Public Member Functions | |
VMeasurement (quint32 index, const QString &name, qreal baseSize, qreal baseHeight, const qreal &base, const qreal &ksize, const qreal &kheight, const QString &gui_text=QString(), const QString &description=QString(), const QString &tagName=QString()) | |
VMeasurement create measurement for multisize table. More... | |
VMeasurement (VContainer *data, quint32 index, const QString &name, const qreal &base, const QString &formula, bool ok, const QString &gui_text=QString(), const QString &description=QString(), const QString &tagName=QString()) | |
VMeasurement create measurement for individual table. More... | |
VMeasurement (const VMeasurement &m) | |
virtual | ~VMeasurement () Q_DECL_OVERRIDE |
VMeasurement & | operator= (const VMeasurement &m) |
void | Swap (VMeasurement &m) Q_DECL_NOTHROW |
QString | getGuiText () const |
getGuiText measurement name for tooltip More... | |
QString | TagName () const |
void | setTagName (const QString &tagName) |
QString | GetFormula () const |
bool | isCustom () const |
int | Index () const |
bool | IsFormulaOk () const |
virtual bool | isNotUsed () const Q_DECL_OVERRIDE |
virtual qreal | GetValue () const Q_DECL_OVERRIDE |
virtual qreal * | GetValue () Q_DECL_OVERRIDE |
VContainer * | GetData () |
void | SetSize (qreal *size) |
void | SetHeight (qreal *height) |
void | SetUnit (const Unit *unit) |
qreal | GetBase () const |
GetBase return value in base size and height. More... | |
void | SetBase (const qreal &value) |
qreal | GetKsize () const |
GetKsize return increment in sizes. More... | |
void | SetKsize (const qreal &value) |
qreal | GetKheight () const |
GetKheight return increment in heights. More... | |
void | SetKheight (const qreal &value) |
Public Member Functions inherited from VVariable | |
VVariable () | |
VVariable (const QString &name, const QString &description=QString()) | |
VVariable (const VVariable &var) | |
virtual | ~VVariable () Q_DECL_OVERRIDE |
VVariable & | operator= (const VVariable &var) |
void | Swap (VVariable &var) Q_DECL_NOTHROW |
QString | GetDescription () const |
void | SetDescription (const QString &desc) |
Public Member Functions inherited from VInternalVariable | |
VInternalVariable () | |
VInternalVariable (const VInternalVariable &var) | |
virtual | ~VInternalVariable () |
VInternalVariable & | operator= (const VInternalVariable &var) |
void | Swap (VInternalVariable &var) Q_DECL_NOTHROW |
QString | GetName () const |
void | SetName (const QString &name) |
VarType | GetType () const |
void | SetType (const VarType &type) |
virtual bool | Filter (quint32 id) |
Static Public Member Functions | |
static QStringList | ListHeights (QMap< GHeights, bool > heights, Unit patternUnit) |
static QStringList | ListSizes (QMap< GSizes, bool > sizes, Unit patternUnit) |
static QStringList | WholeListHeights (Unit patternUnit) |
static QStringList | WholeListSizes (Unit patternUnit) |
static bool | IsGradationSizeValid (const QString &size) |
static bool | IsGradationHeightValid (const QString &height) |
Private Member Functions | |
qreal | CalcValue () const |
Static Private Member Functions | |
static void | ListValue (QStringList &list, qreal value, Unit patternUnit) |
Private Attributes | |
QSharedDataPointer< VMeasurementData > | d |
Additional Inherited Members | |
Protected Member Functions inherited from VInternalVariable | |
void | SetValue (const qreal &value) |
The VMeasurement class keep data row of multisize table.
Definition at line 73 of file vmeasurement.h.
VMeasurement::VMeasurement | ( | quint32 | index, |
const QString & | name, | ||
qreal | baseSize, | ||
qreal | baseHeight, | ||
const qreal & | base, | ||
const qreal & | ksize, | ||
const qreal & | kheight, | ||
const QString & | gui_text = QString() , |
||
const QString & | description = QString() , |
||
const QString & | tagName = QString() |
||
) |
VMeasurement create measurement for multisize table.
name | measurement's name |
base | value in base size and height |
ksize | increment in sizes |
kheight | increment in heights |
gui_text | shor tooltip for user |
description | measurement full description |
tagName | measurement's tag name in file |
Definition at line 81 of file vmeasurement.cpp.
References d, Measurement, VInternalVariable::SetType(), and VInternalVariable::SetValue().
VMeasurement::VMeasurement | ( | VContainer * | data, |
quint32 | index, | ||
const QString & | name, | ||
const qreal & | base, | ||
const QString & | formula, | ||
bool | ok, | ||
const QString & | gui_text = QString() , |
||
const QString & | description = QString() , |
||
const QString & | tagName = QString() |
||
) |
VMeasurement create measurement for individual table.
name | measurement's name |
base | value in base size and height |
gui_text | shor tooltip for user |
description | measurement full description |
tagName | measurement's tag name in file |
Definition at line 100 of file vmeasurement.cpp.
References Measurement, VInternalVariable::SetType(), and VInternalVariable::SetValue().
VMeasurement::VMeasurement | ( | const VMeasurement & | m | ) |
Definition at line 110 of file vmeasurement.cpp.
|
virtual |
Definition at line 127 of file vmeasurement.cpp.
|
private |
Definition at line 249 of file vmeasurement.cpp.
References Cm, d, VInternalVariable::GetValue(), Inch, and UnitConvertor().
Referenced by GetValue().
qreal VMeasurement::GetBase | ( | ) | const |
GetBase return value in base size and height.
Definition at line 373 of file vmeasurement.cpp.
References d.
VContainer * VMeasurement::GetData | ( | ) |
Definition at line 345 of file vmeasurement.cpp.
References d.
QString VMeasurement::GetFormula | ( | ) | const |
Definition at line 302 of file vmeasurement.cpp.
References d.
QString VMeasurement::getGuiText | ( | ) | const |
getGuiText measurement name for tooltip
Definition at line 284 of file vmeasurement.cpp.
References d.
qreal VMeasurement::GetKheight | ( | ) | const |
GetKheight return increment in heights.
Definition at line 406 of file vmeasurement.cpp.
References d.
qreal VMeasurement::GetKsize | ( | ) | const |
GetKsize return increment in sizes.
Definition at line 389 of file vmeasurement.cpp.
References d.
|
virtual |
Reimplemented from VInternalVariable.
Definition at line 332 of file vmeasurement.cpp.
References CalcValue().
|
virtual |
Reimplemented from VInternalVariable.
Definition at line 338 of file vmeasurement.cpp.
References CalcValue(), VInternalVariable::GetValue(), and VInternalVariable::SetValue().
int VMeasurement::Index | ( | ) | const |
Definition at line 314 of file vmeasurement.cpp.
References d.
bool VMeasurement::isCustom | ( | ) | const |
Definition at line 308 of file vmeasurement.cpp.
References CustomMSign, and VInternalVariable::GetName().
bool VMeasurement::IsFormulaOk | ( | ) | const |
Definition at line 320 of file vmeasurement.cpp.
References d.
|
static |
Definition at line 235 of file vmeasurement.cpp.
References Cm, and WholeListHeights().
Referenced by VCommandLine::OptGradationHeight(), and MApplication::ParseCommandLine().
|
static |
Definition at line 221 of file vmeasurement.cpp.
References Cm, and WholeListSizes().
Referenced by VCommandLine::OptGradationSize(), and MApplication::ParseCommandLine().
|
virtual |
Reimplemented from VInternalVariable.
Definition at line 326 of file vmeasurement.cpp.
References d.
Definition at line 131 of file vmeasurement.cpp.
References ALL, Inch, ListValue(), and WholeListHeights().
Referenced by MainWindow::initStatusBar().
Definition at line 158 of file vmeasurement.cpp.
References ALL, Inch, ListValue(), and WholeListSizes().
Referenced by MainWindow::initStatusBar().
|
staticprivate |
Definition at line 272 of file vmeasurement.cpp.
References Cm, and UnitConvertor().
Referenced by ListHeights(), ListSizes(), WholeListHeights(), and WholeListSizes().
VMeasurement & VMeasurement::operator= | ( | const VMeasurement & | m | ) |
Definition at line 115 of file vmeasurement.cpp.
References d, and VVariable::operator=().
void VMeasurement::SetBase | ( | const qreal & | value | ) |
Definition at line 379 of file vmeasurement.cpp.
References d.
void VMeasurement::SetHeight | ( | qreal * | height | ) |
Definition at line 357 of file vmeasurement.cpp.
References d.
void VMeasurement::SetKheight | ( | const qreal & | value | ) |
Definition at line 413 of file vmeasurement.cpp.
References d.
void VMeasurement::SetKsize | ( | const qreal & | value | ) |
Definition at line 396 of file vmeasurement.cpp.
References d.
void VMeasurement::SetSize | ( | qreal * | size | ) |
Definition at line 351 of file vmeasurement.cpp.
References d.
void VMeasurement::setTagName | ( | const QString & | tagName | ) |
Definition at line 296 of file vmeasurement.cpp.
References d.
void VMeasurement::SetUnit | ( | const Unit * | unit | ) |
Definition at line 363 of file vmeasurement.cpp.
References d.
void VMeasurement::Swap | ( | VMeasurement & | m | ) |
Definition at line 67 of file vmeasurement.cpp.
References VVariable::Swap().
QString VMeasurement::TagName | ( | ) | const |
Definition at line 290 of file vmeasurement.cpp.
References d.
|
static |
Definition at line 185 of file vmeasurement.cpp.
References H200, H50, heightStep, Inch, and ListValue().
Referenced by DialogNewMeasurements::InitHeightsList(), VCommandLine::InitOptions(), TMainWindow::InitWindow(), IsGradationHeightValid(), ListHeights(), MApplication::ParseCommandLine(), and SeamlyMePreferencesConfigurationPage::SeamlyMePreferencesConfigurationPage().
|
static |
Definition at line 203 of file vmeasurement.cpp.
References Inch, ListValue(), S22, S72, and sizeStep.
Referenced by VCommandLine::InitOptions(), DialogNewMeasurements::InitSizesList(), TMainWindow::InitWindow(), IsGradationSizeValid(), ListSizes(), MApplication::ParseCommandLine(), and SeamlyMePreferencesConfigurationPage::SeamlyMePreferencesConfigurationPage().
|
private |
Definition at line 132 of file vmeasurement.h.
Referenced by CalcValue(), GetBase(), GetData(), GetFormula(), getGuiText(), GetKheight(), GetKsize(), Index(), IsFormulaOk(), isNotUsed(), operator=(), SetBase(), SetHeight(), SetKheight(), SetKsize(), SetSize(), setTagName(), SetUnit(), TagName(), and VMeasurement().