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
examples
addScriptVariable
addScriptVariableGui
integerListEntryWidget.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2016 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <
vrfGuiCoreQt/taskSetVariableWidget.h
>
14
#include <
vrfGuiCoreQt/simpleVariableWidget.h
>
15
16
class
QLabel
;
17
class
QHBoxLayout;
18
class
QPushButton
;
19
class
QListWidget;
20
class
QListWidgetItem;
21
23
class
DtIntegerListEntryWidget
:
public
makVrf::DtTaskSetVariableWidget
24
{
25
Q_OBJECT
26
27
public
:
28
DtIntegerListEntryWidget
(
makVrv::DtDe
& de,
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
29
30
//DTOR
31
virtual
~DtIntegerListEntryWidget
();
32
34
virtual
void
setLabel
(
const
std::string&);
35
37
virtual
void
setRange
(
double
bottom,
double
top);
38
40
virtual
void
setDefaultValue
(
const
std::string&);
41
43
virtual
void
setVariableData
(
const
std::string&);
44
46
virtual
DtReaderWriter
*
createBoundVariable
(
const
std::string& variableName);
47
49
virtual
void
setupFromBoundVariable
(
const
DtReaderWriter
* variableName);
50
51
static
makVrv::DtUnicode
codeVariableType
()
52
{
53
return
makVrv::DtUnicode::tr
(
"Integer: integer list"
);
54
}
55
56
protected
slots:
58
virtual
void
onAdd
();
59
61
virtual
void
onRemove
();
62
64
virtual
void
onItemSelectionChanged
();
65
66
public
:
67
QLabel
*
myLabel
;
68
QListWidget*
myNumbers
;
69
QPushButton
*
myAdd
;
70
QPushButton
*
myRemove
;
71
QHBoxLayout*
myButtonLayout
;
72
};
73
74
typedef
makVrf::DtTaskSetVariableWidgetCreator<DtIntegerListEntryWidget>
DtIntegerListEntryWidgetCreator
;
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
)