![]() |
VR-Forces Developer's Guide
|
The menu assembler and configuration were combined into one class for convenience. Most users won't really notice this or care.

Protected Member Functions | |
| virtual void | applyContext (std::string contextName, makVrv::DtMenuConfiguration &config) |
| virtual void | applyRegistrations (makVrv::DtQtMenuAssembler &assembler) |
| virtual void | slot_modifyRightClickMenu (makVrv::DtQtMenuAssembler &, makVrv::DtMenuConfiguration &, const makVrv::DtSelectionManager::IdSet &, int, makVrv::DtDe &) |
| virtual void | registerMenu (makVrv::DtMenuItem *) |
| virtual void | unregisterMenu (makVrv::DtMenu *, bool deleteBuilder=true) |
| virtual void | unregisterMenu (makVrv::DtMenuItem *, bool deleteBuilder=true) |
Protected Member Functions inherited from makVrf::DtSubMenuConfiguration | |
| bool | sortAbsolute (const makVrv::DtMenuPath &a, const makVrv::DtMenuPath &b) const |
Protected Member Functions inherited from makVrv::DtMenuConfiguration | |
| int | getNewWeight () |
| void | addMenuPath (const DtMenuPath &, int weight) |
| bool | sortAbsolute (const DtMenuPath &a, const DtMenuPath &b) const |
Protected Member Functions inherited from makVrv::DtConfiguration | |
| template<class Archive > | |
| void | _serialize (Archive &ar, const unsigned int version) |
Protected Member Functions inherited from makVrf::DtConfigurableMenuAssembler | |
| virtual bool | fixMenuPath (const makVrv::DtMenuPath &menuPath, DtSubMenuConfiguration &configuration, bool checkOnly=false) const |
Protected Member Functions inherited from makVrv::DtQtMenuAssembler | |
| DtQtMenuAssembler (DtDe &) | |
| virtual void | assembleMenuItem (const DtMenuPath &menuPath) |
| virtual void | sortConfiguration (const DtMenuConfiguration &configuration) |
Protected Member Functions inherited from makVrv::DtMenuAssembler | |
| DtMenuAssembler (DtDe &de) | |
| void | assembleMenuPath (const DtMenuPath &menuPath, const DtMenuConfiguration &configuration) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtMenuConfiguration | |
| enum | MenuSortFlags { NoSort = 0x00000000, SortAllAlphabetically = 0x00000001, SortWithinSubmenus = 0x00000002, SortBetweenSeparators = 0x00000004, SortBetweenSubMenus = 0x00000010 } |
| typedef std::list< DtMenuPath > | MenuPathList |
| typedef std::set< DtMenuPath > | MenuPathSet |
Public Types inherited from makVrv::DtConfiguration | |
| typedef std::map< std::string, std::string > | ParameterMap |
Public Types inherited from makVrv::DtQtMenuAssembler | |
| typedef boost::unordered_map < std::string, DtMenu * > | MenuBuilderMap |
| typedef boost::unordered_map < std::string, DtMenuItem * > | MenuItemBuilderMap |
Static Public Member Functions inherited from makVrv::DtQtMenuAssembler | |
| static DtQtMenuAssembler & | instance (DtDe &de) |
Static Public Member Functions inherited from makVrv::DtMenuAssembler | |
| static DtMenuAssembler & | instance (DtDe &) |
Protected Types inherited from makVrv::DtMenuConfiguration | |
| typedef std::map< DtMenuPath, OrderParameters > | MenuPathOrderMap |
| typedef std::map< DtMenuPath, MenuSortFlags > | MenuPathSortFlagsMap |
| makVrf::DtVrfRightClickContextHandler::DtVrfRightClickContextHandler | ( | makVrv::DtDe & | de | ) |
Default constructor that should not be used by users.
|
virtual |
Default destructor which should not be used by users.
|
virtual |
Adds a new context to the context handler. This is called by DtVrfRightClickMenu.
|
virtual |
Removes a context from the context handler. This is called by DtVrfRightClickMenu.
|
virtual |
Sets default context of the context handler. This is called by DtVrfRightClickMenu.
|
virtual |
Sets current context of the context handler. This is called by DtVrfRightClickMenu.
|
inlinevirtual |
Resets the current context to the default context.
|
inlinevirtual |
Gets the current context.
|
inlinevirtual |
Gets the default context.
|
virtual |
Overridden from base class. Adds a menu path to the right click menu based on the current context. To change contexts, you should call setCurrentContext() before calling this function to ensure your right click change happens when you want it to. This function assumes the menu/item at the end of the path is already registered to this class or to DtVrfMainMenu.
Reimplemented from makVrf::DtSubMenuConfiguration.
|
virtual |
Overridden from base class. Removes a menu path from the right click menu based on the current context. To change contexts, you should call setCurrentContext() before calling this function to ensure your right click change happens when you want it to. This function assumes the menu/item at the end of the path is already registered to this class or to DtVrfMainMenu.
Reimplemented from makVrf::DtSubMenuConfiguration.
|
virtual |
Overridden from base class. Adds a menu path to the right click menu based on the current context. To change contexts, you should call setCurrentContext() before calling this function to ensure your right click change happens when you want it to. This function assumes the menu/item at the end of the path is already registered to this class or to DtVrfMainMenu.
|
virtual |
Overridden from base class. Adds a menu path to the right click menu based on the current context. To change contexts, you should call setCurrentContext() before calling this function to ensure your right click change happens when you want it to. This function assumes the menu/item at the end of the path is already registered to this class or to DtVrfMainMenu.
|
virtual |
Registers a menu object to the right click menu. Menus registered in the DtVrfMainMenu do not need to be re-registered.
Reimplemented from makVrf::DtConfigurableMenuAssembler.
|
virtual |
Unregisters a menu object from the right click menu.
|
virtual |
Registers a menu item object to the right click menu. Menus itmes registered in the DtVrfMainMenu do not need to be re-registered.
|
virtual |
Unregisters a menu item object to the right click menu.
|
protectedvirtual |
Internally used function to apply contexts to the configuration.
|
protectedvirtual |
Internally used function to apply registrations to the menu assembler.
|
protectedvirtual |
Internally used function to handle right click at the time it happens. The user's entry point into this is to call addContext() and add functions which will eventually be called.
|
protectedvirtual |
Use registerItem() instead.
Reimplemented from makVrf::DtConfigurableMenuAssembler.
|
protectedvirtual |
Use unregisterMenu() instead.
Reimplemented from makVrf::DtConfigurableMenuAssembler.
|
protectedvirtual |
Use unregisterItem() instead.
Reimplemented from makVrf::DtConfigurableMenuAssembler.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |