52 #ifndef VMEASUREMENTS_H
53 #define VMEASUREMENTS_H
55 #include <qcompilerdetection.h>
56 #include <QCoreApplication>
57 #include <QDomElement>
59 #include <QStringList>
62 #include "../ifc/xml/vdomdocument.h"
63 #include "../vmisc/def.h"
64 #include "../vpatterndb/vcontainer.h"
77 virtual
void setXMLContent(const QString &fileName) Q_DECL_OVERRIDE;
78 virtual
bool SaveDocument(const QString &fileName, QString &error) Q_DECL_OVERRIDE;
80 void addEmpty(const QString &name, const QString &formula = QString());
81 void AddEmptyAfter(const QString &after, const QString &name, const QString &formula = QString());
82 void Remove(const QString &name);
83 void MoveTop(const QString &name);
84 void MoveUp(const QString &name);
95 QString
Notes() const;
113 QString
Email() const;
122 void SetMName(const QString &name, const QString &text);
123 void SetMValue(const QString &name, const QString &text);
128 void SetMFullName(const QString &name, const QString &text);
181 qreal
UniqueTagAttr(const QString &tag, const QString &attr, qreal defValue) const;
183 QDomElement
MakeEmpty(const QString &name, const QString &formula);
184 QDomElement
FindM(const QString &name) const;
The VContainer class container of all variables.
The VDomDocument class represents a Seamly2D document (.val file).
void MoveUp(const QString &name)
MeasurementsType ReadType() const
void MoveTop(const QString &name)
static const QString TagSize
void SetMDescription(const QString &name, const QString &text)
void MoveDown(const QString &name)
static const QString AttrValue
static const QString TagNotes
qreal EvalFormula(VContainer *data, const QString &formula, bool *ok) const
static const QString AttrSizeIncrease
static const QString TagPMSystem
void addEmpty(const QString &name, const QString &formula=QString())
static GenderType StrToGender(const QString &sex)
virtual ~VMeasurements() Q_DECL_EQ_DEFAULT
static const QString TagGender
VMeasurements(VContainer *data)
void SetGender(const GenderType &gender)
void SetNotes(const QString &text)
static const QString AttrFullName
void SetMBaseValue(const QString &name, double value)
static const QString GenderFemale
void SetEmail(const QString &text)
QStringList ListAll() const
QStringList listKnown() const
static const QString TagBirthDate
static QString GenderToStr(const GenderType &sex)
static const QString AttrBase
static const QString AttrName
QString ClearPMCode(const QString &code) const
void CreateEmptyMultisizeFile(Unit unit, int baseSize, int baseHeight)
void SetFamilyName(const QString &text)
static const QString TagHeight
void ReadMeasurements() const
static const QString TagReadOnly
static const QString TagFamilyName
qreal UniqueTagAttr(const QString &tag, const QString &attr, qreal defValue) const
static const QString TagPersonal
void SetSize(qreal *size)
void SetPMSystem(const QString &system)
QDomElement MakeEmpty(const QString &name, const QString &formula)
void Remove(const QString &name)
VContainer * GetData() const
static const QString AttrDescription
void SetReadOnly(bool ro)
void SetMFullName(const QString &name, const QString &text)
QDomElement FindM(const QString &name) const
static const QString TagBodyMeasurements
void SetHeight(qreal *height)
void SetMValue(const QString &name, const QString &text)
MeasurementsType Type() const
void SetMSizeIncrease(const QString &name, double value)
void MoveBottom(const QString &name)
static const QString TagVIT
static const QString TagMeasurement
void CreateEmptyIndividualFile(Unit unit)
static const QString TagGivenName
VContainer * data
data container with data.
void AddEmptyAfter(const QString &after, const QString &name, const QString &formula=QString())
static const QString GenderMale
static const QString TagVST
void SetGivenName(const QString &text)
void SetMHeightIncrease(const QString &name, double value)
QString FamilyName() const
virtual void setXMLContent(const QString &fileName) Q_DECL_OVERRIDE
static const QString GenderUnknown
GenderType Gender() const
static const QString TagEmail
virtual bool SaveDocument(const QString &fileName, QString &error) Q_DECL_OVERRIDE
static const QString AttrHeightIncrease
QString GivenName() const
bool IsDefinedKnownNamesValid() const
void SetMName(const QString &name, const QString &text)
void SetBirthDate(const QDate &date)