VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
editEntityPlanWidgetLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 #include <vrfplan/plan.h>
16 
17 #include <vlpi/simulationAddress.h>
18 
19 #include <boost/signals2.hpp>
20 
21 namespace makVrv
22 {
23  class DtDe;
24 }
25 
27 class DtIfPlan;
28 class QWidget;
29 
30 namespace makVrf
31 {
32  class DtSimCommandObjectWrapper;
33  class DtCommandAssignmentWidgetInterface;
34 
36  {
37  public:
38 
41 
43  virtual ~DtEditEntityPlanWidgetLogic();
44  virtual bool sendPlan(bool reregister = true);
45 
47  virtual void registerPlanCallbacks(const std::vector<DtUUID>& names);
48 
49  protected:
50 
51  virtual void finalizeSetup();
52 
53  virtual void unregisterPlanCallbacks(const std::vector<DtUUID>& names);
54 
56  virtual void requestMultiPlan(const std::vector<DtUUID>& name);
57  virtual void clearPendingPlans();
58 
59  virtual void displayPlan();
60 
61  virtual bool shouldAssignPlan(const DtUUID&) const;
62 
63  virtual void restartPlan();
64  virtual void abandonPlan();
65  virtual bool statementIsEditable(DtSimStatement* stmt) const;
66  virtual bool editPlanStatement(const std::vector<makVrv::DtSimEntry*>&, DtSimStatement* stmt, bool readOnlyMode = false) override;
67 
68  virtual void processReceiveMultiPlan(DtSimMessage*);
69 
71  virtual void slot_onDialogCreated(QWidget* dlg);
72  virtual void slot_onCommandDialogCreated(DtCommandAssignmentWidgetInterface* dlg);
73  virtual void slot_onCommandDialogDestroyed(DtCommandAssignmentWidgetInterface* dlg);
74 
76  virtual void slot_onEditSetRequest(std::vector<DtUUID> names, const DtSetDataRequest&);
77 
79  virtual void slot_onEditTaskRequest(std::vector<DtUUID> names, const DtSimTask&);
80 
81  virtual void slot_onObjectBeingCreated();
82  virtual void slot_onObjectStoppedBeingCreated();
83  virtual void subscribeToPlan(std::vector<DtUUID>);
84 
85  protected:
86  std::vector<DtIfPlan*> myPendingPlans;
87  std::vector<DtUUID> myRequestingMultiPlanFor;
88  boost::signals2::scoped_connection myRegisterPlanInTickConnection;
89  };
90 }
class DtIfPlan:
Definition: ifPlan.h:61
UUID is a unique ID wrapper class.
Definition: uuid.h:59
std::vector< DtUUID > myRequestingMultiPlanFor
Definition: editEntityPlanWidgetLogic.h:87
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
Definition: planWidgetInterface.h:39
A widget class for encapsulating radio commands for tasks or sets.
Definition: commandAssignmentWidgetInterface.h:30
DtSetDataRequest is an abstract base class from which real setDataRequests can derive. It manages the read/write capability; derived classes need only use and register read/writatble data types for derived information.
Definition: setDataRequest.h:41
boost::signals2::scoped_connection myRegisterPlanInTickConnection
Definition: editEntityPlanWidgetLogic.h:88
Definition: editEntityPlanWidgetLogic.h:35
File: simMsg.h.
Definition: simMessage.h:35
std::vector< DtIfPlan * > myPendingPlans
Definition: editEntityPlanWidgetLogic.h:86
class DtIfMultiplePlanResponse:
Definition: ifMultiplePlanResponse.h:32
class DtSimStatement:
Definition: simStatement.h:38
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
Definition: editPlanWidgetLogic.h:33
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)