Computer Assited Medical Intervention Tool Kit  version 4.0
qtpropertymanager.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 **
6 ** Contact: Nokia Corporation (qt-info@nokia.com)
7 **
8 ** This file is part of a Qt Solutions component.
9 **
10 ** You may use this file under the terms of the BSD license as follows:
11 **
12 ** "Redistribution and use in source and binary forms, with or without
13 ** modification, are permitted provided that the following conditions are
14 ** met:
15 ** * Redistributions of source code must retain the above copyright
16 ** notice, this list of conditions and the following disclaimer.
17 ** * Redistributions in binary form must reproduce the above copyright
18 ** notice, this list of conditions and the following disclaimer in
19 ** the documentation and/or other materials provided with the
20 ** distribution.
21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
22 ** the names of its contributors may be used to endorse or promote
23 ** products derived from this software without specific prior written
24 ** permission.
25 **
26 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
37 **
38 ****************************************************************************/
39 
40 
41 #ifndef QTPROPERTYMANAGER_H
42 #define QTPROPERTYMANAGER_H
43 
44 #include "qtpropertybrowser.h"
45 #include <QPushButton>
46 #include <QLineEdit>
47 
48 #if QT_VERSION >= 0x040400
49 QT_BEGIN_NAMESPACE
50 #endif
51 
52 class QDate;
53 class QTime;
54 class QDateTime;
55 class QLocale;
56 
65  Q_OBJECT
66 public:
67  QtGroupPropertyManager(QObject *parent = 0);
69 
70 protected:
71  virtual bool hasValue(const QtProperty *property) const;
72 
73  virtual void initializeProperty(QtProperty *property);
74  virtual void uninitializeProperty(QtProperty *property);
75 };
76 
78 
80  Q_OBJECT
81 public:
82  QtIntPropertyManager(QObject *parent = 0);
84 
85  int value(const QtProperty *property) const;
86  int minimum(const QtProperty *property) const;
87  int maximum(const QtProperty *property) const;
88  int singleStep(const QtProperty *property) const;
89 
90 public Q_SLOTS:
91  void setValue(QtProperty *property, int val);
92  void setMinimum(QtProperty *property, int minVal);
93  void setMaximum(QtProperty *property, int maxVal);
94  void setRange(QtProperty *property, int minVal, int maxVal);
95  void setSingleStep(QtProperty *property, int step);
96 Q_SIGNALS:
97  void valueChanged(QtProperty *property, int val);
98  void rangeChanged(QtProperty *property, int minVal, int maxVal);
99  void singleStepChanged(QtProperty *property, int step);
100 protected:
101  QString valueText(const QtProperty *property) const;
102  virtual void initializeProperty(QtProperty *property);
103  virtual void uninitializeProperty(QtProperty *property);
104 private:
106  Q_DECLARE_PRIVATE(QtIntPropertyManager)
107  Q_DISABLE_COPY(QtIntPropertyManager)
108 };
109 
111 
113  Q_OBJECT
114 public:
115  QtBoolPropertyManager(QObject *parent = 0);
117 
118  bool value(const QtProperty *property) const;
119 
120 public Q_SLOTS:
121  void setValue(QtProperty *property, bool val);
122 Q_SIGNALS:
123  void valueChanged(QtProperty *property, bool val);
124 protected:
125  QString valueText(const QtProperty *property) const;
126  QIcon valueIcon(const QtProperty *property) const;
127  virtual void initializeProperty(QtProperty *property);
128  virtual void uninitializeProperty(QtProperty *property);
129 private:
131  Q_DECLARE_PRIVATE(QtBoolPropertyManager)
132  Q_DISABLE_COPY(QtBoolPropertyManager)
133 };
134 
136 
138  Q_OBJECT
139 public:
140  QtDoublePropertyManager(QObject *parent = 0);
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 
149 public Q_SLOTS:
150  void setValue(QtProperty *property, double val);
151  void setMinimum(QtProperty *property, double minVal);
152  void setMaximum(QtProperty *property, double maxVal);
153  void setRange(QtProperty *property, double minVal, double maxVal);
154  void setSingleStep(QtProperty *property, double step);
155  void setDecimals(QtProperty *property, int prec);
156 Q_SIGNALS:
157  void valueChanged(QtProperty *property, double val);
158  void rangeChanged(QtProperty *property, double minVal, double maxVal);
159  void singleStepChanged(QtProperty *property, double step);
160  void decimalsChanged(QtProperty *property, int prec);
161 protected:
162  QString valueText(const QtProperty *property) const;
163  virtual void initializeProperty(QtProperty *property);
164  virtual void uninitializeProperty(QtProperty *property);
165 private:
167  Q_DECLARE_PRIVATE(QtDoublePropertyManager)
168  Q_DISABLE_COPY(QtDoublePropertyManager)
169 };
170 
172 
174  Q_OBJECT
175 public:
176  QtStringPropertyManager(QObject *parent = 0);
178 
179  QString value(const QtProperty *property) const;
180  QRegExp regExp(const QtProperty *property) const;
181  EchoMode echoMode(const QtProperty *property) const;
182 
183 public Q_SLOTS:
184  void setValue(QtProperty *property, const QString &val);
185  void setRegExp(QtProperty *property, const QRegExp &regExp);
186  void setEchoMode(QtProperty *property, EchoMode echoMode);
187 Q_SIGNALS:
188  void valueChanged(QtProperty *property, const QString &val);
189  void regExpChanged(QtProperty *property, const QRegExp &regExp);
190  void echoModeChanged(QtProperty *property, const int);
191 protected:
192  QString valueText(const QtProperty *property) const;
193  QString displayText(const QtProperty *property) const;
194  virtual void initializeProperty(QtProperty *property);
195  virtual void uninitializeProperty(QtProperty *property);
196 private:
198  Q_DECLARE_PRIVATE(QtStringPropertyManager)
199  Q_DISABLE_COPY(QtStringPropertyManager)
200 };
201 
203 
205  Q_OBJECT
206 public:
207  QtDatePropertyManager(QObject *parent = 0);
209 
210  QDate value(const QtProperty *property) const;
211  QDate minimum(const QtProperty *property) const;
212  QDate maximum(const QtProperty *property) const;
213 
214 public Q_SLOTS:
215  void setValue(QtProperty *property, const QDate &val);
216  void setMinimum(QtProperty *property, const QDate &minVal);
217  void setMaximum(QtProperty *property, const QDate &maxVal);
218  void setRange(QtProperty *property, const QDate &minVal, const QDate &maxVal);
219 Q_SIGNALS:
220  void valueChanged(QtProperty *property, const QDate &val);
221  void rangeChanged(QtProperty *property, const QDate &minVal, const QDate &maxVal);
222 protected:
223  QString valueText(const QtProperty *property) const;
224  virtual void initializeProperty(QtProperty *property);
225  virtual void uninitializeProperty(QtProperty *property);
226 private:
228  Q_DECLARE_PRIVATE(QtDatePropertyManager)
229  Q_DISABLE_COPY(QtDatePropertyManager)
230 };
231 
233 
235  Q_OBJECT
236 public:
237  QtTimePropertyManager(QObject *parent = 0);
239 
240  QTime value(const QtProperty *property) const;
241 
242 public Q_SLOTS:
243  void setValue(QtProperty *property, const QTime &val);
244 Q_SIGNALS:
245  void valueChanged(QtProperty *property, const QTime &val);
246 protected:
247  QString valueText(const QtProperty *property) const;
248  virtual void initializeProperty(QtProperty *property);
249  virtual void uninitializeProperty(QtProperty *property);
250 private:
252  Q_DECLARE_PRIVATE(QtTimePropertyManager)
253  Q_DISABLE_COPY(QtTimePropertyManager)
254 };
255 
257 
259  Q_OBJECT
260 public:
261  QtDateTimePropertyManager(QObject *parent = 0);
263 
264  QDateTime value(const QtProperty *property) const;
265 
266 public Q_SLOTS:
267  void setValue(QtProperty *property, const QDateTime &val);
268 Q_SIGNALS:
269  void valueChanged(QtProperty *property, const QDateTime &val);
270 protected:
271  QString valueText(const QtProperty *property) const;
272  virtual void initializeProperty(QtProperty *property);
273  virtual void uninitializeProperty(QtProperty *property);
274 private:
276  Q_DECLARE_PRIVATE(QtDateTimePropertyManager)
277  Q_DISABLE_COPY(QtDateTimePropertyManager)
278 };
279 
281 
283  Q_OBJECT
284 public:
285  QtKeySequencePropertyManager(QObject *parent = 0);
287 
288  QKeySequence value(const QtProperty *property) const;
289 
290 public Q_SLOTS:
291  void setValue(QtProperty *property, const QKeySequence &val);
292 Q_SIGNALS:
293  void valueChanged(QtProperty *property, const QKeySequence &val);
294 protected:
295  QString valueText(const QtProperty *property) const;
296  virtual void initializeProperty(QtProperty *property);
297  virtual void uninitializeProperty(QtProperty *property);
298 private:
300  Q_DECLARE_PRIVATE(QtKeySequencePropertyManager)
301  Q_DISABLE_COPY(QtKeySequencePropertyManager)
302 };
303 
305 
307  Q_OBJECT
308 public:
309  QtCharPropertyManager(QObject *parent = 0);
311 
312  QChar value(const QtProperty *property) const;
313 
314 public Q_SLOTS:
315  void setValue(QtProperty *property, const QChar &val);
316 Q_SIGNALS:
317  void valueChanged(QtProperty *property, const QChar &val);
318 protected:
319  QString valueText(const QtProperty *property) const;
320  virtual void initializeProperty(QtProperty *property);
321  virtual void uninitializeProperty(QtProperty *property);
322 private:
324  Q_DECLARE_PRIVATE(QtCharPropertyManager)
325  Q_DISABLE_COPY(QtCharPropertyManager)
326 };
327 
330 
332  Q_OBJECT
333 public:
334  QtLocalePropertyManager(QObject *parent = 0);
336 
337  QtEnumPropertyManager *subEnumPropertyManager() const;
338 
339  QLocale value(const QtProperty *property) const;
340 
341 public Q_SLOTS:
342  void setValue(QtProperty *property, const QLocale &val);
343 Q_SIGNALS:
344  void valueChanged(QtProperty *property, const QLocale &val);
345 protected:
346  QString valueText(const QtProperty *property) const;
347  virtual void initializeProperty(QtProperty *property);
348  virtual void uninitializeProperty(QtProperty *property);
349 private:
351  Q_DECLARE_PRIVATE(QtLocalePropertyManager)
352  Q_DISABLE_COPY(QtLocalePropertyManager)
353  Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty *, int))
354  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
355 };
356 
358 
360  Q_OBJECT
361 public:
362  QtPointPropertyManager(QObject *parent = 0);
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:
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 
386 
388  Q_OBJECT
389 public:
390  QtPointFPropertyManager(QObject *parent = 0);
392 
393  QtDoublePropertyManager *subDoublePropertyManager() const;
394 
395  QPointF value(const QtProperty *property) const;
396  int decimals(const QtProperty *property) const;
397 
398 public Q_SLOTS:
399  void setValue(QtProperty *property, const QPointF &val);
400  void setDecimals(QtProperty *property, int prec);
401 Q_SIGNALS:
402  void valueChanged(QtProperty *property, const QPointF &val);
403  void decimalsChanged(QtProperty *property, int prec);
404 protected:
405  QString valueText(const QtProperty *property) const;
406  virtual void initializeProperty(QtProperty *property);
407  virtual void uninitializeProperty(QtProperty *property);
408 private:
410  Q_DECLARE_PRIVATE(QtPointFPropertyManager)
411  Q_DISABLE_COPY(QtPointFPropertyManager)
412  Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty *, double))
413  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
414 };
415 
417 
419  Q_OBJECT
420 public:
421  QtSizePropertyManager(QObject *parent = 0);
423 
424  QtIntPropertyManager *subIntPropertyManager() const;
425 
426  QSize value(const QtProperty *property) const;
427  QSize minimum(const QtProperty *property) const;
428  QSize maximum(const QtProperty *property) const;
429 
430 public Q_SLOTS:
431  void setValue(QtProperty *property, const QSize &val);
432  void setMinimum(QtProperty *property, const QSize &minVal);
433  void setMaximum(QtProperty *property, const QSize &maxVal);
434  void setRange(QtProperty *property, const QSize &minVal, const QSize &maxVal);
435 Q_SIGNALS:
436  void valueChanged(QtProperty *property, const QSize &val);
437  void rangeChanged(QtProperty *property, const QSize &minVal, const QSize &maxVal);
438 protected:
439  QString valueText(const QtProperty *property) const;
440  virtual void initializeProperty(QtProperty *property);
441  virtual void uninitializeProperty(QtProperty *property);
442 private:
444  Q_DECLARE_PRIVATE(QtSizePropertyManager)
445  Q_DISABLE_COPY(QtSizePropertyManager)
446  Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
447  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
448 };
449 
451 
453  Q_OBJECT
454 public:
455  QtSizeFPropertyManager(QObject *parent = 0);
457 
458  QtDoublePropertyManager *subDoublePropertyManager() const;
459 
460  QSizeF value(const QtProperty *property) const;
461  QSizeF minimum(const QtProperty *property) const;
462  QSizeF maximum(const QtProperty *property) const;
463  int decimals(const QtProperty *property) const;
464 
465 public Q_SLOTS:
466  void setValue(QtProperty *property, const QSizeF &val);
467  void setMinimum(QtProperty *property, const QSizeF &minVal);
468  void setMaximum(QtProperty *property, const QSizeF &maxVal);
469  void setRange(QtProperty *property, const QSizeF &minVal, const QSizeF &maxVal);
470  void setDecimals(QtProperty *property, int prec);
471 Q_SIGNALS:
472  void valueChanged(QtProperty *property, const QSizeF &val);
473  void rangeChanged(QtProperty *property, const QSizeF &minVal, const QSizeF &maxVal);
474  void decimalsChanged(QtProperty *property, int prec);
475 protected:
476  QString valueText(const QtProperty *property) const;
477  virtual void initializeProperty(QtProperty *property);
478  virtual void uninitializeProperty(QtProperty *property);
479 private:
481  Q_DECLARE_PRIVATE(QtSizeFPropertyManager)
482  Q_DISABLE_COPY(QtSizeFPropertyManager)
483  Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty *, double))
484  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
485 };
486 
488 
490  Q_OBJECT
491 public:
492  QtRectPropertyManager(QObject *parent = 0);
494 
495  QtIntPropertyManager *subIntPropertyManager() const;
496 
497  QRect value(const QtProperty *property) const;
498  QRect constraint(const QtProperty *property) const;
499 
500 public Q_SLOTS:
501  void setValue(QtProperty *property, const QRect &val);
502  void setConstraint(QtProperty *property, const QRect &constraint);
503 Q_SIGNALS:
504  void valueChanged(QtProperty *property, const QRect &val);
505  void constraintChanged(QtProperty *property, const QRect &constraint);
506 protected:
507  QString valueText(const QtProperty *property) const;
508  virtual void initializeProperty(QtProperty *property);
509  virtual void uninitializeProperty(QtProperty *property);
510 private:
512  Q_DECLARE_PRIVATE(QtRectPropertyManager)
513  Q_DISABLE_COPY(QtRectPropertyManager)
514  Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
515  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
516 };
517 
519 
521  Q_OBJECT
522 public:
523  QtRectFPropertyManager(QObject *parent = 0);
525 
526  QtDoublePropertyManager *subDoublePropertyManager() const;
527 
528  QRectF value(const QtProperty *property) const;
529  QRectF constraint(const QtProperty *property) const;
530  int decimals(const QtProperty *property) const;
531 
532 public Q_SLOTS:
533  void setValue(QtProperty *property, const QRectF &val);
534  void setConstraint(QtProperty *property, const QRectF &constraint);
535  void setDecimals(QtProperty *property, int prec);
536 Q_SIGNALS:
537  void valueChanged(QtProperty *property, const QRectF &val);
538  void constraintChanged(QtProperty *property, const QRectF &constraint);
539  void decimalsChanged(QtProperty *property, int prec);
540 protected:
541  QString valueText(const QtProperty *property) const;
542  virtual void initializeProperty(QtProperty *property);
543  virtual void uninitializeProperty(QtProperty *property);
544 private:
546  Q_DECLARE_PRIVATE(QtRectFPropertyManager)
547  Q_DISABLE_COPY(QtRectFPropertyManager)
548  Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty *, double))
549  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
550 };
551 
552 
554 class QVector3D;
555 
557  Q_OBJECT
558 public:
559  QtVector3DPropertyManager(QObject *parent = 0);
561 
562  QtDoublePropertyManager *subDoublePropertyManager() const;
563 
564  QVector3D value(const QtProperty *property) const;
565  int decimals(const QtProperty *property) const;
566 
567 public Q_SLOTS:
568  void setValue(QtProperty *property, const QVector3D &val);
569  void setDecimals(QtProperty *property, int prec);
570 Q_SIGNALS:
571  void valueChanged(QtProperty *property, const QVector3D &val);
572  void decimalsChanged(QtProperty *property, int prec);
573 protected:
574  QString valueText(const QtProperty *property) const;
575  virtual void initializeProperty(QtProperty *property);
576  virtual void uninitializeProperty(QtProperty *property);
577 private:
579  Q_DECLARE_PRIVATE(QtVector3DPropertyManager)
580  Q_DISABLE_COPY(QtVector3DPropertyManager)
581  Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty *, double))
582  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
583 };
584 
586 
588  Q_OBJECT
589 public:
590  QtEnumPropertyManager(QObject *parent = 0);
592 
593  int value(const QtProperty *property) const;
594  QStringList enumNames(const QtProperty *property) const;
595  QMap<int, QIcon> enumIcons(const QtProperty *property) const;
596 
597 public Q_SLOTS:
598  void setValue(QtProperty *property, int val);
599  void setEnumNames(QtProperty *property, const QStringList &names);
600  void setEnumIcons(QtProperty *property, const QMap<int, QIcon> &icons);
601 Q_SIGNALS:
602  void valueChanged(QtProperty *property, int val);
603  void enumNamesChanged(QtProperty *property, const QStringList &names);
604  void enumIconsChanged(QtProperty *property, const QMap<int, QIcon> &icons);
605 protected:
606  QString valueText(const QtProperty *property) const;
607  QIcon valueIcon(const QtProperty *property) const;
608  virtual void initializeProperty(QtProperty *property);
609  virtual void uninitializeProperty(QtProperty *property);
610 private:
612  Q_DECLARE_PRIVATE(QtEnumPropertyManager)
613  Q_DISABLE_COPY(QtEnumPropertyManager)
614 };
615 
617 
619  Q_OBJECT
620 public:
621  QtFlagPropertyManager(QObject *parent = 0);
623 
624  QtBoolPropertyManager *subBoolPropertyManager() const;
625 
626  int value(const QtProperty *property) const;
627  QStringList flagNames(const QtProperty *property) const;
628 
629 public Q_SLOTS:
630  void setValue(QtProperty *property, int val);
631  void setFlagNames(QtProperty *property, const QStringList &names);
632 Q_SIGNALS:
633  void valueChanged(QtProperty *property, int val);
634  void flagNamesChanged(QtProperty *property, const QStringList &names);
635 protected:
636  QString valueText(const QtProperty *property) const;
637  virtual void initializeProperty(QtProperty *property);
638  virtual void uninitializeProperty(QtProperty *property);
639 private:
641  Q_DECLARE_PRIVATE(QtFlagPropertyManager)
642  Q_DISABLE_COPY(QtFlagPropertyManager)
643  Q_PRIVATE_SLOT(d_func(), void slotBoolChanged(QtProperty *, bool))
644  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
645 };
646 
648 
650  Q_OBJECT
651 public:
652  QtSizePolicyPropertyManager(QObject *parent = 0);
654 
655  QtIntPropertyManager *subIntPropertyManager() const;
656  QtEnumPropertyManager *subEnumPropertyManager() const;
657 
658  QSizePolicy value(const QtProperty *property) const;
659 
660 public Q_SLOTS:
661  void setValue(QtProperty *property, const QSizePolicy &val);
662 Q_SIGNALS:
663  void valueChanged(QtProperty *property, const QSizePolicy &val);
664 protected:
665  QString valueText(const QtProperty *property) const;
666  virtual void initializeProperty(QtProperty *property);
667  virtual void uninitializeProperty(QtProperty *property);
668 private:
670  Q_DECLARE_PRIVATE(QtSizePolicyPropertyManager)
671  Q_DISABLE_COPY(QtSizePolicyPropertyManager)
672  Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
673  Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty *, int))
674  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
675 };
676 
678 
680  Q_OBJECT
681 public:
682  QtFontPropertyManager(QObject *parent = 0);
684 
685  QtIntPropertyManager *subIntPropertyManager() const;
686  QtEnumPropertyManager *subEnumPropertyManager() const;
687  QtBoolPropertyManager *subBoolPropertyManager() const;
688 
689  QFont value(const QtProperty *property) const;
690 
691 public Q_SLOTS:
692  void setValue(QtProperty *property, const QFont &val);
693 Q_SIGNALS:
694  void valueChanged(QtProperty *property, const QFont &val);
695 protected:
696  QString valueText(const QtProperty *property) const;
697  QIcon valueIcon(const QtProperty *property) const;
698  virtual void initializeProperty(QtProperty *property);
699  virtual void uninitializeProperty(QtProperty *property);
700 private:
702  Q_DECLARE_PRIVATE(QtFontPropertyManager)
703  Q_DISABLE_COPY(QtFontPropertyManager)
704  Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
705  Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty *, int))
706  Q_PRIVATE_SLOT(d_func(), void slotBoolChanged(QtProperty *, bool))
707  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
708  Q_PRIVATE_SLOT(d_func(), void slotFontDatabaseChanged())
709  Q_PRIVATE_SLOT(d_func(), void slotFontDatabaseDelayedChange())
710 };
711 
713 
715  Q_OBJECT
716 public:
717  QtColorPropertyManager(QObject *parent = 0);
719 
720  QtIntPropertyManager *subIntPropertyManager() const;
721 
722  QColor value(const QtProperty *property) const;
723 
724 public Q_SLOTS:
725  void setValue(QtProperty *property, const QColor &val);
726 Q_SIGNALS:
727  void valueChanged(QtProperty *property, const QColor &val);
728 protected:
729  QString valueText(const QtProperty *property) const;
730  QIcon valueIcon(const QtProperty *property) const;
731  virtual void initializeProperty(QtProperty *property);
732  virtual void uninitializeProperty(QtProperty *property);
733 private:
734  QtColorPropertyManagerPrivate *d_ptr;
735  Q_DECLARE_PRIVATE(QtColorPropertyManager)
736  Q_DISABLE_COPY(QtColorPropertyManager)
737  Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
738  Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
739 };
740 
742 
743 class QT_QTPROPERTYBROWSER_EXPORT QtCursorPropertyManager : public QtAbstractPropertyManager {
744  Q_OBJECT
745 public:
746  QtCursorPropertyManager(QObject *parent = 0);
748 
749 #ifndef QT_NO_CURSOR
750  QCursor value(const QtProperty *property) const;
751 #endif
752 
753 public Q_SLOTS:
754  void setValue(QtProperty *property, const QCursor &val);
755 Q_SIGNALS:
756  void valueChanged(QtProperty *property, const QCursor &val);
757 protected:
758  QString valueText(const QtProperty *property) const;
759  QIcon valueIcon(const QtProperty *property) const;
760  virtual void initializeProperty(QtProperty *property);
761  virtual void uninitializeProperty(QtProperty *property);
762 private:
764  Q_DECLARE_PRIVATE(QtCursorPropertyManager)
765  Q_DISABLE_COPY(QtCursorPropertyManager)
766 };
767 
768 #if QT_VERSION >= 0x040400
769 QT_END_NAMESPACE
770 #endif
771 
772 #endif
Definition: qtpropertymanager.cpp:1769
Definition: qtpropertymanager.cpp:594
The QtDoublePropertyManager provides and manages double properties.
Definition: qtpropertymanager.h:137
QtDatePropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:227
The QtRectPropertyManager provides and manages QRect properties.
Definition: qtpropertymanager.h:489
The QtPointFPropertyManager provides and manages QPointF properties.
Definition: qtpropertymanager.h:387
Definition: qtpropertymanager.cpp:2423
QtRectFPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:545
The QtFlagPropertyManager provides and manages flag properties.
Definition: qtpropertymanager.h:618
QtDoublePropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:166
QtTimePropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:251
virtual EchoMode echoMode(const QtProperty *) const
Definition: qtpropertybrowser.cpp:722
Definition: qtpropertymanager.cpp:6076
The QtLocalePropertyManager provides and manages QLocale properties.
Definition: qtpropertymanager.h:331
QtPointPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:378
The QtAbstractPropertyManager provides an interface for property managers.
Definition: qtpropertybrowser.h:114
Definition: qtpropertymanager.cpp:1543
QtDateTimePropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:275
The QtKeySequencePropertyManager provides and manages QKeySequence properties.
Definition: qtpropertymanager.h:282
The QtPointPropertyManager provides and manages QPoint properties.
Definition: qtpropertymanager.h:359
Definition: qtpropertymanager.cpp:2886
QtFlagPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:640
Definition: qtpropertymanager.cpp:1983
Definition: qtpropertymanager.cpp:3606
Definition: qtpropertymanager.cpp:2624
The QtStringPropertyManager provides and manages QString properties.
Definition: qtpropertymanager.h:173
The QtCharPropertyManager provides and manages QChar properties.
Definition: qtpropertymanager.h:306
QtEnumPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:611
QtIntPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:105
The QtFontPropertyManager provides and manages QFont properties.
Definition: qtpropertymanager.h:679
The QtIntPropertyManager provides and manages int properties.
Definition: qtpropertymanager.h:79
The QtCursorPropertyManager provides and manages QCursor properties.
Definition: qtpropertymanager.h:743
The QtTimePropertyManager provides and manages QTime properties.
Definition: qtpropertymanager.h:234
virtual QString displayText(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:709
QtSizeFPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:480
QtVector3DPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:578
QtCursorPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:763
Definition: qtpropertymanager.cpp:6347
virtual void initializeProperty(QtProperty *property)=0
The QtSizePolicyPropertyManager provides and manages QSizePolicy properties.
Definition: qtpropertymanager.h:649
The QtSizePropertyManager provides and manages QSize properties.
Definition: qtpropertymanager.h:418
Definition: qtpropertymanager.cpp:3999
The QtVector3DPropertyManager provides and manages QVector3D properties. // TODO WRITE DOC...
Definition: qtpropertymanager.h:556
The description of this class will come soon !
Definition: qtpropertymanager.h:64
The QtDatePropertyManager provides and manages QDate properties.
Definition: qtpropertymanager.h:204
virtual void uninitializeProperty(QtProperty *property)
Definition: qtpropertybrowser.cpp:786
The QtColorPropertyManager provides and manages QColor properties.
Definition: qtpropertymanager.h:714
virtual bool hasValue(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:667
Definition: qtpropertymanager.cpp:1182
QtSizePolicyPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:669
The QtSizeFPropertyManager provides and manages QSizeF properties.
Definition: qtpropertymanager.h:452
The QtBoolPropertyManager class provides and manages boolean properties.
Definition: qtpropertymanager.h:112
Definition: qtpropertymanager.cpp:862
Definition: qtpropertymanager.cpp:2085
QtKeySequencePropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:299
Definition: qtpropertymanager.cpp:5620
QtStringPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:197
Definition: qtpropertymanager.cpp:4452
QtFontPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:701
Definition: qtpropertymanager.cpp:1397
#define QT_QTPROPERTYBROWSER_EXPORT
Definition: qtpropertybrowser.h:59
Definition: qtpropertymanager.cpp:4996
Definition: qtpropertymanager.cpp:3219
QtLocalePropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:350
The QtDateTimePropertyManager provides and manages QDateTime properties.
Definition: qtpropertymanager.h:258
QtCharPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:323
virtual QString valueText(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:695
QtColorPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:734
QtSizePropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:443
The description of this class will come soon !
Definition: qtpropertybrowser.h:74
Definition: qtpropertymanager.cpp:1877
virtual QIcon valueIcon(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:681
QtRectPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:511
QLineEdit::EchoMode EchoMode
Definition: qtpropertybrowser.h:62
The QtEnumPropertyManager provides and manages enum properties.
Definition: qtpropertymanager.h:587
Definition: qtpropertymanager.cpp:4741
Definition: qtpropertymanager.cpp:5309
QtBoolPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:130
QtPointFPropertyManagerPrivate * d_ptr
Definition: qtpropertymanager.h:409
The QtRectFPropertyManager provides and manages QRectF properties.
Definition: qtpropertymanager.h:520
Definition: qtpropertymanager.cpp:2186