![]() |
VR-Forces 4.6.1 Class Documentation
|
A Qt implementation of a DtToolbarAssembler. More...

Public Types | |
| typedef std::map< std::string, DtToolbar * > | ToolbarBuilderMap |
Public Member Functions | |
| virtual | ~DtQtToolbarAssembler () |
| DTOR. | |
| void | registerToolbar (DtToolbar *) |
| Register a toolbar builder. | |
| DtToolbar * | toolbarBuilder (const std::string &) const |
| Returns a toolbar builder given the toolbar id name. | |
| void | unregisterToolbar (DtToolbar *, bool deleteBuilder=true) |
| Register a toolbar builder. | |
| const ToolbarBuilderMap & | toolbarBuilderMap () const |
| ToolbarBuilderMap & | toolbarBuilderMap () |
| 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 DtWidgetBuilder * | widgetBuilder (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. | |
Public Member Functions inherited from makVrv::DtToolbarAssembler | |
| virtual | ~DtToolbarAssembler () |
| DTOR. | |
| virtual void | updateToolbars (const DtToolbarConfiguration &configuration) |
| Updates the toolbar UI layout with the information passed in the configuration. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtQtToolbarAssembler & | instance (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 Types inherited from makVrv::DtToolbarAssembler | |
| typedef std::multimap < DtToolbarConfiguration::ToolbarLocation, DtToolbarPath > | LocationPathMap |
| typedef std::map< int, DtToolbarPath > | ToolbarPathsMap |
| typedef std::map< int, ToolbarPathsMap > | ToolbarPathsMapMap |
Protected Member Functions | |
| DtQtToolbarAssembler (DtDe &) | |
| CTOR. | |
| virtual QAction * | findMenuItem (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 QWidget * | toolbarWindow () |
| virtual DtQtToolbarManager & | toolbarManager () |
| 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 Member Functions inherited from makVrv::DtToolbarAssembler | |
| DtToolbarAssembler (DtDe &de) | |
| void | assembleToolbarPath (const DtToolbarPath &toolbarPath, const DtToolbarConfiguration &configuration, DtToolbarConfiguration::ToolbarLocation location) |
| Assemble a toolbar path. | |
| virtual void | assembleTopLeftToolbars (const LocationPathMap &locMap, DtToolbarConfiguration::ToolbarLocation loc, const DtToolbarConfiguration &configuration) |
| Assemble toolbars located at the top or left areas of the UI. | |
| virtual void | assembleBottomRightToolbars (const LocationPathMap &, DtToolbarConfiguration::ToolbarLocation, const DtToolbarConfiguration &) |
| Assemble toolbars located at the bottom or right areas of the UI. | |
| virtual void | populateToobarPathsMap (const LocationPathMap &locMap, DtToolbarConfiguration::ToolbarLocation loc, const DtToolbarConfiguration &configuration, ToolbarPathsMapMap &tpMap) |
| Populates the tpMap map with the proper order in which toolbars need to be placed on the UI. | |
| virtual void | updateToolbarPath (const DtToolbarPath &toolbarPath, const DtToolbarConfiguration &configuration) |
| Update the tool bar path with the state information contained inside the provided configuration. | |
| virtual void | updateToolbar (const DtToolbarPath &toolbarPath, const DtToolbarConfiguration &configuration) |
| Update the tool bar with the state information contained inside the provided configuration. | |
Protected Attributes | |
| ToolbarBuilderMap | myToolbarBuilders |
| DtQtToolbarMenuAssembler | myToolbarMenuAssembler |
| WidgetBuilders | myWidgetBuilders |
| QSize | myIconSize |
| RowBreakMap | myOnRow |
Protected Attributes inherited from makVrv::DtToolbarAssembler | |
| std::stack< DtToolbarPath > | myToolbarStack |
| DtDe & | myDe |
Friends | |
| class | DtQtToolbarAssemblerCreator |
A Qt implementation of a DtToolbarAssembler.
| typedef std::map<std::string,DtToolbar*> makVrv::DtQtToolbarAssembler::ToolbarBuilderMap |
|
protected |
|
protected |
|
virtual |
DTOR.
|
protected |
CTOR.
|
static |
Get an instance of the assembler.
Reimplemented from makVrv::DtToolbarAssembler.
| void makVrv::DtQtToolbarAssembler::registerToolbar | ( | DtToolbar * | ) |
Register a toolbar builder.
| DtToolbar* makVrv::DtQtToolbarAssembler::toolbarBuilder | ( | const std::string & | ) | const |
Returns a toolbar builder given the toolbar id name.
Register a toolbar builder.
|
inline |
|
inline |
|
virtual |
Sets the icon size used for button images on the toolbars. Default is 16x16.
| const QSize& makVrv::DtQtToolbarAssembler::iconSize | ( | ) | const |
|
virtual |
Merges the contents of the supplied toolbar builder map, adding new entries and replacing existing.
|
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 |
Returns a widget builder with a given name.
|
virtual |
Removes a widget builder and deletes if deleteExisting is true.
|
protectedvirtual |
|
protectedvirtual |
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.
|
protectedvirtual |
Assemble a toolbar from the path.
Reimplemented from makVrv::DtToolbarAssembler.
|
protectedvirtual |
Assemble a menu item from the path.
Reimplemented from makVrv::DtToolbarAssembler.
|
protectedvirtual |
Assemble a toolbar from the path.
Reimplemented from makVrv::DtToolbarAssembler.
|
protectedvirtual |
Assemble a widget from the path.
Reimplemented from makVrv::DtToolbarAssembler.
|
protectedvirtual |
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.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Override to assemble menus into local assembler.
Reimplemented from makVrv::DtToolbarAssembler.
|
protectedvirtual |
Add a toolbar break at the specified location.
Reimplemented from makVrv::DtToolbarAssembler.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |