VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
entityEditorImpl
uiRealElement.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2013 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
8
9
#pragma once
10
11
#include "
entityEditorImpl/entityEditorImplDefines.h
"
12
#include "
entityEditorImpl/uiElement.h
"
13
14
class
QDoubleValidator;
15
18
class
DT_DLL_entityeditorimpl
DtUiRealElement
:
public
DtUiElement
19
{
20
public
:
21
23
DtUiRealElement
(makVrv::DtDe&);
24
26
virtual
~
DtUiRealElement
();
27
28
virtual
void
setFromParameters
(
const
std::vector<DtReaderWriter*>& parentRw);
29
30
static
DtUiElement
*
CreatorFunction
(makVrv::DtDe&);
31
33
virtual
void
setValue(
double
);
34
virtual
double
value()
const
;
35
36
virtual
void
elementChanged
();
37
38
protected
:
39
virtual
void
createControls
(
QWidget
*);
40
41
virtual
DtString
sourceValueToDisplayLabel(
const
double
source,
bool
* foundDisplayValue = NULL)
const
;
42
virtual
double
displayLabelToSourceValue(
const
DtString
& display,
bool
* foundSourceValue = NULL)
const
;
43
public
:
44
QDoubleValidator*
myValidator
;
45
46
protected
:
47
double
myDiff
;
48
bool
myIsLineEdit
;
49
typedef
std::map<DtString, double>
DisplayLabelToSourceValueMap
;
50
DisplayLabelToSourceValueMap
myDisplayToSourceValues
;
51
};
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
)