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