VR-Forces 4.0.4 Class Documentation
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrf::DtConfigurableMenu Class Reference
Inheritance diagram for makVrf::DtConfigurableMenu:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtConfigurableMenu (makVrv::DtDe &, const std::string &className)
 CTOR.
virtual ~DtConfigurableMenu ()
 DTOR.
virtual DtSubMenuConfigurationmenuConfiguration ()=0
 Returns the configuration for the menu to be used. May be effected directly.
virtual
DtConfigurableMenuAssembler
menuAssembler ()=0
 Returns the assembler for the menu to be used. May be effected directly.
virtual void registerMenu (makVrv::DtMenu *customMenu)
 Use to register your own complex menu object.
virtual void registerMenuItem (makVrv::DtMenuItem *customMenuItem)
 Use to register your own complex menu item object.
virtual void createSimpleMenu (std::string menuText, makVrv::DtMenuPath menuIdPath, int weight=-1)
virtual void createSimpleMenuAfter (std::string menuText, makVrv::DtMenuPath menuIdPath, makVrv::DtMenuPath afterIdPath)
virtual void createSimpleMenuBefore (std::string menuText, makVrv::DtMenuPath menuIdPath, makVrv::DtMenuPath beforeIdPath)
virtual void createSimpleMenuItem (std::string itemText, makVrv::DtMenuPath itemIdPath, DtSimpleMenuItemAction *action, void *usr=NULL, int weight=-1)
virtual void createSimpleMenuItemAfter (std::string itemText, makVrv::DtMenuPath itemIdPath, makVrv::DtMenuPath afterIdPath, DtSimpleMenuItemAction *action, void *usr=NULL)
virtual void createSimpleMenuItemBefore (std::string itemText, makVrv::DtMenuPath itemIdPath, makVrv::DtMenuPath beforeIdPath, DtSimpleMenuItemAction *action, void *usr=NULL)
virtual void mergeMenu (makVrv::DtQtMenuAssembler &assembler, makVrv::DtMenuConfiguration &configuration)
 Merges in the assembler and configuration into the supplied assembler and configuration.
virtual void mergeMenu (makVrv::DtQtMenuAssembler &assembler)
 Merges in the assembler into the supplied assembler.
virtual void mergeMenu (makVrv::DtMenuConfiguration &configuration)
 Merges in the configuration into the supplied configuration. This merges all the menu paths together.

Public Attributes

boost::signal< void(QAction *)> signal_validateMenuItem

Protected Member Functions

virtual void initMenuItems (makVrv::DtDe &de)
makVrv::DtQtMenuAssemblerassembler ()
DtSubMenuConfigurationconfiguration ()
virtual void createMenuConfiguration (makVrv::DtDe &)=0
 Creates the menu configuration by creating the assembler and adding menu items.

Protected Attributes

DtConfigurableMenuAssembler myAssembler
DtSubMenuConfiguration myConfiguration
bool myInitialized

Constructor & Destructor Documentation

makVrf::DtConfigurableMenu::DtConfigurableMenu ( makVrv::DtDe ,
const std::string &  className 
)

CTOR.

DTOR.


Member Function Documentation

virtual void makVrf::DtConfigurableMenu::registerMenu ( makVrv::DtMenu customMenu) [virtual]

Use to register your own complex menu object.

You must then use the menuConfig() function to add it to the path you wish to add it to. If you want to make a simple menu, use createSimpleMenu() instead (see that function for details)

virtual void makVrf::DtConfigurableMenu::registerMenuItem ( makVrv::DtMenuItem customMenuItem) [virtual]

Use to register your own complex menu item object.

You must then use the menuConfig() function to add it to the path you wish to add it to. If you want to make a simple menu item, use createSimpleMenuItem() instead (see that function for details)

virtual void makVrf::DtConfigurableMenu::createSimpleMenu ( std::string  menuText,
makVrv::DtMenuPath  menuIdPath,
int  weight = -1 
) [virtual]
virtual void makVrf::DtConfigurableMenu::createSimpleMenuAfter ( std::string  menuText,
makVrv::DtMenuPath  menuIdPath,
makVrv::DtMenuPath  afterIdPath 
) [virtual]
virtual void makVrf::DtConfigurableMenu::createSimpleMenuBefore ( std::string  menuText,
makVrv::DtMenuPath  menuIdPath,
makVrv::DtMenuPath  beforeIdPath 
) [virtual]
virtual void makVrf::DtConfigurableMenu::createSimpleMenuItem ( std::string  itemText,
makVrv::DtMenuPath  itemIdPath,
DtSimpleMenuItemAction action,
void *  usr = NULL,
int  weight = -1 
) [virtual]
virtual void makVrf::DtConfigurableMenu::createSimpleMenuItemAfter ( std::string  itemText,
makVrv::DtMenuPath  itemIdPath,
makVrv::DtMenuPath  afterIdPath,
DtSimpleMenuItemAction action,
void *  usr = NULL 
) [virtual]
virtual void makVrf::DtConfigurableMenu::createSimpleMenuItemBefore ( std::string  itemText,
makVrv::DtMenuPath  itemIdPath,
makVrv::DtMenuPath  beforeIdPath,
DtSimpleMenuItemAction action,
void *  usr = NULL 
) [virtual]
virtual void makVrf::DtConfigurableMenu::mergeMenu ( makVrv::DtQtMenuAssembler assembler,
makVrv::DtMenuConfiguration configuration 
) [virtual]

Merges in the assembler and configuration into the supplied assembler and configuration.

see the other mergeMenu() functions

virtual void makVrf::DtConfigurableMenu::mergeMenu ( makVrv::DtQtMenuAssembler assembler) [virtual]

Merges in the assembler into the supplied assembler.

This merges menu registrations between two menus

virtual void makVrf::DtConfigurableMenu::mergeMenu ( makVrv::DtMenuConfiguration configuration) [virtual]

Merges in the configuration into the supplied configuration. This merges all the menu paths together.

virtual void makVrf::DtConfigurableMenu::initMenuItems ( makVrv::DtDe de) [protected, virtual]
virtual void makVrf::DtConfigurableMenu::createMenuConfiguration ( makVrv::DtDe ) [protected, pure virtual]

Member Data Documentation

Reimplemented in makVrf::DtVrfMainMenu.


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)