VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Types | Protected Attributes
makVrv::DtGuiConfiguration Class Reference

A generic configuration for configuring the GUI. More...

Inheritance diagram for makVrv::DtGuiConfiguration:
Inheritance graph
[legend]

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 ()
 CTOR.
 DtGuiConfiguration (const DtGuiConfiguration &copy)
 CopyCTOR.
virtual ~DtGuiConfiguration ()
void setLanguage (const std::string &language)
 Set the language used for translation.
const std::string & language () const
 Get the set language.
void setControlVisible (const std::string &controlName, bool visible)
 Set if a control is visible or not.
bool controlVisible (const std::string &controlName) const
 Check to see if a control is visible.
virtual void createControlBefore (const std::string &control, const std::string &before)
 Creates this control before the specified control.
virtual void createControlAfter (const std::string &control, const std::string &after)
 Creates this control after the specified control.
virtual void removeControlCreationOrder (const std::string &control)
 Removes any creation order for the specified control.
const DtCreationOrderMapcreationOrder () const
 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 setAllowTabbedDockWidgets (bool b)
 Set whether tabbed dock widgets are allowed on the main window.
bool allowTabbedDockWidgets () const
 Get whether tabbed dock widgets are allowed on the main window.
void setControlLocation (const std::string &controlName, Location location)
 Set/Get the location for a control.
Location controlLocation (const std::string &controlName) const
- Public Member Functions inherited from makVrv::DtConfiguration
 DtConfiguration (const std::string &name="")
 CTOR.
 DtConfiguration (const DtConfiguration &)
 Copy CTOR.
DtConfigurationoperator= (const DtConfiguration &)
 Assignment OP.
virtual ~DtConfiguration ()
 DTOR.
virtual const std::string & name () const
 Get the configuration name.
virtual void setName (const std::string &name)
 Set the configuration name.
virtual const std::string * findOptionalParameter (const std::string &name) const
 Find an optional parameters.
virtual void setOptionalParameter (const std::string &name, const std::string &value)
 Set an optional parameter.
virtual void setOptionalParameters (const ParameterMap &)
 Set an optional parameters.
virtual void removeOptionalParameter (const std::string &name)
 Remove an optional parameter.
const ParameterMapoptionalParameters () const
 Get the optional parameters.

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)
 Declare serialize functions Call via serialize(Archive ar, unsigned int version); Where Archive can be any of : xml_oarchive,xml_iarchive,binary_oarchive binary_iarchive,text_oarchive, or text_iarchive example: fstream fo("test.xml",std;:ios_base::out); xml_oarchive os(fo); DtConfiguration aConfig; aConfig.serialize(os,0);.

Detailed Description

A generic configuration for configuring the GUI.

Each GUI element is responsible for checking this configuration to determine if it should be shown.

Member Typedef Documentation

typedef std::map<std::string,bool> makVrv::DtGuiConfiguration::ControlVisibilityMap
protected
typedef std::map<std::string,Location> makVrv::DtGuiConfiguration::ControlLocationMap
protected

Member Enumeration Documentation

Enumerator:
Left 
Right 
Top 
Bottom 
DockWidgetLeft 
DockWidgetRight 
DockWidgetTop 
DockWidgetBottom 
ToolBarLeft 
ToolBarRight 
ToolBarTop 
ToolBarBottom 

Constructor & Destructor Documentation

makVrv::DtGuiConfiguration::DtGuiConfiguration ( )

CTOR.

makVrv::DtGuiConfiguration::DtGuiConfiguration ( const DtGuiConfiguration copy)

CopyCTOR.

virtual makVrv::DtGuiConfiguration::~DtGuiConfiguration ( )
virtual

Member Function Documentation

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
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 void makVrv::DtGuiConfiguration::createControlBefore ( const std::string &  control,
const std::string &  before 
)
virtual

Creates this control before the specified control.

If a control order currently exists, replaces with this one

virtual void makVrv::DtGuiConfiguration::createControlAfter ( const std::string &  control,
const std::string &  after 
)
virtual

Creates this control after the specified control.

If a control order currently exists, replaces with this one

virtual void makVrv::DtGuiConfiguration::removeControlCreationOrder ( const std::string &  control)
virtual

Removes any creation order for the specified control.

const DtCreationOrderMap& makVrv::DtGuiConfiguration::creationOrder ( ) const
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.

Member Data Documentation

std::string makVrv::DtGuiConfiguration::myLanguage
protected
ControlVisibilityMap makVrv::DtGuiConfiguration::myControlVisibilityMap
protected
ControlLocationMap makVrv::DtGuiConfiguration::myControlLocationMap
protected
DtCreationOrderMap makVrv::DtGuiConfiguration::myCreationOrder
protected
bool makVrv::DtGuiConfiguration::myAllowTabbedDockWidgets
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)