VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfGuiCoreQt
conditionalActions.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
14
#include <
vrvCoreQt/DtMenuItem.h
>
15
16
#include <QtWidgets/QAction>
17
18
class
DtSimStatement
;
19
20
namespace
makVrf
21
{
22
class
DtVrfConditionalMenu;
23
class
DtVrfConditionalAction;
24
25
class
DT_DLL_VRFGUICOREQT
DtVrfConditionalAction
:
public
QAction
26
{
27
Q_OBJECT
28
29
public
:
30
DtVrfConditionalAction
(QWidget* parent,
const
std::string&);
31
virtual
~
DtVrfConditionalAction
();
32
33
DtVrfConditionalMenu
* parentMenu()
34
{
35
return
myParentMenu;
36
}
37
38
void
setParentMenu(
DtVrfConditionalMenu
* m)
39
{
40
myParentMenu = m;
41
}
42
43
const
std::string& conditionType()
const
44
{
45
return
myConditionType;
46
}
47
48
public
:
49
virtual
void
slot_onConditionComplete(
const
DtSimStatement
&);
50
boost::signal<void (const DtSimStatement&)>
signal_conditionComplete
;
51
52
protected
:
53
std::string
myConditionType
;
54
DtVrfConditionalMenu
*
myParentMenu
;
55
};
56
57
class
DT_DLL_VRFGUICOREQT
DtVrfIfConditionalMenuItem
:
public
makVrv::DtMenuItem
58
{
59
Q_OBJECT
60
61
public
:
62
DtVrfIfConditionalMenuItem
(
makVrv::DtDe
&,
const
std::string& className);
63
virtual
~
DtVrfIfConditionalMenuItem
();
64
65
virtual
void
on_triggered();
66
67
protected
:
68
makVrv::DtDe
&
myDe
;
69
};
70
71
class
DT_DLL_VRFGUICOREQT
DtVrfIfConditional
:
public
DtVrfIfConditionalMenuItem
72
{
73
Q_OBJECT
74
75
public
:
76
//CTOR
77
DtVrfIfConditional
(
makVrv::DtDe
& de);
78
79
//DTOR
80
virtual
~
DtVrfIfConditional
();
81
83
virtual
QAction
* createAction(
makVrv::DtDe
&, QWidget* parent);
84
};
85
86
class
DT_DLL_VRFGUICOREQT
DtVrfWhileConditional
:
public
DtVrfIfConditionalMenuItem
87
{
88
Q_OBJECT
89
90
public
:
91
//CTOR
92
DtVrfWhileConditional
(
makVrv::DtDe
& de);
93
94
//DTOR
95
virtual
~
DtVrfWhileConditional
();
96
98
virtual
QAction
* createAction(
makVrv::DtDe
&, QWidget* parent);
99
};
100
101
class
DT_DLL_VRFGUICOREQT
DtVrfWaitUntilConditional
:
public
DtVrfIfConditionalMenuItem
102
{
103
Q_OBJECT
104
105
public
:
106
//CTOR
107
DtVrfWaitUntilConditional
(
makVrv::DtDe
& de);
108
109
//DTOR
110
virtual
~
DtVrfWaitUntilConditional
();
111
113
virtual
QAction
* createAction(
makVrv::DtDe
&, QWidget* parent);
114
};
115
116
class
DT_DLL_VRFGUICOREQT
DtVrfRegisterTrigger
:
public
DtVrfIfConditionalMenuItem
117
{
118
Q_OBJECT
119
120
public
:
121
//CTOR
122
DtVrfRegisterTrigger
(
makVrv::DtDe
& de);
123
124
//DTOR
125
virtual
~
DtVrfRegisterTrigger
();
126
128
virtual
QAction
* createAction(
makVrv::DtDe
&, QWidget* parent);
129
};
130
131
class
DT_DLL_VRFGUICOREQT
DtVrfUnregisterTrigger
:
public
DtVrfIfConditionalMenuItem
132
{
133
Q_OBJECT
134
135
public
:
136
//CTOR
137
DtVrfUnregisterTrigger
(
makVrv::DtDe
& de);
138
139
//DTOR
140
virtual
~
DtVrfUnregisterTrigger
();
141
143
virtual
QAction
* createAction(
makVrv::DtDe
&, QWidget* parent);
144
};
145
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)