![]() |
VR-Forces 4.0.4 Class Documentation
|
DtDisplayNameProvider is an interface for a class to provide display names for integer keyed items such as model sets and observer settings. More...

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