VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfGuiCoreQt
DtDIGuySelectionEntryWidget.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <
vrfGuiCoreQt/DtTaskSetVariableWidget.h
>
14
#include <
vrvCore/DtSimEntry.h
>
15
16
class
QLabel
;
17
class
QComboBox
;
18
class
QHBoxLayout;
19
20
namespace
makVrf
21
{
23
class
DT_DLL_VRFGUICOREQT
DtDIGuyAnimationSelectionEntryWidget
:
public
DtTaskSetVariableWidget
24
{
25
public
:
26
DtDIGuyAnimationSelectionEntryWidget
(
makVrv::DtDe
& de,
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
27
28
//DTOR
29
virtual
~
DtDIGuyAnimationSelectionEntryWidget
();
30
32
virtual
void
setLabel(
const
std::string&);
33
35
virtual
void
setRange(
double
bottom,
double
top);
36
39
virtual
void
setDefaultValue(
const
std::string&);
40
42
virtual
void
setVariableData(
const
std::string&);
43
45
virtual
void
setupFrom(
const
std::vector<makVrv::DtSimEntry*>& data);
46
48
virtual
DtReaderWriter
* createBoundVariable(
const
std::string& variableName);
49
51
virtual
void
setupFromBoundVariable(
const
DtReaderWriter
* variableName);
52
53
static
makVrv::DtUnicode
codeVariableType()
54
{
55
return
makVrv::DtUnicode::tr
(
"String (animation)"
);
56
}
57
58
protected
:
59
virtual
void
requestMet();
60
61
public
:
62
QLabel
*
myDiGuyAnimationLabel
;
63
QComboBox
*
myDiGuyAnimations
;
64
QHBoxLayout*
myContentLayout
;
65
66
protected
:
67
makVrv::DtSimEntry
*
myLastRequest
;
68
QString
myDefaultValue
;
69
};
70
72
class
DT_DLL_VRFGUICOREQT
DtDIGuyAppearanceSelectionEntryWidget
:
public
DtTaskSetVariableWidget
73
{
74
public
:
75
DtDIGuyAppearanceSelectionEntryWidget
(
makVrv::DtDe
& de,
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
76
77
//DTOR
78
virtual
~
DtDIGuyAppearanceSelectionEntryWidget
();
79
81
virtual
void
setLabel(
const
std::string&);
82
84
virtual
void
setRange(
double
bottom,
double
top);
85
88
virtual
void
setDefaultValue(
const
std::string&);
89
91
virtual
void
setVariableData(
const
std::string&);
92
94
virtual
void
setupFrom(
const
std::vector<makVrv::DtSimEntry*>& data);
95
97
virtual
DtReaderWriter
* createBoundVariable(
const
std::string& variableName);
98
100
virtual
void
setupFromBoundVariable(
const
DtReaderWriter
* variableName);
101
102
static
makVrv::DtUnicode
codeVariableType()
103
{
104
return
makVrv::DtUnicode::tr
(
"String (appearance)"
);
105
}
106
107
protected
:
108
virtual
void
requestMet();
109
110
public
:
111
QLabel
*
myDiGuyAppearanceLabel
;
112
QComboBox
*
myDiGuyAppearances
;
113
QHBoxLayout*
myContentLayout
;
114
115
protected
:
116
makVrv::DtSimEntry
*
myLastRequest
;
117
QString
myDefaultValue
;
118
};
119
120
typedef
DtTaskSetVariableWidgetCreator<DtDIGuyAnimationSelectionEntryWidget>
DtDIGuyAnimationSelectionEntryWidgetCreator
;
121
typedef
DtTaskSetVariableWidgetCreator<DtDIGuyAppearanceSelectionEntryWidget>
DtDIGuyAppearanceSelectionEntryWidgetCreator
;
122
}
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
)