VR-Forces 4.5 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
uiIntegerElement.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
#include "
vrfutil/rwInt.h
"
14
15
class
QIntValidator;
16
class
QLineEdit
;
17
19
class
DT_DLL_simulationObjectEditorimpl
DtUiIntegerElement
:
public
DtUiMapAwareElement
20
{
21
Q_OBJECT
22
23
public
:
24
26
DtUiIntegerElement
(
makVrv::DtDe
&);
27
29
virtual
~
DtUiIntegerElement
();
30
31
static
DtUiElement
*
CreatorFunction
(
makVrv::DtDe
&);
32
34
virtual
void
setValue(
int
);
35
virtual
int
value()
const
;
36
37
protected
:
38
virtual
void
createControls
(
QWidget
*);
39
virtual
void
decorateElement
();
40
41
protected
:
42
virtual
void
setFromParameters
(
const
std::vector<DtReaderWriter*>& parentRw);
43
virtual
void
elementChanged
();
44
45
virtual
DtString
sourceValueToDisplayLabel(
const
int
source,
bool
* foundDisplayValue = NULL)
const
;
46
virtual
int
displayLabelToSourceValue(
const
DtString
& display,
bool
* foundSourceValue = NULL)
const
;
47
virtual
void
processUiEvent
(
const
DtUiElementEvent
& e);
48
49
protected
slots:
50
virtual
void
recalculateAsRestOf();
51
52
protected
:
53
QIntValidator*
myValidator
;
54
56
bool
myIsLineEdit
;
57
58
typedef
std::map<DtString, int>
DisplayLabelToSourceValueMap
;
59
DisplayLabelToSourceValueMap
myDisplayToSourceValues
;
60
};
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)