VR-Forces 4.2 Class Documentation
DtSimulationCommandActions.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: DtSimulationCommandActions.h,v $ $Revision: 1.2 $ $State: Exp $
7 *******************************************************************************/
8 
11 
14 
15 #pragma once
16 
18 #include <vrvCoreQt/DtMenuItem.h>
19 
20 #include <QtGui/QAction>
21 
22 class DtSimCommand;
23 
24 namespace makVrf
25 {
26  class DtVrfSimulationCommandMenu;
27  class DtSimCommandObjectWrapper;
28 
30  {
31  Q_OBJECT
32 
33  public:
36 
37  void setParentMenu(DtVrfSimulationCommandMenu* p)
38  {
39  myParentMenu = p;
40  }
41 
43  {
44  return myParentMenu;
45  }
46 
47  void setCommandAction(const std::string& s)
48  {
49  myCommandAction = s;
50  }
51 
52  const std::string& commandAction() const
53  {
54  return myCommandAction;
55  }
56 
57  public:
58  virtual void slot_onSimCommandActivated(const DtSimCommandObjectWrapper&);
59  boost::signal<void (const DtSimCommandObjectWrapper&)> signal_simCommandActivated;
60 
61  protected:
63  std::string myCommandAction;
64  };
65 
68 
69  class DT_DLL_VRFGUICOREQT DtVrfSimulationCommand : public makVrv::DtMenuItem
70  {
71  Q_OBJECT
72 
73  public:
74  DtVrfSimulationCommand(const std::string&, makVrv::DtDe&);
75  virtual ~DtVrfSimulationCommand();
76 
77  protected:
78  virtual QAction* registerMenuItem(DtVrfSimulationCommandAction* action, const std::string& commandAction);
79  virtual void on_triggered();
80 
81  protected:
82  makVrv::DtDe& myDe;
83  };
84 
86  {
87  Q_OBJECT
88 
89  public:
90  //CTOR
91  DtSimulationCommandAbandonPlan(makVrv::DtDe& de);
92 
93  //DTOR
95 
97  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
98  };
99 
101  {
102  Q_OBJECT
103 
104  public:
105  //CTOR
106  DtSimulationCommandComment(makVrv::DtDe& de);
107 
108  //DTOR
109  virtual ~DtSimulationCommandComment();
110 
112  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
113  };
114 
116  {
117  Q_OBJECT
118 
119  public:
120  //CTOR
121  DtSimulationCommandChangeHostility(makVrv::DtDe& de);
122 
123  //DTOR
125 
127  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
128  };
129 
131  {
132  Q_OBJECT
133 
134  public:
135  //CTOR
136  DtSimulationCommandSetTimeOfDay(makVrv::DtDe& de);
137 
138  //DTOR
140 
142  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
143  };
144 
146  {
147  Q_OBJECT
148 
149  public:
150  //CTOR
151  DtSimulationCommandSetGlobalWeather(makVrv::DtDe& de);
152 
153  //DTOR
155 
157  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
158  };
159 
161  {
162  Q_OBJECT
163 
164  public:
165  //CTOR
166  DtSimulationCommandDelete(makVrv::DtDe& de);
167 
168  //DTOR
169  virtual ~DtSimulationCommandDelete();
170 
172  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
173  };
174 
175 
178  {
179  Q_OBJECT
180 
181  public:
182  //CTOR
183  DtSimulationCommandSelfDelete(makVrv::DtDe& de);
184 
185  //DTOR
187 
189  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
190 
193  virtual void on_triggered();
194  };
195 
197  {
198  Q_OBJECT
199 
200  public:
201  //CTOR
202  DtSimulationCommandRestartPlan(makVrv::DtDe& de);
203 
204  //DTOR
206 
208  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
209  };
210 
213  {
214  Q_OBJECT
215 
216  public:
217  //CTOR
218  DtSimulationCommandIssuePlan(makVrv::DtDe& de);
219 
220  //DTOR
221  virtual ~DtSimulationCommandIssuePlan();
222 
224  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
225  };
226 }

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)