![]() |
VR-Forces 4.8 Class Documentation
|
DtVrfMainMenuAssembler used in DtVrfMainMenu register and unregister menus for menu bar. More...

Public Member Functions | |
| DtVrfMainMenuAssembler (makVrv::DtDe &de) | |
| Constructor for this class should not be used unless overriding class. More... | |
| virtual | ~DtVrfMainMenuAssembler () |
| Destructor for this class which also should not be directly accessed. More... | |
| virtual void | registerMenu (makVrv::DtMenu *menu) |
| Register a new menu class for use in DtVrfMainMenu. More... | |
| virtual void | unregisterMenu (makVrv::DtMenu *menu, bool deleteBuilder=true) |
| Unregister an existing menu class in DtVrfMainMenu. More... | |
| virtual void | registerItem (makVrv::DtMenuItem *item) |
| Register a new menu item class for use in DtVrfMainMenu. More... | |
| virtual void | unregisterItem (makVrv::DtMenuItem *item, bool deleteBuilder=true) |
| Unregister an existing menu class in DtVrfMainMenu. More... | |
Public Member Functions inherited from makVrf::DtConfigurableMenuAssembler | |
| DtConfigurableMenuAssembler (makVrv::DtDe &de) | |
| virtual | ~DtConfigurableMenuAssembler () |
| void | setDeleteReferences (bool b) |
| bool | deleteReferences () const |
| void | setLocalOnly (bool b) |
| void | setLocalMenuManager (bool b) |
| virtual void | assemble (const makVrv::DtMenuConfiguration &configuration) |
| Check for circular dependencies. If they exist, remove the before on one of them, warn, and create the menu. More... | |
| virtual void | fixCircularDependencies (DtSubMenuConfiguration &configuration) const |
| virtual bool | hasCircularDependency (DtSubMenuConfiguration &configuration) const |
| Returns true if there is a circular dependency. More... | |
| bool | localOnly () const |
| void | cleanup () |
| makVrv::DtMenuManager & | menuManager () |
| Returns menu manager. More... | |
| const makVrv::DtMenuManager & | menuManager () const |
| QMenu * | findMenu (const makVrv::DtMenuPath &path) |
| Returns the QMenu object for the given path. More... | |
| QAction * | findMenuItem (const makVrv::DtMenuPath &path) |
| virtual void | merge (const DtQtMenuAssembler::MenuBuilderMap &) |
| Merges the contents of the supplied menu builder map, adding new entries and replacing existing. More... | |
| virtual void | merge (const DtQtMenuAssembler::MenuItemBuilderMap &) |
| Merges the contents of the supplied menu item builder map, adding new entries and replacing existing. More... | |
| void | makeChangesTo (makVrv::DtQtMenuAssembler *c) |
| void | clearMakeChangesTo () |
| virtual QMenuBar * | menuBar () |
| virtual QWidget * | menuWindow () |
| void | setCreateSubMenusForMissingMenus (bool b) |
| If true, for any missing sub-menu item, create a menu builder and add it. Default is false. More... | |
| virtual void | assembleMenu (const makVrv::DtMenuPath &menuPath) |
| Assemble a menu from the path. More... | |
Public Member Functions inherited from makVrv::DtQtMenuAssembler | |
| virtual | ~DtQtMenuAssembler () |
| DTOR. More... | |
| void | registerMenu (DtMenu *) |
| Register a menu builder. More... | |
| DtMenu * | menuBuilder (const std::string &) const |
| Returns a menu builder given the menu id name. More... | |
| void | unregisterMenu (DtMenu *, bool deleteBuilder=true) |
| Register a menu builder. More... | |
| void | registerMenu (DtMenuItem *) |
| Register a menu item builder. More... | |
| DtMenuItem * | menuItemBuilder (const std::string &) const |
| Returns a menu item builder given the menu id name. More... | |
| void | unregisterMenu (DtMenuItem *, bool deleteBuilder=true) |
| Register a menu item builder. More... | |
| const MenuBuilderMap & | menuBuilderMap () const |
| const MenuItemBuilderMap & | menuItemBuilderMap () const |
| MenuBuilderMap & | menuBuilderMap () |
| MenuItemBuilderMap & | menuItemBuilderMap () |
| virtual void | merge (const DtQtMenuAssembler::MenuBuilderMap &) |
| Merges the contents of the supplied menu builder map, adding new entries and replacing existing. More... | |
| virtual void | merge (const DtQtMenuAssembler::MenuItemBuilderMap &) |
| Merges the contents of the supplied menu item builder map, adding new entries and replacing existing. More... | |
Public Member Functions inherited from makVrv::DtMenuAssembler | |
| virtual | ~DtMenuAssembler () |
| DTOR. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Protected Member Functions | |
| virtual void | registerMenu (makVrv::DtMenuItem *) |
| Call registerItem() instead. More... | |
| virtual void | unregisterMenu (makVrv::DtMenuItem *, bool) |
| Call unregisterItem() instead. More... | |
Protected Member Functions inherited from makVrf::DtConfigurableMenuAssembler | |
| virtual bool | fixMenuPath (const makVrv::DtMenuPath &menuPath, DtSubMenuConfiguration &configuration, bool checkOnly=false) const |
| Returns true if something was changed. More... | |
Protected Member Functions inherited from makVrv::DtQtMenuAssembler | |
| DtQtMenuAssembler (DtDe &) | |
| CTOR. More... | |
| virtual void | assembleMenuItem (const DtMenuPath &menuPath) |
| Assemble a menu item from the path. More... | |
Protected Member Functions inherited from makVrv::DtMenuAssembler | |
| DtMenuAssembler (DtDe &de) | |
| void | assembleMenuPath (const DtMenuPath &menuPath, const DtMenuConfiguration &configuration) |
| Assemble a menu path. More... | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
Protected Attributes inherited from makVrf::DtConfigurableMenuAssembler | |
| DtConfigurationMenuManager | myMenuManager |
| std::vector < makVrv::DtQtMenuAssembler * > | myMakeChangesTo |
| bool | myDeleteReferences |
| bool | myLocalOnly |
| bool | myCreateSubMenusForMissingMenus |
| bool | myLocalMenuManager |
Protected Attributes inherited from makVrv::DtQtMenuAssembler | |
| MenuBuilderMap | myMenuBuilders |
| MenuItemBuilderMap | myMenuItemBuilders |
Protected Attributes inherited from makVrv::DtMenuAssembler | |
| std::stack< DtMenuPath > | myMenuStack |
| DtDe & | myDe |
Additional Inherited Members | |
Public Types inherited from makVrv::DtQtMenuAssembler | |
| typedef boost::unordered_map < std::string, DtMenu * > | MenuBuilderMap |
| typedef boost::unordered_map < std::string, DtMenuItem * > | MenuItemBuilderMap |
Static Public Member Functions inherited from makVrv::DtQtMenuAssembler | |
| static DtQtMenuAssembler & | instance (DtDe &de) |
| Get an instance of the assembler. More... | |
Static Public Member Functions inherited from makVrv::DtMenuAssembler | |
| static DtMenuAssembler & | instance (DtDe &) |
| Get an instance of the assembler. More... | |
DtVrfMainMenuAssembler used in DtVrfMainMenu register and unregister menus for menu bar.
Menus must be registered before they are added to the menu configuration. Menus and items already registered to this specific menu do not need to be re-registered. The assembler also assumes ownership of the object once you pass it in. If you want to add this menu to the path in this menu group, you need to use the DtVrfMainMenuConfig class to do so.
| makVrf::DtVrfMainMenuAssembler::DtVrfMainMenuAssembler | ( | makVrv::DtDe & | de | ) |
Constructor for this class should not be used unless overriding class.
Use the the DtVrfMainMenu class instead to access this object
|
virtual |
Destructor for this class which also should not be directly accessed.
Destroy the main DtVrfMainMenu instead to destroy this object.
|
virtual |
Register a new menu class for use in DtVrfMainMenu.
You still need to add the menu's path by using the addMenuPath() function in the config class.
Reimplemented from makVrf::DtConfigurableMenuAssembler.
|
virtual |
Unregister an existing menu class in DtVrfMainMenu.
You should remove the menu's path by using the removeMenuPath() function in the config class.
Reimplemented from makVrf::DtConfigurableMenuAssembler.
|
virtual |
Register a new menu item class for use in DtVrfMainMenu.
You still need to add the menu item's path by using the addMenuPath() function in the config class.
|
virtual |
Unregister an existing menu class in DtVrfMainMenu.
You should remove the menu's path by using the removeMenuPath() function in the config class.
|
protectedvirtual |
Call registerItem() instead.
Reimplemented from makVrf::DtConfigurableMenuAssembler.
|
protectedvirtual |
Call unregisterItem() instead.
Reimplemented from makVrf::DtConfigurableMenuAssembler.
|
protected |