A set of usefull static functions.
Public Types |
| enum | DatumFlags {
None = 0x00,
Label = 0x01,
Control = 0x02,
Units = 0x04,
NotFormat = 0x08,
NotAccel = 0x10,
UnitsWithLabel = 0x20,
All = Label | Control | Units
} |
| | Enum describes bit flags of the Qt datum view and behaviour.
More...
|
Static Public Member Functions |
| static bool | load (const QString &) |
| | Load datum definitions from XML file dictPath to the dictionary.
|
| static QString | unitSystemLabel (const QString &, const QString &=QString()) |
| | Get the label of unit system sys.
|
| static QString | activeUnitSystem (const QString &=QString()) |
| | Get the name of active unit system from the specified component comp.
|
| static void | setActiveUnitSystem (const QString &, const QString &=QString()) |
| | Set the active unit system.
|
| static QString | toQString (const TCollection_AsciiString &) |
| | Convert the OpenCascade ASCII string to Qt string.
|
| static QString | toQString (const TCollection_ExtendedString &) |
| | Convert the OpenCascade Unicode string to Qt string.
|
| static QString | toQString (const Handle(TCollection_HAsciiString)&) |
| | Convert the OpenCascade ASCII string to Qt string.
|
| static QString | toQString (const Handle(TCollection_HExtendedString)&) |
| | Convert the OpenCascade Unicode string to Qt string.
|
| static TCollection_AsciiString | toAsciiString (const QString &) |
| | Convert the Qt string to OpenCascade ASCII string.
|
| static TCollection_AsciiString | toAsciiString (const TCollection_ExtendedString &) |
| | Convert the OpenCascade Unicode string to OpenCascade ASCII string.
|
| static TCollection_AsciiString | toAsciiString (const Handle(TCollection_HExtendedString)&) |
| | Convert the OpenCascade Unicode string to OpenCascade ASCII string.
|
| static TCollection_ExtendedString | toExtString (const QString &) |
| | Convert the Qt string to OpenCascade Unicode string.
|
| static TCollection_ExtendedString | toExtString (const TCollection_AsciiString &) |
| | Convert the OpenCascade ASCII string to OpenCascade Unicode string.
|
Static Protected Member Functions |
| static void | insertDatum (QDS_Datum *) |
| | Register given datum datum in the global list.
|
| static void | removeDatum (QDS_Datum *) |
| | Remove given datum datum from the global list.
|
Static Private Attributes |
| static QList< QDS_Datum * > | _datumList |
| QString QDS::activeUnitSystem |
( |
const QString & |
comp = QString() | ) |
[static] |
If component is not specified or empty string, then the first found component will be used.
If component exists, then active unit system name is returned. Otherwise, empty string is returned.
- Parameters:
-
- Returns:
- name of the active unit system
References Handle(), toAsciiString(), and toQString().
| void QDS::setActiveUnitSystem |
( |
const QString & |
sys, |
|
|
const QString & |
comp = QString() |
|
) |
| [static] |