VR-Forces 4.0.4 Class Documentation
Public Member Functions | Public Attributes | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtAskIfCanTaskDialog Class Reference

Dialog that will present the names of the tasks/plans to be interrupted. More...

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

List of all members.

Public Member Functions

 DtAskIfCanTaskDialog (makVrv::DtDe &, QWidget *parent)
virtual ~DtAskIfCanTaskDialog ()
virtual std::vector< std::string > askIfCanTask (const std::vector< std::string > &names, const DtSimTask &newTask)
 Returns a list of names that are available to task.
virtual int exec ()
 Starts process of asking to interrupt task/plan.

Public Attributes

QWidgetmyWaitingFrame
QLabelmyWaitingLabel
QPushButtonmyCancel

Protected Types

typedef std::map< std::string,
QString > 
NeedToAskMap

Protected Slots

virtual void askToTask ()
 Asks to task the next available entity in the queue.
virtual void timerCheck ()
 Called to see if tasks have come in for those items that this dialog is awaiting task information on.
virtual void hideMe ()
 Hides this dialog.
virtual bool shouldInterruptTask (DtVrfVrlinkDataInterfacePtr)
 Returns true if this object should have it's task interrupted.
virtual bool shouldAbandonPlan (DtVrfVrlinkDataInterfacePtr)
 Returns true if this object should have it's plan abandoned.

Protected Member Functions

virtual void setupGui ()
 Sets up gui elements of dialog.
virtual void receiveCurrentTasks (std::string, const DtVrfCurrentTaskManager::EntityTaskInformation &)
 Called in response to a current task request.
virtual
DtVrfCurrentTaskManager::DtSimTaskSharedPtr 
willBlock (const DtSimTask *newTask, const DtVrfCurrentTaskManager::EntityTaskInformation &tasks) const
 Returns a ask that will be blocked because of the task that wants to be executed.
virtual void timeout ()
 Called when operations for retrieving current taskshave timed out. Abort current asking.

Protected Attributes

makVrv::DtDemyDe
QVector< std::string > myAskingToTask
std::vector< std::string > myToTask
DtSimTaskmyNewTask
NeedToAskMap myNeedToAsk
QTimer * myCheckTimer
QTime myElapsedTimer
int mySelectedInterruptAll
int mySelectedAbandonAll
QRect myGeometry

Detailed Description

Dialog that will present the names of the tasks/plans to be interrupted.

Will ask user if it is ok to continue, and, provide a check box to never ask again


Member Typedef Documentation

typedef std::map<std::string, QString> makVrf::DtAskIfCanTaskDialog::NeedToAskMap [protected]

Constructor & Destructor Documentation


Member Function Documentation

virtual std::vector<std::string> makVrf::DtAskIfCanTaskDialog::askIfCanTask ( const std::vector< std::string > &  names,
const DtSimTask newTask 
) [virtual]

Returns a list of names that are available to task.

virtual int makVrf::DtAskIfCanTaskDialog::exec ( ) [virtual]

Starts process of asking to interrupt task/plan.

virtual void makVrf::DtAskIfCanTaskDialog::setupGui ( ) [protected, virtual]

Sets up gui elements of dialog.

virtual void makVrf::DtAskIfCanTaskDialog::receiveCurrentTasks ( std::string  ,
const DtVrfCurrentTaskManager::EntityTaskInformation  
) [protected, virtual]

Called in response to a current task request.

Returns a ask that will be blocked because of the task that wants to be executed.

virtual void makVrf::DtAskIfCanTaskDialog::timeout ( ) [protected, virtual]

Called when operations for retrieving current taskshave timed out. Abort current asking.

virtual void makVrf::DtAskIfCanTaskDialog::askToTask ( ) [protected, virtual, slot]

Asks to task the next available entity in the queue.

virtual void makVrf::DtAskIfCanTaskDialog::timerCheck ( ) [protected, virtual, slot]

Called to see if tasks have come in for those items that this dialog is awaiting task information on.

virtual void makVrf::DtAskIfCanTaskDialog::hideMe ( ) [protected, virtual, slot]

Hides this dialog.

Returns true if this object should have it's task interrupted.

Returns true if this object should have it's plan abandoned.


Member Data Documentation

QVector<std::string> makVrf::DtAskIfCanTaskDialog::myAskingToTask [protected]
std::vector<std::string> makVrf::DtAskIfCanTaskDialog::myToTask [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)