![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtConfigurableMenu (makVrv::DtDe &, const std::string &className) | |
| CTOR. | |
| virtual | ~DtConfigurableMenu () |
| DTOR. | |
| virtual DtSubMenuConfiguration & | menuConfiguration ()=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::DtQtMenuAssembler & | assembler () |
| DtSubMenuConfiguration & | configuration () |
| 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 |
| makVrf::DtConfigurableMenu::DtConfigurableMenu | ( | makVrv::DtDe & | , |
| const std::string & | className | ||
| ) |
CTOR.
| virtual makVrf::DtConfigurableMenu::~DtConfigurableMenu | ( | ) | [virtual] |
DTOR.
| virtual DtSubMenuConfiguration& makVrf::DtConfigurableMenu::menuConfiguration | ( | ) | [pure virtual] |
Returns the configuration for the menu to be used. May be effected directly.
Implemented in makVrf::DtCreateMenu, makVrf::DtVrfMainMenu, makVrf::DtSimulationCommandMenu, makVrf::DtConditionalMenu, makVrf::DtSetMenu, makVrf::DtTaskMenu, makVrf::DtEntityMenu, and makVrf::DtVrfRightClickMenu.
| virtual DtConfigurableMenuAssembler& makVrf::DtConfigurableMenu::menuAssembler | ( | ) | [pure virtual] |
Returns the assembler for the menu to be used. May be effected directly.
Implemented in makVrf::DtCreateMenu, makVrf::DtVrfMainMenu, makVrf::DtSimulationCommandMenu, makVrf::DtConditionalMenu, makVrf::DtVrfRightClickMenu, makVrf::DtSetMenu, makVrf::DtTaskMenu, and makVrf::DtEntityMenu.
| 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] |
| makVrv::DtQtMenuAssembler& makVrf::DtConfigurableMenu::assembler | ( | ) | [inline, protected] |
| DtSubMenuConfiguration& makVrf::DtConfigurableMenu::configuration | ( | ) | [inline, protected] |
| virtual void makVrf::DtConfigurableMenu::createMenuConfiguration | ( | makVrv::DtDe & | ) | [protected, pure virtual] |
Creates the menu configuration by creating the assembler and adding menu items.
Implemented in makVrf::DtCreateMenu, makVrf::DtVrfMainMenu, makVrf::DtSimulationCommandMenu, makVrf::DtVrfRightClickMenu, makVrf::DtConditionalMenu, makVrf::DtSetMenu, makVrf::DtTaskMenu, and makVrf::DtEntityMenu.
Reimplemented in makVrf::DtVrfMainMenu.
bool makVrf::DtConfigurableMenu::myInitialized [protected] |
| boost::signal<void (QAction*)> makVrf::DtConfigurableMenu::signal_validateMenuItem |