VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtGuiConfiguration.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtGuiConfiguration.h,v $ $Revision: 1.9 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtGuiConfiguration_H_
14 #define DtGuiConfiguration_H_
15 
16 #include <vrvUtil/vrvUtil.h>
18 
19 namespace makVrv
20 {
26  {
27  public:
28 
29  typedef std::pair<std::string, bool> DtGuiConfigurationCreationOrder;
30  typedef std::map<std::string, DtGuiConfigurationCreationOrder> DtCreationOrderMap;
31 
32  public:
33 
36 
39 
40  virtual ~DtGuiConfiguration();
41 
44  void setLanguage(const std::string& language);
45 
47  const std::string& language() const;
48 
49  enum Location
50  {
51  Left,//Default
53  Top,
55  DockWidgetLeft = Left,
56  DockWidgetRight = Right,
57  DockWidgetTop = Top,
58  DockWidgetBottom = Bottom,
59  ToolBarLeft = 4,
62  ToolBarBottom
63  };
64 
65 
67 
68  void setControlLocation(const std::string& controlName, Location location);
69  Location controlLocation(const std::string& controlName) const;
71 
73  void setControlVisible(const std::string& controlName, bool visible);
74 
77  bool controlVisible(const std::string& controlName) const;
78 
81  virtual void createControlBefore(const std::string& control, const std::string& before);
82 
85  virtual void createControlAfter(const std::string& control, const std::string& after);
86 
88  virtual void removeControlCreationOrder(const std::string& control);
89 
92  const DtCreationOrderMap& creationOrder() const
93  {
94  return myCreationOrder;
95  }
96 
98  void setAllowTabbedDockWidgets( bool b );
99 
101  bool allowTabbedDockWidgets() const;
102 
103  protected:
104 
105  std::string myLanguage;
106 
107  typedef std::map<std::string,bool> ControlVisibilityMap;
109 
110  typedef std::map<std::string,Location> ControlLocationMap;
112 
114 
116  };
117 }
118 
119 #endif
120 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)