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

Public Member Functions | |
| DtTMMenuWidget (QWidget *parent=NULL) | |
| virtual | ~DtTMMenuWidget () |
Public Member Functions inherited from DtMenuWidget | |
| DtMenuWidget (QWidget *parent=NULL) | |
| virtual | ~DtMenuWidget () |
| virtual bool | createMenuSystem () |
| virtual DtMenuItemType | typeFromAction (QAction *action) |
| Asks all the menus to see if this QAction is part of their popup system, and, if so, returns the type assocated with it. | |
| virtual DtPopupMenu * | menuFromAction (QAction *) |
| Returns the menu that has the particular action. | |
| virtual QAction * | menuItemForType (DtMenuItemType iType) |
| Asks all the menus if they have a menu item of this type, and, if so, return it. | |
| virtual DtPopupMenu * | menuForType (DtMainMenuType iType) |
| Returns the menu that is of the particular type. | |
| virtual DtPopupMenu * | menuThatHasMenuType (DtMenuItemType iType) |
| Returns the menu that contains the particular menu item. | |
| virtual DtPopupMenu * | menuThatHasActionGroupType (DtMenuItemType iType) |
| Returns the menu that contains the particular action group for the menu item supplied. | |
| virtual DtPopupMenu * | createMenuOfType (DtMainMenuType iType, QWidget *owner) |
| Creates and returns a menu of the specific type without adding it to internal structures. | |
| virtual DtPopupMenu * | initializeMenuOfType (DtMainMenuType iType, QWidget *owner) |
| Creates a new menu object and initializes it with menu items. | |
| virtual bool | createMenu (DtPopupMenu *newMenu) |
| Applies any global removes of menu items and creates the menu items for the menu. | |
| virtual void | updateMenuItems () |
| Cycles through all popup menus, telling them to update as need be. | |
| virtual DtPopupMenu * | menuWithName (const QString &) |
| Returns a menu that has the given menu name. | |
| virtual DtMenuItemType | uniqueId () const |
| Returns a unique id amongst all menus. | |
| virtual DtMainMenuType | uniqueMenuId () const |
| Returns an id (max + 1) for a menu. | |
| virtual DtMainMenuType | insertItem (DtPopupMenu *menu, int index=-1) |
| Inserts the precreated menu (assigning it a new unique id) into internal structures. | |
| virtual QAction * | addMenuItem (const QString &featureName, const QString &item, const QString &addToMenu, DtMenuItemType &retId, bool toggle=false, QObject *actionReceiver=NULL, const char *action=NULL, QObject *validationReceiver=NULL, const char *validation=NULL, const QString &tooltip=QString::null, const QString &accelerator=QString::null, bool addSep=false) |
| Adds a new menu item given the menu item, path to add, action and validator. | |
| virtual void | appendMenuValidator (const QString &menuName, const QString &itemName, QObject *validatorReceiver, char *validator) |
| Adds the specified validator to a list of validators that can be called for the menu item. | |
| virtual bool | removeMenuItem (const QString &item) |
| Removes the menu item specified by the menu path (i.e. | |
| virtual bool | removeMenuGroup (const QString &group) |
| Removes all menu items from the specified group and the group itself specified by the menu path (i.e. | |
| virtual void | recreateMenu (DtMainMenuType menu, bool useBaseMenuIfExists=true) |
| Deletes current and creates a new menu of the specified type in the same spot that the menu was defined to be in. | |
| DtFeatureActionManager * | featureActionManager () const |
| Accessors for featureActionManager. | |
| void | setFeatureActionManager (DtFeatureActionManager *) |
| virtual DtPopupMenu * | menuAt (int iPos) |
| Returns the menu at the specified position. | |
| virtual QString | menuTextForAction (QAction *) |
| Returns text for the menu (or sub-menu) that contains the action. | |
| virtual int | insertPopupMenu (DtMainMenuType iType, DtPopupMenuCreatorFcn fcn, DtMainMenuType iPos=DtNoMenu) |
| Use this function add popup menus that will be created during the "create" call. | |
| virtual int | replacePopupMenu (DtMainMenuType iType, DtPopupMenuCreatorFcn with) |
| Replaces either the menu scheduled for creation or removes the current menu at given position and replaces it with the supplied menu. | |
| virtual bool | removePopupMenu (DtMainMenuType iType, bool permenant=true) |
| Removes a popup menu from either the internal create list (if the menu has not been created yet) or from the current menu bar (if it has been created). | |
| virtual DtPopupMenu * | restoreMenu (DtMainMenuType type) |
| Creates the popup menu (if it does not currently exist) and inserts it at the position that it exists in the ordered creator list. | |
| virtual void | removeMenuAtPosition (int iPos, bool freeMemory=false) |
| Removes the menu item at the specified poitions. | |
| virtual QHash< DtMainMenuType, DtPopupMenu * > & | popupMenus () |
| Returns the popup menu objects list. | |
| virtual void | swapMenus (DtMainMenuType iA, DtMainMenuType iB) |
| Swaps menu A with menu B (positionally). If created also swaps live. | |
Static Public Member Functions | |
| static DtMenuWidget * | create (QWidget *parent=NULL) |
| Creates a new instance of this object. | |
Static Public Member Functions inherited from DtMenuWidget | |
| static void | globalInsertPopupMenu (DtMainMenuType iType, DtPopupMenuCreatorFcn fcn, DtMainMenuType iAfterType=DtNoMenu) |
| Use these function to effect all menus created in the system. | |
| static void | globalReplacePopupMenu (DtMainMenuType iType, DtPopupMenuCreatorFcn with) |
| Replaces the menu with the supplied creator with the new menu creator. | |
| static void | globalRemovePopupMenu (DtMainMenuType iType) |
| Do not create the menu at this slot when creating menus. | |
| static void | globalSwapMenuPositions (DtMainMenuType iA, DtMainMenuType iB) |
| Will swap the positions of menu item A with B. | |
| static void | globalCreateOnlyItemsForMenu (DtMainMenuType iType, QList< DtMenuItemType > menuItems) |
| Use this call to schedule to only create the specified menu items for the particular menu. | |
Protected Member Functions | |
| virtual bool | init (DtFeatureActionManager *) |
| Menus created by position are: File Menu – tmFileMenu.h View Menu – tmViewMenu.h Navigation Menu – tmNavigationMenu.h Options Menu – tmOptionsMenu.h. | |
Protected Member Functions inherited from DtMenuWidget | |
| virtual void | modifyLocalMenuWithGlobalChanges () |
| Called from the create routine, takes the local init of this menu and applies any changes added at the global level. | |
| virtual DtPopupMenu * | createMenu (DtPopupMenuCreatorFcn fcn, DtMainMenuType iType, int iPos=-1, bool initializeOnly=false, DtPopupMenu *menuBase=NULL) |
| Creates a new menu item and puts it at position. If position is -1, it is appened. | |
| virtual int | positionOfCreator (DtPopupMenuCreatorFcn fcn) |
| Returns the position of the creator function in internal lists. | |
| virtual int | positionOfCreator (DtMainMenuType iType) |
| virtual DtMainMenuType | typeForCreator (DtPopupMenuCreatorFcn fcn) |
| Returns the type of the menu for the specified creator. | |
| virtual void | removeOrderedCreator (int iPos) |
| Removes a creator from the ordered list. | |
| virtual void | insertOrderedCreator (DtPopupMenuCreatorFcn, int iPos) |
| Inserts a creator into the ordered list at the specified position (-1 appends) | |
Additional Inherited Members | |
Public Slots inherited from DtMenuWidget | |
| virtual void | validateMenuItems () |
| slots | |
Signals inherited from DtMenuWidget | |
| void | validate () |
| signals | |
| void | menuRecreated (DtMainMenuType) |
| Emitted when a menu is recreated via the recreateMenu method. | |
Protected Attributes inherited from DtMenuWidget | |
| QList< DtPopupMenuCreatorFcn > | myOrderedCreators |
| QHash< DtMainMenuType, DtPopupCreator > | myPopupMenuCreators |
| QHash< DtMainMenuType, DtPopupMenu * > | myPopupMenus |
| bool | myCreated |
| QWidget * | myOwner |
| bool | myGloballyModified |
| DtFeatureActionManager * | myFeatureActionManager |
Static Protected Attributes inherited from DtMenuWidget | |
| static QList< DtGlobalChange > | myGlobalPopups |
| DtTMMenuWidget::DtTMMenuWidget | ( | QWidget * | parent = NULL | ) |
|
virtual |
|
protectedvirtual |
Menus created by position are: File Menu – tmFileMenu.h View Menu – tmViewMenu.h Navigation Menu – tmNavigationMenu.h Options Menu – tmOptionsMenu.h.
Reimplemented from DtMenuWidget.
|
static |
Creates a new instance of this object.
Reimplemented from DtMenuWidget.