VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtToolbarConfiguration Class Reference

A configuration of the toolbar layout.

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

Classes

struct  OrderParameters
 
struct  ToolbarGeometry
 
struct  ToolbarState
 

Public Types

enum  ToolbarLocation {
  DockLeft = 0, DockRight = 1, DockTop = 2, DockBottom = 3,
  DockNone = 4
}
 
typedef std::list< DtToolbarPathToolbarPathList
 
typedef std::set< DtToolbarPathToolbarPathSet
 
typedef std::map
< DtToolbarPath, ToolbarState
ToolbarStateMap
 
- Public Types inherited from makVrv::DtConfiguration
typedef std::map< std::string,
std::string > 
ParameterMap
 

Public Member Functions

 DtToolbarConfiguration ()
 
virtual ~DtToolbarConfiguration ()
 
void addToolbarPath (const DtToolbarPath &)
 
void addToolbarPathAfter (const DtToolbarPath &newPath, const DtToolbarPath &relativeTo)
 
void addToolbarPathBefore (const DtToolbarPath &newPath, const DtToolbarPath &relativeTo)
 
void addMenuPath (const DtMenuPath &path)
 
void addMenuPathAfter (const DtMenuPath &newPath, const DtMenuPath &relativeTo)
 
void addMenuPathBefore (const DtMenuPath &newPath, const DtMenuPath &relativeTo)
 
void removeMenuPath (const DtMenuPath &newPath)
 
void addConfiguration (const DtToolbarConfiguration &subConfiguration)
 
void removeToolbarPath (const DtToolbarPath &)
 
void getRootPaths (ToolbarPathList &children) const
 
void getChildren (const DtToolbarPath &path, ToolbarPathList &children) const
 
void sortChildren (ToolbarPathList &children) const
 
int getNewWeight ()
 
DtToolbarConfigurationoperator= (const DtToolbarConfiguration &rhs)
 
const DtMenuConfigurationmenuConfiguration () const
 
void merge (const DtToolbarConfiguration &rhs)
 
void copyValuesFrom (const DtToolbarConfiguration &source)
 
void updateState (const DtToolbarPath &tb, ToolbarState &state)
 
const ToolbarStatestate (const DtToolbarPath &tb) const
 
const ToolbarStateMapstates () const
 
void setVisible (const DtToolbarPath &tb, bool isVisible)
 
- Public Member Functions inherited from makVrv::DtConfiguration
 DtConfiguration (const std::string &name="")
 
 DtConfiguration (const DtConfiguration &)
 
DtConfigurationoperator= (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 ParameterMapoptionalParameters () const
 

Protected Types

typedef std::map
< DtToolbarPath,
OrderParameters
ToolbarPathOrderMap
 

Protected Member Functions

template<class Archive >
void _serialize (Archive &ar, const unsigned int version)
 
void addToolbarPath (const DtToolbarPath &, int weight)
 
bool sortAbsolute (const DtToolbarPath &a, const DtToolbarPath &b) const
 
- Protected Member Functions inherited from makVrv::DtConfiguration
template<class Archive >
void _serialize (Archive &ar, const unsigned int version)
 

Protected Attributes

ToolbarStateMap myToolbarStates
 
ToolbarPathSet myToolbarPaths
 
ToolbarPathOrderMap myToolbarOrder
 
int myCurrentWeight
 
DtMenuConfiguration myMenuConfiguration
 
- Protected Attributes inherited from makVrv::DtConfiguration
std::string myName
 
ParameterMap myOptionalParameters
 
DtProxyWP myAttachedInterface
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
DockLeft 
DockRight 
DockTop 
DockBottom 
DockNone 

Constructor & Destructor Documentation

makVrv::DtToolbarConfiguration::DtToolbarConfiguration ( )

CTOR.

virtual makVrv::DtToolbarConfiguration::~DtToolbarConfiguration ( )
virtual

DTOR.

Member Function Documentation

void makVrv::DtToolbarConfiguration::addToolbarPath ( const DtToolbarPath )

Adds the toolbar path (as well as its entire family).

void makVrv::DtToolbarConfiguration::addToolbarPathAfter ( const DtToolbarPath newPath,
const DtToolbarPath relativeTo 
)
void makVrv::DtToolbarConfiguration::addToolbarPathBefore ( const DtToolbarPath newPath,
const DtToolbarPath relativeTo 
)
void makVrv::DtToolbarConfiguration::addMenuPath ( const DtMenuPath path)

Adds the menu path (as well as its entire family).

void makVrv::DtToolbarConfiguration::addMenuPathAfter ( const DtMenuPath newPath,
const DtMenuPath relativeTo 
)
void makVrv::DtToolbarConfiguration::addMenuPathBefore ( const DtMenuPath newPath,
const DtMenuPath relativeTo 
)
void makVrv::DtToolbarConfiguration::removeMenuPath ( const DtMenuPath newPath)
void makVrv::DtToolbarConfiguration::addConfiguration ( const DtToolbarConfiguration subConfiguration)

Merges from an external configurations into this configuration.

void makVrv::DtToolbarConfiguration::removeToolbarPath ( const DtToolbarPath )

Remove the menu path.

void makVrv::DtToolbarConfiguration::getRootPaths ( ToolbarPathList children) const

Get all paths which have no parents (aka top level paths).

void makVrv::DtToolbarConfiguration::getChildren ( const DtToolbarPath path,
ToolbarPathList children 
) const
void makVrv::DtToolbarConfiguration::sortChildren ( ToolbarPathList children) const

Sort the list of children.

int makVrv::DtToolbarConfiguration::getNewWeight ( )

Get new weight.

DtToolbarConfiguration& makVrv::DtToolbarConfiguration::operator= ( const DtToolbarConfiguration rhs)
inline
const DtMenuConfiguration& makVrv::DtToolbarConfiguration::menuConfiguration ( ) const
inline

Menu configuration that is specific to this toolbar configuration and can only be used with toolbars defined through this configuration. Assumes that any creators are registered with the system creator factory.

void makVrv::DtToolbarConfiguration::merge ( const DtToolbarConfiguration rhs)

Merges in contents of supplied configuration, adding new paths. Order will get added at the end.

void makVrv::DtToolbarConfiguration::copyValuesFrom ( const DtToolbarConfiguration source)

Uses the location, geometry, order, etc. values from the supplied configuration while keeping the existence of toolbars based on the existing configuration.

Referenced by makVrf::DtDefaultGuiConfigurationCreator::Configurations::operator=().

void makVrv::DtToolbarConfiguration::updateState ( const DtToolbarPath tb,
ToolbarState state 
)

Updates the state of the given toolbar path to the new one passed by argument.

const ToolbarState* makVrv::DtToolbarConfiguration::state ( const DtToolbarPath tb) const

Returns the UI state for the given toolbar path.

const ToolbarStateMap& makVrv::DtToolbarConfiguration::states ( ) const

Returns the map with the UI state of each toolbar.

void makVrv::DtToolbarConfiguration::setVisible ( const DtToolbarPath tb,
bool  isVisible 
)

Set the myIsVisible state value for a toolbar path.

template<class Archive >
void makVrv::DtToolbarConfiguration::_serialize ( Archive &  ar,
const unsigned int  version 
)
inlineprotected
void makVrv::DtToolbarConfiguration::addToolbarPath ( const DtToolbarPath ,
int  weight 
)
protected

Adds the toolbar path (as well as its entire family).

bool makVrv::DtToolbarConfiguration::sortAbsolute ( const DtToolbarPath a,
const DtToolbarPath b 
) const
protected

Member Data Documentation

ToolbarStateMap makVrv::DtToolbarConfiguration::myToolbarStates
protected
ToolbarPathSet makVrv::DtToolbarConfiguration::myToolbarPaths
protected

Referenced by operator=().

ToolbarPathOrderMap makVrv::DtToolbarConfiguration::myToolbarOrder
protected

Referenced by operator=().

int makVrv::DtToolbarConfiguration::myCurrentWeight
protected

Referenced by operator=().

DtMenuConfiguration makVrv::DtToolbarConfiguration::myMenuConfiguration
protected

If there are menus that are specifically created for toolbars, they go here.

Referenced by operator=().


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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)