![]() |
VR-Forces 4.8 Class Documentation
|
Task menu for embedded entities; generates DtEmbeddedTaskForwardTasks which carry a task payload. More...

Public Member Functions | |
| DtEmbeddedEntityTaskMenu (const DtUUID &parent, const DtEmbeddedEntity &entity, makVrv::DtDe &de, const std::string &menuIdName=DtEmbeddedEntityTaskMenuId, int partOfPlanDialog=3) | |
| Constructor. More... | |
| virtual | ~DtEmbeddedEntityTaskMenu () |
| Destructor. More... | |
| virtual QMenu * | createMenu (makVrv::DtDe &, QWidget *parent) |
| Creates a new DtEmbeddedEntityVrfTaskMenu and connects its signal_planTaskCreated to slot_planTaskCreated. More... | |
| virtual void | slot_planTaskCreated (const DtSimTask &task) |
| Connected to DtEmbeddedEntityVrfTaskMenu::signal_planTaskCreated. More... | |
Public Member Functions inherited from makVrf::DtTaskMenu | |
| DtTaskMenu (makVrv::DtDe &, const std::string &menuIdName=DtTaskMenuId) | |
| CTOR. More... | |
| virtual | ~DtTaskMenu () |
| DTOR. More... | |
| virtual DtTaskMenu * | newInstance () |
| virtual int | supportedScriptType (int d) const |
| virtual const char * | supportsToolbarType () const |
| virtual DtVrfTaskSetMenu * | createTaskMenu (QWidget *widgetOwner, QMenuBar *menuOwner=0, int flags=DtScriptedTaskConfigurableMenu::RecreateOnScriptedTaskChange|DtScriptedTaskConfigurableMenu::RecreateMenuOnSelectionChange|DtScriptedTaskConfigurableMenu::SkipInitialMenuSetup) |
Public Member Functions inherited from makVrf::DtScriptedTaskConfigurableMenu | |
| DtScriptedTaskConfigurableMenu (makVrv::DtDe &, const std::string &menuIdName) | |
| CTOR. More... | |
| virtual | ~DtScriptedTaskConfigurableMenu () |
| DTOR. More... | |
| virtual void | setEditMode (bool) |
| If in edit mode shows all scripted task items regardless of show in menu status. Default is false. More... | |
| virtual bool | editMode () const |
| virtual void | setRecreateFlags (RecreateFlags) |
| If true will respond to recreate message. Default is false. More... | |
| virtual void | addScriptedTask (const DtScriptedTaskMetaData &, bool signal=true) |
| virtual void | addScriptedTasks (DtSubMenuConfiguration &, makVrv::DtToolbarConfiguration &, DtConfigurableMenuAssembler &, bool addToolbarMenuItems=true, bool useGlobalMenuManager=false) |
| Adds the scripted tasks into the supplied configuration. More... | |
| virtual void | setScriptedTasks (const ScriptedTasks &, bool signal=true) |
| Sets/gets the scripted tasks to use with this task menu. More... | |
| virtual const ScriptedTasks & | scriptedTasks () const |
| virtual void | setMenuConfiguration (const DtSubMenuConfiguration &) |
| If set use this instead of the default task menu configuration. More... | |
| DtVrfTaskSetMenu * | menu () |
Public Member Functions inherited from makVrf::DtConfigurableMenu | |
| DtConfigurableMenu (makVrv::DtDe &, const std::string &className) | |
| CTOR. More... | |
| virtual | ~DtConfigurableMenu () |
| DTOR. More... | |
| virtual DtSubMenuConfiguration & | menuConfiguration () |
| Returns the configuration for the menu to be used. May be effected directly. More... | |
| virtual DtConfigurableMenuAssembler & | menuAssembler () |
| Returns the assembler for the menu to be used. May be effected directly. More... | |
| virtual void | registerMenu (makVrv::DtMenu *customMenu) |
| Use to register your own complex menu object. More... | |
| virtual void | registerMenuItem (makVrv::DtMenuItem *customMenuItem) |
| Use to register your own complex menu item object. More... | |
| virtual void | createSimpleMenu (std::string menuText, makVrv::DtMenuPath menuIdPath, int weight=-1) |
| virtual void | createSimpleMenuAfter (std::string menuText, makVrv::DtMenuPath menuIdPath, makVrv::DtMenuPath afterIdPath) |
| virtual void | createSimpleMenuBefore (std::string menuText, makVrv::DtMenuPath menuIdPath, makVrv::DtMenuPath beforeIdPath) |
| virtual void | createSimpleMenuItem (std::string itemText, makVrv::DtMenuPath itemIdPath, DtSimpleMenuItemAction *action, void *usr=NULL, int weight=-1) |
| virtual void | createSimpleMenuItemAfter (std::string itemText, makVrv::DtMenuPath itemIdPath, makVrv::DtMenuPath afterIdPath, DtSimpleMenuItemAction *action, void *usr=NULL) |
| virtual void | createSimpleMenuItemBefore (std::string itemText, makVrv::DtMenuPath itemIdPath, makVrv::DtMenuPath beforeIdPath, DtSimpleMenuItemAction *action, void *usr=NULL) |
| virtual void | mergeMenu (makVrv::DtQtMenuAssembler &assembler, makVrv::DtMenuConfiguration &configuration) |
| Merges in the assembler and configuration into the supplied assembler and configuration. More... | |
| virtual void | mergeMenu (makVrv::DtQtMenuAssembler &assembler) |
| Merges in the assembler into the supplied assembler. More... | |
| virtual void | mergeMenu (makVrv::DtMenuConfiguration &configuration) |
| Merges in the configuration into the supplied configuration. This merges all the menu paths together. More... | |
Public Member Functions inherited from makVrv::DtMenu | |
| DtMenu (DtDe &de, const std::string &menuIdName) | |
| CTOR. More... | |
| virtual | ~DtMenu () |
| DTOR. More... | |
| virtual const std::string & | menuIdName () const |
| Get the menu id name, the menu id name is not the same thing as the visible menu text. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Public Attributes | |
| boost::signals2::signal< void(const DtSimTask &)> | signal_planTaskCreated |
| Connected to DtEditEntityPlanWidget::slot_addTaskRequest to add a task to a plan (when partOfPlanDialog == 1). More... | |
Public Attributes inherited from makVrf::DtScriptedTaskConfigurableMenu | |
| boost::signals2::signal< void(DtSubMenuConfiguration &)> | signal_preCreateConfiguration |
| Signal sent right before menu is configured. More... | |
| boost::signals2::signal< void()> | signal_recreateMenu |
| Sent when the task menus need to be recreated because menu configuration has changed. More... | |
Public Attributes inherited from makVrf::DtConfigurableMenu | |
| boost::signals2::signal< void(DtConfigurableMenu *)> | signal_menuRecreated |
| Signal sent when this menu is recreated from it's original creation. More... | |
| boost::signals2::signal< void(QAction *)> | signal_validateMenuItem |
Protected Attributes | |
| DtEmbeddedEntity | myEntity |
| DtUUID | myHost |
| int | myPartOfPlanDialog |
Protected Attributes inherited from makVrf::DtScriptedTaskConfigurableMenu | |
| RecreateFlags | myRecreateFlags |
| ScriptedTasks | myScriptedTasks |
| bool | myEditMode |
| makVrv::DtSignalConnectionManager | myConnectionManager |
| DtSubMenuConfiguration | myConfiguration |
| DtVrfTaskSetMenu * | myMenu |
| std::set< std::string > | myScriptedTasksAddedToMenuAssember |
Protected Attributes inherited from makVrf::DtConfigurableMenu | |
| DtConfigurableMenuAssembler | myAssembler |
| DtSubMenuConfiguration | myConfiguration |
| bool | myInitialized |
| makVrv::DtSignalConnectionManager | myConnections |
Protected Attributes inherited from makVrv::DtMenu | |
| DtDe & | myDe |
| std::string | myMenuIdName |
Additional Inherited Members | |
Public Types inherited from makVrf::DtScriptedTaskConfigurableMenu | |
| enum | RecreateFlags { RecreateNone = 0, RecreateOnScenarioLoad = 0x00000001, RecreateOnScriptedTaskChange = 0x00000002, RecreateToolbars = 0x00000004, UseGlobalMenuManager = 0x00000008, RecreateMenuOnSelectionChange = 0x00000010, SkipInitialMenuSetup = 0x00000020 } |
| typedef std::map< std::string, ScriptedTaskData > | ScriptedTasks |
Static Public Member Functions inherited from makVrf::DtTaskMenu | |
| static DtTaskMenu & | instance (makVrv::DtDe &) |
| static DtTaskMenu * | menuInstance (makVrv::DtDe &) |
| Return a new copy, not the registered copy. More... | |
Static Public Member Functions inherited from makVrf::DtConfigurableMenu | |
| static bool | hasMenuPath (const makVrv::DtMenuConfiguration &menus, const makVrv::DtMenuPath &sourcePath, const std::string &item, makVrv::DtMenuPath &foundPath) |
Protected Member Functions inherited from makVrf::DtScriptedTaskConfigurableMenu | |
| virtual void | scriptIdChanged (const std::string &oldId, const std::string &newId, int action) |
| virtual bool | eventFilter (QObject *o, QEvent *e) |
| virtual void | slot_sendTaskRequest (std::vector< DtUUID > names, const DtSimTask &s) |
| virtual void | slot_sendSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &s) |
| virtual void | menuRecreated () |
| virtual void | clearScriptedTasks () |
| virtual void | scriptedTaskAboutToBeRemoved (std::string id) |
| virtual void | scriptedTaskAdded (std::string id) |
| virtual void | receivedScriptedTasks () |
| virtual void | clearRegisteredMenuAssemblers () |
| virtual void | clearRegisteredMenuAssembler (const std::string &) |
| virtual void | removeAllScriptedTasks (bool signal=true) |
| virtual void | removeScriptedTask (const std::string &id, bool signal=true) |
| virtual std::string | addScriptedTaskMenuLocation (const std::string &scriptedTaskId, const std::string &potentialPath, const QString &menuName, const QString &extMenuName, const QString &toolTip, DtSubMenuConfiguration &configuration, DtConfigurableMenuAssembler &, bool showInMenu=true, bool addToolbarMenuItems=true, bool useGlobalMenuManager=false) |
| This could get added if it is not shown in the menu if it is show in the toolbar. More... | |
| virtual std::string | addScriptedTaskToolbarLocation (const std::string &scriptedTaskId, makVrv::DtToolbarConfiguration &configuration) |
Protected Member Functions inherited from makVrf::DtConfigurableMenu | |
| virtual void | initMenuItems (makVrv::DtDe &de) |
| DtConfigurableMenuAssembler & | assembler () |
| DtSubMenuConfiguration & | configuration () |
| virtual void | createMenuConfiguration (makVrv::DtDe &) |
| Creates the menu configuration by creating the assembler and adding menu items. More... | |
Task menu for embedded entities; generates DtEmbeddedTaskForwardTasks which carry a task payload.
| makVrf::DtEmbeddedEntityTaskMenu::DtEmbeddedEntityTaskMenu | ( | const DtUUID & | parent, |
| const DtEmbeddedEntity & | entity, | ||
| makVrv::DtDe & | de, | ||
| const std::string & | menuIdName = DtEmbeddedEntityTaskMenuId, |
||
| int | partOfPlanDialog = 3 |
||
| ) |
Constructor.
| parentName | Name of the host of the embedded entity |
| entity | The embedded entity to which this menu is attached |
| de | The DtDe, passed down to the base class |
| menuIdName | Defaults to DtEmbeddedEntityTaskMenuId |
| partOfPlanDialog | Based on DtVrfTaskSetMenu::partofPlan dialog |
|
virtual |
Destructor.
|
virtual |
Creates a new DtEmbeddedEntityVrfTaskMenu and connects its signal_planTaskCreated to slot_planTaskCreated.
Reimplemented from makVrf::DtTaskMenu.
|
virtual |
Connected to DtEmbeddedEntityVrfTaskMenu::signal_planTaskCreated.
| boost::signals2::signal<void (const DtSimTask&)> makVrf::DtEmbeddedEntityTaskMenu::signal_planTaskCreated |
Connected to DtEditEntityPlanWidget::slot_addTaskRequest to add a task to a plan (when partOfPlanDialog == 1).
|
protected |
|
protected |
|
protected |