VR-Forces Development_Version 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
simulationObjectEditorImpl
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 "
simulationObjectEditorImpl/simulationObjectEditorImplDefines.h
"
12
#include "
simulationObjectEditorImpl/uiMapAwareElement.h
"
13
14
class
QDoubleValidator;
15
18
class
DT_DLL_simulationObjectEditorimpl
DtUiRealElement
:
public
DtUiMapAwareElement
19
{
20
Q_OBJECT
21
22
public
:
23
25
DtUiRealElement
(
makVrv::DtDe
&);
26
28
virtual
~
DtUiRealElement
();
29
30
virtual
void
setFromParameters
(
const
std::vector<DtReaderWriter*>& parentRw);
31
32
static
DtUiElement
*
CreatorFunction
(
makVrv::DtDe
&);
33
35
virtual
void
setValue(
double
);
36
virtual
double
value()
const
;
37
38
virtual
void
elementChanged
();
39
40
protected
:
41
virtual
void
createControls
(
QWidget
*);
42
virtual
void
decorateElement
();
43
44
virtual
DtString
sourceValueToDisplayLabel(
const
double
source,
bool
* foundDisplayValue = NULL)
const
;
45
virtual
double
displayLabelToSourceValue(
const
DtString
& display,
bool
* foundSourceValue = NULL)
const
;
46
virtual
void
processUiEvent
(
const
DtUiElementEvent
& e);
47
48
protected
slots:
49
virtual
void
recalculateAsRestOf();
50
51
public
:
52
QDoubleValidator*
myValidator
;
53
54
protected
:
55
bool
myIsLineEdit
;
56
typedef
std::map<DtString, double>
DisplayLabelToSourceValueMap
;
57
DisplayLabelToSourceValueMap
myDisplayToSourceValues
;
58
int
myDecimalPlaces
;
59
};
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)