VR-Forces 4.3.1 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
diGuySelectionEntryWidgets.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/taskSetVariableWidget.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 Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)