VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
makVrv::DtQtToolbarAssembler Class Reference

A Qt implementation of a DtToolbarAssembler. More...

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

List of all members.

Public Types

typedef std::map< std::string,
DtToolbar * > 
ToolbarBuilderMap

Public Member Functions

virtual ~DtQtToolbarAssembler ()
 DTOR.
void registerToolbar (DtToolbar *)
 Register a toolbar builder.
DtToolbartoolbarBuilder (const std::string &) const
 Returns a toolbar builder given the toolbar id name.
void unregisterToolbar (DtToolbar *, bool deleteBuilder=true)
 Register a toolbar builder.
const ToolbarBuilderMaptoolbarBuilderMap () const
ToolbarBuilderMaptoolbarBuilderMap ()
virtual void setIconSize (const QSize &)
 Sets the icon size used for button images on the toolbars. Default is 16x16.
const QSize & iconSize () const
virtual void merge (const DtQtToolbarAssembler::ToolbarBuilderMap &)
 Merges the contents of the supplied toolbar builder map, adding new entries and replacing existing.
virtual void registerWidgetBuilder (const std::string &, DtWidgetBuilder *, bool deleteExisting=true)
 Adds in a widget builder that can be used to create a widget for a toolbar.
virtual DtWidgetBuilderwidgetBuilder (const std::string &)
 Returns a widget builder with a given name.
virtual void unregisterWidgetBuilder (const std::string &, bool deleteExisting=true)
 Removes a widget builder and deletes if deleteExisting is true.

Static Public Member Functions

static DtQtToolbarAssemblerinstance (DtDe &de)
 Get an instance of the assembler.

Protected Types

typedef std::map< std::string,
DtWidgetBuilder * > 
WidgetBuilders
typedef std::map< int,
std::string > 
RowBreakMap

Protected Member Functions

 DtQtToolbarAssembler (DtDe &)
 CTOR.
virtual QActionfindMenuItem (const std::string &item, const std::map< DtMenuPath, QAction * > &menuItems) const
virtual void assembleRow (const DtToolbarPath &toolbarPath, DtToolbarConfiguration::ToolbarLocation location)
 Assemble a row from the path.
virtual void assembleToolbar (const DtToolbarPath &toolbarPath, const DtToolbarConfiguration &configuration)
 Assemble a toolbar from the path.
virtual void assembleToolbarItem (const DtToolbarPath &toolbarPath)
 Assemble a menu item from the path.
virtual void assembleToolbarMenuItem (const DtToolbarPath &toolbarPath)
 Assemble a toolbar from the path.
virtual void assembleToolbarWidget (const DtToolbarPath &toolbarPath)
 Assemble a widget from the path.
virtual void assembleToolbarMenu (const DtToolbarPath &toolbarPath)
 Assemble a menu from the path.
virtual QWidgettoolbarWindow ()
virtual DtQtToolbarManagertoolbarManager ()
virtual void assemble (const DtToolbarConfiguration &configuration)
 Override to assemble menus into local assembler.
virtual void addToolbarBreak (DtToolbarConfiguration::ToolbarLocation loc)
 Add a toolbar break at the specified location.

Protected Attributes

ToolbarBuilderMap myToolbarBuilders
DtQtToolbarMenuAssembler myToolbarMenuAssembler
WidgetBuilders myWidgetBuilders
QSize myIconSize
RowBreakMap myOnRow

Friends

class DtQtToolbarAssemblerCreator

Detailed Description

A Qt implementation of a DtToolbarAssembler.


Member Typedef Documentation

typedef std::map<std::string, DtWidgetBuilder*> makVrv::DtQtToolbarAssembler::WidgetBuilders [protected]
typedef std::map<int, std::string> makVrv::DtQtToolbarAssembler::RowBreakMap [protected]

Constructor & Destructor Documentation

DTOR.

CTOR.


Member Function Documentation

Get an instance of the assembler.

Reimplemented from makVrv::DtToolbarAssembler.

Register a toolbar builder.

DtToolbar* makVrv::DtQtToolbarAssembler::toolbarBuilder ( const std::string &  ) const

Returns a toolbar builder given the toolbar id name.

void makVrv::DtQtToolbarAssembler::unregisterToolbar ( DtToolbar ,
bool  deleteBuilder = true 
)

Register a toolbar builder.

virtual void makVrv::DtQtToolbarAssembler::setIconSize ( const QSize &  ) [virtual]

Sets the icon size used for button images on the toolbars. Default is 16x16.

Merges the contents of the supplied toolbar builder map, adding new entries and replacing existing.

virtual void makVrv::DtQtToolbarAssembler::registerWidgetBuilder ( const std::string &  ,
DtWidgetBuilder ,
bool  deleteExisting = true 
) [virtual]

Adds in a widget builder that can be used to create a widget for a toolbar.

If one exists, will replace. Will delete if delete flag is true

virtual DtWidgetBuilder* makVrv::DtQtToolbarAssembler::widgetBuilder ( const std::string &  ) [virtual]

Returns a widget builder with a given name.

virtual void makVrv::DtQtToolbarAssembler::unregisterWidgetBuilder ( const std::string &  ,
bool  deleteExisting = true 
) [virtual]

Removes a widget builder and deletes if deleteExisting is true.

virtual QAction* makVrv::DtQtToolbarAssembler::findMenuItem ( const std::string &  item,
const std::map< DtMenuPath, QAction * > &  menuItems 
) const [protected, virtual]
virtual void makVrv::DtQtToolbarAssembler::assembleRow ( const DtToolbarPath toolbarPath,
DtToolbarConfiguration::ToolbarLocation  location 
) [protected, virtual]

Assemble a row from the path.

If row has already been created, then, do not add a break. Since rows are really just toolbar breaks, if the current row is different than the last row, then, add a new break

Reimplemented from makVrv::DtToolbarAssembler.

virtual void makVrv::DtQtToolbarAssembler::assembleToolbar ( const DtToolbarPath toolbarPath,
const DtToolbarConfiguration configuration 
) [protected, virtual]

Assemble a toolbar from the path.

Reimplemented from makVrv::DtToolbarAssembler.

virtual void makVrv::DtQtToolbarAssembler::assembleToolbarItem ( const DtToolbarPath toolbarPath) [protected, virtual]

Assemble a menu item from the path.

Reimplemented from makVrv::DtToolbarAssembler.

virtual void makVrv::DtQtToolbarAssembler::assembleToolbarMenuItem ( const DtToolbarPath toolbarPath) [protected, virtual]

Assemble a toolbar from the path.

Reimplemented from makVrv::DtToolbarAssembler.

virtual void makVrv::DtQtToolbarAssembler::assembleToolbarWidget ( const DtToolbarPath toolbarPath) [protected, virtual]

Assemble a widget from the path.

Reimplemented from makVrv::DtToolbarAssembler.

virtual void makVrv::DtQtToolbarAssembler::assembleToolbarMenu ( const DtToolbarPath toolbarPath) [protected, virtual]

Assemble a menu from the path.

Will look in menu manager first for menu if the menu exists. If not will create the menu from the local assembler

Reimplemented from makVrv::DtToolbarAssembler.

virtual QWidget* makVrv::DtQtToolbarAssembler::toolbarWindow ( ) [protected, virtual]
virtual void makVrv::DtQtToolbarAssembler::assemble ( const DtToolbarConfiguration configuration) [protected, virtual]

Override to assemble menus into local assembler.

Reimplemented from makVrv::DtToolbarAssembler.

Add a toolbar break at the specified location.

Reimplemented from makVrv::DtToolbarAssembler.


Friends And Related Function Documentation

friend class DtQtToolbarAssemblerCreator [friend]

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)