VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfSimulationCommandDialogManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #if !defined(Q_MOC_RUN)
17 #include <vrfutil/rwUUID.h>
18 #include <vrvUtil/signalslib.h>
19 #endif
20 #include <boost/signals2.hpp>
21 
22 #include <QtCore/QObject>
23 
24 namespace makVrv
25 {
26  class DtDe;
27  class DtSimEntry;
28 }
29 
30 class QWidget;
31 class DtSimStatement;
32 class DtSimCommand;
33 class DtTaskStmt;
34 class DtSimCommandStmt;
35 
36 namespace makVrf
37 {
38  class DtSimulationCommandDialogInterface;
39  class DtVrfSimulationCommandDialogCreator;
40  class DtVrfSimulationCommandAction;
41  class DtCommandAssignmentWidgetInterface;
42  class DtCommandAssignmentWidget;
43 
45  {
46  Q_OBJECT
47 
48  public:
51 
52  virtual void connectSignals(DtCommandAssignmentWidgetInterface*);
53  virtual void disconnectSignals(DtCommandAssignmentWidget*);
54 
55  public:
57  boost::signals2::signal<void (DtCommandAssignmentWidget*)> signal_dialogDestroyed;
58 
59  protected slots:
60  virtual void onDialogDestroyed();
61 
62  protected:
64  };
65 
68  {
69  typedef std::map<std::string, DtVrfSimulationCommandDialogCreator*> DtVrfSimulationCommandDialogCreatorMap;
70 
71  public:
74 
77 
80 
81  public:
85  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(const std::string& menuItemType, QWidget* parent,
86  DtVrfSimulationCommandAction* forAction, const std::vector<makVrv::DtSimEntry*>& data, int partOfPlan);
87  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(const DtSimStatement*, QWidget* parent, int partOfPlan);
88 
91  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(const DtSimCommand* simCommand, QWidget* parent, int partOfPlan);
92 
94  virtual DtSimulationCommandDialogInterface* createCommandDialogFor(const std::string& menuItemType, QWidget* parent);
95 
96  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(
97  QWidget* parent, DtCommandAssignmentWidgetInterface*, int partOfPlan);
98 
99  virtual DtTaskStmt* statementFromSimCommand(const DtSimCommand* simCommand) const;
100 
101  bool dialogInProgress() const
102  {
103  return myDialogInProgress;
104  }
105 
108  virtual DtUUID objectFromStatement(const DtSimCommandStmt*);
109 
110  public:
113  virtual void addDialogCreator(const std::string& menuItemType, DtVrfSimulationCommandDialogCreator*);
114 
116  virtual bool removeDialogCreator(const std::string& menuItemType);
117 
119  virtual bool hasDialogCreator(const std::string& menuItemType);
120 
122  virtual void removeAllDialogCreators();
123 
125  virtual bool statementIsEditable(const DtSimStatement*) const;
126 
127  protected:
128  virtual void slot_onDialogDestroyed(DtCommandAssignmentWidget*);
129 
130  protected:
133  virtual void prepDialog(DtCommandAssignmentWidgetInterface*, DtVrfSimulationCommandAction* forAction);
134 
135  protected:
140  };
141 }
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
Instances of DtSimCommandStmt represent a single sim-command in a DtPlan.
Definition: simCommandStmt.h:32
std::map< std::string, DtVrfSimulationCommandDialogCreator * > DtVrfSimulationCommandDialogCreatorMap
Definition: vrfSimulationCommandDialogManager.h:69
Virtual base class.
Definition: DtVirtualBaseClass.h:19
The Master Scenario Settings Dialog.
Definition: vrfSimulationCommandDialogManager.h:67
Class that is used as a template for task/set dialogs.
Definition: simulationCommandDialogInterface.h:41
A widget class for encapsulating radio commands for tasks or sets.
Definition: commandAssignmentWidget.h:46
makVrv::DtDe & myDe
Definition: vrfSimulationCommandDialogManager.h:63
A widget class for encapsulating radio commands for tasks or sets.
Definition: commandAssignmentWidgetInterface.h:32
Instances of DtTaskStmt represent a single task command.
Definition: taskStmt.h:26
Definition: simulationCommandDialogInterface.h:49
DtVrfSimulationCommandDialogSignalHandler mySimulationCommandDialogSignalHandler
Definition: vrfSimulationCommandDialogManager.h:138
Definition: simulationCommandActions.h:24
Contains makVrv::DtVirtualBaseClass class.
DtSimCommand is an abstract base class from which commands can derive.
Definition: simCommand.h:32
class DtSimStatement:
Definition: simStatement.h:35
Definition: vrfSimulationCommandDialogManager.h:44
bool myDialogInProgress
Definition: vrfSimulationCommandDialogManager.h:139
makVrv::DtDe & myDe
Definition: vrfSimulationCommandDialogManager.h:136
bool dialogInProgress() const
Definition: vrfSimulationCommandDialogManager.h:101
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
DtVrfSimulationCommandDialogCreatorMap myDialogCreatorMap
Definition: vrfSimulationCommandDialogManager.h:137
boost::signals2::signal< void(DtCommandAssignmentWidget *)> signal_dialogDestroyed
Signal sent when the dialog is destroyed.
Definition: vrfSimulationCommandDialogManager.h:57

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)