VR-Forces 5.0.2 Developer's Guide
 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 #endif
19 #include <boost/signals2.hpp>
20 
21 #include <QtCore/QObject>
22 
23 namespace makVrv
24 {
25  class DtDe;
26  class DtSimEntry;
27 }
28 
29 class QWidget;
30 class DtSimStatement;
31 class DtSimCommand;
32 class DtTaskStmt;
33 class DtSimCommandStmt;
34 
35 namespace makVrf
36 {
37  class DtSimulationCommandDialogInterface;
38  class DtVrfSimulationCommandDialogCreator;
39  class DtVrfSimulationCommandAction;
40  class DtCommandAssignmentWidgetInterface;
41  class DtCommandAssignmentWidget;
42 
48  {
49  typedef std::map<std::string, DtVrfSimulationCommandDialogCreator*> DtVrfSimulationCommandDialogCreatorMap;
50 
51  public:
54 
57 
60 
61  public:
65  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(const std::string& menuItemType, QWidget* parent,
66  DtVrfSimulationCommandAction* forAction, const std::vector<makVrv::DtSimEntry*>& data, int partOfPlan);
67  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(const DtSimStatement*, QWidget* parent, int partOfPlan);
68 
71  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(const DtSimCommand* simCommand, QWidget* parent, int partOfPlan);
72 
74  virtual DtSimulationCommandDialogInterface* createCommandDialogFor(const std::string& menuItemType, QWidget* parent);
75 
76  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(
77  QWidget* parent, DtCommandAssignmentWidgetInterface*, int partOfPlan);
78 
79  virtual DtTaskStmt* statementFromSimCommand(const DtSimCommand* simCommand) const;
80 
83  virtual DtUUID objectFromStatement(const DtSimCommandStmt*);
84 
85  public:
88  virtual void addDialogCreator(const std::string& menuItemType, DtVrfSimulationCommandDialogCreator*);
89 
91  virtual bool removeDialogCreator(const std::string& menuItemType);
92 
94  virtual bool hasDialogCreator(const std::string& menuItemType);
95 
97  virtual void removeAllDialogCreators();
98 
100  virtual bool statementIsEditable(const DtSimStatement*) const;
101 
102  protected:
105  virtual bool prepDialog(DtCommandAssignmentWidgetInterface*, DtVrfSimulationCommandAction* forAction);
106 
107  protected:
110  };
111 }
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
Instances of DtSimCommandStmt represent a single sim-command in a DtPlan.
Definition: simCommandStmt.h:32
std::map< std::string, DtVrfSimulationCommandDialogCreator * > DtVrfSimulationCommandDialogCreatorMap
Definition: vrfSimulationCommandDialogManager.h:49
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
The Master Scenario Settings Dialog.
Definition: vrfSimulationCommandDialogManager.h:47
Class that is used as a template for task/set dialogs.
Definition: simulationCommandDialogInterface.h:39
Contains the DtUUID class declaration.
A widget class for encapsulating radio commands for tasks or sets.
Definition: commandAssignmentWidgetInterface.h:30
Instances of DtTaskStmt represent a single task command.
Definition: taskStmt.h:30
Definition: simulationCommandDialogInterface.h:47
Definition: simulationCommandActions.h:24
Contains makVrv::DtVirtualBaseClass class.
DtSimCommand is an abstract base class from which commands can derive. It manages the read/write capa...
Definition: simCommand.h:32
class DtSimStatement:
Definition: simStatement.h:38
makVrv::DtDe & myDe
Definition: vrfSimulationCommandDialogManager.h:108
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:70
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
DtVrfSimulationCommandDialogCreatorMap myDialogCreatorMap
Definition: vrfSimulationCommandDialogManager.h:109

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)