VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
entityEditorImpl
uiForParameter.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2000 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: uiForParameter.h,v $ $Revision: 1.9 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef DTUIFORPARAMETER_H_
13
#define DTUIFORPARAMETER_H_
14
15
#include "
vrfutil/rwList.h
"
16
#include "
vrfutil/rwString.h
"
17
#include "
entityEditorImpl/uiElement.h
"
18
#include "
vrfutil/rwBoolean.h
"
19
20
class
QWidget
;
21
class
DtVrfObjectParameters
;
22
class
DtModelSetEntry
;
23
24
#include "
entityEditorImpl/entityEditorImplDefines.h
"
25
26
class
DtUiForParameter
;
27
28
class
DT_DLL_entityeditorimpl
DtUiForParameterSignaller
:
public
QObject
29
{
30
Q_OBJECT
31
32
public
:
33
DtUiForParameterSignaller
() {};
34
35
void
setParent
(
DtUiForParameter
* p) { myParent = p; };
36
37
public
slots:
38
virtual
void
uiEvent(
const
DtUiElementEvent
&);
39
40
signals:
41
void
uiEventSignal(
const
DtUiElementEvent
&);
42
43
protected
:
44
DtUiForParameter
*
myParent
;
45
};
46
47
class
DT_DLL_entityeditorimpl
DtUiForParameter
:
public
DtRwList
48
{
49
public
:
50
52
DtUiForParameter
53
(
54
const
DtString
& name,
55
DtReaderWriterRegistry
*
const
parentRegistry = NULL
56
);
57
59
virtual
~
DtUiForParameter
();
60
62
DtUiForParameter
(
const
DtUiForParameter
& orig);
63
65
DtUiForParameter
&
operator=
(
const
DtUiForParameter
& orig);
66
67
const
DtString
& parameterType()
const
;
68
const
DtString
& objectTypeTemplate()
const
;
69
const
DtString
& inheritFrom()
const
;
70
const
DtString
& label()
const
;
71
bool
canBeAssigned()
const
;
72
void
setInheritFrom(
const
DtString
&);
73
74
virtual
QWidget
* createControls(
DtVrfObjectParameters
*,
DtElementChangedCallbackFcn
f,
void
* usr);
75
76
virtual
void
inheritFrom(
DtUiForParameter
*);
77
virtual
DtUiElement
* findElement(
const
DtString
&)
const
;
78
virtual
bool
isModified()
const
;
79
81
virtual
void
mergeInto(
const
DtString
& readerWriterName,
bool
after,
DtUiElement
* element);
82
83
virtual
DtUiForParameter
* clone();
84
88
89
static
void
elementChangedCallback(
DtUiElement
* element,
void
* usr);
90
virtual
void
processElementChanged(
DtUiElement
* element);
92
93
virtual
void
setModelModified(
DtModelSetEntry
*);
94
virtual
void
uiEvent(
const
DtUiElementEvent
&);
95
virtual
QMap<QString, QVariant> uiState()
const
;
96
virtual
void
setUiState(
const
QMap<QString, QVariant>&);
97
98
DtUiForParameterSignaller
*
signalHandler
() {
return
&mySignalHandler; };
99
100
protected
:
101
virtual
DtlObjPtr
getData
(DtlObjPtr args,
const
DtFilename& searchPath,
const
DtVariableBindingsList
&);
102
103
virtual
void
emptyList();
104
105
virtual
void
copyList(
const
DtUiForParameter
& orig);
106
107
protected
:
108
DtRwBoolean
myCanBeAssigned
;
109
DtRwString
myParameterType
;
110
DtRwString
myInheritFrom
;
111
DtRwString
myLabel
;
112
DtRwString
myObjectTypeTemplate
;
113
DtUiForParameterSignaller
mySignalHandler
;
114
};
115
116
inline
const
DtString
&
DtUiForParameter::parameterType
()
const
117
{
118
return
myParameterType
;
119
}
120
121
inline
const
DtString
&
DtUiForParameter::objectTypeTemplate
()
const
122
{
123
return
myObjectTypeTemplate
;
124
}
125
126
inline
const
DtString
&
DtUiForParameter::inheritFrom
()
const
127
{
128
return
myInheritFrom
;
129
}
130
131
inline
void
DtUiForParameter::setInheritFrom
(
const
DtString
& s)
132
{
133
myInheritFrom
= s;
134
}
135
136
inline
const
DtString
&
DtUiForParameter::label
()
const
137
{
138
return
myLabel
;
139
}
140
141
inline
bool
DtUiForParameter::canBeAssigned
()
const
142
{
143
return
myCanBeAssigned
;
144
}
145
146
#endif
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
)