![]() |
VR-Forces 4.2 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) | |
| CTOR. | |
| virtual | ~DtVrfTaskMenu () |
| DTOR. | |
| virtual void | setupMenu (const makVrv::DtMenuConfiguration &initialCreateMenuConfiguration=makVrv::DtMenuConfiguration(), bool useGlobalMenuManager=false) |
| Call to set up menu based upon the given menu structure. | |
| virtual void | recreateMenu () |
| Recreates the menu with new configurations. | |
| virtual void | setTaskMenuProxy (DtTaskMenu *) |
| Set to use this task menu and configuration rather than the one attached to the global de. | |
| virtual DtTaskMenu * | taskMenuProxy () |
Public Member Functions inherited from makVrf::DtVrfTaskSetMenu | |
| DtVrfTaskSetMenu (const std::string &className, const QString &title, QWidget *parent, makVrv::DtDe &) | |
| CTOR. | |
| virtual | ~DtVrfTaskSetMenu () |
| DtTaskSetMenu. | |
| virtual void | setValidate (bool b) |
| virtual void | setPartOfPlanDialog (int b) |
| 0 - Not part of plan dialog 1 - Part of plan dialog 2 - Part of command widget | |
| 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 | 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 |
| void | setParentMenu (DtVrfTaskSetMenu *p) |
| DtVrfTaskSetMenu * | parentMenu () |
| virtual void | clearMenu () |
| Clears out all menu items. | |
| virtual void | slot_sendSetRequest (std::vector< std::string > names, const DtSetDataRequest &s) |
| virtual void | slot_sendTaskRequest (std::vector< std::string > 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 () |
Public Member Functions inherited from makVrf::DtAssembledMenu | |
| DtAssembledMenu (const QString &title, QWidget *parent, makVrv::DtDe &) | |
| CTOR. | |
| virtual | ~DtAssembledMenu () |
| DTOR. | |
| const DtConfigurableMenuAssembler & | assembler () const |
Protected Attributes | |
| DtTaskMenu * | myTaskMenuProxy |
Protected Attributes inherited from makVrf::DtVrfTaskSetMenu | |
| TaskActions | myTaskSetActions |
| makVrv::DtSelectionManager::IdSet | myEntitySet |
| bool | myValidate |
| bool | myMenuItemValidation |
| int | myPartOfPlanDialog |
| bool | mySignalTaskSetRequests |
| bool | mySignalDialogCreation |
| std::vector< DtVrfTaskSetMenu * > | myRadioMenus |
| DtVrfTaskSetMenu * | myParentMenu |
| std::string | myClassName |
| bool | myHideDisabledItems |
| makVrv::DtSelectionManager::IdSet | myValidatedFor |
Additional Inherited Members | |
Public Slots inherited from makVrf::DtVrfTaskSetMenu | |
| virtual void | validate () |
Public Attributes inherited from makVrf::DtVrfTaskSetMenu | |
| boost::signal< void(std::vector < std::string > names, const DtSetDataRequest &)> | signal_sendSetRequest |
| boost::signal< void(std::vector < std::string > names, const DtSimTask &)> | signal_sendTaskRequest |
| boost::signal< void(QAction *)> | signal_validateMenuItem |
| boost::signal< void(int menuItemType, QWidget *, DtVrfTaskSetAction *, const std::vector < makVrv::DtSimEntry * > &, int, DtVrfTaskSetMenu *)> | signal_createTaskSetDialog |
| boost::signal< void(int menuItemType, QWidget *, DtVrfTaskSetAction *, const std::vector < makVrv::DtSimEntry * > &, int, DtVrfTaskSetMenu *)> | signal_createCommandDialog |
Protected Types inherited from makVrf::DtVrfTaskSetMenu | |
| typedef std::map< int, std::vector< QAction * > > | TaskActions |
Protected Member Functions inherited from makVrf::DtVrfTaskSetMenu | |
| 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 | validateMenuItems (int terrainPatchOffset) |
| virtual void | slot_backendUpdated (const DtVrfBackendState &, int) |
| virtual bool | available (int menu, std::vector< int > &l) const |
| virtual bool | shouldAddAsPartOfMenu (const QList< QAction * > &acts, QAction *toMatch) const |
| virtual std::vector< std::string > | whoShouldITask (const std::vector< std::string > &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 bool | updateSubMenuVisibilityState (QMenu *) |
| Hide submenus that have no visible children or show sub menus that have at least one visible child. | |
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 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
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
|
virtual |
Recreates the menu with new configurations.
|
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 |
|
protected |