VR-Forces 4.1.1 Class Documentation
DtVrfSimulationCommandDialogManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtVrfSimulationCommandDialogManager.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
18 
19 #include <vrvUtil/signalslib.h>
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 
44  {
45  Q_OBJECT
46 
47  public:
50 
51  virtual void connectSignals(DtCommandAssignmentWidgetInterface*);
52  virtual void disconnectSignals(DtCommandAssignmentWidget*);
53 
54  public:
56  boost::signal<void (DtCommandAssignmentWidgetInterface*)> signal_dialogDestroyed;
57 
58  protected slots:
59  virtual void onDialogDestroyed();
60 
61  protected:
63  };
64 
67  {
68  typedef std::map<std::string, DtVrfSimulationCommandDialogCreator*> DtVrfSimulationCommandDialogCreatorMap;
69 
70  public:
73 
76 
79 
80  public:
84  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(const std::string& menuItemType, QWidget* parent,
85  DtVrfSimulationCommandAction* forAction, const std::vector<makVrv::DtSimEntry*>& data);
86  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(const DtSimStatement*, QWidget* parent);
87 
90  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(const DtSimCommand* simCommand, QWidget* parent);
91 
92  virtual DtCommandAssignmentWidgetInterface* createCommandDialogFor(QWidget* parent, DtCommandAssignmentWidgetInterface*);
93 
94  virtual DtTaskStmt* statementFromSimCommand(const DtSimCommand* simCommand) const;
95 
96  bool dialogInProgress() const
97  {
98  return myDialogInProgress;
99  }
100 
103  virtual std::string objectNameFromStatement(const DtSimCommandStmt*);
104 
105  public:
108  virtual void addDialogCreator(const std::string& menuItemType, DtVrfSimulationCommandDialogCreator*);
109 
111  virtual bool removeDialogCreator(const std::string& menuItemType);
112 
114  virtual bool hasDialogCreator(const std::string& menuItemType);
115 
117  virtual void removeAllDialogCreators();
118 
120  virtual bool statementIsEditable(const DtSimStatement*) const;
121 
122  protected:
123  virtual void slot_onDialogDestroyed(DtCommandAssignmentWidgetInterface*);
124 
125  protected:
128  virtual void prepDialog(DtCommandAssignmentWidgetInterface*, DtVrfSimulationCommandAction* forAction);
129 
130  public:
132  boost::signal<void (DtCommandAssignmentWidgetInterface*)> signal_dialogCreated;
133 
135  boost::signal<void (DtCommandAssignmentWidgetInterface*)> signal_dialogDestroyed;
136 
137  protected:
142  };
143 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)