![]() |
VR-Forces 5.0.1 Developer's Guide
|
DtDisplayNameProvider is an interface for a class to provide display names for integer keyed items such as model sets and observer settings. Providers for each type can use the creator pattern to allow Qt-specific versions to be instantiated, initializing the providers with Qt-translatable string. Plugins can add new strings (translation is their responsibility).

Public Types | |
| typedef std::map< int, DtUnicode > | IntKeyToDisplayNameMap |
Public Member Functions | |
| DtDisplayNameProvider () | |
| virtual | ~DtDisplayNameProvider () |
| virtual const DtUnicode * | findDisplayName (int intKey) const |
| virtual void | setDisplayName (int intKey, const DtUnicode &displayName) |
| virtual const IntKeyToDisplayNameMap & | displayNames () const |
| virtual const DtUnicode * | findToolTip (int intKey) const |
| virtual void | setToolTip (int intKey, const DtUnicode &displayName) |
| virtual const IntKeyToDisplayNameMap & | toolTips () const |
Protected Attributes | |
| IntKeyToDisplayNameMap | myIntKeyToDisplayNameMap |
| IntKeyToDisplayNameMap | myIntKeyToToolTipMap |
| typedef std::map<int, DtUnicode> makVrv::DtDisplayNameProvider::IntKeyToDisplayNameMap |
| makVrv::DtDisplayNameProvider::DtDisplayNameProvider | ( | ) |
CTOR.
|
virtual |
Virtual DTOR.
Get the display name that's mapped to the specified int key.
|
virtual |
Change the dislay name associated with a key (if it exists) or add a new display name to key mapping.
|
virtual |
Get the list of display names.
Get the tool tip that's mapped to the specified int key. If tool tip does not exist, returns display name.
|
virtual |
Change the tool tip associated with a key (if it exists) or add a new tool tip to key mapping.
|
virtual |
Get the list of tool tips.
|
protected |
|
protected |