VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfGuiCoreQt
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
17
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
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
29
class
DT_DLL_VRFGUICOREQT
DtVrfSimulationCommandAction
:
public
QAction
30
{
31
Q_OBJECT
32
33
public
:
34
DtVrfSimulationCommandAction
(
QWidget
*);
35
virtual
~
DtVrfSimulationCommandAction
();
36
37
void
setParentMenu(
DtVrfSimulationCommandMenu
* p)
38
{
39
myParentMenu = p;
40
}
41
42
DtVrfSimulationCommandMenu
* parentMenu()
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
:
62
DtVrfSimulationCommandMenu
*
myParentMenu
;
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
85
class
DT_DLL_VRFGUICOREQT
DtSimulationCommandAbandonPlan
:
public
DtVrfSimulationCommand
86
{
87
Q_OBJECT
88
89
public
:
90
//CTOR
91
DtSimulationCommandAbandonPlan
(
makVrv::DtDe
& de);
92
93
//DTOR
94
virtual
~
DtSimulationCommandAbandonPlan
();
95
97
virtual
QAction
* createAction(
makVrv::DtDe
&,
QWidget
* parent);
98
};
99
100
class
DT_DLL_VRFGUICOREQT
DtSimulationCommandComment
:
public
DtVrfSimulationCommand
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
115
class
DT_DLL_VRFGUICOREQT
DtSimulationCommandChangeHostility
:
public
DtVrfSimulationCommand
116
{
117
Q_OBJECT
118
119
public
:
120
//CTOR
121
DtSimulationCommandChangeHostility
(
makVrv::DtDe
& de);
122
123
//DTOR
124
virtual
~
DtSimulationCommandChangeHostility
();
125
127
virtual
QAction
* createAction(
makVrv::DtDe
&,
QWidget
* parent);
128
};
129
130
class
DT_DLL_VRFGUICOREQT
DtSimulationCommandSetTimeOfDay
:
public
DtVrfSimulationCommand
131
{
132
Q_OBJECT
133
134
public
:
135
//CTOR
136
DtSimulationCommandSetTimeOfDay
(
makVrv::DtDe
& de);
137
138
//DTOR
139
virtual
~
DtSimulationCommandSetTimeOfDay
();
140
142
virtual
QAction
* createAction(
makVrv::DtDe
&,
QWidget
* parent);
143
};
144
145
class
DT_DLL_VRFGUICOREQT
DtSimulationCommandSetGlobalWeather
:
public
DtVrfSimulationCommand
146
{
147
Q_OBJECT
148
149
public
:
150
//CTOR
151
DtSimulationCommandSetGlobalWeather
(
makVrv::DtDe
& de);
152
153
//DTOR
154
virtual
~
DtSimulationCommandSetGlobalWeather
();
155
157
virtual
QAction
* createAction(
makVrv::DtDe
&,
QWidget
* parent);
158
};
159
160
class
DT_DLL_VRFGUICOREQT
DtSimulationCommandDelete
:
public
DtVrfSimulationCommand
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
177
class
DT_DLL_VRFGUICOREQT
DtSimulationCommandSelfDelete
:
public
DtVrfSimulationCommand
178
{
179
Q_OBJECT
180
181
public
:
182
//CTOR
183
DtSimulationCommandSelfDelete
(
makVrv::DtDe
& de);
184
185
//DTOR
186
virtual
~
DtSimulationCommandSelfDelete
();
187
189
virtual
QAction
* createAction(
makVrv::DtDe
&,
QWidget
* parent);
190
193
virtual
void
on_triggered();
194
};
195
196
class
DT_DLL_VRFGUICOREQT
DtSimulationCommandRestartPlan
:
public
DtVrfSimulationCommand
197
{
198
Q_OBJECT
199
200
public
:
201
//CTOR
202
DtSimulationCommandRestartPlan
(
makVrv::DtDe
& de);
203
204
//DTOR
205
virtual
~
DtSimulationCommandRestartPlan
();
206
208
virtual
QAction
* createAction(
makVrv::DtDe
&,
QWidget
* parent);
209
};
210
212
class
DT_DLL_VRFGUICOREQT
DtSimulationCommandIssuePlan
:
public
DtVrfSimulationCommand
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 Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)