![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtDisplayNameProvider.h,v $ $Revision: 1.16 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvCore/vrvCore.h> 00016 00017 #include <map> 00018 #include <string> 00019 00020 namespace makVrv 00021 { 00029 class DT_DLL_VRVCORE DtDisplayNameProvider 00030 { 00031 00032 public: 00033 00034 typedef std::map<int, std::string> IntKeyToDisplayNameMap; 00035 00037 DtDisplayNameProvider(); 00038 00040 virtual ~DtDisplayNameProvider(); 00041 00043 virtual const std::string* findDisplayName( int intKey ) const; 00044 00047 virtual void setDisplayName( int intKey, const std::string& displayName ); 00048 00050 virtual const IntKeyToDisplayNameMap& displayNames() const; 00051 00054 virtual const std::string* findToolTip( int intKey ) const; 00055 00058 virtual void setToolTip( int intKey, const std::string& displayName ); 00059 00061 virtual const IntKeyToDisplayNameMap& toolTips() const; 00062 00063 protected: 00064 IntKeyToDisplayNameMap myIntKeyToDisplayNameMap; 00065 IntKeyToDisplayNameMap myIntKeyToToolTipMap; 00066 }; 00067 } 00068 00069 00070