VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfGuiCoreQt
DtForceSelectionEntryWidget.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 <QtGui/QWidget>
15
16
class
QLabel
;
17
class
QComboBox
;
18
class
QHBoxLayout;
19
class
QSpacerItem;
20
21
namespace
makVrv
22
{
23
class
DtDe;
24
}
25
26
namespace
makVrf
27
{
29
class
DT_DLL_VRFGUICOREQT
DtForceSelectionEntryWidget
:
public
QWidget
,
public
DtTaskSetVariableWidgetInterface
30
{
31
public
:
32
DtForceSelectionEntryWidget
(
makVrv::DtDe
& de,
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
33
34
//DTOR
35
virtual
~
DtForceSelectionEntryWidget
();
36
38
virtual
void
setLabel(
const
std::string&);
39
41
virtual
void
setRange(
double
bottom,
double
top);
42
45
virtual
void
setDefaultValue(
const
std::string&);
46
48
virtual
void
setVariableData(
const
std::string&);
49
51
virtual
void
setupFrom(
const
std::vector<makVrv::DtSimEntry*>& data);
52
54
virtual
void
setToolTip(
const
QString&);
55
57
virtual
DtReaderWriter
* createBoundVariable(
const
std::string& variableName);
58
60
virtual
void
setupFromBoundVariable(
const
DtReaderWriter
* variableName);
61
63
virtual
void
setForce(
int
);
64
66
virtual
int
force()
const
;
67
69
virtual
void
setIndent(
int
);
70
71
static
makVrv::DtUnicode
codeVariableType()
72
{
73
return
makVrv::DtUnicode::tr
(
"Integer (force type)"
);
74
}
75
76
public
:
77
QLabel
*
myForceLabel
;
78
QComboBox
*
myForces
;
79
QHBoxLayout*
myContentLayout
;
80
QSpacerItem*
mySpacerItem
;
81
82
protected
:
83
makVrv::DtDe
&
myDe
;
84
};
85
86
typedef
DtTaskSetVariableWidgetCreator<DtForceSelectionEntryWidget>
DtForceSelectionEntryWidgetCreator
;
87
}
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
)