![]() |
VR-Forces 5.0.2 Developer's Guide
|
A generic configuration for configuring the GUI. Each GUI element is responsible for checking this configuration to determine if it should be shown.

Public Types | |
| enum | Location { Left, Right, Top, Bottom, DockWidgetLeft = Left, DockWidgetRight = Right, DockWidgetTop = Top, DockWidgetBottom = Bottom, ToolBarLeft = 4, ToolBarRight, ToolBarTop, ToolBarBottom } |
| typedef std::pair< std::string, bool > | DtGuiConfigurationCreationOrder |
| typedef std::map< std::string, DtGuiConfigurationCreationOrder > | DtCreationOrderMap |
Public Types inherited from makVrv::DtConfiguration | |
| typedef std::map< std::string, std::string > | ParameterMap |
Public Member Functions | |
| DtGuiConfiguration () | |
| DtGuiConfiguration (const DtGuiConfiguration ©) | |
| virtual | ~DtGuiConfiguration () |
| void | setLanguage (const std::string &language) |
| const std::string & | language () const |
| void | setControlVisible (const std::string &controlName, bool visible) |
| bool | controlVisible (const std::string &controlName) const |
| virtual void | createControlBefore (const std::string &control, const std::string &before) |
| virtual void | createControlAfter (const std::string &control, const std::string &after) |
| virtual void | removeControlCreationOrder (const std::string &control) |
| const DtCreationOrderMap & | creationOrder () const |
| void | setAllowTabbedDockWidgets (bool b) |
| bool | allowTabbedDockWidgets () const |
| void | setControlLocation (const std::string &controlName, Location location) |
| Location | controlLocation (const std::string &controlName) const |
Public Member Functions inherited from makVrv::DtConfiguration | |
| DtConfiguration (const std::string &name="") | |
| DtConfiguration (const DtConfiguration &) | |
| DtConfiguration & | operator= (const DtConfiguration &) |
| virtual | ~DtConfiguration () |
| virtual const std::string & | name () const |
| virtual void | setName (const std::string &name) |
| virtual const std::string * | findOptionalParameter (const std::string &name) const |
| virtual void | setOptionalParameter (const std::string &name, const std::string &value) |
| virtual void | setOptionalParameters (const ParameterMap &) |
| virtual void | removeOptionalParameter (const std::string &name) |
| const ParameterMap & | optionalParameters () const |
Protected Types | |
| typedef std::map< std::string, bool > | ControlVisibilityMap |
| typedef std::map< std::string, Location > | ControlLocationMap |
Protected Attributes | |
| std::string | myLanguage |
| ControlVisibilityMap | myControlVisibilityMap |
| ControlLocationMap | myControlLocationMap |
| DtCreationOrderMap | myCreationOrder |
| bool | myAllowTabbedDockWidgets |
Protected Attributes inherited from makVrv::DtConfiguration | |
| std::string | myName |
| ParameterMap | myOptionalParameters |
| DtProxyWP | myAttachedInterface |
Additional Inherited Members | |
Protected Member Functions inherited from makVrv::DtConfiguration | |
| template<class Archive > | |
| void | _serialize (Archive &ar, const unsigned int version) |
| typedef std::pair<std::string, bool> makVrv::DtGuiConfiguration::DtGuiConfigurationCreationOrder |
| typedef std::map<std::string, DtGuiConfigurationCreationOrder> makVrv::DtGuiConfiguration::DtCreationOrderMap |
|
protected |
|
protected |
| makVrv::DtGuiConfiguration::DtGuiConfiguration | ( | ) |
CTOR.
| makVrv::DtGuiConfiguration::DtGuiConfiguration | ( | const DtGuiConfiguration & | copy | ) |
CopyCTOR.
|
virtual |
| void makVrv::DtGuiConfiguration::setLanguage | ( | const std::string & | language | ) |
Set the language used for translation. Default is '' which means use hard coded English.
| const std::string& makVrv::DtGuiConfiguration::language | ( | ) | const |
Get the set language.
| void makVrv::DtGuiConfiguration::setControlLocation | ( | const std::string & | controlName, |
| Location | location | ||
| ) |
Set/Get the location for a control.
| Location makVrv::DtGuiConfiguration::controlLocation | ( | const std::string & | controlName | ) | const |
Set/Get the location for a control.
| void makVrv::DtGuiConfiguration::setControlVisible | ( | const std::string & | controlName, |
| bool | visible | ||
| ) |
Set if a control is visible or not.
| bool makVrv::DtGuiConfiguration::controlVisible | ( | const std::string & | controlName | ) | const |
Check to see if a control is visible. By default all controls are visible.
|
virtual |
Creates this control before the specified control. If a control order currently exists, replaces with this one.
|
virtual |
Creates this control after the specified control. If a control order currently exists, replaces with this one.
|
virtual |
Removes any creation order for the specified control.
|
inline |
Returns creation order map which is a map of widgets and whether or not they are created before (true) or after (false) the specified widget.
| void makVrv::DtGuiConfiguration::setAllowTabbedDockWidgets | ( | bool | b | ) |
Set whether tabbed dock widgets are allowed on the main window.
| bool makVrv::DtGuiConfiguration::allowTabbedDockWidgets | ( | ) | const |
Get whether tabbed dock widgets are allowed on the main window.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |