![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtGuiConfiguration.h,v $ $Revision: 1.9 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtGuiConfiguration_H_ 00014 #define DtGuiConfiguration_H_ 00015 00016 #include <vrvUtil/vrvUtil.h> 00017 #include <vrvUtil/DtConfiguration.h> 00018 00019 namespace makVrv 00020 { 00025 class DT_DLL_VRVUTIL DtGuiConfiguration : public DtConfiguration 00026 { 00027 public: 00028 00029 typedef std::pair<std::string, bool> DtGuiConfigurationCreationOrder; 00030 typedef std::map<std::string, DtGuiConfigurationCreationOrder> DtCreationOrderMap; 00031 00032 public: 00033 00035 DtGuiConfiguration(); 00036 00038 DtGuiConfiguration(const DtGuiConfiguration& copy); 00039 00040 virtual ~DtGuiConfiguration(); 00041 00044 void setLanguage(const std::string& language); 00045 00047 const std::string& language() const; 00048 00049 enum Location 00050 { 00051 Left,//Default 00052 Right, 00053 Top, 00054 Bottom, 00055 DockWidgetLeft = Left, 00056 DockWidgetRight = Right, 00057 DockWidgetTop = Top, 00058 DockWidgetBottom = Bottom, 00059 ToolBarLeft = 4, 00060 ToolBarRight, 00061 ToolBarTop, 00062 ToolBarBottom 00063 }; 00064 00065 00067 00068 void setControlLocation(const std::string& controlName, Location location); 00069 Location controlLocation(const std::string& controlName) const; 00071 00073 void setControlVisible(const std::string& controlName, bool visible); 00074 00077 bool controlVisible(const std::string& controlName) const; 00078 00081 virtual void createControlBefore(const std::string& control, const std::string& before); 00082 00085 virtual void createControlAfter(const std::string& control, const std::string& after); 00086 00088 virtual void removeControlCreationOrder(const std::string& control); 00089 00092 const DtCreationOrderMap& creationOrder() const 00093 { 00094 return myCreationOrder; 00095 } 00096 00098 void setAllowTabbedDockWidgets( bool b ); 00099 00101 bool allowTabbedDockWidgets() const; 00102 00103 protected: 00104 00105 std::string myLanguage; 00106 00107 typedef std::map<std::string,bool> ControlVisibilityMap; 00108 ControlVisibilityMap myControlVisibilityMap; 00109 00110 typedef std::map<std::string,Location> ControlLocationMap; 00111 ControlLocationMap myControlLocationMap; 00112 00113 DtCreationOrderMap myCreationOrder; 00114 00115 bool myAllowTabbedDockWidgets; 00116 }; 00117 } 00118 00119 #endif 00120