VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
makVrv::DtMenuManager Class Reference

A Menu manager which is how to lookup and find menu/menu items using menu paths. More...

Inheritance diagram for makVrv::DtMenuManager:
Inheritance graph
[legend]

List of all members.

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.
QMenufindMenu (const DtMenuPath &path) const
 Find a menu by its path.
QActionfindMenuItem (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 DtMenuManagerinstance (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

Detailed Description

A Menu manager which is how to lookup and find menu/menu items using menu paths.

Menus are automatically registed by the DtMenuAssembler.


Constructor & Destructor Documentation

DTOR.

Protected CTOR, use the instance function.


Member Function Documentation

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.

Find a menu by its path.

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

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.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)