![]() |
VR-Forces 4.0.4 Class Documentation
|
Defined in tdbUtil to share with back-end. More...

Public Member Functions | |
| DtUnitDisplay () | |
| DtUnitDisplay (const QString &displayName, const QStringList &units, const QVector< int > &precision, int displayIndex) | |
| DtUnitDisplay (const DtUnitDisplay &) | |
| DtUnitDisplay & | operator= (const DtUnitDisplay &) |
| virtual | ~DtUnitDisplay () |
| void | setDisplayName (const QString &) |
| This is the broad group name (Distance, Altitude, etc) | |
| const QString & | displayName () const |
| const QString & | internalName () const |
| void | setUnits (const QStringList &) |
| void | addUnit (const QString &unit, int precision=3) |
| const QStringList & | units () const |
| QString | displayTitle (int) const |
| void | setDisplayIndex (int) |
| int | displayIndex () const |
| void | setPrecision (const QVector< int > &precision) |
| void | setPrecisionFor (const QString &unit, int) |
| int | precisionFor (const QString &unit) const |
| const QVector< int > & | precision () const |
| void | setDisplayUnit (const QString &) |
| This is the item that is currently being used for unit translations. | |
| const QString & | displayUnit () const |
| QString | displayUnitTitle () const |
| virtual DtUnitDisplay * | clone () |
| Allows for cloning of this object. | |
| void | setPrecisionFor (int, int) |
| int | precisionFor (int) const |
| virtual bool | operator== (const DtUnitDisplay &) const |
| bool | operator!= (const DtUnitDisplay &) const |
Static Public Member Functions | |
| static DtArchivableObject * | create () |
Protected Member Functions | |
| virtual void | read (QTextStream &ts) |
| Reads/writes archiver. | |
Protected Attributes | |
| QString | myDisplayUnit |
| QString | myDisplayName |
| QStringList | myUnits |
| QVector< int > | myPrecision |
| int | myDisplayIndex |
Defined in tdbUtil to share with back-end.
| DtUnitDisplay::DtUnitDisplay | ( | const QString & | displayName, |
| const QStringList & | units, | ||
| const QVector< int > & | precision, | ||
| int | displayIndex | ||
| ) |
| DtUnitDisplay::DtUnitDisplay | ( | const DtUnitDisplay & | ) |
| virtual DtUnitDisplay::~DtUnitDisplay | ( | ) | [virtual] |
| DtUnitDisplay& DtUnitDisplay::operator= | ( | const DtUnitDisplay & | ) |
| void DtUnitDisplay::setDisplayName | ( | const QString & | ) |
This is the broad group name (Distance, Altitude, etc)
| const QString& DtUnitDisplay::displayName | ( | ) | const |
| const QString& DtUnitDisplay::internalName | ( | ) | const |
| void DtUnitDisplay::setUnits | ( | const QStringList & | ) |
| void DtUnitDisplay::addUnit | ( | const QString & | unit, |
| int | precision = 3 |
||
| ) |
| const QStringList& DtUnitDisplay::units | ( | ) | const |
| QString DtUnitDisplay::displayTitle | ( | int | ) | const |
| void DtUnitDisplay::setDisplayIndex | ( | int | ) |
| int DtUnitDisplay::displayIndex | ( | ) | const |
| void DtUnitDisplay::setPrecision | ( | const QVector< int > & | precision | ) |
| void DtUnitDisplay::setPrecisionFor | ( | const QString & | unit, |
| int | |||
| ) |
| int DtUnitDisplay::precisionFor | ( | const QString & | unit | ) | const |
| const QVector<int>& DtUnitDisplay::precision | ( | ) | const |
| void DtUnitDisplay::setDisplayUnit | ( | const QString & | ) |
This is the item that is currently being used for unit translations.
This is the internal name To get the display name, call displayUnitTitle()
| const QString& DtUnitDisplay::displayUnit | ( | ) | const |
| QString DtUnitDisplay::displayUnitTitle | ( | ) | const |
| virtual DtUnitDisplay* DtUnitDisplay::clone | ( | ) | [virtual] |
Allows for cloning of this object.
Reimplemented from DtArchivableObject.
| void DtUnitDisplay::setPrecisionFor | ( | int | , |
| int | |||
| ) |
| int DtUnitDisplay::precisionFor | ( | int | ) | const |
| static DtArchivableObject* DtUnitDisplay::create | ( | ) | [static] |
| virtual bool DtUnitDisplay::operator== | ( | const DtUnitDisplay & | ) | const [virtual] |
| bool DtUnitDisplay::operator!= | ( | const DtUnitDisplay & | rhs | ) | const [inline] |
| virtual void DtUnitDisplay::read | ( | QTextStream & | s | ) | [protected, virtual] |
Reads/writes archiver.
Reimplemented from DtArchivableObject.
QString DtUnitDisplay::myDisplayUnit [protected] |
QString DtUnitDisplay::myDisplayName [protected] |
QStringList DtUnitDisplay::myUnits [protected] |
QVector<int> DtUnitDisplay::myPrecision [protected] |
int DtUnitDisplay::myDisplayIndex [protected] |