MAK RTIspy API Documentation for HLA 1516
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
libsrc
rtiAssistantApp
propertyEditorWidget.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2017 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <
rtiMsConfig.h
>
13
#include <QWidget>
14
#include <QtCore/QVariant>
15
#include <QSpinBox>
16
#include <QLineEdit>
17
#include <QComboBox>
18
#include <QtCore/QDir>
19
20
class
QLineEdit;
21
class
QLabel
;
22
class
QPushButton;
23
class
QFileDialog;
24
class
QToolButton;
25
class
QHBoxLayout;
26
class
DtCollectionEditor
;
27
class
DtFileEdit;
28
29
class
DtColorPicker
:
public
QWidget
30
{
31
Q_OBJECT
32
33
public
:
34
DtColorPicker
(
QWidget
* parent = 0, Qt::WindowFlags fl = 0 );
35
36
protected
:
37
QFrame*
myFrame
;
38
QLabel
*
myColorArea
;
39
QToolButton*
myBtnSelect
;
40
QHBoxLayout*
controlLayout
;
41
QHBoxLayout*
myFrameLayout
;
42
43
signals:
44
virtual
void
colorSelected
(
const
QColor& color);
45
46
protected
slots:
47
virtual
void
languageChange
();
48
virtual
void
pickColor
();
49
};
50
51
52
// \brief Base class for a wrapper around one or more QWidget objects to edit DtProperty types
53
class
DT_DLL_ASSISTANTAPP
DtPropertyEditorWidget
:
public
QObject
54
{
55
Q_OBJECT
56
57
public
:
58
DtPropertyEditorWidget
(
QWidget
* parent = 0);
59
virtual
~
DtPropertyEditorWidget
();
60
61
virtual
const
QWidget
* editor()
const
;
62
virtual
QWidget
* wrapper();
63
64
virtual
void
setText(
const
QString&)=0;
65
virtual
QString text() = 0;
66
67
virtual
QVariant value() = 0;
68
69
virtual
void
hide();
70
virtual
void
show();
71
72
signals:
73
void
edited();
74
75
protected
:
76
QVariant
myValue
;
77
QWidget
*
myEditor
;
78
};
79
80
class
DT_DLL_ASSISTANTAPP
DtPropertyIntEditorWidget
:
public
DtPropertyEditorWidget
81
{
82
Q_OBJECT
83
84
public
:
85
DtPropertyIntEditorWidget
(
QWidget
* parent = 0);
86
87
virtual
void
setText
(
const
QString&);
88
virtual
QString
text
();
89
virtual
QVariant
value
();
90
91
};
92
93
class
DT_DLL_ASSISTANTAPP
DtPropertyBoolEditorWidget
:
public
DtPropertyEditorWidget
94
{
95
Q_OBJECT
96
97
public
:
98
DtPropertyBoolEditorWidget
(
QWidget
* parent = 0);
99
100
virtual
void
setText
(
const
QString&);
101
virtual
QString
text
();
102
virtual
QVariant
value
();
103
104
};
105
106
class
DT_DLL_ASSISTANTAPP
DtPropertyStringEditorWidget
:
public
DtPropertyEditorWidget
107
{
108
Q_OBJECT
109
110
public
:
111
DtPropertyStringEditorWidget
(
QWidget
* parent=0);
112
113
virtual
void
setText
(
const
QString&);
114
virtual
QString
text
();
115
virtual
QVariant
value
();
116
};
117
118
class
DT_DLL_ASSISTANTAPP
DtPropertyStringListEditorWidget
:
public
DtPropertyEditorWidget
119
{
120
Q_OBJECT
121
122
public
:
123
DtPropertyStringListEditorWidget
(QStringList,
bool
,
QWidget
* parent = 0);
124
126
virtual
void
setText
(
const
QString&);
127
129
virtual
void
setStringList(
const
QStringList&);
130
131
virtual
QString
text
();
132
virtual
QVariant
value
();
133
};
134
135
class
DT_DLL_ASSISTANTAPP
DtPropertyCollectionEditorWidget
:
public
DtPropertyEditorWidget
136
{
137
Q_OBJECT
138
139
public
:
140
DtPropertyCollectionEditorWidget
(QStringList* lst,
QWidget
* parent = 0,
141
DtCollectionEditor
* editor=0);
142
virtual
~
DtPropertyCollectionEditorWidget
();
143
144
virtual
void
setText
(
const
QString&);
145
virtual
QString
text
();
146
virtual
QVariant
value
();
147
virtual
void
setStringList(
const
QStringList&);
148
virtual
DtCollectionEditor
* collectionEditor();
149
150
public
slots:
151
virtual
void
showEditor();
152
153
154
protected
:
155
QLabel
*
myLabel
;
156
QPushButton*
myBrowseButton
;
157
DtCollectionEditor
*
myCollectionEditor
;
158
};
159
160
class
DT_DLL_ASSISTANTAPP
DtPropertyColorEditorWidget
:
public
DtPropertyEditorWidget
161
{
162
Q_OBJECT
163
164
public
:
165
DtPropertyColorEditorWidget
(
QWidget
* parent=0);
166
167
virtual
void
setText
(
const
QString&);
168
virtual
QString
text
();
169
virtual
QVariant
value
() {
return
myColor;}
170
171
public
slots:
172
virtual
void
setColor(
const
QColor& c);
173
174
175
protected
:
176
QColor
myColor
;
177
};
178
179
class
DT_DLL_ASSISTANTAPP
DtPropertyDoubleEditorWidget
:
public
DtPropertyEditorWidget
180
{
181
Q_OBJECT
182
183
public
:
184
DtPropertyDoubleEditorWidget
(
QWidget
* parent = 0);
185
186
virtual
void
setText
(
const
QString&);
187
virtual
QString
text
();
188
virtual
QVariant
value
();
189
};
Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (
www.mak.com
)