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

Public Member Functions

 DtIssueEntityPlanWidgetLogic (makVrv::DtDe &de, DtPlanWidgetInterface *iFace)
 CTOR.
virtual ~DtIssueEntityPlanWidgetLogic ()
 virtual DTOR
virtual bool sendPlan (bool reregister=true)
 Overriden so that the plan is not sent directly.
virtual void close ()
virtual const DtPlanplan () const
virtual void setPlan (DtPlan *plan)
 Since this is spawned from a simCommand request, when the user wants to edit that simCommand the plan to be edited will be in the simCommand, we can't request the plan from the entity since that entity may not exist yet, so we set the plan from the simCommand instead.
- Public Member Functions inherited from makVrf::DtEditEntityPlanWidgetLogic
 DtEditEntityPlanWidgetLogic (makVrv::DtDe &de, DtPlanWidgetInterface *iFace)
 CTOR.
virtual ~DtEditEntityPlanWidgetLogic ()
 virtual DTOR
- Public Member Functions inherited from makVrf::DtEditPlanWidgetLogic
 DtEditPlanWidgetLogic (makVrv::DtDe &de, DtPlanWidgetInterface *iFace)
 CTOR.
virtual ~DtEditPlanWidgetLogic ()
 virtual DTOR
- Public Member Functions inherited from makVrf::DtBasePlanWidgetLogic
 DtBasePlanWidgetLogic (makVrv::DtDe &de, DtPlanWidgetInterface *iFace)
 CTOR.
virtual ~DtBasePlanWidgetLogic ()
 virtual DTOR
virtual void printPlan ()
 Prints plan.
virtual void copyPlan ()
 Copies plan to clipboard.
virtual void setPlanName (const QString &)
virtual QString planName () const
virtual void accept ()
 Accepts contents of dialog.
virtual void connectSignals (const std::vector< makVrv::DtSimEntry * > &s)
 Connects up watch on deletion signal from simData and then watches deletions.
virtual void setTitle ()

Protected Member Functions

virtual void processReceiveMultiPlan (DtIfMultiplePlanResponse *rsp)
virtual void requestPlan (const std::vector< std::string > &names)
 Sets up the plan widget to allow user to add/edit it.
virtual bool isWatching (const std::string &) const
 Override base class since the entity we're issuing the plan to might not exist yet.
virtual void displayPlanStatusString (DtPlanStatus status)
 In this widget we are not executing a plan, merely making a plan to issue to an entity hence there is no need for displaying a plan status.
- Protected Member Functions inherited from makVrf::DtEditEntityPlanWidgetLogic
virtual void registerPlanCallbacks (const std::vector< std::string > &names)
 requests plans and sets up callbacks
virtual void unregisterPlanCallbacks (const std::vector< std::string > &names)
virtual void requestMultiPlan (const std::vector< std::string > &name)
 Requests plans for all named items.
virtual void clearPendingPlans ()
virtual void displayPlan ()
virtual bool shouldAssignPlan (const std::string &name) const
virtual void restartPlan ()
virtual void abandonPlan ()
virtual bool statementIsEditable (DtSimStatement *stmt) const
virtual bool editPlanStatement (const std::vector< makVrv::DtSimEntry * > &, DtSimStatement *stmt)
virtual void processReceiveMultiPlan (DtSimMessage *)
virtual void slot_onDialogCreated ()
 Will tell edit plan widget to disable its menus.
virtual void slot_onDialogDestroyed ()
 Will tell edit plan widget to enable its menus.
virtual void slot_onEditSetRequest (std::vector< std::string > names, const DtSetDataRequest &)
 Slot called when a set has been edited.
virtual void slot_onEditTaskRequest (std::vector< std::string > names, const DtSimTask &)
 Slot called when a task has been edited.
virtual void slot_onObjectBeingCreated ()
virtual void slot_onObjectStoppedBeingCreated ()
- Protected Member Functions inherited from makVrf::DtEditPlanWidgetLogic
virtual void setPlanIsModified (bool)
virtual bool planIsModified () const
virtual void processReceivePlan (const DtString &name, bool isGlobal, const DtList &statements)
virtual void processReceiveCurrentStatement (const DtString &name, bool isGlobal, DtPlanStatus status)
virtual void processReceivePlanComplete (const DtString &name, bool isGlobal)
virtual void processPlanStatement (const DtString &name, bool isGlobal, DtPlanStatus status)
virtual void addStatementAfter (DtSimStatement *stmt, const DtPlanListBoxItem *listItem)
 Add a new statement after another statement.
virtual void addConditional (const DtSimStatement &stmt)
 Clones statement then adds it after current statement.
virtual void planRequestComplete ()
 Called following a requestPlan after a complete plan has been received.
virtual void planSelectionChanged ()
virtual void replacePlan ()
virtual void enableReplacePlan ()
virtual bool deleteStatement (const DtPlanListBoxItem *)
virtual void deleteAllStatements ()
virtual void addSetRequest (const DtSetDataRequest &)
virtual void addTaskRequest (const DtSimTask &)
virtual void addCommandRequest (DtSimCommand &)
virtual void replaceStatement (DtSimStatement *stmt, DtPlanListBoxItem *listItem)
virtual void editCurrentPlanStatement (const std::vector< makVrv::DtSimEntry * > &)
virtual bool editConditionalExpression (int type, const DtSimCondExpr *stmt, const std::vector< makVrv::DtSimEntry * > &data)
virtual void editPlanStatementFor (const DtEntityType &t, const DtCreateObjectCommand *simStmt)
virtual void editPlanStatementForTacticalGraphic (const DtCreateObjectCommand *simStmt)
virtual void editPlanStatementForEntity (const DtCreateObjectCommand *simStmt)
virtual void finalizeObjectCreation (const DtEntityType &, std::string name, int, const std::vector< DtVector > &, double, bool, bool)
virtual void slot_stoppedObjectCreation ()
virtual void finalizeTacticalGraphicObjectCreation (const DtEntityType &t, int f, const std::vector< DtVector > &p, const QString &name)
virtual void finalizeEntityObjectCreation (const DtEntityType &t, int f, const std::vector< DtVector > &p, double entityHeading, bool isClampedToGround, bool isAggregated, const QString &name)
virtual void slot_onConditionEditingComplete (const DtSimStatement &)
virtual void slot_onEditSimCommandRequest (const DtSimCommandObjectWrapper &)
 Slot called when a sim command has been edited.
virtual void slot_objectCreateComplete ()
virtual bool globalPlan () const
virtual void cancel (bool force=false)
 Called to cancel. Force, it true, will force the cancel to happen even if plan is modified.
- Protected Member Functions inherited from makVrf::DtBasePlanWidgetLogic
virtual void receivedPlanCallback (DtSimMessage *)
virtual void receivedPlanStatementCallback (DtSimMessage *)
virtual DtPlanListBoxItemfindItemByIndex (int statementIndex)
 Returns the list box item which represents the statement refered to by the provided index number.
DtPlanListBoxItemfindLastItemByIndex (int statementIndex)
 Returns the last item in the list that has the specified statement index.
virtual void addStatementsToPlan (const DtList &statements, bool append)
 Adds the statements from the statement list to myPlan.
virtual void displayStatement (const DtStmtIndex &stmt, const DtPlanListBoxItem *parentItem)
virtual void displayBlock (DtSimBlock *block, const DtPlanListBoxItem *parentItem)
virtual void clearDisplay ()
virtual void clearAllStatements ()
virtual void slot_objectAboutToBeRemoved (makVrv::DtSimObjectEntry &)

Additional Inherited Members

- Protected Attributes inherited from makVrf::DtEditEntityPlanWidgetLogic
std::vector< DtIfPlan * > myPendingPlans
std::vector< std::string > myRequestingMultiPlanFor

Constructor & Destructor Documentation

makVrf::DtIssueEntityPlanWidgetLogic::DtIssueEntityPlanWidgetLogic ( makVrv::DtDe de,
DtPlanWidgetInterface iFace 
)

CTOR.

virtual makVrf::DtIssueEntityPlanWidgetLogic::~DtIssueEntityPlanWidgetLogic ( )
virtual

virtual DTOR

Member Function Documentation

virtual bool makVrf::DtIssueEntityPlanWidgetLogic::sendPlan ( bool  reregister = true)
virtual

Overriden so that the plan is not sent directly.

Instead it will be sent to the issue plan sim command to be added to the calling plan(global or another entity's plan).

Reimplemented from makVrf::DtEditEntityPlanWidgetLogic.

virtual void makVrf::DtIssueEntityPlanWidgetLogic::close ( )
virtual
virtual const DtPlan* makVrf::DtIssueEntityPlanWidgetLogic::plan ( ) const
virtual
virtual void makVrf::DtIssueEntityPlanWidgetLogic::setPlan ( DtPlan plan)
virtual

Since this is spawned from a simCommand request, when the user wants to edit that simCommand the plan to be edited will be in the simCommand, we can't request the plan from the entity since that entity may not exist yet, so we set the plan from the simCommand instead.

virtual void makVrf::DtIssueEntityPlanWidgetLogic::processReceiveMultiPlan ( DtIfMultiplePlanResponse rsp)
protectedvirtual
virtual void makVrf::DtIssueEntityPlanWidgetLogic::requestPlan ( const std::vector< std::string > &  names)
protectedvirtual

Sets up the plan widget to allow user to add/edit it.

Reimplemented from makVrf::DtEditPlanWidgetLogic.

virtual bool makVrf::DtIssueEntityPlanWidgetLogic::isWatching ( const std::string &  ) const
protectedvirtual

Override base class since the entity we're issuing the plan to might not exist yet.

Reimplemented from makVrf::DtEditPlanWidgetLogic.

virtual void makVrf::DtIssueEntityPlanWidgetLogic::displayPlanStatusString ( DtPlanStatus  status)
protectedvirtual

In this widget we are not executing a plan, merely making a plan to issue to an entity hence there is no need for displaying a plan status.

Override as a no-opt Puts the appropriate string in the "Plan Status" label on the window.

Reimplemented from makVrf::DtBasePlanWidgetLogic.


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)