VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfGuiCoreQt
DtPrecisionMovementEntryWidget.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <
vrfGuiCoreQt/DtTaskSetVariableWidget.h
>
14
#include <
vrfmsgs/ifScriptedMovementObjectsResponse.h
>
15
16
class
DtSimMessage
;
17
class
QComboBox
;
18
class
QGridLayout;
19
20
namespace
makVrf
21
{
24
class
DT_DLL_VRFGUICOREQT
DtPrecisionMovementEntryWidget
:
public
DtTaskSetVariableWidget
25
{
26
Q_OBJECT
27
28
public
:
29
DtPrecisionMovementEntryWidget
(makVrv::DtDe& de,
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
30
31
//DTOR
32
virtual
~
DtPrecisionMovementEntryWidget
();
33
35
virtual
void
setAllowEmptyEntry(
bool
);
36
virtual
bool
allowEmptyEntry()
const
;
37
41
virtual
void
setRange(
double
bottom,
double
top);
42
44
virtual
void
setDefaultValue(
const
std::string&);
45
48
virtual
void
setVariableData(
const
std::string&);
50
52
virtual
DtString
animationModel()
const
;
53
55
virtual
void
setAnimationModel(
const
DtString
&);
56
58
virtual
DtReaderWriter
* createBoundVariable(
const
std::string& variableName);
59
61
virtual
void
receiveScriptedMovementObjects(
DtSimMessage
* msg);
62
64
virtual
void
setupFromBoundVariable(
const
DtReaderWriter
* variableName);
65
67
virtual
DtTaskSetVariableWidgetExtensionInterface
* parameterContents(
QWidget
* parent,
const
Qt::WindowFlags& flags = 0)
const
;
68
69
static
makVrv::DtUnicode codeVariableType()
70
{
71
return
makVrv::DtUnicode::tr(
"String"
);
72
}
73
74
protected
slots:
75
virtual
void
onModelChanged();
76
virtual
void
onCategoryChanged();
77
78
public
:
79
QGridLayout*
myLayout
;
80
QLabel*
myValueLabel
;
81
QLabel*
myDescription
;
82
QComboBox
*
myValue
;
83
QComboBox
*
myCategories
;
84
QLabel*
myCategoryLabel
;
85
QString
myDefaultValue
;
86
bool
myAllowEmptyEntry
;
87
88
protected
:
89
DtIfScriptedMovementObjectsResponse::ScriptedMovementObjects
myAnimationModels
;
90
};
91
92
typedef
DtTaskSetVariableWidgetCreator<DtPrecisionMovementEntryWidget>
DtPrecisionMovementEntryWidgetCreator
;
93
}
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
)