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