52 #ifndef VMULTISIZETABLEROW_H
53 #define VMULTISIZETABLEROW_H
55 #include <qcompilerdetection.h>
57 #include <QSharedDataPointer>
59 #include <QStringList>
63 #include "../vmisc/def.h"
64 #include "../ifc/ifcdef.h"
76 VMeasurement(quint32 index,
const QString &name, qreal baseSize, qreal baseHeight,
const qreal &base,
77 const qreal &ksize,
const qreal &kheight,
const QString &gui_text = QString(),
78 const QString &description = QString(),
const QString &tagName = QString());
79 VMeasurement(
VContainer *data, quint32 index,
const QString &name,
const qreal &base,
const QString &formula,
80 bool ok,
const QString &gui_text = QString(),
const QString &description = QString(),
81 const QString &tagName = QString());
87 #ifdef Q_COMPILER_RVALUE_REFS
105 virtual bool isNotUsed()
const Q_DECL_OVERRIDE;
107 virtual qreal
GetValue()
const Q_DECL_OVERRIDE;
108 virtual qreal*
GetValue() Q_DECL_OVERRIDE;
117 void SetBase(
const qreal &value);
132 QSharedDataPointer<VMeasurementData>
d;
136 static void ListValue(QStringList &list, qreal value,
Unit patternUnit);
The VContainer class container of all variables.
The VMeasurement class keep data row of multisize table.
QString GetFormula() const
qreal GetKheight() const
GetKheight return increment in heights.
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.
QSharedDataPointer< VMeasurementData > d
void SetSize(qreal *size)
void SetHeight(qreal *height)
virtual qreal GetValue() const Q_DECL_OVERRIDE
void SetKsize(const qreal &value)
void SetUnit(const Unit *unit)
void SetBase(const qreal &value)
static QStringList WholeListSizes(Unit patternUnit)
void setTagName(const QString &tagName)
void Swap(VMeasurement &m) Q_DECL_NOTHROW
static QStringList WholeListHeights(Unit patternUnit)
static void ListValue(QStringList &list, qreal value, Unit patternUnit)
static QStringList ListSizes(QMap< GSizes, bool > sizes, Unit patternUnit)
virtual ~VMeasurement() Q_DECL_OVERRIDE
void SetKheight(const qreal &value)
static bool IsGradationSizeValid(const QString &size)
qreal GetKsize() const
GetKsize return increment in sizes.
static QStringList ListHeights(QMap< GHeights, bool > heights, Unit patternUnit)
VMeasurement & operator=(const VMeasurement &m)
virtual bool isNotUsed() const Q_DECL_OVERRIDE
static bool IsGradationHeightValid(const QString &height)
QString getGuiText() const
getGuiText measurement name for tooltip
qreal GetBase() const
GetBase return value in base size and height.
Q_DECLARE_TYPEINFO(VMeasurement, Q_MOVABLE_TYPE)