VR-Forces 4.2 Class Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtSimulationCommandIssuePlanDialog Class Reference
Inheritance diagram for makVrf::DtSimulationCommandIssuePlanDialog:
Inheritance graph
[legend]

Public Member Functions

 DtSimulationCommandIssuePlanDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtSimulationCommandIssuePlanDialog ()
virtual void selectionChanged (const QString &selection)
 When the commandAssignment widget that owns this extension changes its selection, this dialog needs to be informed so it can update the plan name and object the plan is associated with.
- Public Member Functions inherited from makVrf::DtSimulationCommandDialogInterface
 DtSimulationCommandDialogInterface (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
- 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 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
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 void onCancel ()=0

Protected Member Functions

virtual void sendRequest ()
 Wraps the issuePlanCommand in the DtIssuePlanObjectWrapper and sends it to the parent dialog, the command assignment widget.
virtual void setupStatement (const DtSimStatement *stmt)
 Sets up the dialog and passes the simCommand's existing plan to the plan widget to allow the user to edit it.
virtual bool editStatement (const std::vector< makVrv::DtSimEntry * > &data, const DtSimStatement *s)
 Calls up the parent class.
virtual void slot_send ()
virtual void slot_close ()
- Protected Member Functions inherited from makVrf::DtSimulationCommandDialogInterface
virtual QWidgetcontents (const std::vector< makVrv::DtSimEntry * > &data)
 Creates set dialog contents. Called from setupGui.
- Protected Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface
virtual void setupGui (const std::vector< makVrv::DtSimEntry * > &)
 Sets up the ok/cancel buttons.
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 void setupFrom (const std::vector< makVrv::DtSimEntry * > &s)
 Sets up dialog by asking logic to do it.
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 &)

Protected Attributes

DtIssueEntityPlanWidgetmyPlanWidget

Additional Inherited Members

- Public Attributes inherited from makVrf::DtBaseTaskSetDialogInterface
QVBoxLayout * myMasterLayout
QHBoxLayout * myButtonLayout
QPushButtonmyOKButton
QPushButtonmyCancelButton
char myAccepted
- Protected Slots inherited from makVrf::DtBaseTaskSetDialogInterface
virtual void onOk ()
virtual void onCancel ()

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void makVrf::DtSimulationCommandIssuePlanDialog::selectionChanged ( const QString &  selection)
virtual

When the commandAssignment widget that owns this extension changes its selection, this dialog needs to be informed so it can update the plan name and object the plan is associated with.

Otherwise when the plan is assigned, there is no means of knowing which entity(s) the plan should be assigned to.

Reimplemented from makVrf::DtTaskSetDialogInterface.

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

Wraps the issuePlanCommand in the DtIssuePlanObjectWrapper and sends it to the parent dialog, the command assignment widget.

Implements makVrf::DtBaseTaskSetDialogInterface.

virtual void makVrf::DtSimulationCommandIssuePlanDialog::setupStatement ( const DtSimStatement stmt)
protectedvirtual

Sets up the dialog and passes the simCommand's existing plan to the plan widget to allow the user to edit it.

Reimplemented from makVrf::DtBaseTaskSetDialogInterface.

virtual bool makVrf::DtSimulationCommandIssuePlanDialog::editStatement ( const std::vector< makVrv::DtSimEntry * > &  data,
const DtSimStatement s 
)
protectedvirtual

Calls up the parent class.

Reimplemented from makVrf::DtBaseTaskSetDialogInterface.

virtual void makVrf::DtSimulationCommandIssuePlanDialog::slot_send ( )
protectedvirtual
virtual void makVrf::DtSimulationCommandIssuePlanDialog::slot_close ( )
protectedvirtual

Member Data Documentation

DtIssueEntityPlanWidget* makVrf::DtSimulationCommandIssuePlanDialog::myPlanWidget
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)