VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
15 #include <vrfutil/rwUUID.h>
16 #include <vrvUtil/signalslib.h>
17 
18 #include <QtCore/QObject>
19 
20 namespace makVrv
21 {
22  class DtDe;
23  class DtSimEntry;
24 }
25 
26 class QWidget;
27 class DtSimStatement;
28 class DtSimCommand;
29 class DtTaskStmt;
30 class DtSimCommandStmt;
31 
32 namespace makVrf
33 {
34  class DtSimulationCommandDialogInterface;
35  class DtVrfSimulationCommandDialogCreator;
36  class DtVrfSimulationCommandAction;
37  class DtCommandAssignmentWidgetInterface;
38  class DtCommandAssignmentWidget;
39 
41  {
42  Q_OBJECT
43 
44  public:
47 
48  virtual void connectSignals(DtCommandAssignmentWidgetInterface*);
49  virtual void disconnectSignals(DtCommandAssignmentWidget*);
50 
51  public:
53  boost::signal<void (DtCommandAssignmentWidgetInterface*)> signal_dialogDestroyed;
54 
55  protected slots:
56  virtual void onDialogDestroyed();
57 
58  protected:
60  };
61 
64  {
65  typedef std::map<std::string, DtVrfSimulationCommandDialogCreator*> DtVrfSimulationCommandDialogCreatorMap;
66 
67  public:
70 
73 
76 
77  public:
81  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(const std::string& menuItemType, QWidget* parent,
82  DtVrfSimulationCommandAction* forAction, const std::vector<makVrv::DtSimEntry*>& data, int partOfPlan);
83  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(const DtSimStatement*, QWidget* parent, int partOfPlan);
84 
87  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(const DtSimCommand* simCommand, QWidget* parent, int partOfPlan);
88 
89  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(
90  QWidget* parent, DtCommandAssignmentWidgetInterface*, int partOfPlan);
91 
92  virtual DtTaskStmt* statementFromSimCommand(const DtSimCommand* simCommand) const;
93 
94  bool dialogInProgress() const
95  {
96  return myDialogInProgress;
97  }
98 
101  virtual DtUUID objectFromStatement(const DtSimCommandStmt*);
102 
103  public:
106  virtual void addDialogCreator(const std::string& menuItemType, DtVrfSimulationCommandDialogCreator*);
107 
109  virtual bool removeDialogCreator(const std::string& menuItemType);
110 
112  virtual bool hasDialogCreator(const std::string& menuItemType);
113 
115  virtual void removeAllDialogCreators();
116 
118  virtual bool statementIsEditable(const DtSimStatement*) const;
119 
120  protected:
121  virtual void slot_onDialogDestroyed(DtCommandAssignmentWidgetInterface*);
122 
123  protected:
126  virtual void prepDialog(DtCommandAssignmentWidgetInterface*, DtVrfSimulationCommandAction* forAction);
127 
128  public:
130  boost::signal<void (DtCommandAssignmentWidgetInterface*)> signal_dialogCreated;
131 
133  boost::signal<void (DtCommandAssignmentWidgetInterface*)> signal_dialogDestroyed;
134 
135  protected:
140  };
141 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)