1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** Contact: Qt Software Information ([email protected])
|
---|
5 | **
|
---|
6 | ** This file is part of the tools applications of the Qt Toolkit.
|
---|
7 | **
|
---|
8 | ** $QT_BEGIN_LICENSE:LGPL$
|
---|
9 | ** Commercial Usage
|
---|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
11 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
12 | ** Software or, alternatively, in accordance with the terms contained in
|
---|
13 | ** a written agreement between you and Nokia.
|
---|
14 | **
|
---|
15 | ** GNU Lesser General Public License Usage
|
---|
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
---|
17 | ** General Public License version 2.1 as published by the Free Software
|
---|
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
---|
19 | ** packaging of this file. Please review the following information to
|
---|
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
---|
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
---|
22 | **
|
---|
23 | ** In addition, as a special exception, Nokia gives you certain
|
---|
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
|
---|
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
---|
26 | ** package.
|
---|
27 | **
|
---|
28 | ** GNU General Public License Usage
|
---|
29 | ** Alternatively, this file may be used under the terms of the GNU
|
---|
30 | ** General Public License version 3.0 as published by the Free Software
|
---|
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
32 | ** packaging of this file. Please review the following information to
|
---|
33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
---|
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
---|
35 | **
|
---|
36 | ** If you are unsure which license is appropriate for your use, please
|
---|
37 | ** contact the sales department at [email protected].
|
---|
38 | ** $QT_END_LICENSE$
|
---|
39 | **
|
---|
40 | ****************************************************************************/
|
---|
41 |
|
---|
42 | #ifndef QTPROPERTYMANAGER_H
|
---|
43 | #define QTPROPERTYMANAGER_H
|
---|
44 |
|
---|
45 | #include "qtpropertybrowser.h"
|
---|
46 |
|
---|
47 | #if QT_VERSION >= 0x040400
|
---|
48 | QT_BEGIN_NAMESPACE
|
---|
49 | #endif
|
---|
50 |
|
---|
51 | class QDate;
|
---|
52 | class QTime;
|
---|
53 | class QDateTime;
|
---|
54 | class QLocale;
|
---|
55 |
|
---|
56 | class QtGroupPropertyManager : public QtAbstractPropertyManager
|
---|
57 | {
|
---|
58 | Q_OBJECT
|
---|
59 | public:
|
---|
60 | QtGroupPropertyManager(QObject *parent = 0);
|
---|
61 | ~QtGroupPropertyManager();
|
---|
62 |
|
---|
63 | protected:
|
---|
64 | virtual bool hasValue(const QtProperty *property) const;
|
---|
65 |
|
---|
66 | virtual void initializeProperty(QtProperty *property);
|
---|
67 | virtual void uninitializeProperty(QtProperty *property);
|
---|
68 | };
|
---|
69 |
|
---|
70 | class QtIntPropertyManagerPrivate;
|
---|
71 |
|
---|
72 | class QtIntPropertyManager : public QtAbstractPropertyManager
|
---|
73 | {
|
---|
74 | Q_OBJECT
|
---|
75 | public:
|
---|
76 | QtIntPropertyManager(QObject *parent = 0);
|
---|
77 | ~QtIntPropertyManager();
|
---|
78 |
|
---|
79 | int value(const QtProperty *property) const;
|
---|
80 | int minimum(const QtProperty *property) const;
|
---|
81 | int maximum(const QtProperty *property) const;
|
---|
82 | int singleStep(const QtProperty *property) const;
|
---|
83 |
|
---|
84 | public Q_SLOTS:
|
---|
85 | void setValue(QtProperty *property, int val);
|
---|
86 | void setMinimum(QtProperty *property, int minVal);
|
---|
87 | void setMaximum(QtProperty *property, int maxVal);
|
---|
88 | void setRange(QtProperty *property, int minVal, int maxVal);
|
---|
89 | void setSingleStep(QtProperty *property, int step);
|
---|
90 | Q_SIGNALS:
|
---|
91 | void valueChanged(QtProperty *property, int val);
|
---|
92 | void rangeChanged(QtProperty *property, int minVal, int maxVal);
|
---|
93 | void singleStepChanged(QtProperty *property, int step);
|
---|
94 | protected:
|
---|
95 | QString valueText(const QtProperty *property) const;
|
---|
96 | virtual void initializeProperty(QtProperty *property);
|
---|
97 | virtual void uninitializeProperty(QtProperty *property);
|
---|
98 | private:
|
---|
99 | QtIntPropertyManagerPrivate *d_ptr;
|
---|
100 | Q_DECLARE_PRIVATE(QtIntPropertyManager)
|
---|
101 | Q_DISABLE_COPY(QtIntPropertyManager)
|
---|
102 | };
|
---|
103 |
|
---|
104 | class QtBoolPropertyManagerPrivate;
|
---|
105 |
|
---|
106 | class QtBoolPropertyManager : public QtAbstractPropertyManager
|
---|
107 | {
|
---|
108 | Q_OBJECT
|
---|
109 | public:
|
---|
110 | QtBoolPropertyManager(QObject *parent = 0);
|
---|
111 | ~QtBoolPropertyManager();
|
---|
112 |
|
---|
113 | bool value(const QtProperty *property) const;
|
---|
114 |
|
---|
115 | public Q_SLOTS:
|
---|
116 | void setValue(QtProperty *property, bool val);
|
---|
117 | Q_SIGNALS:
|
---|
118 | void valueChanged(QtProperty *property, bool val);
|
---|
119 | protected:
|
---|
120 | QString valueText(const QtProperty *property) const;
|
---|
121 | QIcon valueIcon(const QtProperty *property) const;
|
---|
122 | virtual void initializeProperty(QtProperty *property);
|
---|
123 | virtual void uninitializeProperty(QtProperty *property);
|
---|
124 | private:
|
---|
125 | QtBoolPropertyManagerPrivate *d_ptr;
|
---|
126 | Q_DECLARE_PRIVATE(QtBoolPropertyManager)
|
---|
127 | Q_DISABLE_COPY(QtBoolPropertyManager)
|
---|
128 | };
|
---|
129 |
|
---|
130 | class QtDoublePropertyManagerPrivate;
|
---|
131 |
|
---|
132 | class QtDoublePropertyManager : public QtAbstractPropertyManager
|
---|
133 | {
|
---|
134 | Q_OBJECT
|
---|
135 | public:
|
---|
136 | QtDoublePropertyManager(QObject *parent = 0);
|
---|
137 | ~QtDoublePropertyManager();
|
---|
138 |
|
---|
139 | double value(const QtProperty *property) const;
|
---|
140 | double minimum(const QtProperty *property) const;
|
---|
141 | double maximum(const QtProperty *property) const;
|
---|
142 | double singleStep(const QtProperty *property) const;
|
---|
143 | int decimals(const QtProperty *property) const;
|
---|
144 |
|
---|
145 | public Q_SLOTS:
|
---|
146 | void setValue(QtProperty *property, double val);
|
---|
147 | void setMinimum(QtProperty *property, double minVal);
|
---|
148 | void setMaximum(QtProperty *property, double maxVal);
|
---|
149 | void setRange(QtProperty *property, double minVal, double maxVal);
|
---|
150 | void setSingleStep(QtProperty *property, double step);
|
---|
151 | void setDecimals(QtProperty *property, int prec);
|
---|
152 | Q_SIGNALS:
|
---|
153 | void valueChanged(QtProperty *property, double val);
|
---|
154 | void rangeChanged(QtProperty *property, double minVal, double maxVal);
|
---|
155 | void singleStepChanged(QtProperty *property, double step);
|
---|
156 | void decimalsChanged(QtProperty *property, int prec);
|
---|
157 | protected:
|
---|
158 | QString valueText(const QtProperty *property) const;
|
---|
159 | virtual void initializeProperty(QtProperty *property);
|
---|
160 | virtual void uninitializeProperty(QtProperty *property);
|
---|
161 | private:
|
---|
162 | QtDoublePropertyManagerPrivate *d_ptr;
|
---|
163 | Q_DECLARE_PRIVATE(QtDoublePropertyManager)
|
---|
164 | Q_DISABLE_COPY(QtDoublePropertyManager)
|
---|
165 | };
|
---|
166 |
|
---|
167 | class QtStringPropertyManagerPrivate;
|
---|
168 |
|
---|
169 | class QtStringPropertyManager : public QtAbstractPropertyManager
|
---|
170 | {
|
---|
171 | Q_OBJECT
|
---|
172 | public:
|
---|
173 | QtStringPropertyManager(QObject *parent = 0);
|
---|
174 | ~QtStringPropertyManager();
|
---|
175 |
|
---|
176 | QString value(const QtProperty *property) const;
|
---|
177 | QRegExp regExp(const QtProperty *property) const;
|
---|
178 |
|
---|
179 | public Q_SLOTS:
|
---|
180 | void setValue(QtProperty *property, const QString &val);
|
---|
181 | void setRegExp(QtProperty *property, const QRegExp ®Exp);
|
---|
182 | Q_SIGNALS:
|
---|
183 | void valueChanged(QtProperty *property, const QString &val);
|
---|
184 | void regExpChanged(QtProperty *property, const QRegExp ®Exp);
|
---|
185 | protected:
|
---|
186 | QString valueText(const QtProperty *property) const;
|
---|
187 | virtual void initializeProperty(QtProperty *property);
|
---|
188 | virtual void uninitializeProperty(QtProperty *property);
|
---|
189 | private:
|
---|
190 | QtStringPropertyManagerPrivate *d_ptr;
|
---|
191 | Q_DECLARE_PRIVATE(QtStringPropertyManager)
|
---|
192 | Q_DISABLE_COPY(QtStringPropertyManager)
|
---|
193 | };
|
---|
194 |
|
---|
195 | class QtDatePropertyManagerPrivate;
|
---|
196 |
|
---|
197 | class QtDatePropertyManager : public QtAbstractPropertyManager
|
---|
198 | {
|
---|
199 | Q_OBJECT
|
---|
200 | public:
|
---|
201 | QtDatePropertyManager(QObject *parent = 0);
|
---|
202 | ~QtDatePropertyManager();
|
---|
203 |
|
---|
204 | QDate value(const QtProperty *property) const;
|
---|
205 | QDate minimum(const QtProperty *property) const;
|
---|
206 | QDate maximum(const QtProperty *property) const;
|
---|
207 |
|
---|
208 | public Q_SLOTS:
|
---|
209 | void setValue(QtProperty *property, const QDate &val);
|
---|
210 | void setMinimum(QtProperty *property, const QDate &minVal);
|
---|
211 | void setMaximum(QtProperty *property, const QDate &maxVal);
|
---|
212 | void setRange(QtProperty *property, const QDate &minVal, const QDate &maxVal);
|
---|
213 | Q_SIGNALS:
|
---|
214 | void valueChanged(QtProperty *property, const QDate &val);
|
---|
215 | void rangeChanged(QtProperty *property, const QDate &minVal, const QDate &maxVal);
|
---|
216 | protected:
|
---|
217 | QString valueText(const QtProperty *property) const;
|
---|
218 | virtual void initializeProperty(QtProperty *property);
|
---|
219 | virtual void uninitializeProperty(QtProperty *property);
|
---|
220 | private:
|
---|
221 | QtDatePropertyManagerPrivate *d_ptr;
|
---|
222 | Q_DECLARE_PRIVATE(QtDatePropertyManager)
|
---|
223 | Q_DISABLE_COPY(QtDatePropertyManager)
|
---|
224 | };
|
---|
225 |
|
---|
226 | class QtTimePropertyManagerPrivate;
|
---|
227 |
|
---|
228 | class QtTimePropertyManager : public QtAbstractPropertyManager
|
---|
229 | {
|
---|
230 | Q_OBJECT
|
---|
231 | public:
|
---|
232 | QtTimePropertyManager(QObject *parent = 0);
|
---|
233 | ~QtTimePropertyManager();
|
---|
234 |
|
---|
235 | QTime value(const QtProperty *property) const;
|
---|
236 |
|
---|
237 | public Q_SLOTS:
|
---|
238 | void setValue(QtProperty *property, const QTime &val);
|
---|
239 | Q_SIGNALS:
|
---|
240 | void valueChanged(QtProperty *property, const QTime &val);
|
---|
241 | protected:
|
---|
242 | QString valueText(const QtProperty *property) const;
|
---|
243 | virtual void initializeProperty(QtProperty *property);
|
---|
244 | virtual void uninitializeProperty(QtProperty *property);
|
---|
245 | private:
|
---|
246 | QtTimePropertyManagerPrivate *d_ptr;
|
---|
247 | Q_DECLARE_PRIVATE(QtTimePropertyManager)
|
---|
248 | Q_DISABLE_COPY(QtTimePropertyManager)
|
---|
249 | };
|
---|
250 |
|
---|
251 | class QtDateTimePropertyManagerPrivate;
|
---|
252 |
|
---|
253 | class QtDateTimePropertyManager : public QtAbstractPropertyManager
|
---|
254 | {
|
---|
255 | Q_OBJECT
|
---|
256 | public:
|
---|
257 | QtDateTimePropertyManager(QObject *parent = 0);
|
---|
258 | ~QtDateTimePropertyManager();
|
---|
259 |
|
---|
260 | QDateTime value(const QtProperty *property) const;
|
---|
261 |
|
---|
262 | public Q_SLOTS:
|
---|
263 | void setValue(QtProperty *property, const QDateTime &val);
|
---|
264 | Q_SIGNALS:
|
---|
265 | void valueChanged(QtProperty *property, const QDateTime &val);
|
---|
266 | protected:
|
---|
267 | QString valueText(const QtProperty *property) const;
|
---|
268 | virtual void initializeProperty(QtProperty *property);
|
---|
269 | virtual void uninitializeProperty(QtProperty *property);
|
---|
270 | private:
|
---|
271 | QtDateTimePropertyManagerPrivate *d_ptr;
|
---|
272 | Q_DECLARE_PRIVATE(QtDateTimePropertyManager)
|
---|
273 | Q_DISABLE_COPY(QtDateTimePropertyManager)
|
---|
274 | };
|
---|
275 |
|
---|
276 | class QtKeySequencePropertyManagerPrivate;
|
---|
277 |
|
---|
278 | class QtKeySequencePropertyManager : public QtAbstractPropertyManager
|
---|
279 | {
|
---|
280 | Q_OBJECT
|
---|
281 | public:
|
---|
282 | QtKeySequencePropertyManager(QObject *parent = 0);
|
---|
283 | ~QtKeySequencePropertyManager();
|
---|
284 |
|
---|
285 | QKeySequence value(const QtProperty *property) const;
|
---|
286 |
|
---|
287 | public Q_SLOTS:
|
---|
288 | void setValue(QtProperty *property, const QKeySequence &val);
|
---|
289 | Q_SIGNALS:
|
---|
290 | void valueChanged(QtProperty *property, const QKeySequence &val);
|
---|
291 | protected:
|
---|
292 | QString valueText(const QtProperty *property) const;
|
---|
293 | virtual void initializeProperty(QtProperty *property);
|
---|
294 | virtual void uninitializeProperty(QtProperty *property);
|
---|
295 | private:
|
---|
296 | QtKeySequencePropertyManagerPrivate *d_ptr;
|
---|
297 | Q_DECLARE_PRIVATE(QtKeySequencePropertyManager)
|
---|
298 | Q_DISABLE_COPY(QtKeySequencePropertyManager)
|
---|
299 | };
|
---|
300 |
|
---|
301 | class QtCharPropertyManagerPrivate;
|
---|
302 |
|
---|
303 | class QtCharPropertyManager : public QtAbstractPropertyManager
|
---|
304 | {
|
---|
305 | Q_OBJECT
|
---|
306 | public:
|
---|
307 | QtCharPropertyManager(QObject *parent = 0);
|
---|
308 | ~QtCharPropertyManager();
|
---|
309 |
|
---|
310 | QChar value(const QtProperty *property) const;
|
---|
311 |
|
---|
312 | public Q_SLOTS:
|
---|
313 | void setValue(QtProperty *property, const QChar &val);
|
---|
314 | Q_SIGNALS:
|
---|
315 | void valueChanged(QtProperty *property, const QChar &val);
|
---|
316 | protected:
|
---|
317 | QString valueText(const QtProperty *property) const;
|
---|
318 | virtual void initializeProperty(QtProperty *property);
|
---|
319 | virtual void uninitializeProperty(QtProperty *property);
|
---|
320 | private:
|
---|
321 | QtCharPropertyManagerPrivate *d_ptr;
|
---|
322 | Q_DECLARE_PRIVATE(QtCharPropertyManager)
|
---|
323 | Q_DISABLE_COPY(QtCharPropertyManager)
|
---|
324 | };
|
---|
325 |
|
---|
326 | class QtEnumPropertyManager;
|
---|
327 | class QtLocalePropertyManagerPrivate;
|
---|
328 |
|
---|
329 | class QtLocalePropertyManager : public QtAbstractPropertyManager
|
---|
330 | {
|
---|
331 | Q_OBJECT
|
---|
332 | public:
|
---|
333 | QtLocalePropertyManager(QObject *parent = 0);
|
---|
334 | ~QtLocalePropertyManager();
|
---|
335 |
|
---|
336 | QtEnumPropertyManager *subEnumPropertyManager() const;
|
---|
337 |
|
---|
338 | QLocale value(const QtProperty *property) const;
|
---|
339 |
|
---|
340 | public Q_SLOTS:
|
---|
341 | void setValue(QtProperty *property, const QLocale &val);
|
---|
342 | Q_SIGNALS:
|
---|
343 | void valueChanged(QtProperty *property, const QLocale &val);
|
---|
344 | protected:
|
---|
345 | QString valueText(const QtProperty *property) const;
|
---|
346 | virtual void initializeProperty(QtProperty *property);
|
---|
347 | virtual void uninitializeProperty(QtProperty *property);
|
---|
348 | private:
|
---|
349 | QtLocalePropertyManagerPrivate *d_ptr;
|
---|
350 | Q_DECLARE_PRIVATE(QtLocalePropertyManager)
|
---|
351 | Q_DISABLE_COPY(QtLocalePropertyManager)
|
---|
352 | Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty *, int))
|
---|
353 | Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
|
---|
354 | };
|
---|
355 |
|
---|
356 | class QtPointPropertyManagerPrivate;
|
---|
357 |
|
---|
358 | class QtPointPropertyManager : public QtAbstractPropertyManager
|
---|
359 | {
|
---|
360 | Q_OBJECT
|
---|
361 | public:
|
---|
362 | QtPointPropertyManager(QObject *parent = 0);
|
---|
363 | ~QtPointPropertyManager();
|
---|
364 |
|
---|
365 | QtIntPropertyManager *subIntPropertyManager() const;
|
---|
366 |
|
---|
367 | QPoint value(const QtProperty *property) const;
|
---|
368 |
|
---|
369 | public Q_SLOTS:
|
---|
370 | void setValue(QtProperty *property, const QPoint &val);
|
---|
371 | Q_SIGNALS:
|
---|
372 | void valueChanged(QtProperty *property, const QPoint &val);
|
---|
373 | protected:
|
---|
374 | QString valueText(const QtProperty *property) const;
|
---|
375 | virtual void initializeProperty(QtProperty *property);
|
---|
376 | virtual void uninitializeProperty(QtProperty *property);
|
---|
377 | private:
|
---|
378 | QtPointPropertyManagerPrivate *d_ptr;
|
---|
379 | Q_DECLARE_PRIVATE(QtPointPropertyManager)
|
---|
380 | Q_DISABLE_COPY(QtPointPropertyManager)
|
---|
381 | Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
|
---|
382 | Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
|
---|
383 | };
|
---|
384 |
|
---|
385 | class QtPointFPropertyManagerPrivate;
|
---|
386 |
|
---|
387 | class QtPointFPropertyManager : public QtAbstractPropertyManager
|
---|
388 | {
|
---|
389 | Q_OBJECT
|
---|
390 | public:
|
---|
391 | QtPointFPropertyManager(QObject *parent = 0);
|
---|
392 | ~QtPointFPropertyManager();
|
---|
393 |
|
---|
394 | QtDoublePropertyManager *subDoublePropertyManager() const;
|
---|
395 |
|
---|
396 | QPointF value(const QtProperty *property) const;
|
---|
397 | int decimals(const QtProperty *property) const;
|
---|
398 |
|
---|
399 | public Q_SLOTS:
|
---|
400 | void setValue(QtProperty *property, const QPointF &val);
|
---|
401 | void setDecimals(QtProperty *property, int prec);
|
---|
402 | Q_SIGNALS:
|
---|
403 | void valueChanged(QtProperty *property, const QPointF &val);
|
---|
404 | void decimalsChanged(QtProperty *property, int prec);
|
---|
405 | protected:
|
---|
406 | QString valueText(const QtProperty *property) const;
|
---|
407 | virtual void initializeProperty(QtProperty *property);
|
---|
408 | virtual void uninitializeProperty(QtProperty *property);
|
---|
409 | private:
|
---|
410 | QtPointFPropertyManagerPrivate *d_ptr;
|
---|
411 | Q_DECLARE_PRIVATE(QtPointFPropertyManager)
|
---|
412 | Q_DISABLE_COPY(QtPointFPropertyManager)
|
---|
413 | Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty *, double))
|
---|
414 | Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
|
---|
415 | };
|
---|
416 |
|
---|
417 | class QtSizePropertyManagerPrivate;
|
---|
418 |
|
---|
419 | class QtSizePropertyManager : public QtAbstractPropertyManager
|
---|
420 | {
|
---|
421 | Q_OBJECT
|
---|
422 | public:
|
---|
423 | QtSizePropertyManager(QObject *parent = 0);
|
---|
424 | ~QtSizePropertyManager();
|
---|
425 |
|
---|
426 | QtIntPropertyManager *subIntPropertyManager() const;
|
---|
427 |
|
---|
428 | QSize value(const QtProperty *property) const;
|
---|
429 | QSize minimum(const QtProperty *property) const;
|
---|
430 | QSize maximum(const QtProperty *property) const;
|
---|
431 |
|
---|
432 | public Q_SLOTS:
|
---|
433 | void setValue(QtProperty *property, const QSize &val);
|
---|
434 | void setMinimum(QtProperty *property, const QSize &minVal);
|
---|
435 | void setMaximum(QtProperty *property, const QSize &maxVal);
|
---|
436 | void setRange(QtProperty *property, const QSize &minVal, const QSize &maxVal);
|
---|
437 | Q_SIGNALS:
|
---|
438 | void valueChanged(QtProperty *property, const QSize &val);
|
---|
439 | void rangeChanged(QtProperty *property, const QSize &minVal, const QSize &maxVal);
|
---|
440 | protected:
|
---|
441 | QString valueText(const QtProperty *property) const;
|
---|
442 | virtual void initializeProperty(QtProperty *property);
|
---|
443 | virtual void uninitializeProperty(QtProperty *property);
|
---|
444 | private:
|
---|
445 | QtSizePropertyManagerPrivate *d_ptr;
|
---|
446 | Q_DECLARE_PRIVATE(QtSizePropertyManager)
|
---|
447 | Q_DISABLE_COPY(QtSizePropertyManager)
|
---|
448 | Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
|
---|
449 | Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
|
---|
450 | };
|
---|
451 |
|
---|
452 | class QtSizeFPropertyManagerPrivate;
|
---|
453 |
|
---|
454 | class QtSizeFPropertyManager : public QtAbstractPropertyManager
|
---|
455 | {
|
---|
456 | Q_OBJECT
|
---|
457 | public:
|
---|
458 | QtSizeFPropertyManager(QObject *parent = 0);
|
---|
459 | ~QtSizeFPropertyManager();
|
---|
460 |
|
---|
461 | QtDoublePropertyManager *subDoublePropertyManager() const;
|
---|
462 |
|
---|
463 | QSizeF value(const QtProperty *property) const;
|
---|
464 | QSizeF minimum(const QtProperty *property) const;
|
---|
465 | QSizeF maximum(const QtProperty *property) const;
|
---|
466 | int decimals(const QtProperty *property) const;
|
---|
467 |
|
---|
468 | public Q_SLOTS:
|
---|
469 | void setValue(QtProperty *property, const QSizeF &val);
|
---|
470 | void setMinimum(QtProperty *property, const QSizeF &minVal);
|
---|
471 | void setMaximum(QtProperty *property, const QSizeF &maxVal);
|
---|
472 | void setRange(QtProperty *property, const QSizeF &minVal, const QSizeF &maxVal);
|
---|
473 | void setDecimals(QtProperty *property, int prec);
|
---|
474 | Q_SIGNALS:
|
---|
475 | void valueChanged(QtProperty *property, const QSizeF &val);
|
---|
476 | void rangeChanged(QtProperty *property, const QSizeF &minVal, const QSizeF &maxVal);
|
---|
477 | void decimalsChanged(QtProperty *property, int prec);
|
---|
478 | protected:
|
---|
479 | QString valueText(const QtProperty *property) const;
|
---|
480 | virtual void initializeProperty(QtProperty *property);
|
---|
481 | virtual void uninitializeProperty(QtProperty *property);
|
---|
482 | private:
|
---|
483 | QtSizeFPropertyManagerPrivate *d_ptr;
|
---|
484 | Q_DECLARE_PRIVATE(QtSizeFPropertyManager)
|
---|
485 | Q_DISABLE_COPY(QtSizeFPropertyManager)
|
---|
486 | Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty *, double))
|
---|
487 | Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
|
---|
488 | };
|
---|
489 |
|
---|
490 | class QtRectPropertyManagerPrivate;
|
---|
491 |
|
---|
492 | class QtRectPropertyManager : public QtAbstractPropertyManager
|
---|
493 | {
|
---|
494 | Q_OBJECT
|
---|
495 | public:
|
---|
496 | QtRectPropertyManager(QObject *parent = 0);
|
---|
497 | ~QtRectPropertyManager();
|
---|
498 |
|
---|
499 | QtIntPropertyManager *subIntPropertyManager() const;
|
---|
500 |
|
---|
501 | QRect value(const QtProperty *property) const;
|
---|
502 | QRect constraint(const QtProperty *property) const;
|
---|
503 |
|
---|
504 | public Q_SLOTS:
|
---|
505 | void setValue(QtProperty *property, const QRect &val);
|
---|
506 | void setConstraint(QtProperty *property, const QRect &constraint);
|
---|
507 | Q_SIGNALS:
|
---|
508 | void valueChanged(QtProperty *property, const QRect &val);
|
---|
509 | void constraintChanged(QtProperty *property, const QRect &constraint);
|
---|
510 | protected:
|
---|
511 | QString valueText(const QtProperty *property) const;
|
---|
512 | virtual void initializeProperty(QtProperty *property);
|
---|
513 | virtual void uninitializeProperty(QtProperty *property);
|
---|
514 | private:
|
---|
515 | QtRectPropertyManagerPrivate *d_ptr;
|
---|
516 | Q_DECLARE_PRIVATE(QtRectPropertyManager)
|
---|
517 | Q_DISABLE_COPY(QtRectPropertyManager)
|
---|
518 | Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
|
---|
519 | Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
|
---|
520 | };
|
---|
521 |
|
---|
522 | class QtRectFPropertyManagerPrivate;
|
---|
523 |
|
---|
524 | class QtRectFPropertyManager : public QtAbstractPropertyManager
|
---|
525 | {
|
---|
526 | Q_OBJECT
|
---|
527 | public:
|
---|
528 | QtRectFPropertyManager(QObject *parent = 0);
|
---|
529 | ~QtRectFPropertyManager();
|
---|
530 |
|
---|
531 | QtDoublePropertyManager *subDoublePropertyManager() const;
|
---|
532 |
|
---|
533 | QRectF value(const QtProperty *property) const;
|
---|
534 | QRectF constraint(const QtProperty *property) const;
|
---|
535 | int decimals(const QtProperty *property) const;
|
---|
536 |
|
---|
537 | public Q_SLOTS:
|
---|
538 | void setValue(QtProperty *property, const QRectF &val);
|
---|
539 | void setConstraint(QtProperty *property, const QRectF &constraint);
|
---|
540 | void setDecimals(QtProperty *property, int prec);
|
---|
541 | Q_SIGNALS:
|
---|
542 | void valueChanged(QtProperty *property, const QRectF &val);
|
---|
543 | void constraintChanged(QtProperty *property, const QRectF &constraint);
|
---|
544 | void decimalsChanged(QtProperty *property, int prec);
|
---|
545 | protected:
|
---|
546 | QString valueText(const QtProperty *property) const;
|
---|
547 | virtual void initializeProperty(QtProperty *property);
|
---|
548 | virtual void uninitializeProperty(QtProperty *property);
|
---|
549 | private:
|
---|
550 | QtRectFPropertyManagerPrivate *d_ptr;
|
---|
551 | Q_DECLARE_PRIVATE(QtRectFPropertyManager)
|
---|
552 | Q_DISABLE_COPY(QtRectFPropertyManager)
|
---|
553 | Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty *, double))
|
---|
554 | Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
|
---|
555 | };
|
---|
556 |
|
---|
557 | class QtEnumPropertyManagerPrivate;
|
---|
558 |
|
---|
559 | class QtEnumPropertyManager : public QtAbstractPropertyManager
|
---|
560 | {
|
---|
561 | Q_OBJECT
|
---|
562 | public:
|
---|
563 | QtEnumPropertyManager(QObject *parent = 0);
|
---|
564 | ~QtEnumPropertyManager();
|
---|
565 |
|
---|
566 | int value(const QtProperty *property) const;
|
---|
567 | QStringList enumNames(const QtProperty *property) const;
|
---|
568 | QMap<int, QIcon> enumIcons(const QtProperty *property) const;
|
---|
569 |
|
---|
570 | public Q_SLOTS:
|
---|
571 | void setValue(QtProperty *property, int val);
|
---|
572 | void setEnumNames(QtProperty *property, const QStringList &names);
|
---|
573 | void setEnumIcons(QtProperty *property, const QMap<int, QIcon> &icons);
|
---|
574 | Q_SIGNALS:
|
---|
575 | void valueChanged(QtProperty *property, int val);
|
---|
576 | void enumNamesChanged(QtProperty *property, const QStringList &names);
|
---|
577 | void enumIconsChanged(QtProperty *property, const QMap<int, QIcon> &icons);
|
---|
578 | protected:
|
---|
579 | QString valueText(const QtProperty *property) const;
|
---|
580 | QIcon valueIcon(const QtProperty *property) const;
|
---|
581 | virtual void initializeProperty(QtProperty *property);
|
---|
582 | virtual void uninitializeProperty(QtProperty *property);
|
---|
583 | private:
|
---|
584 | QtEnumPropertyManagerPrivate *d_ptr;
|
---|
585 | Q_DECLARE_PRIVATE(QtEnumPropertyManager)
|
---|
586 | Q_DISABLE_COPY(QtEnumPropertyManager)
|
---|
587 | };
|
---|
588 |
|
---|
589 | class QtFlagPropertyManagerPrivate;
|
---|
590 |
|
---|
591 | class QtFlagPropertyManager : public QtAbstractPropertyManager
|
---|
592 | {
|
---|
593 | Q_OBJECT
|
---|
594 | public:
|
---|
595 | QtFlagPropertyManager(QObject *parent = 0);
|
---|
596 | ~QtFlagPropertyManager();
|
---|
597 |
|
---|
598 | QtBoolPropertyManager *subBoolPropertyManager() const;
|
---|
599 |
|
---|
600 | int value(const QtProperty *property) const;
|
---|
601 | QStringList flagNames(const QtProperty *property) const;
|
---|
602 |
|
---|
603 | public Q_SLOTS:
|
---|
604 | void setValue(QtProperty *property, int val);
|
---|
605 | void setFlagNames(QtProperty *property, const QStringList &names);
|
---|
606 | Q_SIGNALS:
|
---|
607 | void valueChanged(QtProperty *property, int val);
|
---|
608 | void flagNamesChanged(QtProperty *property, const QStringList &names);
|
---|
609 | protected:
|
---|
610 | QString valueText(const QtProperty *property) const;
|
---|
611 | virtual void initializeProperty(QtProperty *property);
|
---|
612 | virtual void uninitializeProperty(QtProperty *property);
|
---|
613 | private:
|
---|
614 | QtFlagPropertyManagerPrivate *d_ptr;
|
---|
615 | Q_DECLARE_PRIVATE(QtFlagPropertyManager)
|
---|
616 | Q_DISABLE_COPY(QtFlagPropertyManager)
|
---|
617 | Q_PRIVATE_SLOT(d_func(), void slotBoolChanged(QtProperty *, bool))
|
---|
618 | Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
|
---|
619 | };
|
---|
620 |
|
---|
621 | class QtSizePolicyPropertyManagerPrivate;
|
---|
622 |
|
---|
623 | class QtSizePolicyPropertyManager : public QtAbstractPropertyManager
|
---|
624 | {
|
---|
625 | Q_OBJECT
|
---|
626 | public:
|
---|
627 | QtSizePolicyPropertyManager(QObject *parent = 0);
|
---|
628 | ~QtSizePolicyPropertyManager();
|
---|
629 |
|
---|
630 | QtIntPropertyManager *subIntPropertyManager() const;
|
---|
631 | QtEnumPropertyManager *subEnumPropertyManager() const;
|
---|
632 |
|
---|
633 | QSizePolicy value(const QtProperty *property) const;
|
---|
634 |
|
---|
635 | public Q_SLOTS:
|
---|
636 | void setValue(QtProperty *property, const QSizePolicy &val);
|
---|
637 | Q_SIGNALS:
|
---|
638 | void valueChanged(QtProperty *property, const QSizePolicy &val);
|
---|
639 | protected:
|
---|
640 | QString valueText(const QtProperty *property) const;
|
---|
641 | virtual void initializeProperty(QtProperty *property);
|
---|
642 | virtual void uninitializeProperty(QtProperty *property);
|
---|
643 | private:
|
---|
644 | QtSizePolicyPropertyManagerPrivate *d_ptr;
|
---|
645 | Q_DECLARE_PRIVATE(QtSizePolicyPropertyManager)
|
---|
646 | Q_DISABLE_COPY(QtSizePolicyPropertyManager)
|
---|
647 | Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
|
---|
648 | Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty *, int))
|
---|
649 | Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
|
---|
650 | };
|
---|
651 |
|
---|
652 | class QtFontPropertyManagerPrivate;
|
---|
653 |
|
---|
654 | class QtFontPropertyManager : public QtAbstractPropertyManager
|
---|
655 | {
|
---|
656 | Q_OBJECT
|
---|
657 | public:
|
---|
658 | QtFontPropertyManager(QObject *parent = 0);
|
---|
659 | ~QtFontPropertyManager();
|
---|
660 |
|
---|
661 | QtIntPropertyManager *subIntPropertyManager() const;
|
---|
662 | QtEnumPropertyManager *subEnumPropertyManager() const;
|
---|
663 | QtBoolPropertyManager *subBoolPropertyManager() const;
|
---|
664 |
|
---|
665 | QFont value(const QtProperty *property) const;
|
---|
666 |
|
---|
667 | public Q_SLOTS:
|
---|
668 | void setValue(QtProperty *property, const QFont &val);
|
---|
669 | Q_SIGNALS:
|
---|
670 | void valueChanged(QtProperty *property, const QFont &val);
|
---|
671 | protected:
|
---|
672 | QString valueText(const QtProperty *property) const;
|
---|
673 | QIcon valueIcon(const QtProperty *property) const;
|
---|
674 | virtual void initializeProperty(QtProperty *property);
|
---|
675 | virtual void uninitializeProperty(QtProperty *property);
|
---|
676 | private:
|
---|
677 | QtFontPropertyManagerPrivate *d_ptr;
|
---|
678 | Q_DECLARE_PRIVATE(QtFontPropertyManager)
|
---|
679 | Q_DISABLE_COPY(QtFontPropertyManager)
|
---|
680 | Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
|
---|
681 | Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty *, int))
|
---|
682 | Q_PRIVATE_SLOT(d_func(), void slotBoolChanged(QtProperty *, bool))
|
---|
683 | Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
|
---|
684 | Q_PRIVATE_SLOT(d_func(), void slotFontDatabaseChanged())
|
---|
685 | Q_PRIVATE_SLOT(d_func(), void slotFontDatabaseDelayedChange())
|
---|
686 | };
|
---|
687 |
|
---|
688 | class QtColorPropertyManagerPrivate;
|
---|
689 |
|
---|
690 | class QtColorPropertyManager : public QtAbstractPropertyManager
|
---|
691 | {
|
---|
692 | Q_OBJECT
|
---|
693 | public:
|
---|
694 | QtColorPropertyManager(QObject *parent = 0);
|
---|
695 | ~QtColorPropertyManager();
|
---|
696 |
|
---|
697 | QtIntPropertyManager *subIntPropertyManager() const;
|
---|
698 |
|
---|
699 | QColor value(const QtProperty *property) const;
|
---|
700 |
|
---|
701 | public Q_SLOTS:
|
---|
702 | void setValue(QtProperty *property, const QColor &val);
|
---|
703 | Q_SIGNALS:
|
---|
704 | void valueChanged(QtProperty *property, const QColor &val);
|
---|
705 | protected:
|
---|
706 | QString valueText(const QtProperty *property) const;
|
---|
707 | QIcon valueIcon(const QtProperty *property) const;
|
---|
708 | virtual void initializeProperty(QtProperty *property);
|
---|
709 | virtual void uninitializeProperty(QtProperty *property);
|
---|
710 | private:
|
---|
711 | QtColorPropertyManagerPrivate *d_ptr;
|
---|
712 | Q_DECLARE_PRIVATE(QtColorPropertyManager)
|
---|
713 | Q_DISABLE_COPY(QtColorPropertyManager)
|
---|
714 | Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
|
---|
715 | Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
|
---|
716 | };
|
---|
717 |
|
---|
718 | class QtCursorPropertyManagerPrivate;
|
---|
719 |
|
---|
720 | class QtCursorPropertyManager : public QtAbstractPropertyManager
|
---|
721 | {
|
---|
722 | Q_OBJECT
|
---|
723 | public:
|
---|
724 | QtCursorPropertyManager(QObject *parent = 0);
|
---|
725 | ~QtCursorPropertyManager();
|
---|
726 |
|
---|
727 | #ifndef QT_NO_CURSOR
|
---|
728 | QCursor value(const QtProperty *property) const;
|
---|
729 | #endif
|
---|
730 |
|
---|
731 | public Q_SLOTS:
|
---|
732 | void setValue(QtProperty *property, const QCursor &val);
|
---|
733 | Q_SIGNALS:
|
---|
734 | void valueChanged(QtProperty *property, const QCursor &val);
|
---|
735 | protected:
|
---|
736 | QString valueText(const QtProperty *property) const;
|
---|
737 | QIcon valueIcon(const QtProperty *property) const;
|
---|
738 | virtual void initializeProperty(QtProperty *property);
|
---|
739 | virtual void uninitializeProperty(QtProperty *property);
|
---|
740 | private:
|
---|
741 | QtCursorPropertyManagerPrivate *d_ptr;
|
---|
742 | Q_DECLARE_PRIVATE(QtCursorPropertyManager)
|
---|
743 | Q_DISABLE_COPY(QtCursorPropertyManager)
|
---|
744 | };
|
---|
745 |
|
---|
746 | #if QT_VERSION >= 0x040400
|
---|
747 | QT_END_NAMESPACE
|
---|
748 | #endif
|
---|
749 |
|
---|
750 | #endif
|
---|