VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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.
virtual void registerPlanCallbacks (const std::vector< DtUUID > &names)
 Override as this plan has nothing to subscribe to until it is issued to another entity, then that entity will need to subscribe to its own plan to get updates.
- 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
virtual void setPlanIsModified (bool)
- Public Member Functions inherited from makVrf::DtBasePlanWidgetLogic
 DtBasePlanWidgetLogic (makVrv::DtDe &de, DtPlanWidgetInterface *iFace)
 CTOR.
virtual ~DtBasePlanWidgetLogic ()
 virtual DTOR
virtual bool globalPlan () const
virtual void printPlan ()
 Prints plan.
virtual void copyPlan ()
 Copies plan to clipboard.
virtual void setPlanName (const DtUUID &)
virtual const DtUUIDplanName () 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< DtUUID > &names)
 Sets up the plan widget to allow user to add/edit it.
virtual bool isWatching (const DtUUID &) 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 unregisterPlanCallbacks (const std::vector< DtUUID > &names)
virtual void requestMultiPlan (const std::vector< DtUUID > &name)
 Requests plans for all named items.
virtual void clearPendingPlans ()
virtual void displayPlan ()
virtual bool shouldAssignPlan (const DtUUID &) 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_onEditSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &)
 Slot called when a set has been edited.
virtual void slot_onEditTaskRequest (std::vector< DtUUID > 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 bool planIsModified () const
virtual void processReceivePlan (const DtUUID &, bool isGlobal, const std::vector< DtSimStatement * > &statements)
virtual void processReceiveCurrentStatement (const DtUUID &, bool isGlobal, DtPlanStatus status)
virtual void processReceivePlanComplete (const DtUUID &, bool isGlobal)
virtual void processPlanStatement (const DtUUID &, bool isGlobal, DtPlanStatus status)
virtual void reissueStatementIds (DtSimStatement *stmt)
 When copying a subblock of statements the clone function of the simstatement doesn't add new statementIds so we have to do that afterwards.
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 DtVrfObjectManipulationHandlerBaseClass::ObjectManipulationData &)
virtual void slot_stoppedObjectCreation ()
virtual void finalizeTacticalGraphicObjectCreation (const DtVrfObjectManipulationHandlerBaseClass::ObjectManipulationData &)
virtual void finalizeEntityObjectCreation (const DtVrfObjectManipulationHandlerBaseClass::ObjectManipulationData &)
virtual bool editing () const
virtual void slot_onDialogDestroyed (void *)
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 void cancel (bool force=false)
 Called to cancel. Force, it true, will force the cancel to happen even if plan is modified.
virtual bool isGlobalPlan () const
 Needed for conditionals. Default is false.
- 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 std::vector< DtSimStatement * > &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< DtUUIDmyRequestingMultiPlanFor

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::registerPlanCallbacks ( const std::vector< DtUUID > &  names)
virtual

Override as this plan has nothing to subscribe to until it is issued to another entity, then that entity will need to subscribe to its own plan to get updates.

Reimplemented from makVrf::DtEditEntityPlanWidgetLogic.

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

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

Reimplemented from makVrf::DtEditPlanWidgetLogic.

virtual bool makVrf::DtIssueEntityPlanWidgetLogic::isWatching ( const DtUUID ) 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 Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)