![]() |
VR-Forces 4.2 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. | |
| virtual | ~DtVrfMainMenuAssembler () |
| Destructor for this class which also should not be directly accessed. | |
| virtual void | registerMenu (makVrv::DtMenu *menu) |
| Register a new menu class for use in DtVrfMainMenu. | |
| virtual void | unregisterMenu (makVrv::DtMenu *menu, bool deleteBuilder=true) |
| Unregister an existing menu class in DtVrfMainMenu. | |
| virtual void | registerItem (makVrv::DtMenuItem *item) |
| Register a new menu item class for use in DtVrfMainMenu. | |
| virtual void | unregisterItem (makVrv::DtMenuItem *item, bool deleteBuilder=true) |
| Unregister an existing menu class in DtVrfMainMenu. | |
Public Member Functions inherited from makVrf::DtConfigurableMenuAssembler | |
| DtConfigurableMenuAssembler (makVrv::DtDe &de) | |
| virtual | ~DtConfigurableMenuAssembler () |
| void | setDeleteReferences (bool b) |
| bool | deleteReferences () const |
| void | setLocalOnly (bool b) |
| bool | localOnly () const |
| void | cleanup () |
| makVrv::DtMenuManager & | menuManager () |
| Returns menu manager. | |
| const makVrv::DtMenuManager & | menuManager () const |
| QMenu * | findMenu (const makVrv::DtMenuPath &path) |
| Returns the QMenu object for the given path. | |
| 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. | |
| virtual void | merge (const DtQtMenuAssembler::MenuItemBuilderMap &) |
| Merges the contents of the supplied menu item builder map, adding new entries and replacing existing. | |
| 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. | |
| virtual void | assembleMenu (const makVrv::DtMenuPath &menuPath) |
Protected Member Functions | |
| virtual void | registerMenu (makVrv::DtMenuItem *) |
| Call registerItem() instead. | |
| virtual void | unregisterMenu (makVrv::DtMenuItem *, bool) |
| Call unregisterItem() instead. | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
Protected Attributes inherited from makVrf::DtConfigurableMenuAssembler | |
| DtConfigurationMenuManager | myMenuManager |
| std::vector < makVrv::DtQtMenuAssembler * > | myMakeChangesTo |
| bool | myDeleteReferences |
| bool | myLocalOnly |
| bool | myCreateSubMenusForMissingMenus |
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 |