VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
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 <QtGui/QAction>
17
18
class
DtSimStatement
;
19
20
namespace
makVrf
21
{
22
class
DtVrfConditionalMenu;
23
24
class
DT_DLL_VRFGUICOREQT
DtVrfConditionalAction
:
public
QAction
25
{
26
Q_OBJECT
27
28
public
:
29
DtVrfConditionalAction
(
QWidget
* parent,
const
std::string&);
30
virtual
~
DtVrfConditionalAction
();
31
32
DtVrfConditionalMenu
* parentMenu()
33
{
34
return
myParentMenu;
35
}
36
37
void
setParentMenu(
DtVrfConditionalMenu
* m)
38
{
39
myParentMenu = m;
40
}
41
42
const
std::string& conditionType()
const
43
{
44
return
myConditionType;
45
}
46
47
public
:
48
virtual
void
slot_onConditionComplete(
const
DtSimStatement
&);
49
boost::signal<void (const DtSimStatement&)>
signal_conditionComplete
;
50
51
protected
:
52
std::string
myConditionType
;
53
DtVrfConditionalMenu
*
myParentMenu
;
54
};
55
56
class
DT_DLL_VRFGUICOREQT
DtVrfIfConditionalMenuItem
:
public
makVrv::DtMenuItem
57
{
58
Q_OBJECT
59
60
public
:
61
DtVrfIfConditionalMenuItem
(
makVrv::DtDe
&,
const
std::string& className);
62
virtual
~
DtVrfIfConditionalMenuItem
();
63
64
virtual
void
on_triggered();
65
66
protected
:
67
makVrv::DtDe
&
myDe
;
68
};
69
70
class
DT_DLL_VRFGUICOREQT
DtVrfIfConditional
:
public
DtVrfIfConditionalMenuItem
71
{
72
Q_OBJECT
73
74
public
:
75
//CTOR
76
DtVrfIfConditional
(
makVrv::DtDe
& de);
77
78
//DTOR
79
virtual
~
DtVrfIfConditional
();
80
82
virtual
QAction
* createAction(
makVrv::DtDe
&,
QWidget
* parent);
83
};
84
85
class
DT_DLL_VRFGUICOREQT
DtVrfWhenConditional
:
public
DtVrfIfConditionalMenuItem
86
{
87
Q_OBJECT
88
89
public
:
90
//CTOR
91
DtVrfWhenConditional
(
makVrv::DtDe
& de);
92
93
//DTOR
94
virtual
~
DtVrfWhenConditional
();
95
97
virtual
QAction
* createAction(
makVrv::DtDe
&,
QWidget
* parent);
98
};
99
100
class
DT_DLL_VRFGUICOREQT
DtVrfWhileConditional
:
public
DtVrfIfConditionalMenuItem
101
{
102
Q_OBJECT
103
104
public
:
105
//CTOR
106
DtVrfWhileConditional
(
makVrv::DtDe
& de);
107
108
//DTOR
109
virtual
~
DtVrfWhileConditional
();
110
112
virtual
QAction
* createAction(
makVrv::DtDe
&,
QWidget
* parent);
113
};
114
}
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
)