VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
simulationObjectEditorImpl
uiVectorElement.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/uiElement.h
"
13
#include <matrix/vlVector.h>
14
15
class
QLayout;
16
class
QLineEdit
;
17
class
QGridLayout;
18
class
QDoubleValidator;
19
class
QFrame;
20
23
class
DT_DLL_simulationObjectEditorimpl
DtUiVectorElement
:
public
DtUiElement
24
{
25
public
:
26
28
DtUiVectorElement
(
makVrv::DtDe
&);
29
31
virtual
~
DtUiVectorElement
();
32
33
static
DtUiElement
*
CreatorFunction
(
makVrv::DtDe
&);
34
35
virtual
void
setSingleRowLabel(
const
QString&);
36
virtual
void
setFromParameters
(
const
std::vector<DtReaderWriter*>& parentRw);
37
38
virtual
void
setEnabled
(
bool
);
39
40
virtual
void
setValue(
const
DtVector
&);
41
42
protected
:
43
virtual
void
createControls
(QWidget*);
44
virtual
void
updateLabelTitle
();
45
virtual
bool
allXValuesTheSame()
const
;
46
virtual
bool
allYValuesTheSame()
const
;
47
virtual
bool
allZValuesTheSame()
const
;
48
49
protected
:
50
virtual
void
decorateElement
();
51
virtual
void
elementChanged
();
52
virtual
void
setModified(QWidget* l,
bool
modified);
53
54
virtual
bool
inGridLayout()
const
;
55
virtual
QLayout* gridLayout()
const
;
56
virtual
int
gridRowPosition()
const
;
57
virtual
QString
labelTitle
()
const
;
58
59
virtual
void
setBlockSignals(
bool
block);
60
61
public
:
62
QLayout*
myLayout
;
63
QGridLayout*
myMultiLineDataLayout
;
64
65
QWidget*
myContainer
;
66
67
QLabel
*
myLocationLabelX
;
68
QLineEdit
*
myX
;
69
70
QLabel
*
myLocationLabelY
;
71
QLineEdit
*
myY
;
72
73
QLabel
*
myLocationLabelZ
;
74
QLineEdit
*
myZ
;
75
76
QFrame*
myLine
;
77
78
protected
:
79
QString
myOriginalSingleLabelTitle
;
80
bool
myInParentGridLayout
;
81
int
myGridRowPosition
;
82
QDoubleValidator*
myValidator
;
83
bool
mySingleRow
;
84
};
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)