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

Public Types | |
| typedef std::map< int, std::set< QAction * > > | TaskActions |
Public Slots | |
| virtual void | validate () |
Public Member Functions | |
| 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 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 const char * | supportedToolbar () const =0 |
| virtual const char * | supportedMenu () const =0 |
| virtual const DtSubMenuConfiguration & | defaultMenuConfiguration () const =0 |
| virtual const makVrv::DtQtMenuAssembler::MenuBuilderMap & | defaultMenuBuilderMap () const =0 |
| virtual const makVrv::DtQtMenuAssembler::MenuItemBuilderMap & | defaultMenuItemBuilderMap () const =0 |
| virtual void | recreateMenu ()=0 |
| virtual DtScriptedTaskConfigurableMenu * | mainMenuInstance ()=0 |
| 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... | |
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 |
Public Attributes | |
| boost::signals2::signal< void(std::vector < DtUUID > names, const DtSetDataRequest &)> | signal_sendSetRequest |
| boost::signals2::signal< void(std::vector < DtUUID > names, const DtSimTask &)> | signal_sendTaskRequest |
| boost::signals2::signal< void(QAction *)> | signal_validateMenuItem |
| boost::signals2::signal< void()> | signal_menuValidated |
| boost::signals2::signal< void(DtTaskSetDialogInterface *)> | signal_dialogCreated |
| Signal emitted when task/set dialog is created the myCurrentDialog will hold this dialog. More... | |
| boost::signals2::signal< void()> | signal_dialogDestroyed |
| Signal sent when the current editing dialog is destroyed. More... | |
| boost::signals2::signal< void(int menuItemType, QWidget *, DtVrfTaskSetAction *, const std::vector < makVrv::DtSimEntry * > &, int, DtVrfTaskSetMenu *)> | signal_createTaskSetDialog |
| boost::signals2::signal< void(int menuItemType, QWidget *, DtVrfTaskSetAction *, const std::vector < makVrv::DtSimEntry * > &, int, DtVrfTaskSetMenu *)> | signal_createCommandDialog |
Public Attributes inherited from makVrf::DtAssembledMenu | |
| boost::signals2::signal< void(DtAssembledMenu *)> | signal_preAssembleMenu |
| boost::signals2::signal< void(DtAssembledMenu *)> | signal_postAssembleMenu |
Protected Slots | |
| virtual void | radioMenuDestroyed () |
| virtual void | dialogDestroyed () |
Protected Member Functions | |
| 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 |
| typedef std::map<int, std::set<QAction*> > makVrf::DtVrfTaskSetMenu::TaskActions |
| makVrf::DtVrfTaskSetMenu::DtVrfTaskSetMenu | ( | const std::string & | className, |
| const QString & | title, | ||
| int | flags, | ||
| QWidget * | parent, | ||
| makVrv::DtDe & | , | ||
| const DtSubMenuConfiguration & | c | ||
| ) |
CTOR.
|
virtual |
DtTaskSetMenu.
|
virtual |
|
virtual |
Show all menu items regardless of selection.
|
virtual |
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 |
|
virtual |
|
virtual |
If set to True, disabled task and set items in the menu will be hidden.
Otherwise, they will simply be disabled but still visible.
|
virtual |
Set to true to signal a dialog wants to be created rather than simply creating it. Default is false.
|
inline |
|
virtual |
|
inline |
|
virtual |
If flag is set to true, signal is sent when a request comes in for a task or set.
If false, sent directly to DtGuiThreadVrfRemoteController
|
inline |
|
inline |
|
inline |
|
virtual |
Always start as enabled, even if there is another task dialog up. Default is false.
|
inline |
|
inline |
Validate even if there are prending requests. Default is true.
|
inline |
|
virtual |
Returns the selection set to use to seed task/set dialogs if there is a selection.
Reimplemented in makVrf::DtEmbeddedEntityVrfTaskMenu, and makVrf::DtEmbeddedEntityVrfSetMenu.
|
inline |
|
inline |
|
virtual |
Clears out all menu items.
|
virtual |
Hide submenus that have no visible children or show sub menus that have at least one visible child.
Returns true if any of the children of the menu are visible
|
inline |
|
virtual |
|
virtual |
|
inline |
|
virtual |
Set to use this task menu and configuration rather than the one attached to the global de.
Useful for creating local testable task menus, such as when editing for scripting tasks
|
virtual |
|
pure virtual |
Implemented in makVrf::DtVrfTaskMenu, and makVrf::DtVrfSetMenu.
|
pure virtual |
Implemented in makVrf::DtVrfTaskMenu, and makVrf::DtVrfSetMenu.
|
pure virtual |
Implemented in makVrf::DtVrfTaskMenu, and makVrf::DtVrfSetMenu.
|
pure virtual |
Implemented in makVrf::DtVrfTaskMenu, and makVrf::DtVrfSetMenu.
|
pure virtual |
Implemented in makVrf::DtVrfTaskMenu, and makVrf::DtVrfSetMenu.
|
pure virtual |
Implemented in makVrf::DtVrfTaskMenu, and makVrf::DtVrfSetMenu.
|
pure virtual |
Implemented in makVrf::DtVrfTaskMenu, and makVrf::DtVrfSetMenu.
|
virtual |
|
virtual |
Called by task menu item to let this menu know a dialog is being edited.
|
inline |
|
virtual |
Returns true if this menu has support for the given set.
|
virtual |
Returns true if this menu has support for the given task.
Returns true if there is support for the given action type.
|
virtual |
|
virtual |
|
virtual |
Sends off signal sent by action.
|
virtual |
Signals that a command dialog wants to be created (on behalf of radio menu)
|
virtual |
Merges the changes from the source into the configuration.
Will need to expand paths to be what create menu is expecting.
|
virtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtual |
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.
|
protectedvirtual |
Determines the alternate name for an action if it must be renamed to avoid conflict with another action.
|
protectedvirtual |
Called when tasks/sets have been updated due to message, revalidate this menu if the entity that it represents has changed.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Implements makVrf::DtSelectionEnabledMenu.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from makVrf::DtSelectionEnabledMenu.
|
protectedvirtual |
|
protectedvirtual |
Calls DtVrfTaskSetManager::available.
If noTaskSetValueMeansAll is true then if there is no entry for the item (or items) then all tasks or sets are used
|
protectedvirtual |
Returns true if the given task, for the given entity type, is filtered by the task categories assigned.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Call to set up menu based upon the given menu structure.
If initialTaskMenuConfiguration is specified, used as the default. Will merge in changes from main task configuration
| boost::signals2::signal<void (std::vector<DtUUID> names, const DtSetDataRequest&)> makVrf::DtVrfTaskSetMenu::signal_sendSetRequest |
| boost::signals2::signal<void (std::vector<DtUUID> names, const DtSimTask&)> makVrf::DtVrfTaskSetMenu::signal_sendTaskRequest |
| boost::signals2::signal<void (QAction*)> makVrf::DtVrfTaskSetMenu::signal_validateMenuItem |
| boost::signals2::signal<void ()> makVrf::DtVrfTaskSetMenu::signal_menuValidated |
| boost::signals2::signal<void (DtTaskSetDialogInterface*)> makVrf::DtVrfTaskSetMenu::signal_dialogCreated |
Signal emitted when task/set dialog is created the myCurrentDialog will hold this dialog.
| boost::signals2::signal<void ()> makVrf::DtVrfTaskSetMenu::signal_dialogDestroyed |
Signal sent when the current editing dialog is destroyed.
Will not be sent if this menu is being destroyed and destroys the dialog as part of it
| boost::signals2::signal<void (int menuItemType, QWidget*, DtVrfTaskSetAction*, const std::vector<makVrv::DtSimEntry*>&, int, DtVrfTaskSetMenu*)> makVrf::DtVrfTaskSetMenu::signal_createTaskSetDialog |
| boost::signals2::signal<void (int menuItemType, QWidget*, DtVrfTaskSetAction*, const std::vector<makVrv::DtSimEntry*>&, int, DtVrfTaskSetMenu*)> makVrf::DtVrfTaskSetMenu::signal_createCommandDialog |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |