qtpropertymanager.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the Qt Solutions component.
7 **
8 ** $QT_BEGIN_LICENSE:BSD$
9 ** You may use this file under the terms of the BSD license as follows:
10 **
11 ** "Redistribution and use in source and binary forms, with or without
12 ** modification, are permitted provided that the following conditions are
13 ** met:
14 ** * Redistributions of source code must retain the above copyright
15 ** notice, this list of conditions and the following disclaimer.
16 ** * Redistributions in binary form must reproduce the above copyright
17 ** notice, this list of conditions and the following disclaimer in
18 ** the documentation and/or other materials provided with the
19 ** distribution.
20 ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 ** of its contributors may be used to endorse or promote products derived
22 ** from this software without specific prior written permission.
23 **
24 **
25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 **
37 ** $QT_END_LICENSE$
38 **
39 ****************************************************************************/
40 
41 
42 #pragma once
43 
44 #include "qtpropertybrowser.h"
45 #include <QLineEdit>
46 
47 QT_BEGIN_NAMESPACE
48 
49 class QDate;
50 class QTime;
51 class QDateTime;
52 class QLocale;
53 
55 {
56  Q_OBJECT
57 public:
58  QtGroupPropertyManager(QObject* parent = 0);
59  ~QtGroupPropertyManager() override;
60 
61 protected:
62  bool hasValue(const QtProperty* property) const override;
63 
64  void initializeProperty(QtProperty* property) override;
65  void uninitializeProperty(QtProperty* property) override;
66 };
67 
69 
71 {
72  Q_OBJECT
73 public:
74  QtIntPropertyManager(QObject* parent = 0);
75  ~QtIntPropertyManager() override;
76 
77  int value(const QtProperty* property) const;
78  int minimum(const QtProperty* property) const;
79  int maximum(const QtProperty* property) const;
80  int singleStep(const QtProperty* property) const;
81  bool isReadOnly(const QtProperty* property) const;
82 
83 public Q_SLOTS:
84  void setValue(QtProperty* property, int val);
85  void setMinimum(QtProperty* property, int minVal);
86  void setMaximum(QtProperty* property, int maxVal);
87  void setRange(QtProperty* property, int minVal, int maxVal);
88  void setSingleStep(QtProperty* property, int step);
89  void setReadOnly(QtProperty* property, bool readOnly);
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  void readOnlyChanged(QtProperty* property, bool readOnly);
95 protected:
96  QString valueText(const QtProperty* property) const override;
97  void initializeProperty(QtProperty* property) override;
98  void uninitializeProperty(QtProperty* property) override;
99 private:
101  Q_DECLARE_PRIVATE(QtIntPropertyManager)
102  Q_DISABLE_COPY(QtIntPropertyManager)
103 };
104 
106 
108 {
109  Q_OBJECT
110 public:
111  QtBoolPropertyManager(QObject* parent = 0);
112  ~QtBoolPropertyManager() override;
113 
114  bool value(const QtProperty* property) const;
115  bool textVisible(const QtProperty* property) const;
116 
117 public Q_SLOTS:
118  void setValue(QtProperty* property, bool val);
119  void setTextVisible(QtProperty* property, bool textVisible);
120 Q_SIGNALS:
121  void valueChanged(QtProperty* property, bool val);
122  void textVisibleChanged(QtProperty* property, bool);
123 protected:
124  QString valueText(const QtProperty* property) const override;
125  QIcon valueIcon(const QtProperty* property) const override;
126  void initializeProperty(QtProperty* property) override;
127  void uninitializeProperty(QtProperty* property) override;
128 private:
130  Q_DECLARE_PRIVATE(QtBoolPropertyManager)
131  Q_DISABLE_COPY(QtBoolPropertyManager)
132 };
133 
135 
137 {
138  Q_OBJECT
139 public:
140  QtDoublePropertyManager(QObject* parent = 0);
141  ~QtDoublePropertyManager() override;
142 
143  double value(const QtProperty* property) const;
144  double minimum(const QtProperty* property) const;
145  double maximum(const QtProperty* property) const;
146  double singleStep(const QtProperty* property) const;
147  int decimals(const QtProperty* property) const;
148  bool isReadOnly(const QtProperty* property) const;
149 
150 public Q_SLOTS:
151  void setValue(QtProperty* property, double val);
152  void setMinimum(QtProperty* property, double minVal);
153  void setMaximum(QtProperty* property, double maxVal);
154  void setRange(QtProperty* property, double minVal, double maxVal);
155  void setSingleStep(QtProperty* property, double step);
156  void setDecimals(QtProperty* property, int prec);
157  void setReadOnly(QtProperty* property, bool readOnly);
158 Q_SIGNALS:
159  void valueChanged(QtProperty* property, double val);
160  void rangeChanged(QtProperty* property, double minVal, double maxVal);
161  void singleStepChanged(QtProperty* property, double step);
162  void decimalsChanged(QtProperty* property, int prec);
163  void readOnlyChanged(QtProperty* property, bool readOnly);
164 protected:
165  QString valueText(const QtProperty* property) const override;
166  void initializeProperty(QtProperty* property) override;
167  void uninitializeProperty(QtProperty* property) override;
168 private:
170  Q_DECLARE_PRIVATE(QtDoublePropertyManager)
171  Q_DISABLE_COPY(QtDoublePropertyManager)
172 };
173 
175 
177 {
178  Q_OBJECT
179 public:
180  QtStringPropertyManager(QObject* parent = 0);
181  ~QtStringPropertyManager() override;
182 
183  QString value(const QtProperty* property) const;
184  QRegExp regExp(const QtProperty* property) const;
185  EchoMode echoMode(const QtProperty* property) const override;
186  bool isReadOnly(const QtProperty* property) const;
187 
188 public Q_SLOTS:
189  void setValue(QtProperty* property, const QString& val);
190  void setRegExp(QtProperty* property, const QRegExp& regExp);
191  void setEchoMode(QtProperty* property, EchoMode echoMode);
192  void setReadOnly(QtProperty* property, bool readOnly);
193 
194 Q_SIGNALS:
195  void valueChanged(QtProperty* property, const QString& val);
196  void regExpChanged(QtProperty* property, const QRegExp& regExp);
197  void echoModeChanged(QtProperty* property, const int);
198  void readOnlyChanged(QtProperty* property, bool);
199 
200 protected:
201  QString valueText(const QtProperty* property) const override;
202  QString displayText(const QtProperty* property) const override;
203  void initializeProperty(QtProperty* property) override;
204  void uninitializeProperty(QtProperty* property) override;
205 private:
207  Q_DECLARE_PRIVATE(QtStringPropertyManager)
208  Q_DISABLE_COPY(QtStringPropertyManager)
209 };
210 
212 
214 {
215  Q_OBJECT
216 public:
217  QtDatePropertyManager(QObject* parent = 0);
218  ~QtDatePropertyManager() override;
219 
220  QDate value(const QtProperty* property) const;
221  QDate minimum(const QtProperty* property) const;
222  QDate maximum(const QtProperty* property) const;
223 
224 public Q_SLOTS:
225  void setValue(QtProperty* property, const QDate& val);
226  void setMinimum(QtProperty* property, const QDate& minVal);
227  void setMaximum(QtProperty* property, const QDate& maxVal);
228  void setRange(QtProperty* property, const QDate& minVal, const QDate& maxVal);
229 Q_SIGNALS:
230  void valueChanged(QtProperty* property, const QDate& val);
231  void rangeChanged(QtProperty* property, const QDate& minVal, const QDate& maxVal);
232 protected:
233  QString valueText(const QtProperty* property) const override;
234  void initializeProperty(QtProperty* property) override;
235  void uninitializeProperty(QtProperty* property) override;
236 private:
238  Q_DECLARE_PRIVATE(QtDatePropertyManager)
239  Q_DISABLE_COPY(QtDatePropertyManager)
240 };
241 
243 
245 {
246  Q_OBJECT
247 public:
248  QtTimePropertyManager(QObject* parent = 0);
249  ~QtTimePropertyManager() override;
250 
251  QTime value(const QtProperty* property) const;
252 
253 public Q_SLOTS:
254  void setValue(QtProperty* property, const QTime& val);
255 Q_SIGNALS:
256  void valueChanged(QtProperty* property, const QTime& val);
257 protected:
258  QString valueText(const QtProperty* property) const override;
259  void initializeProperty(QtProperty* property) override;
260  void uninitializeProperty(QtProperty* property) override;
261 private:
263  Q_DECLARE_PRIVATE(QtTimePropertyManager)
264  Q_DISABLE_COPY(QtTimePropertyManager)
265 };
266 
268 
270 {
271  Q_OBJECT
272 public:
273  QtDateTimePropertyManager(QObject* parent = 0);
274  ~QtDateTimePropertyManager() override;
275 
276  QDateTime value(const QtProperty* property) const;
277 
278 public Q_SLOTS:
279  void setValue(QtProperty* property, const QDateTime& val);
280 Q_SIGNALS:
281  void valueChanged(QtProperty* property, const QDateTime& val);
282 protected:
283  QString valueText(const QtProperty* property) const override;
284  void initializeProperty(QtProperty* property) override;
285  void uninitializeProperty(QtProperty* property) override;
286 private:
288  Q_DECLARE_PRIVATE(QtDateTimePropertyManager)
289  Q_DISABLE_COPY(QtDateTimePropertyManager)
290 };
291 
293 
295 {
296  Q_OBJECT
297 public:
298  QtKeySequencePropertyManager(QObject* parent = 0);
299  ~QtKeySequencePropertyManager() override;
300 
301  QKeySequence value(const QtProperty* property) const;
302 
303 public Q_SLOTS:
304  void setValue(QtProperty* property, const QKeySequence& val);
305 Q_SIGNALS:
306  void valueChanged(QtProperty* property, const QKeySequence& val);
307 protected:
308  QString valueText(const QtProperty* property) const override;
309  void initializeProperty(QtProperty* property) override;
310  void uninitializeProperty(QtProperty* property) override;
311 private:
313  Q_DECLARE_PRIVATE(QtKeySequencePropertyManager)
314  Q_DISABLE_COPY(QtKeySequencePropertyManager)
315 };
316 
318 
320 {
321  Q_OBJECT
322 public:
323  QtCharPropertyManager(QObject* parent = 0);
324  ~QtCharPropertyManager() override;
325 
326  QChar value(const QtProperty* property) const;
327 
328 public Q_SLOTS:
329  void setValue(QtProperty* property, const QChar& val);
330 Q_SIGNALS:
331  void valueChanged(QtProperty* property, const QChar& val);
332 protected:
333  QString valueText(const QtProperty* property) const override;
334  void initializeProperty(QtProperty* property) override;
335  void uninitializeProperty(QtProperty* property) override;
336 private:
338  Q_DECLARE_PRIVATE(QtCharPropertyManager)
339  Q_DISABLE_COPY(QtCharPropertyManager)
340 };
341 
344 
346 {
347  Q_OBJECT
348 public:
349  QtLocalePropertyManager(QObject* parent = 0);
350  ~QtLocalePropertyManager() override;
351 
352  QtEnumPropertyManager* subEnumPropertyManager() const;
353 
354  QLocale value(const QtProperty* property) const;
355 
356 public Q_SLOTS:
357  void setValue(QtProperty* property, const QLocale& val);
358 Q_SIGNALS:
359  void valueChanged(QtProperty* property, const QLocale& val);
360 protected:
361  QString valueText(const QtProperty* property) const override;
362  void initializeProperty(QtProperty* property) override;
363  void uninitializeProperty(QtProperty* property) override;
364 private:
366  Q_DECLARE_PRIVATE(QtLocalePropertyManager)
367  Q_DISABLE_COPY(QtLocalePropertyManager)
368  Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty*, int))
369  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
370 };
371 
373 
375 {
376  Q_OBJECT
377 public:
378  QtPointPropertyManager(QObject* parent = 0);
379  ~QtPointPropertyManager() override;
380 
381  QtIntPropertyManager* subIntPropertyManager() const;
382 
383  QPoint value(const QtProperty* property) const;
384 
385 public Q_SLOTS:
386  void setValue(QtProperty* property, const QPoint& val);
387 Q_SIGNALS:
388  void valueChanged(QtProperty* property, const QPoint& val);
389 protected:
390  QString valueText(const QtProperty* property) const override;
391  void initializeProperty(QtProperty* property) override;
392  void uninitializeProperty(QtProperty* property) override;
393 private:
395  Q_DECLARE_PRIVATE(QtPointPropertyManager)
396  Q_DISABLE_COPY(QtPointPropertyManager)
397  Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty*, int))
398  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
399 };
400 
402 
404 {
405  Q_OBJECT
406 public:
407  QtPointFPropertyManager(QObject* parent = 0);
408  ~QtPointFPropertyManager() override;
409 
410  QtDoublePropertyManager* subDoublePropertyManager() const;
411 
412  QPointF value(const QtProperty* property) const;
413  int decimals(const QtProperty* property) const;
414 
415 public Q_SLOTS:
416  void setValue(QtProperty* property, const QPointF& val);
417  void setDecimals(QtProperty* property, int prec);
418 Q_SIGNALS:
419  void valueChanged(QtProperty* property, const QPointF& val);
420  void decimalsChanged(QtProperty* property, int prec);
421 protected:
422  QString valueText(const QtProperty* property) const override;
423  void initializeProperty(QtProperty* property) override;
424  void uninitializeProperty(QtProperty* property) override;
425 private:
427  Q_DECLARE_PRIVATE(QtPointFPropertyManager)
428  Q_DISABLE_COPY(QtPointFPropertyManager)
429  Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty*, double))
430  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
431 };
432 
434 
436 {
437  Q_OBJECT
438 public:
439  QtSizePropertyManager(QObject* parent = 0);
440  ~QtSizePropertyManager() override;
441 
442  QtIntPropertyManager* subIntPropertyManager() const;
443 
444  QSize value(const QtProperty* property) const;
445  QSize minimum(const QtProperty* property) const;
446  QSize maximum(const QtProperty* property) const;
447 
448 public Q_SLOTS:
449  void setValue(QtProperty* property, const QSize& val);
450  void setMinimum(QtProperty* property, const QSize& minVal);
451  void setMaximum(QtProperty* property, const QSize& maxVal);
452  void setRange(QtProperty* property, const QSize& minVal, const QSize& maxVal);
453 Q_SIGNALS:
454  void valueChanged(QtProperty* property, const QSize& val);
455  void rangeChanged(QtProperty* property, const QSize& minVal, const QSize& maxVal);
456 protected:
457  QString valueText(const QtProperty* property) const override;
458  void initializeProperty(QtProperty* property) override;
459  void uninitializeProperty(QtProperty* property) override;
460 private:
462  Q_DECLARE_PRIVATE(QtSizePropertyManager)
463  Q_DISABLE_COPY(QtSizePropertyManager)
464  Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty*, int))
465  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
466 };
467 
469 
471 {
472  Q_OBJECT
473 public:
474  QtSizeFPropertyManager(QObject* parent = 0);
475  ~QtSizeFPropertyManager() override;
476 
477  QtDoublePropertyManager* subDoublePropertyManager() const;
478 
479  QSizeF value(const QtProperty* property) const;
480  QSizeF minimum(const QtProperty* property) const;
481  QSizeF maximum(const QtProperty* property) const;
482  int decimals(const QtProperty* property) const;
483 
484 public Q_SLOTS:
485  void setValue(QtProperty* property, const QSizeF& val);
486  void setMinimum(QtProperty* property, const QSizeF& minVal);
487  void setMaximum(QtProperty* property, const QSizeF& maxVal);
488  void setRange(QtProperty* property, const QSizeF& minVal, const QSizeF& maxVal);
489  void setDecimals(QtProperty* property, int prec);
490 Q_SIGNALS:
491  void valueChanged(QtProperty* property, const QSizeF& val);
492  void rangeChanged(QtProperty* property, const QSizeF& minVal, const QSizeF& maxVal);
493  void decimalsChanged(QtProperty* property, int prec);
494 protected:
495  QString valueText(const QtProperty* property) const override;
496  void initializeProperty(QtProperty* property) override;
497  void uninitializeProperty(QtProperty* property) override;
498 private:
500  Q_DECLARE_PRIVATE(QtSizeFPropertyManager)
501  Q_DISABLE_COPY(QtSizeFPropertyManager)
502  Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty*, double))
503  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
504 };
505 
507 
509 {
510  Q_OBJECT
511 public:
512  QtRectPropertyManager(QObject* parent = 0);
513  ~QtRectPropertyManager() override;
514 
515  QtIntPropertyManager* subIntPropertyManager() const;
516 
517  QRect value(const QtProperty* property) const;
518  QRect constraint(const QtProperty* property) const;
519 
520 public Q_SLOTS:
521  void setValue(QtProperty* property, const QRect& val);
522  void setConstraint(QtProperty* property, const QRect& constraint);
523 Q_SIGNALS:
524  void valueChanged(QtProperty* property, const QRect& val);
525  void constraintChanged(QtProperty* property, const QRect& constraint);
526 protected:
527  QString valueText(const QtProperty* property) const override;
528  void initializeProperty(QtProperty* property) override;
529  void uninitializeProperty(QtProperty* property) override;
530 private:
532  Q_DECLARE_PRIVATE(QtRectPropertyManager)
533  Q_DISABLE_COPY(QtRectPropertyManager)
534  Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty*, int))
535  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
536 };
537 
539 
541 {
542  Q_OBJECT
543 public:
544  QtRectFPropertyManager(QObject* parent = 0);
545  ~QtRectFPropertyManager() override;
546 
547  QtDoublePropertyManager* subDoublePropertyManager() const;
548 
549  QRectF value(const QtProperty* property) const;
550  QRectF constraint(const QtProperty* property) const;
551  int decimals(const QtProperty* property) const;
552 
553 public Q_SLOTS:
554  void setValue(QtProperty* property, const QRectF& val);
555  void setConstraint(QtProperty* property, const QRectF& constraint);
556  void setDecimals(QtProperty* property, int prec);
557 Q_SIGNALS:
558  void valueChanged(QtProperty* property, const QRectF& val);
559  void constraintChanged(QtProperty* property, const QRectF& constraint);
560  void decimalsChanged(QtProperty* property, int prec);
561 protected:
562  QString valueText(const QtProperty* property) const override;
563  void initializeProperty(QtProperty* property) override;
564  void uninitializeProperty(QtProperty* property) override;
565 private:
567  Q_DECLARE_PRIVATE(QtRectFPropertyManager)
568  Q_DISABLE_COPY(QtRectFPropertyManager)
569  Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty*, double))
570  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
571 };
572 
574 
576 {
577  Q_OBJECT
578 public:
579  QtEnumPropertyManager(QObject* parent = 0);
580  ~QtEnumPropertyManager() override;
581 
582  int value(const QtProperty* property) const;
583  QStringList enumNames(const QtProperty* property) const;
584  QMap<int, QIcon> enumIcons(const QtProperty* property) const;
585 
586 public Q_SLOTS:
587  void setValue(QtProperty* property, int val);
588  void setEnumNames(QtProperty* property, const QStringList& names);
589  void setEnumIcons(QtProperty* property, const QMap<int, QIcon>& icons);
590 Q_SIGNALS:
591  void valueChanged(QtProperty* property, int val);
592  void enumNamesChanged(QtProperty* property, const QStringList& names);
593  void enumIconsChanged(QtProperty* property, const QMap<int, QIcon>& icons);
594 protected:
595  QString valueText(const QtProperty* property) const override;
596  QIcon valueIcon(const QtProperty* property) const override;
597  void initializeProperty(QtProperty* property) override;
598  void uninitializeProperty(QtProperty* property) override;
599 private:
601  Q_DECLARE_PRIVATE(QtEnumPropertyManager)
602  Q_DISABLE_COPY(QtEnumPropertyManager)
603 };
604 
606 
608 {
609  Q_OBJECT
610 public:
611  QtFlagPropertyManager(QObject* parent = 0);
612  ~QtFlagPropertyManager() override;
613 
614  QtBoolPropertyManager* subBoolPropertyManager() const;
615 
616  int value(const QtProperty* property) const;
617  QStringList flagNames(const QtProperty* property) const;
618 
619 public Q_SLOTS:
620  void setValue(QtProperty* property, int val);
621  void setFlagNames(QtProperty* property, const QStringList& names);
622 Q_SIGNALS:
623  void valueChanged(QtProperty* property, int val);
624  void flagNamesChanged(QtProperty* property, const QStringList& names);
625 protected:
626  QString valueText(const QtProperty* property) const override;
627  void initializeProperty(QtProperty* property) override;
628  void uninitializeProperty(QtProperty* property) override;
629 private:
631  Q_DECLARE_PRIVATE(QtFlagPropertyManager)
632  Q_DISABLE_COPY(QtFlagPropertyManager)
633  Q_PRIVATE_SLOT(d_func(), void slotBoolChanged(QtProperty*, bool))
634  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
635 };
636 
638 
640 {
641  Q_OBJECT
642 public:
643  QtSizePolicyPropertyManager(QObject* parent = 0);
644  ~QtSizePolicyPropertyManager() override;
645 
646  QtIntPropertyManager* subIntPropertyManager() const;
647  QtEnumPropertyManager* subEnumPropertyManager() const;
648 
649  QSizePolicy value(const QtProperty* property) const;
650 
651 public Q_SLOTS:
652  void setValue(QtProperty* property, const QSizePolicy& val);
653 Q_SIGNALS:
654  void valueChanged(QtProperty* property, const QSizePolicy& val);
655 protected:
656  QString valueText(const QtProperty* property) const override;
657  void initializeProperty(QtProperty* property) override;
658  void uninitializeProperty(QtProperty* property) override;
659 private:
661  Q_DECLARE_PRIVATE(QtSizePolicyPropertyManager)
662  Q_DISABLE_COPY(QtSizePolicyPropertyManager)
663  Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty*, int))
664  Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty*, int))
665  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
666 };
667 
669 
671 {
672  Q_OBJECT
673 public:
674  QtFontPropertyManager(QObject* parent = 0);
675  ~QtFontPropertyManager() override;
676 
677  QtIntPropertyManager* subIntPropertyManager() const;
678  QtEnumPropertyManager* subEnumPropertyManager() const;
679  QtBoolPropertyManager* subBoolPropertyManager() const;
680 
681  QFont value(const QtProperty* property) const;
682 
683 public Q_SLOTS:
684  void setValue(QtProperty* property, const QFont& val);
685 Q_SIGNALS:
686  void valueChanged(QtProperty* property, const QFont& val);
687 protected:
688  QString valueText(const QtProperty* property) const override;
689  QIcon valueIcon(const QtProperty* property) const override;
690  void initializeProperty(QtProperty* property) override;
691  void uninitializeProperty(QtProperty* property) override;
692 private:
694  Q_DECLARE_PRIVATE(QtFontPropertyManager)
695  Q_DISABLE_COPY(QtFontPropertyManager)
696  Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty*, int))
697  Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty*, int))
698  Q_PRIVATE_SLOT(d_func(), void slotBoolChanged(QtProperty*, bool))
699  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
700  Q_PRIVATE_SLOT(d_func(), void slotFontDatabaseChanged())
701  Q_PRIVATE_SLOT(d_func(), void slotFontDatabaseDelayedChange())
702 };
703 
705 
707 {
708  Q_OBJECT
709 public:
710  QtColorPropertyManager(QObject* parent = 0);
711  ~QtColorPropertyManager() override;
712 
713  QtIntPropertyManager* subIntPropertyManager() const;
714 
715  QColor value(const QtProperty* property) const;
716 
717 public Q_SLOTS:
718  void setValue(QtProperty* property, const QColor& val);
719 Q_SIGNALS:
720  void valueChanged(QtProperty* property, const QColor& val);
721 protected:
722  QString valueText(const QtProperty* property) const override;
723  QIcon valueIcon(const QtProperty* property) const override;
724  void initializeProperty(QtProperty* property) override;
725  void uninitializeProperty(QtProperty* property) override;
726 private:
728  Q_DECLARE_PRIVATE(QtColorPropertyManager)
729  Q_DISABLE_COPY(QtColorPropertyManager)
730  Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty*, int))
731  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty*))
732 };
733 
735 
737 {
738  Q_OBJECT
739 public:
740  QtCursorPropertyManager(QObject* parent = 0);
741  ~QtCursorPropertyManager() override;
742 
743 #ifndef QT_NO_CURSOR
744  QCursor value(const QtProperty* property) const;
745 #endif
746 
747 public Q_SLOTS:
748  void setValue(QtProperty* property, const QCursor& val);
749 Q_SIGNALS:
750  void valueChanged(QtProperty* property, const QCursor& val);
751 protected:
752  QString valueText(const QtProperty* property) const override;
753  QIcon valueIcon(const QtProperty* property) const override;
754  void initializeProperty(QtProperty* property) override;
755  void uninitializeProperty(QtProperty* property) override;
756 private:
758  Q_DECLARE_PRIVATE(QtCursorPropertyManager)
759  Q_DISABLE_COPY(QtCursorPropertyManager)
760 };
761 
762 QT_END_NAMESPACE
QtRectPropertyManager
The QtRectPropertyManager provides and manages QRect properties.
Definition: qtpropertymanager.h:508
QtDatePropertyManagerPrivate
Definition: qtpropertymanager.cpp:2007
QtPointPropertyManager
The QtPointPropertyManager provides and manages QPoint properties.
Definition: qtpropertymanager.h:374
QtFontPropertyManagerPrivate
Definition: qtpropertymanager.cpp:6411
QtPointFPropertyManagerPrivate
Definition: qtpropertymanager.cpp:3226
QtSizePropertyManagerPrivate
Definition: qtpropertymanager.cpp:3532
QtSizePolicyPropertyManagerPrivate
Definition: qtpropertymanager.cpp:6053
QtIntPropertyManager
The QtIntPropertyManager provides and manages int properties.
Definition: qtpropertymanager.h:70
QtLocalePropertyManagerPrivate
Definition: qtpropertymanager.cpp:2720
QtSizeFPropertyManager
The QtSizeFPropertyManager provides and manages QSizeF properties.
Definition: qtpropertymanager.h:470
QtCharPropertyManagerPrivate
Definition: qtpropertymanager.cpp:2607
QtBoolPropertyManagerPrivate
Definition: qtpropertymanager.cpp:1810
QtAbstractPropertyManager::displayText
virtual QString displayText(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:798
QT_QTPROPERTYBROWSER_EXPORT
#define QT_QTPROPERTYBROWSER_EXPORT
Definition: qtpropertybrowser.h:63
QtDateTimePropertyManagerPrivate
Definition: qtpropertymanager.cpp:2375
QtStringPropertyManager
The QtStringPropertyManager provides and manages QString properties.
Definition: qtpropertymanager.h:176
QtFlagPropertyManager
The QtFlagPropertyManager provides and manages flag properties.
Definition: qtpropertymanager.h:607
QtAbstractPropertyManager::hasValue
virtual bool hasValue(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:753
QtProperty
The QtProperty class encapsulates an instance of a property.
Definition: qtpropertybrowser.h:71
QtTimePropertyManager
The QtTimePropertyManager provides and manages QTime properties.
Definition: qtpropertymanager.h:244
QtAbstractPropertyManager::echoMode
virtual EchoMode echoMode(const QtProperty *) const
Definition: qtpropertybrowser.cpp:812
QtGroupPropertyManager
The QtGroupPropertyManager provides and manages group properties.
Definition: qtpropertymanager.h:54
qtpropertybrowser.h
QtFontPropertyManager
The QtFontPropertyManager provides and manages QFont properties.
Definition: qtpropertymanager.h:670
QtPointPropertyManagerPrivate
Definition: qtpropertymanager.cpp:2993
QtSizePropertyManager
The QtSizePropertyManager provides and manages QSize properties.
Definition: qtpropertymanager.h:435
QtDatePropertyManager
The QtDatePropertyManager provides and manages QDate properties.
Definition: qtpropertymanager.h:213
QtStringPropertyManagerPrivate
Definition: qtpropertymanager.cpp:1484
QtCharPropertyManager
The QtCharPropertyManager provides and manages QChar properties.
Definition: qtpropertymanager.h:319
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
QtSizeFPropertyManagerPrivate
Definition: qtpropertymanager.cpp:3904
QtRectFPropertyManager
The QtRectFPropertyManager provides and manages QRectF properties.
Definition: qtpropertymanager.h:540
QtDoublePropertyManager
The QtDoublePropertyManager provides and manages double properties.
Definition: qtpropertymanager.h:136
QtBoolPropertyManager
The QtBoolPropertyManager class provides and manages boolean properties.
Definition: qtpropertymanager.h:107
QtCursorPropertyManagerPrivate
Definition: qtpropertymanager.cpp:7312
QtColorPropertyManagerPrivate
Definition: qtpropertymanager.cpp:6973
QtDateTimePropertyManager
The QtDateTimePropertyManager provides and manages QDateTime properties.
Definition: qtpropertymanager.h:269
QtDoublePropertyManagerPrivate
Definition: qtpropertymanager.cpp:1081
QtSizePolicyPropertyManager
The QtSizePolicyPropertyManager provides and manages QSizePolicy properties.
Definition: qtpropertymanager.h:639
QtAbstractPropertyManager
The QtAbstractPropertyManager provides an interface for property managers.
Definition: qtpropertybrowser.h:112
QtCursorPropertyManager
The QtCursorPropertyManager provides and manages QCursor properties.
Definition: qtpropertymanager.h:736
QtEnumPropertyManagerPrivate
Definition: qtpropertymanager.cpp:5368
EchoMode
QLineEdit::EchoMode EchoMode
Definition: qtpropertybrowser.h:66
QtAbstractPropertyManager::valueText
virtual QString valueText(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:783
armarx::viz::data::ElementFlags::names
const simox::meta::IntEnumNames names
Definition: json_elements.cpp:14
QtRectPropertyManagerPrivate
Definition: qtpropertymanager.cpp:4341
QtEnumPropertyManager
The QtEnumPropertyManager provides and manages enum properties.
Definition: qtpropertymanager.h:575
QtTimePropertyManagerPrivate
Definition: qtpropertymanager.cpp:2255
QtKeySequencePropertyManagerPrivate
Definition: qtpropertymanager.cpp:2493
QtKeySequencePropertyManager
The QtKeySequencePropertyManager provides and manages QKeySequence properties.
Definition: qtpropertymanager.h:294
QtAbstractPropertyManager::initializeProperty
virtual void initializeProperty(QtProperty *property)=0
QtAbstractPropertyManager::uninitializeProperty
virtual void uninitializeProperty(QtProperty *property)
Definition: qtpropertybrowser.cpp:882
QtIntPropertyManagerPrivate
Definition: qtpropertymanager.cpp:741
QtRectFPropertyManagerPrivate
Definition: qtpropertymanager.cpp:4819
QtAbstractPropertyManager::valueIcon
virtual QIcon valueIcon(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:768
QtFlagPropertyManagerPrivate
Definition: qtpropertymanager.cpp:5668
QtPointFPropertyManager
The QtPointFPropertyManager provides and manages QPointF properties.
Definition: qtpropertymanager.h:403
QtLocalePropertyManager
The QtLocalePropertyManager provides and manages QLocale properties.
Definition: qtpropertymanager.h:345
QtColorPropertyManager
The QtColorPropertyManager provides and manages QColor properties.
Definition: qtpropertymanager.h:706