![]() |
VR-Forces 4.6 Class Documentation
|
Derived from DtVrfTaskMenu to generate DtEmbeddedTaskForwardTasks. More...

Public Member Functions | |
| DtEmbeddedEntityVrfTaskMenu (const DtUUID &host, const DtEmbeddedEntity &entity, const std::string &className, const QString &title, QWidget *parent, makVrv::DtDe &, int partOfPlanDialog=3, DtTaskMenu::RecreateFlags allowRecreation=DtTaskMenu::RecreateNone) | |
| Constructor Connects signal_sendTaskRequest to slot_taskRequest. | |
| virtual | ~DtEmbeddedEntityVrfTaskMenu () |
| Destructor. | |
| virtual makVrv::DtSelectionManager::IdSet | selectionsToUseForTaskSetDialog () const |
| Since there is no data (the object isn't created yet), return an empty list. | |
| virtual void | availableMenuItems (const makVrv::DtSelectionManager::IdSet &selections, std::vector< int > &available, bool noTaskSetValueMeansAll) |
| Overridden to make items available based on the the information in the DtEmbeddedEntitiesListRequestor. | |
Public Member Functions inherited from 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 | ~DtVrfTaskMenu () |
| DTOR. | |
| 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. | |
| virtual | ~DtVrfTaskSetMenu () |
| DtTaskSetMenu. | |
| virtual void | setValidate (bool b) |
| virtual void | setShowAllItems (bool b) |
| Show all menu items regardless of selection. | |
| virtual void | setPartOfPlanDialog (int b) |
| 0 - Not part of plan dialog 1 - Part of plan dialog 2 - Part of command widget 3 - Part of embedded entity menu from the top-level entities menu or the right click menu | |
| 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. | |
| virtual void | setSignalDialogCreation (bool b) |
| Set to true to signal a dialog wants to be created rather than simply creating it. Default is false. | |
| 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. | |
| 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. | |
| bool | alwaysStartAsEnabled () const |
| void | setValidateIfNoPendingRequests (bool b) |
| Validate even if there are prending requests. Default is true. | |
| bool | validateIfNoPendingRequests () const |
| void | setParentMenu (DtVrfTaskSetMenu *p) |
| DtVrfTaskSetMenu * | parentMenu () |
| virtual void | clearMenu () |
| Clears out all menu items. | |
| 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. | |
| const TaskActions & | taskActions () |
| 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. | |
| 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. | |
| DtTaskSetDialogInterface * | currentDialog () |
| virtual bool | hasSupportFor (const DtSetMessageType &) const |
| Returns true if this menu has support for the given set. | |
| virtual bool | hasSupportFor (const DtSimTaskMessageType &) const |
| Returns true if this menu has support for the given task. | |
| virtual bool | hasSupportForActionType (int) const |
| Returns true if there is support for the given action type. | |
| 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. | |
| 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) | |
| virtual void | mergeChangesFrom (const std::string &menu, const DtSubMenuConfiguration &, DtSubMenuConfiguration &, bool maintainOriginalOrder=false) |
| Merges the changes from the source into the configuration. | |
Public Member Functions inherited from makVrf::DtSelectionEnabledMenu | |
| DtSelectionEnabledMenu (const QString &title, QWidget *parent, makVrv::DtDe &) | |
| CTOR. | |
| virtual | ~DtSelectionEnabledMenu () |
| DTOR. | |
| 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. | |
Public Member Functions inherited from makVrf::DtAssembledMenu | |
| DtAssembledMenu (const QString &title, QWidget *parent, makVrv::DtDe &) | |
| CTOR. | |
| virtual | ~DtAssembledMenu () |
| DTOR. | |
| const DtConfigurableMenuAssembler & | assembler () const |
Public Attributes | |
| boost::signal< void(const DtSimTask &)> | signal_planTaskCreated |
| Connected to DtEmbeddedEntityTaskMenu::slot_planTaskCreated. | |
Protected Member Functions | |
| virtual void | slot_taskRequest (std::vector< DtUUID > names, const DtSimTask &task) |
| Connected to signal_sendTaskRequest in the constructor. | |
Protected Member Functions inherited from makVrf::DtVrfTaskMenu | |
| 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. | |
| virtual QString | alternateName (QAction *) const |
| Determines the alternate name for an action if it must be renamed to avoid conflict with another action. | |
| 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. | |
| 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::vector< int > &l) const |
| virtual bool | needsValidation () const |
| virtual makVrv::DtSelectionManager::IdSet | selectionToUseToValidate () const |
| virtual bool | shouldAddAsPartOfMenu (const QList< QAction * > &acts, QAction *toMatch) const |
| virtual std::vector< DtUUID > | whoShouldITask (const std::vector< DtUUID > &name, const DtSimTask &newTask) |
| Given the list of names, see who should be tasked given current setting for asking to abandon task and plan. | |
| 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. | |
Protected Member Functions inherited from makVrf::DtSelectionEnabledMenu | |
| virtual void | initValidationConnections () |
| virtual void | slot_terrainPatchToBeDeleted () |
| virtual void | slot_selectionChanged () |
| virtual bool | terrainLoaded (int terrainCountOffset) const |
Protected Attributes | |
| DtEmbeddedEntity | myEntity |
| DtUUID | myHost |
Additional Inherited Members | |
Public Types inherited from makVrf::DtVrfTaskSetMenu | |
| typedef std::map< int, std::set< QAction * > > | TaskActions |
Public Slots inherited from makVrf::DtVrfTaskSetMenu | |
| virtual void | validate () |
Protected Slots inherited from makVrf::DtVrfTaskSetMenu | |
| virtual void | radioMenuDestroyed () |
| virtual void | dialogDestroyed () |
Derived from DtVrfTaskMenu to generate DtEmbeddedTaskForwardTasks.
| makVrf::DtEmbeddedEntityVrfTaskMenu::DtEmbeddedEntityVrfTaskMenu | ( | const DtUUID & | host, |
| const DtEmbeddedEntity & | entity, | ||
| const std::string & | className, | ||
| const QString & | title, | ||
| QWidget * | parent, | ||
| makVrv::DtDe & | , | ||
| int | partOfPlanDialog = 3, |
||
| DtTaskMenu::RecreateFlags | allowRecreation = DtTaskMenu::RecreateNone |
||
| ) |
Constructor Connects signal_sendTaskRequest to slot_taskRequest.
|
virtual |
Destructor.
|
virtual |
Since there is no data (the object isn't created yet), return an empty list.
Reimplemented from makVrf::DtVrfTaskSetMenu.
|
virtual |
Overridden to make items available based on the the information in the DtEmbeddedEntitiesListRequestor.
Reimplemented from makVrf::DtVrfTaskSetMenu.
|
protectedvirtual |
Connected to signal_sendTaskRequest in the constructor.
Puts the task into a DtEmbeddedTaskForwardTask, sets the embedded entity name to myEntity.myEmbeddedEntityName and then calls signal_planTaskCreated.
| boost::signal<void (const DtSimTask&)> makVrf::DtEmbeddedEntityVrfTaskMenu::signal_planTaskCreated |
Connected to DtEmbeddedEntityTaskMenu::slot_planTaskCreated.
|
protected |
|
protected |