![]() |
VR-Forces 4.0.4 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. | |
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 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 Attributes | |
| ToolbarBuilderMap | myToolbarBuilders |
| DtQtToolbarMenuAssembler | myToolbarMenuAssembler |
| WidgetBuilders | myWidgetBuilders |
| QSize | myIconSize |
| RowBreakMap | myOnRow |
Friends | |
| class | DtQtToolbarAssemblerCreator |
A Qt implementation of a DtToolbarAssembler.
| typedef std::map<std::string,DtToolbar*> makVrv::DtQtToolbarAssembler::ToolbarBuilderMap |
typedef std::map<std::string, DtWidgetBuilder*> makVrv::DtQtToolbarAssembler::WidgetBuilders [protected] |
typedef std::map<int, std::string> makVrv::DtQtToolbarAssembler::RowBreakMap [protected] |
| virtual makVrv::DtQtToolbarAssembler::~DtQtToolbarAssembler | ( | ) | [virtual] |
DTOR.
| makVrv::DtQtToolbarAssembler::DtQtToolbarAssembler | ( | DtDe & | ) | [protected] |
CTOR.
| static DtQtToolbarAssembler& makVrv::DtQtToolbarAssembler::instance | ( | DtDe & | de | ) | [static] |
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.
| const ToolbarBuilderMap& makVrv::DtQtToolbarAssembler::toolbarBuilderMap | ( | ) | const [inline] |
| virtual void makVrv::DtQtToolbarAssembler::setIconSize | ( | const QSize & | ) | [virtual] |
Sets the icon size used for button images on the toolbars. Default is 16x16.
| const QSize& makVrv::DtQtToolbarAssembler::iconSize | ( | ) | const |
| virtual void makVrv::DtQtToolbarAssembler::merge | ( | const DtQtToolbarAssembler::ToolbarBuilderMap & | ) | [virtual] |
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 DtQtToolbarManager& makVrv::DtQtToolbarAssembler::toolbarManager | ( | ) | [protected, virtual] |
| virtual void makVrv::DtQtToolbarAssembler::assemble | ( | const DtToolbarConfiguration & | configuration | ) | [protected, virtual] |
Override to assemble menus into local assembler.
Reimplemented from makVrv::DtToolbarAssembler.
| virtual void makVrv::DtQtToolbarAssembler::addToolbarBreak | ( | DtToolbarConfiguration::ToolbarLocation | loc | ) | [protected, virtual] |
Add a toolbar break at the specified location.
Reimplemented from makVrv::DtToolbarAssembler.
friend class DtQtToolbarAssemblerCreator [friend] |
QSize makVrv::DtQtToolbarAssembler::myIconSize [protected] |
RowBreakMap makVrv::DtQtToolbarAssembler::myOnRow [protected] |