VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtSetReactiveTaskDisabledDialog Class Reference

This dialog will request show of all active tasks for the currently selected entities and allow the user to disable one of them. More...

Inheritance diagram for makVrf::DtSetReactiveTaskDisabledDialog:
Inheritance graph
[legend]

Public Member Functions

 DtSetReactiveTaskDisabledDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtSetReactiveTaskDisabledDialog ()
- Public Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface
 DtBaseTaskSetDialogInterface (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtBaseTaskSetDialogInterface ()
virtual void run (const std::vector< makVrv::DtSimEntry * > &)
 Calls setupGui and shows the dialog.
virtual void setOKEnabled (bool)
 Enables/disables OK button.
virtual bool valid () const
 Override to return whether or not extension is valid.
int accepted () const
 0 - Closed without pressing cancel or ok 1 - Closed by ok 2 - Closed by cancel
- Public Member Functions inherited from makVrf::DtTaskSetDialogInterface
 DtTaskSetDialogInterface (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtTaskSetDialogInterface ()
virtual void connectSignals (const std::vector< makVrv::DtSimEntry * > &)
 Setup signals to cancel dialog if all objects deleted that this dialog is representing.
virtual void setSendToRemoteController (bool b)
 Set to true to send the message immediately to the remote controller given the currently selected entities when the dialog was created.
virtual bool sendToRemoteController () const
virtual void selectionChanged (const QString &selection)
 Notify dialog of selection changes from attached dialogs.
virtual void sendSetRequest (std::vector< std::string > names, const DtSetDataRequest &)
 Sends signal to send out set.
virtual bool insertMapFocusHandler (DtMapFocusHandler *, int index=-1)
 If a dialog has manages map focus handlers, inserts this map focus handler into the chain.
virtual void initializeFromAction (DtVrfTaskSetAction *)
 Intializes contents from action as an action could have relevant properties assigned to it containing additional data.
virtual void sendTaskRequest (std::vector< std::string > names, const DtSimTask &)
 Sends signal to send out task.
virtual std::vector< std::string > names () const
virtual void setPartOfPlan (int b)
 0 - Not part of plan dialog 1 - Part of plan dialog 2 - Part of command widget 3 - Part of embedded entity menu
int partOfPlan () const
virtual void cancel ()
 Sends out cancel signal.
virtual QWidgetwidget ()
 Returns the widget.
const std::vector
< makVrv::DtSimEntry * > & 
connectedTo () const
- Public Member Functions inherited from makVrf::DtCommandDialogExtensionInterface
virtual ~DtCommandDialogExtensionInterface ()
virtual bool initiallyBroadcast () const
 Whether or not to initially set to broadcast. Default is false.
virtual void onCancel ()=0
virtual makVrv::DtUnicode broadcastTitle () const

Public Attributes

QWidgetmyCanvas
QVBoxLayout * myContentLayout
QHBoxLayout * myLayout
QLabelmyLabel
QComboBoxmyTasks
- Public Attributes inherited from makVrf::DtBaseTaskSetDialogInterface
QVBoxLayout * myMasterLayout
QHBoxLayout * myButtonLayout
QPushButtonmyOKButton
QPushButtonmyCancelButton
char myAccepted

Protected Slots

virtual void currentTaskChanged ()
- Protected Slots inherited from makVrf::DtBaseTaskSetDialogInterface
virtual void onOk ()
virtual void onCancel ()

Protected Member Functions

virtual QWidgetcontents (const std::vector< makVrv::DtSimEntry * > &data)
 Creates set dialog contents. Called from setupGui.
virtual void sendRequest ()
 Override to send the set or task request.
virtual void setupFrom (const std::vector< makVrv::DtSimEntry * > &d)
 Clears out reactive tasks and sets up gui based on data and reactive tasks for that data.
virtual void setupGui (const std::vector< makVrv::DtSimEntry * > &data)
 Figure out common reactive task script ids by entity type(s) and create the gui based on those.
virtual void setupStatement (const DtSimStatement *)
 Sets up the reactive task dialog with current set information.
virtual void allTasksReceived ()
 Called when all tasks are organized.
virtual void setupDialogAfterTasksReceived ()
 Sets up dialog based on tasks received.
virtual std::string scriptId () const
 Returns the currently selected script id.
- Protected Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface
virtual void postGuiSetup (const std::vector< makVrv::DtSimEntry * > &data)
 Called after setupGui to set up other items in the gui (fill combo boxes, initial text edit, etc)
virtual void initializeItems (const std::vector< makVrv::DtSimEntry * > &data)
 Override for dialogs that need item initialization.
virtual void closeEvent (QCloseEvent *)
 Figure out if a cancelled signal needs to be sent.
virtual bool editStatement (const std::vector< makVrv::DtSimEntry * > &, const DtSimStatement *)
 Edits the current statement. Return true if the statement can be edited.
virtual bool wantsSelectionOfObjectInCommandMode () const
 Override to return false if, when this task is used as part of a simulation command, it does not want to allow to choose an object to apply the command to.
virtual void sendSetRequest (const DtSetDataRequest &)
virtual void sendTaskRequest (const DtSimTask &)
virtual void sendCommandRequest (const DtSimCommandObjectWrapper &)
 Sends signal to send out command.
- Protected Member Functions inherited from makVrf::DtTaskSetDialogInterface
virtual void slot_objectAboutToBeRemoved (makVrv::DtSimObjectEntry &)
virtual std::vector< std::string > commandDialogFiltersFor (const std::vector< makVrv::DtSimEntry * > &data, const DtSimStatement *stmt, int &initialSelection) const
 If part of a command dialog the filters to use for the command dialog selection.

Protected Attributes

DtReactiveTaskOrganizer myReactiveTaskOrganizer
std::string myInitialScriptId

Detailed Description

This dialog will request show of all active tasks for the currently selected entities and allow the user to disable one of them.

Constructor & Destructor Documentation

makVrf::DtSetReactiveTaskDisabledDialog::DtSetReactiveTaskDisabledDialog ( makVrv::DtDe de,
QWidget parent,
const Qt::WindowFlags &  flags = 0 
)
virtual makVrf::DtSetReactiveTaskDisabledDialog::~DtSetReactiveTaskDisabledDialog ( )
virtual

Member Function Documentation

virtual QWidget* makVrf::DtSetReactiveTaskDisabledDialog::contents ( const std::vector< makVrv::DtSimEntry * > &  data)
protectedvirtual

Creates set dialog contents. Called from setupGui.

Implements makVrf::DtBaseTaskSetDialogInterface.

Reimplemented in makVrf::DtSetReactiveTaskPriorityDialog, and makVrf::DtSetReactiveTaskEnabledDialog.

virtual void makVrf::DtSetReactiveTaskDisabledDialog::sendRequest ( )
protectedvirtual

Override to send the set or task request.

Implements makVrf::DtBaseTaskSetDialogInterface.

Reimplemented in makVrf::DtSetReactiveTaskPriorityDialog, and makVrf::DtSetReactiveTaskEnabledDialog.

virtual void makVrf::DtSetReactiveTaskDisabledDialog::setupFrom ( const std::vector< makVrv::DtSimEntry * > &  d)
protectedvirtual

Clears out reactive tasks and sets up gui based on data and reactive tasks for that data.

Reimplemented from makVrf::DtBaseTaskSetDialogInterface.

virtual void makVrf::DtSetReactiveTaskDisabledDialog::setupGui ( const std::vector< makVrv::DtSimEntry * > &  data)
protectedvirtual

Figure out common reactive task script ids by entity type(s) and create the gui based on those.

Reimplemented from makVrf::DtBaseTaskSetDialogInterface.

Reimplemented in makVrf::DtSetReactiveTaskPriorityDialog.

virtual void makVrf::DtSetReactiveTaskDisabledDialog::setupStatement ( const DtSimStatement )
protectedvirtual

Sets up the reactive task dialog with current set information.

Reimplemented from makVrf::DtBaseTaskSetDialogInterface.

Reimplemented in makVrf::DtSetReactiveTaskPriorityDialog, and makVrf::DtSetReactiveTaskEnabledDialog.

virtual void makVrf::DtSetReactiveTaskDisabledDialog::allTasksReceived ( )
protectedvirtual

Called when all tasks are organized.

virtual void makVrf::DtSetReactiveTaskDisabledDialog::setupDialogAfterTasksReceived ( )
protectedvirtual

Sets up dialog based on tasks received.

Reimplemented in makVrf::DtSetReactiveTaskPriorityDialog, and makVrf::DtSetReactiveTaskEnabledDialog.

virtual std::string makVrf::DtSetReactiveTaskDisabledDialog::scriptId ( ) const
protectedvirtual

Returns the currently selected script id.

virtual void makVrf::DtSetReactiveTaskDisabledDialog::currentTaskChanged ( )
protectedvirtualslot

Member Data Documentation

QWidget* makVrf::DtSetReactiveTaskDisabledDialog::myCanvas
QVBoxLayout* makVrf::DtSetReactiveTaskDisabledDialog::myContentLayout
QHBoxLayout* makVrf::DtSetReactiveTaskDisabledDialog::myLayout
QLabel* makVrf::DtSetReactiveTaskDisabledDialog::myLabel
QComboBox* makVrf::DtSetReactiveTaskDisabledDialog::myTasks
DtReactiveTaskOrganizer makVrf::DtSetReactiveTaskDisabledDialog::myReactiveTaskOrganizer
protected
std::string makVrf::DtSetReactiveTaskDisabledDialog::myInitialScriptId
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)