![]() |
VR-Forces 5.0.3 Developer's Guide
|
Contains makVrf::DtTaskSetMenu, makVrf::DtVrfTaskSetAction, and makVrf::DtTaskSetMenuItem class. The action that gets invoked when a menu item is selected. The menu item and action are separated.
To get information about this action you can inspect two properties: 1) VrfActionType - This will return the internal id that is used to reference this action (see menuItems.h for hard coded task/set menu items) 2) script_id - If this is a scripted task this will be the string of the scripted task

Public Slots | |
| virtual void | on_aboutToShow () |
Public Member Functions | |
| DtVrfTaskSetAction (QWidget *parent, makVrv::DtDe &) | |
| virtual | ~DtVrfTaskSetAction () |
| void | setParentMenu (DtVrfTaskSetMenu *p) |
| DtVrfTaskSetMenu * | parentMenu () |
| virtual void | slot_onSendSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &) |
| virtual void | slot_onSendTaskRequest (std::vector< DtUUID > names, const DtSimTask &) |
| virtual void | on_triggered () |
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(int menuItemType, QWidget *, DtVrfTaskSetAction *, const std::vector < makVrv::DtSimEntry * > &, bool)> | signal_createTaskSetDialog |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtVrfTaskSetMenu * | myParentMenu |
| makVrf::DtVrfTaskSetAction::DtVrfTaskSetAction | ( | QWidget * | parent, |
| makVrv::DtDe & | |||
| ) |
Constructor specifies the parent which should be a pointer to the makVrf::DtTaskSetMenuItem object. DtDe is required by most GUI components.
|
virtual |
Destructor.
|
inline |
Sets the parent menu which is of type makVrf::DtVrfTaskSetMenu. Inline function.
| p | the parent menu |
|
inline |
Gets the parent menu which is of type makVrf::DtVrfTaskSetMenu. Inline function.
|
virtualslot |
When this is about to show, if this is on the right click menu only, then show it.
|
virtual |
Slot to receive a sendSetRequest. This slot is not hooked up by default.
| names | vector of names of entities |
| request | the set data request |
|
virtual |
Slot to receive a sendTaskRequest. This slot is not hooked up by default.
| names | vector of names of entities |
| request | the task request |
|
virtual |
Function is called by the makVrf::DtVrfTaskSetMenuItem::on_triggered() function. Meant to perform the action of this class.
Reimplemented in makVrf::DtVrfRadioAction.
| boost::signals2::signal<void (std::vector<DtUUID> names, const DtSetDataRequest&)> makVrf::DtVrfTaskSetAction::signal_sendSetRequest |
Boost signal emitted when sending a set request. Other objects can connected to this signal to be notified when slot_onSendSetRequest() is called. Otherwise this isn't emitted by default.
| names | vector of names of entities |
| request | the set data request |
| boost::signals2::signal<void (std::vector<DtUUID> names, const DtSimTask&)> makVrf::DtVrfTaskSetAction::signal_sendTaskRequest |
Boost signal emitted when sending a task request. Other objects can connected to this signal to be notified when slot_onSendTaskRequest() is called. Otherwise this isn't emitted by default.
| names | vector of names of entities |
| request | the task request |
| boost::signals2::signal<void (int menuItemType, QWidget*, DtVrfTaskSetAction*, const std::vector<makVrv::DtSimEntry*>&, bool)> makVrf::DtVrfTaskSetAction::signal_createTaskSetDialog |
Signal emitted when the dialog is created if the parent menu was signaled to create the action. Called by on_triggered() in the condition previously mentioned.
| menuItemType | the integer menu type value |
| parent | the parent widget pointer, likely the menu |
| action | the action, generally this object |
| entries | the selected entities in this dialog |
| plan | whether or not this action is part of a plan dialog or not, true if so, false otherwise. |
|
protected |
|
protected |