![]() |
VR-Forces 4.10 Class Documentation
|
Instance of task menu that will know how to configure itself for tasks. More...

Public Member Functions | |
| DtVrfTaskMenu (const std::string &className, const QString &title, QWidget *parent, makVrv::DtDe &, DtTaskMenu::RecreateFlags allowRecreation=DtTaskMenu::RecreateNone, const DtSubMenuConfiguration &configuration=DtSubMenuConfiguration()) | |
| CTOR. More... | |
| virtual | ~DtVrfTaskMenu () |
| DTOR. More... | |
| virtual void | recreateMenu () |
Public Member Functions inherited from makVrf::DtVrfTaskSetMenu | |
| DtVrfTaskSetMenu (const std::string &className, const QString &title, int flags, QWidget *parent, makVrv::DtDe &, const DtSubMenuConfiguration &c) | |
| CTOR. More... | |
| virtual | ~DtVrfTaskSetMenu () |
| DtTaskSetMenu. More... | |
| virtual void | setValidate (bool b) |
| virtual void | setShowAllItems (bool b) |
| Show all menu items regardless of selection. More... | |
| virtual void | setPartOfPlanDialog (int b) |
| 0 - Not part of plan dialog 1 - Part of plan dialog 2 - Part of command widget and global plan dialog 3 - Part of embedded entity menu from the top-level entities menu or the right click menu More... | |
| virtual void | setEntitySet (const makVrv::DtSelectionManager::IdSet &set) |
| virtual void | setMenuItemValidation (bool b) |
| virtual void | setHideDisabledItem (bool yesNo) |
| If set to True, disabled task and set items in the menu will be hidden. More... | |
| virtual void | setSignalDialogCreation (bool b) |
| Set to true to signal a dialog wants to be created rather than simply creating it. Default is false. More... | |
| bool | signalDialogCreation () const |
| virtual void | setValidationsDisabled (bool) |
| bool | validationsDisabled () const |
| virtual void | setSignalTaskSetRequests (bool b) |
| If flag is set to true, signal is sent when a request comes in for a task or set. More... | |
| bool | signalTaskSetRequests () const |
| int | partOfPlanDialog () const |
| const makVrv::DtSelectionManager::IdSet & | entitySet () const |
| virtual void | setAlwaysStartAsEnabled (bool b) |
| Always start as enabled, even if there is another task dialog up. Default is false. More... | |
| bool | alwaysStartAsEnabled () const |
| void | setValidateIfNoPendingRequests (bool b) |
| Validate even if there are prending requests. Default is true. More... | |
| bool | validateIfNoPendingRequests () const |
| virtual makVrv::DtSelectionManager::IdSet | selectionsToUseForTaskSetDialog () const |
| Returns the selection set to use to seed task/set dialogs if there is a selection. More... | |
| void | setParentMenu (DtVrfTaskSetMenu *p) |
| DtVrfTaskSetMenu * | parentMenu () |
| virtual void | clearMenu () |
| Clears out all menu items. More... | |
| virtual bool | updateSubMenuVisibilityState (QMenu *, bool hasRadio=true) |
| Hide submenus that have no visible children or show sub menus that have at least one visible child. More... | |
| const TaskActions & | taskActions () |
| virtual void | filterByTaskCategory (const DtString &) |
| virtual void | removeFilterByTaskCategory (const DtString &) |
| const std::set< DtString > & | filterByTaskCategories () const |
| virtual std::set< QAction * > | actionsThatSupport (int) const |
| virtual void | setMenuProxy (DtScriptedTaskConfigurableMenu *) |
| Set to use this task menu and configuration rather than the one attached to the global de. More... | |
| virtual DtScriptedTaskConfigurableMenu * | menuProxy () |
| virtual void | sortMenu () |
| virtual void | editingDialog (DtTaskSetDialogInterface *) |
| Called by task menu item to let this menu know a dialog is being edited. More... | |
| DtTaskSetDialogInterface * | currentDialog () |
| virtual bool | hasSupportFor (const DtSetMessageType &) const |
| Returns true if this menu has support for the given set. More... | |
| virtual bool | hasSupportFor (const DtSimTaskMessageType &) const |
| Returns true if this menu has support for the given task. More... | |
| virtual bool | hasSupportForActionType (int) const |
| Returns true if there is support for the given action type. More... | |
| virtual void | slot_sendSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &s) |
| virtual void | slot_sendTaskRequest (std::vector< DtUUID > names, const DtSimTask &s) |
| virtual void | slot_createTaskSetDialog (int menuItemType, QWidget *, DtVrfTaskSetAction *, const std::vector< makVrv::DtSimEntry * > &, int) |
| Sends off signal sent by action. More... | |
| virtual void | signalCommandDialogCreation (int menuItemType, QWidget *parent, DtVrfTaskSetAction *forAction, const std::vector< makVrv::DtSimEntry * > &data, int partOfPlan) |
| Signals that a command dialog wants to be created (on behalf of radio menu) More... | |
| virtual void | mergeChangesFrom (const std::string &menu, const DtSubMenuConfiguration &, DtSubMenuConfiguration &, bool maintainOriginalOrder=false) |
| Merges the changes from the source into the configuration. More... | |
Public Member Functions inherited from makVrf::DtSelectionEnabledMenu | |
| DtSelectionEnabledMenu (const QString &title, QWidget *parent, makVrv::DtDe &) | |
| CTOR. More... | |
| virtual | ~DtSelectionEnabledMenu () |
| DTOR. More... | |
| virtual void | slot_validateMenuItems () |
| virtual void | setBlockSelectionChange (bool b) |
| bool | blockSelectionChange () const |
| const makVrv::DtSelectionManager::IdSet & | validatingFor () const |
| When connecting to the signal_validateMenuItem from the menu signaler, this method will contain the entities being validated. More... | |
| virtual bool | setSelectionSetForValidate (const makVrv::DtSelectionManager::IdSet &selection) |
| Assign myValidatedFor the IdSet parameter If myUseLastSelection is true, myValidatedFor may not be updated, if the IdSet paramater does not contain a valid selection The last selection can be limited to single selection only, according to myUseOnlyLastSingleSelection's value The function return true if myValidatedFor was updated, false if not. More... | |
| virtual bool | validateSelection (const makVrv::DtSelectionManager::IdSet &selection) const |
| Validate if the selection contains a valid VRF object. More... | |
| virtual void | setUseLastSelection (bool useLastSelection) |
| Set/Get the myUseLastSelection flag. More... | |
| virtual bool | useLastSelection () const |
| virtual void | setUseOnlyLastSingleSelection (bool useOnlyLastSingleSelection) |
| Set/Get the myUseOnlyLastSingleSelection flag. More... | |
| virtual bool | useOnlyLastSingleSelection () const |
Public Member Functions inherited from makVrf::DtAssembledMenu | |
| DtAssembledMenu (const QString &title, QWidget *parent, makVrv::DtDe &) | |
| CTOR. More... | |
| virtual | ~DtAssembledMenu () |
| DTOR. More... | |
| const DtConfigurableMenuAssembler & | assembler () const |
Protected Member Functions | |
| virtual const char * | supportedToolbar () const |
| virtual const char * | supportedMenu () const |
| virtual const DtSubMenuConfiguration & | defaultMenuConfiguration () const |
| virtual const makVrv::DtQtMenuAssembler::MenuBuilderMap & | defaultMenuBuilderMap () const |
| virtual const makVrv::DtQtMenuAssembler::MenuItemBuilderMap & | defaultMenuItemBuilderMap () const |
| virtual DtScriptedTaskConfigurableMenu * | mainMenuInstance () |
Protected Member Functions inherited from makVrf::DtVrfTaskSetMenu | |
| virtual void | renameIfDuplicate (QAction *) |
| Given the action, if there is an action with the same name, rename this one based upon either the configured extended name, or if that fails, the script id. More... | |
| virtual QString | alternateName (QAction *) const |
| Determines the alternate name for an action if it must be renamed to avoid conflict with another action. More... | |
| virtual void | revalidate (makVrv::DtUniqueID) |
| Called when tasks/sets have been updated due to message, revalidate this menu if the entity that it represents has changed. More... | |
| virtual bool | eventFilter (QObject *, QEvent *) |
| virtual void | actionAdded (QEvent *) |
| virtual void | addTaskAction (QAction *) |
| virtual void | rebuildToolbar (const std::string &) |
| virtual void | slot_taskSetMenuSortChanged (bool) |
| virtual void | sortMenu (QMenu *) |
| virtual void | validateMenuItems (int terrainPatchOffset) |
| virtual void | slot_backendUpdated (const DtVrfBackendState &, int) |
| virtual bool | available (int menu, std::set< int > &l) const |
| virtual bool | needsValidation () const |
| virtual makVrv::DtSelectionManager::IdSet | selectionToUseToValidate () const |
| virtual void | availableMenuItems (const makVrv::DtSelectionManager::IdSet &selections, std::set< int > &available, bool noTaskSetValueMeansAll) |
| Calls DtVrfTaskSetManager::available. More... | |
| virtual bool | isFilteredByTaskCategories (const DtEntityType &, int) const |
| Returns true if the given task, for the given entity type, is filtered by the task categories assigned. More... | |
| virtual bool | shouldAddAsPartOfMenu (const QList< QAction * > &acts, QAction *toMatch) const |
| virtual void | destroyActions (const QList< QAction * > &actions) |
| virtual void | stateRemoved (const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *state) |
| virtual void | setupMenu (const makVrv::DtMenuConfiguration &initialCreateMenuConfiguration=makVrv::DtMenuConfiguration(), const makVrv::DtToolbarConfiguration &initialCreateToolbarConfiguration=makVrv::DtToolbarConfiguration(), bool useGlobalMenuManager=false, bool recreateToolbars=false) |
| Call to set up menu based upon the given menu structure. More... | |
Protected Member Functions inherited from makVrf::DtSelectionEnabledMenu | |
| virtual void | initValidationConnections () |
| virtual void | slot_terrainPatchToBeDeleted () |
| virtual void | slot_selectionChanged () |
| virtual bool | terrainLoaded (int terrainCountOffset) const |
Instance of task menu that will know how to configure itself for tasks.
Instance of the task menu
| makVrf::DtVrfTaskMenu::DtVrfTaskMenu | ( | const std::string & | className, |
| const QString & | title, | ||
| QWidget * | parent, | ||
| makVrv::DtDe & | , | ||
| DtTaskMenu::RecreateFlags | allowRecreation = DtTaskMenu::RecreateNone, |
||
| const DtSubMenuConfiguration & | configuration = DtSubMenuConfiguration() |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Implements makVrf::DtVrfTaskSetMenu.
|
protectedvirtual |
Implements makVrf::DtVrfTaskSetMenu.
|
protectedvirtual |
Implements makVrf::DtVrfTaskSetMenu.
|
protectedvirtual |
Implements makVrf::DtVrfTaskSetMenu.
|
protectedvirtual |
Implements makVrf::DtVrfTaskSetMenu.
|
protectedvirtual |
Implements makVrf::DtVrfTaskSetMenu.
|
protectedvirtual |
Implements makVrf::DtVrfTaskSetMenu.