![]() |
VR-Forces 4.0.4 Class Documentation
|
A Menu manager which is how to lookup and find menu/menu items using menu paths. More...

Public Member Functions | |
| virtual | ~DtMenuManager () |
| DTOR. | |
| void | registerMenu (const DtMenuPath &path, QMenu *menu) |
| Register a menu, this is done automatically by the DtMenuAssembler. | |
| void | registerMenuItem (const DtMenuPath &path, QAction *action) |
| Register a menu item, this is done automatically by the DtMenuAssembler. | |
| QMenu * | findMenu (const DtMenuPath &path) const |
| Find a menu by its path. | |
| QAction * | findMenuItem (const DtMenuPath &path) const |
| Find a menu item by its path. | |
| const std::map< DtMenuPath, QMenu * > & | menus () const |
| Returns the list of known menus and menu items. | |
| const std::map< DtMenuPath, QAction * > | menuItems () const |
Static Public Member Functions | |
| static DtMenuManager & | instance (DtDe &de) |
| Get an instance of the Menu manager. | |
Public Attributes | |
| boost::signal< void(const DtMenuPath &)> | signal_menuDeleted |
| boost::signal< void(const DtMenuPath &)> | signal_menuItemDeleted |
Protected Slots | |
| void | onMenuDestroyed (QObject *obj) |
| When a menu is destroyed. | |
| void | onActionDestroyed (QObject *obj) |
| When an action is destroyed. | |
Protected Member Functions | |
| DtMenuManager () | |
| Protected CTOR, use the instance function. | |
Protected Attributes | |
| std::map< DtMenuPath, QMenu * > | myMenus |
| std::map< DtMenuPath, QAction * > | myMenuItems |
A Menu manager which is how to lookup and find menu/menu items using menu paths.
Menus are automatically registed by the DtMenuAssembler.
| virtual makVrv::DtMenuManager::~DtMenuManager | ( | ) | [virtual] |
DTOR.
| makVrv::DtMenuManager::DtMenuManager | ( | ) | [protected] |
Protected CTOR, use the instance function.
| static DtMenuManager& makVrv::DtMenuManager::instance | ( | DtDe & | de | ) | [static] |
Get an instance of the Menu manager.
| void makVrv::DtMenuManager::registerMenu | ( | const DtMenuPath & | path, |
| QMenu * | menu | ||
| ) |
Register a menu, this is done automatically by the DtMenuAssembler.
| void makVrv::DtMenuManager::registerMenuItem | ( | const DtMenuPath & | path, |
| QAction * | action | ||
| ) |
Register a menu item, this is done automatically by the DtMenuAssembler.
| QMenu* makVrv::DtMenuManager::findMenu | ( | const DtMenuPath & | path | ) | const |
Find a menu by its path.
| QAction* makVrv::DtMenuManager::findMenuItem | ( | const DtMenuPath & | path | ) | const |
Find a menu item by its path.
| const std::map<DtMenuPath,QMenu*>& makVrv::DtMenuManager::menus | ( | ) | const |
Returns the list of known menus and menu items.
Key is the path to the menu or menu item
| const std::map<DtMenuPath,QAction*> makVrv::DtMenuManager::menuItems | ( | ) | const |
| void makVrv::DtMenuManager::onMenuDestroyed | ( | QObject * | obj | ) | [protected, slot] |
When a menu is destroyed.
| void makVrv::DtMenuManager::onActionDestroyed | ( | QObject * | obj | ) | [protected, slot] |
When an action is destroyed.
| boost::signal<void (const DtMenuPath&)> makVrv::DtMenuManager::signal_menuDeleted |
| boost::signal<void (const DtMenuPath&)> makVrv::DtMenuManager::signal_menuItemDeleted |
std::map<DtMenuPath,QMenu*> makVrv::DtMenuManager::myMenus [protected] |
std::map<DtMenuPath,QAction*> makVrv::DtMenuManager::myMenuItems [protected] |