A set of usefull static functions.
|
static bool | load (const QString &) |
| Load datum definitions from XML file dictPath to the dictionary. More...
|
|
static QString | unitSystemLabel (const QString &, const QString &=QString()) |
| Get the label of unit system sys. More...
|
|
static QString | activeUnitSystem (const QString &=QString()) |
| Get the name of active unit system from the specified component comp. More...
|
|
static void | setActiveUnitSystem (const QString &, const QString &=QString()) |
| Set the active unit system. More...
|
|
static QString | toQString (const TCollection_AsciiString &) |
| Convert the OpenCascade ASCII string to Qt string. More...
|
|
static QString | toQString (const TCollection_ExtendedString &) |
| Convert the OpenCascade Unicode string to Qt string. More...
|
|
static QString | toQString (const Handle(TCollection_HAsciiString)&) |
| Convert the OpenCascade ASCII string to Qt string. More...
|
|
static QString | toQString (const Handle(TCollection_HExtendedString)&) |
| Convert the OpenCascade Unicode string to Qt string. More...
|
|
static TCollection_AsciiString | toAsciiString (const QString &) |
| Convert the Qt string to OpenCascade ASCII string. More...
|
|
static TCollection_AsciiString | toAsciiString (const TCollection_ExtendedString &) |
| Convert the OpenCascade Unicode string to OpenCascade ASCII string. More...
|
|
static TCollection_AsciiString | toAsciiString (const Handle(TCollection_HExtendedString)&) |
| Convert the OpenCascade Unicode string to OpenCascade ASCII string. More...
|
|
static TCollection_ExtendedString | toExtString (const QString &) |
| Convert the Qt string to OpenCascade Unicode string. More...
|
|
static TCollection_ExtendedString | toExtString (const TCollection_AsciiString &) |
| Convert the OpenCascade ASCII string to OpenCascade Unicode string. More...
|
|
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 |