VR-Forces 4.1 Class Documentation
List of all members | 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]

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

makVrf::DtAskIfCanTaskDialog::DtAskIfCanTaskDialog ( makVrv::DtDe ,
QWidget parent 
)
virtual makVrf::DtAskIfCanTaskDialog::~DtAskIfCanTaskDialog ( )
virtual

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 ( )
protectedvirtual

Sets up gui elements of dialog.

virtual void makVrf::DtAskIfCanTaskDialog::receiveCurrentTasks ( std::string  ,
const DtVrfCurrentTaskManager::EntityTaskInformation  
)
protectedvirtual

Called in response to a current task request.

virtual DtVrfCurrentTaskManager::DtSimTaskSharedPtr makVrf::DtAskIfCanTaskDialog::willBlock ( const DtSimTask newTask,
const DtVrfCurrentTaskManager::EntityTaskInformation tasks 
) const
protectedvirtual

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

virtual void makVrf::DtAskIfCanTaskDialog::timeout ( )
protectedvirtual

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

virtual void makVrf::DtAskIfCanTaskDialog::askToTask ( )
protectedvirtualslot

Asks to task the next available entity in the queue.

virtual void makVrf::DtAskIfCanTaskDialog::timerCheck ( )
protectedvirtualslot

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

virtual void makVrf::DtAskIfCanTaskDialog::hideMe ( )
protectedvirtualslot

Hides this dialog.

virtual bool makVrf::DtAskIfCanTaskDialog::shouldInterruptTask ( DtVrfVrlinkDataInterfacePtr  )
protectedvirtualslot

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

virtual bool makVrf::DtAskIfCanTaskDialog::shouldAbandonPlan ( DtVrfVrlinkDataInterfacePtr  )
protectedvirtualslot

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

Member Data Documentation

QWidget* makVrf::DtAskIfCanTaskDialog::myWaitingFrame
QLabel* makVrf::DtAskIfCanTaskDialog::myWaitingLabel
QPushButton* makVrf::DtAskIfCanTaskDialog::myCancel
makVrv::DtDe& makVrf::DtAskIfCanTaskDialog::myDe
protected
QVector<std::string> makVrf::DtAskIfCanTaskDialog::myAskingToTask
protected
std::vector<std::string> makVrf::DtAskIfCanTaskDialog::myToTask
protected
DtSimTask* makVrf::DtAskIfCanTaskDialog::myNewTask
protected
NeedToAskMap makVrf::DtAskIfCanTaskDialog::myNeedToAsk
protected
QTimer* makVrf::DtAskIfCanTaskDialog::myCheckTimer
protected
QTime makVrf::DtAskIfCanTaskDialog::myElapsedTimer
protected
int makVrf::DtAskIfCanTaskDialog::mySelectedInterruptAll
protected
int makVrf::DtAskIfCanTaskDialog::mySelectedAbandonAll
protected
QRect makVrf::DtAskIfCanTaskDialog::myGeometry
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)