VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfGuiCoreQt
DtConditionalActions.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtConditionalActions.h,v $ $Revision: 1.1 $ $State: Exp $
7
******************************************************************************/
8
11
13
14
#pragma once
15
16
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
17
#include <vrvCoreQt/DtMenuItem.h>
18
19
#include <QtGui/QAction>
20
21
class
DtSimStatement
;
22
23
namespace
makVrf
24
{
25
class
DtVrfConditionalMenu;
26
27
class
DT_DLL_VRFGUICOREQT
DtVrfConditionalAction
:
public
QAction
28
{
29
Q_OBJECT
30
31
public
:
32
DtVrfConditionalAction
(
QWidget
* parent,
const
std::string&);
33
virtual
~
DtVrfConditionalAction
();
34
35
DtVrfConditionalMenu
* parentMenu()
36
{
37
return
myParentMenu;
38
}
39
40
void
setParentMenu(
DtVrfConditionalMenu
* m)
41
{
42
myParentMenu = m;
43
}
44
45
const
std::string& conditionType()
const
46
{
47
return
myConditionType;
48
}
49
50
public
:
51
virtual
void
slot_onConditionComplete(
const
DtSimStatement
&);
52
boost::signal<void (const DtSimStatement&)>
signal_conditionComplete
;
53
54
protected
:
55
std::string
myConditionType
;
56
DtVrfConditionalMenu
*
myParentMenu
;
57
};
58
59
class
DT_DLL_VRFGUICOREQT
DtVrfIfConditionalMenuItem
:
public
makVrv::DtMenuItem
60
{
61
Q_OBJECT
62
63
public
:
64
DtVrfIfConditionalMenuItem
(makVrv::DtDe&,
const
std::string& className);
65
virtual
~
DtVrfIfConditionalMenuItem
();
66
67
virtual
void
on_triggered();
68
69
protected
:
70
makVrv::DtDe&
myDe
;
71
};
72
73
class
DT_DLL_VRFGUICOREQT
DtVrfIfConditional
:
public
DtVrfIfConditionalMenuItem
74
{
75
Q_OBJECT
76
77
public
:
78
//CTOR
79
DtVrfIfConditional
(makVrv::DtDe& de);
80
81
//DTOR
82
virtual
~
DtVrfIfConditional
();
83
85
virtual
QAction
* createAction(makVrv::DtDe&,
QWidget
* parent);
86
};
87
88
class
DT_DLL_VRFGUICOREQT
DtVrfWhenConditional
:
public
DtVrfIfConditionalMenuItem
89
{
90
Q_OBJECT
91
92
public
:
93
//CTOR
94
DtVrfWhenConditional
(makVrv::DtDe& de);
95
96
//DTOR
97
virtual
~
DtVrfWhenConditional
();
98
100
virtual
QAction
* createAction(makVrv::DtDe&,
QWidget
* parent);
101
};
102
103
class
DT_DLL_VRFGUICOREQT
DtVrfWhileConditional
:
public
DtVrfIfConditionalMenuItem
104
{
105
Q_OBJECT
106
107
public
:
108
//CTOR
109
DtVrfWhileConditional
(makVrv::DtDe& de);
110
111
//DTOR
112
virtual
~
DtVrfWhileConditional
();
113
115
virtual
QAction
* createAction(makVrv::DtDe&,
QWidget
* parent);
116
};
117
}
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
)