![]() |
VR-Forces 4.3.1 Class Documentation
|
The menu assembler and configuration were combined into one class for convenience. More...

Public Member Functions | |
| DtVrfRightClickContextHandler (makVrv::DtDe &de) | |
| Default constructor that should not be used by users. | |
| virtual | ~DtVrfRightClickContextHandler () |
| Default destructor which should not be used by users. | |
| virtual void | addContext (std::string contextName, DtVrfRightClickContextFunc func) |
| Adds a new context to the context handler. This is called by DtVrfRightClickMenu. | |
| virtual void | removeContext (std::string contextName) |
| Removes a context from the context handler. This is called by DtVrfRightClickMenu. | |
| virtual void | setDefaultContext (std::string contextName) |
| Sets default context of the context handler. This is called by DtVrfRightClickMenu. | |
| virtual void | setCurrentContext (std::string contextName) |
| Sets current context of the context handler. This is called by DtVrfRightClickMenu. | |
| virtual void | resetContext () |
| Resets the current context to the default context. | |
| virtual std::string | currentContext () |
| Gets the current context. | |
| virtual std::string | defaultContext () |
| Gets the default context. | |
| virtual void | addMenuPath (const makVrv::DtMenuPath &path, int weight=-1) |
| Overridden from base class. | |
| virtual void | removeMenuPath (const makVrv::DtMenuPath &) |
| Overridden from base class. | |
| virtual void | addMenuPathAfter (const makVrv::DtMenuPath &newPath, const makVrv::DtMenuPath &relativeTo) |
| Overridden from base class. | |
| virtual void | addMenuPathBefore (const makVrv::DtMenuPath &newPath, const makVrv::DtMenuPath &relativeTo) |
| Overridden from base class. | |
| virtual void | registerMenu (makVrv::DtMenu *menu) |
| Registers a menu object to the right click menu. | |
| virtual void | unregisterMenu (makVrv::DtMenu *menu) |
| Unregisters a menu object from the right click menu. | |
| virtual void | registerItem (makVrv::DtMenuItem *item) |
| Registers a menu item object to the right click menu. | |
| virtual void | unregisterItem (makVrv::DtMenuItem *item) |
| Unregisters a menu item object to the right click menu. | |
Public Member Functions inherited from makVrf::DtSubMenuConfiguration | |
| DtSubMenuConfiguration () | |
| DtSubMenuConfiguration (const makVrv::DtMenuConfiguration &c) | |
| DtSubMenuConfiguration (makVrv::DtDe *de) | |
| virtual | ~DtSubMenuConfiguration () |
| virtual bool | isUnique (const std::string &) const |
| Returns true if there is only one occurance of this path. | |
| int | size () const |
| void | convert (const std::string &str1, const std::string &str2) |
| virtual void | addMenuItemAfter (const std::string &menuItem, const std::string &after) |
| Finds the first occurance of a menu item that matches the "after" in the configuration and adds the menu item to add after that item. | |
| virtual void | removeMenuItem (const std::string &menuItem) |
| Finds the first occurance of a menu item that matches the "menuItem" in the configuration and removes it. | |
| virtual void | addMenuItemBefore (const std::string &menuItem, const std::string &before) |
| Finds the first occurance of a menu item that matches the "after" in the configuration and adds the menu item to add before that item. | |
| virtual makVrv::DtMenuPath | menuPathForItem (const std::string &menuItem) const |
| Finds a menu path that contains the menu item. | |
| virtual std::string | mainMenu () const |
| Returns the main menu that represents this path. Will be the first items main menu. | |
| DtSubMenuConfiguration & | operator= (const makVrv::DtMenuConfiguration &rhs) |
| void | makeChangesTo (makVrv::DtMenuConfiguration *c) |
| void | clearMakeChangesTo () |
| const MenuPathSet & | pathsRemoved () const |
| const MenuPathSet & | menuPaths () const |
| void | setProtected (const std::string &p, bool b) |
| bool | isProtected (const std::string &p) const |
| bool | isGoingToBeRemoved (const makVrv::DtMenuPath &p) const |
| virtual void | reworkRelativeOrder () |
| Reworks the relativeTo items to do a closest match and then use that based on the menu paths. | |
Public Member Functions inherited from makVrv::DtMenuConfiguration | |
| DtMenuConfiguration () | |
| CTOR. | |
| ~DtMenuConfiguration () | |
| DTOR. | |
| void | addConfiguration (const DtMenuConfiguration &subConfiguration) |
| Merges from an external configurations into this configuration. | |
| void | getRootPaths (MenuPathList &children) const |
| Get all paths which have no parents (aka top level paths). | |
| void | getChildren (const DtMenuPath &path, MenuPathList &children) const |
| Get a list of children (first generation only) for a given path. | |
| void | sortChildren (MenuPathList &children) const |
| Sort the list of children. | |
| int | getNewWeight () |
| Get new weight. | |
| void | merge (const DtMenuConfiguration &rhs) |
| Merges in contents of supplied configuration, adding new paths. | |
| bool | hasMenuPath (const DtMenuPath &p) const |
| Returns true if has the menu path. | |
Public Member Functions inherited from makVrv::DtConfiguration | |
| DtConfiguration (const std::string &name="") | |
| CTOR. | |
| DtConfiguration (const DtConfiguration &) | |
| Copy CTOR. | |
| DtConfiguration & | operator= (const DtConfiguration &) |
| Assignment OP. | |
| virtual | ~DtConfiguration () |
| DTOR. | |
| virtual const std::string & | name () const |
| Get the configuration name. | |
| virtual void | setName (const std::string &name) |
| Set the configuration name. | |
| virtual const std::string * | findOptionalParameter (const std::string &name) const |
| Find an optional parameters. | |
| virtual void | setOptionalParameter (const std::string &name, const std::string &value) |
| Set an optional parameter. | |
| virtual void | setOptionalParameters (const ParameterMap &) |
| Set an optional parameters. | |
| virtual void | removeOptionalParameter (const std::string &name) |
| Remove an optional parameter. | |
| const ParameterMap & | optionalParameters () const |
| Get the optional parameters. | |
Public Member Functions inherited from makVrf::DtConfigurableMenuAssembler | |
| DtConfigurableMenuAssembler (makVrv::DtDe &de) | |
| virtual | ~DtConfigurableMenuAssembler () |
| void | setDeleteReferences (bool b) |
| bool | deleteReferences () const |
| void | setLocalOnly (bool b) |
| bool | localOnly () const |
| void | cleanup () |
| makVrv::DtMenuManager & | menuManager () |
| Returns menu manager. | |
| const makVrv::DtMenuManager & | menuManager () const |
| QMenu * | findMenu (const makVrv::DtMenuPath &path) |
| Returns the QMenu object for the given path. | |
| QAction * | findMenuItem (const makVrv::DtMenuPath &path) |
| virtual void | merge (const DtQtMenuAssembler::MenuBuilderMap &) |
| Merges the contents of the supplied menu builder map, adding new entries and replacing existing. | |
| virtual void | merge (const DtQtMenuAssembler::MenuItemBuilderMap &) |
| Merges the contents of the supplied menu item builder map, adding new entries and replacing existing. | |
| void | makeChangesTo (makVrv::DtQtMenuAssembler *c) |
| void | clearMakeChangesTo () |
| virtual QMenuBar * | menuBar () |
| virtual QWidget * | menuWindow () |
| void | setCreateSubMenusForMissingMenus (bool b) |
| If true, for any missing sub-menu item, create a menu builder and add it. Default is false. | |
| virtual void | assembleMenu (const makVrv::DtMenuPath &menuPath) |
| Assemble a menu from the path. | |
Public Member Functions inherited from makVrv::DtQtMenuAssembler | |
| virtual | ~DtQtMenuAssembler () |
| DTOR. | |
| DtMenu * | menuBuilder (const std::string &) const |
| Returns a menu builder given the menu id name. | |
| DtMenuItem * | menuItemBuilder (const std::string &) const |
| Returns a menu item builder given the menu id name. | |
| const MenuBuilderMap & | menuBuilderMap () const |
| const MenuItemBuilderMap & | menuItemBuilderMap () const |
| MenuBuilderMap & | menuBuilderMap () |
| MenuItemBuilderMap & | menuItemBuilderMap () |
| virtual void | merge (const DtQtMenuAssembler::MenuBuilderMap &) |
| Merges the contents of the supplied menu builder map, adding new entries and replacing existing. | |
| virtual void | merge (const DtQtMenuAssembler::MenuItemBuilderMap &) |
| Merges the contents of the supplied menu item builder map, adding new entries and replacing existing. | |
Public Member Functions inherited from makVrv::DtMenuAssembler | |
| virtual | ~DtMenuAssembler () |
| DTOR. | |
| virtual void | assemble (const DtMenuConfiguration &configuration) |
| Assemble a configuration. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Protected Member Functions | |
| virtual void | applyContext (std::string contextName, makVrv::DtMenuConfiguration &config) |
| Internally used function to apply contexts to the configuration. | |
| virtual void | applyRegistrations (makVrv::DtQtMenuAssembler &assembler) |
| Internally used function to apply registrations to the menu assembler. | |
| virtual void | slot_modifyRightClickMenu (makVrv::DtQtMenuAssembler &, makVrv::DtMenuConfiguration &, const makVrv::DtSelectionManager::IdSet &, int, makVrv::DtDe &) |
| Internally used function to handle right click at the time it happens. | |
| virtual void | registerMenu (makVrv::DtMenuItem *) |
| Use registerItem() instead. | |
| virtual void | unregisterMenu (makVrv::DtMenu *, bool deleteBuilder=true) |
| Use unregisterMenu() instead. | |
| virtual void | unregisterMenu (makVrv::DtMenuItem *, bool deleteBuilder=true) |
| Use unregisterItem() instead. | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtMenuConfiguration | |
| typedef std::list< DtMenuPath > | MenuPathList |
| typedef std::set< DtMenuPath > | MenuPathSet |
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) |
| Get an instance of the assembler. | |
Protected Types inherited from makVrv::DtMenuConfiguration | |
| typedef std::map< DtMenuPath, OrderParameters > | MenuPathOrderMap |
The menu assembler and configuration were combined into one class for convenience.
Most users won't really notice this or care.
| 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.
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.
Reimplemented from makVrf::DtSubMenuConfiguration.
|
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 |