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

Signals | |
| void | edit () |
| void | collapse () |
| void | expand () |
| void | setFormation () |
Public Member Functions | |
| DtFormationRightClickMenu (QWidget *) | |
| virtual void | addMenuItems () |
| Override to add menu items to this context menu. | |
| void | setFormationEditor (DtFormationEditor *f) |
Public Member Functions inherited from DtContextMenu | |
| DtContextMenu (QWidget *parent) | |
| default constructor | |
| virtual | ~DtContextMenu () |
| destructor | |
| virtual void | setOwner (DtBaseWindow *) |
| virtual DtBaseWindow * | owner () const |
| virtual void | setMenuWidget (DtMenuWidget *menuWidget) |
| virtual void | addMenuActionGroup (DtMainMenuType iType, DtMenuItemType iActionGroup, bool addSeparator=false, DtMenuItemType iBeforeType=DtNoMenuItem, DtMenuItemType iAfterType=DtNoMenuItem) |
| Note, these add routine will not replace items if the menu type and group already exist in the list. | |
| virtual void | addMenu (QString menuName, DtMainMenuType iType, bool addSeparator=false, DtMenuItemType iBeforeType=DtNoMenuItem, DtMenuItemType iAfterType=DtNoMenuItem) |
| virtual void | addMenuItem (DtMenuItemType iType, bool addSeparator=false, DtMenuItemType iBeforeType=DtNoMenuItem, DtMenuItemType iAfterType=DtNoMenuItem) |
| virtual void | addMenuForGroup (QString menuName, DtMainMenuType iType, DtMenuItemType iGroup, bool addSeparator, DtMenuItemType iBeforeType=DtNoMenuItem, DtMenuItemType iAfterType=DtNoMenuItem) |
| virtual void | addSeparator (DtMenuItemType iBeforeType=DtNoMenuItem, DtMenuItemType iAfterType=DtNoMenuItem) |
| Simply adds a separator at the current position. | |
| virtual void | removeOccurancesOf (DtMenuItemType iType, DtMenuItemType iActionGroup=DtNoMenuItem) |
| If action group is not -1, only removes a specific type/group match, else removes all occurnaces of that type. | |
| virtual void | removeItem (const QString &name) |
| Removes any item (menu, menu item) that matches the give name. | |
| virtual int | addMenuItem (QString itemName, QObject *slotObj, const char *slot, QString accel=QString::null, bool addSeparator=false, DtMenuItemType iBeforeType=DtNoMenuItem, DtMenuItemType iAfterType=DtNoMenuItem) |
| Allow for adding context items that are created as part of this menu. | |
| virtual void | cleanup () |
| Cleans up allocated memory. | |
Protected Slots | |
| virtual void | editCurrentItem () |
| virtual void | collapseCurrentItem () |
| virtual void | expandCurrentItem () |
| virtual void | setNewFormation () |
Protected Member Functions | |
| virtual void | addedMenuItem (QObject *, const DtContextItems &) |
| Called right after a menu item is added with the item and context. | |
| virtual void | validateEditAction (QAction *) |
| virtual void | validateCollapseAction (QAction *) |
| virtual void | validateExpandAction (QAction *) |
| virtual void | validateSetFormationAction (QAction *) |
Protected Member Functions inherited from DtContextMenu | |
| virtual bool | exists (const DtContextItems &item) |
| Returns true if the item exists. | |
| virtual void | addContextItem (DtContextItems &item, DtMenuItemType iBeforeType=DtNoMenuItem, DtMenuItemType iAfterType=DtNoMenuItem) |
| Adds this new context item before or after the specified types (if not -1) | |
| virtual void | insertBefore (DtContextItems &item, DtMenuItemType iType) |
| Inserts item before the specified type. | |
| virtual void | insertAfter (DtContextItems &item, DtMenuItemType iType) |
| Inserts after the specified type. | |
| virtual const char * | eventMenuContext () const |
| Override to give context for event signaller. | |
| virtual DtMenuItemType | uniqueId () const |
| virtual bool | matchesName (QString lhs, QString rhs) const |
| Returns true if the supplied name matches the menu name of this menu. Will take & into account. | |
Protected Attributes | |
| DtFormationEditor * | myFormationEditor |
| int | myEditItem |
| int | mySetFormationItem |
Protected Attributes inherited from DtContextMenu | |
| DtBaseWindow * | myOwner |
| QList< DtContextItems > | myContextItems |
| QList< QObject * > | myAllocatedItems |
| DtMenuWidget * | myMenuWidget |
| int | myInternalIdCount |
Additional Inherited Members | |
Public Slots inherited from DtContextMenu | |
| virtual bool | createMenu () |
| Returns true if something was created. | |
Static Public Member Functions inherited from DtContextMenu | |
| static DtContextMenu * | create (QWidget *parent) |
| DtFormationRightClickMenu::DtFormationRightClickMenu | ( | QWidget * | ) |
|
virtual |
Override to add menu items to this context menu.
Reimplemented from DtContextMenu.
|
inline |
|
signal |
|
signal |
|
signal |
|
signal |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtual |
Called right after a menu item is added with the item and context.
Reimplemented from DtContextMenu.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |