QSapecNG
 All Classes Functions Enumerations Properties
qtpropertymanager.h
00001 /****************************************************************************
00002 **
00003 ** This file is part of a Qt Solutions component.
00004 ** 
00005 ** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
00006 ** 
00007 ** Contact:  Qt Software Information (qt-info@nokia.com)
00008 ** 
00009 ** Commercial Usage  
00010 ** Licensees holding valid Qt Commercial licenses may use this file in
00011 ** accordance with the Qt Solutions Commercial License Agreement provided
00012 ** with the Software or, alternatively, in accordance with the terms
00013 ** contained in a written agreement between you and Nokia.
00014 ** 
00015 ** GNU Lesser General Public License Usage
00016 ** Alternatively, this file may be used under the terms of the GNU Lesser
00017 ** General Public License version 2.1 as published by the Free Software
00018 ** Foundation and appearing in the file LICENSE.LGPL included in the
00019 ** packaging of this file.  Please review the following information to
00020 ** ensure the GNU Lesser General Public License version 2.1 requirements
00021 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
00022 ** 
00023 ** In addition, as a special exception, Nokia gives you certain
00024 ** additional rights. These rights are described in the Nokia Qt LGPL
00025 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
00026 ** package.
00027 ** 
00028 ** GNU General Public License Usage 
00029 ** Alternatively, this file may be used under the terms of the GNU
00030 ** General Public License version 3.0 as published by the Free Software
00031 ** Foundation and appearing in the file LICENSE.GPL included in the
00032 ** packaging of this file.  Please review the following information to
00033 ** ensure the GNU General Public License version 3.0 requirements will be
00034 ** met: http://www.gnu.org/copyleft/gpl.html.
00035 ** 
00036 ** Please note Third Party Software included with Qt Solutions may impose
00037 ** additional restrictions and it is the user's responsibility to ensure
00038 ** that they have met the licensing requirements of the GPL, LGPL, or Qt
00039 ** Solutions Commercial license and the relevant license of the Third
00040 ** Party Software they are using.
00041 ** 
00042 ** If you are unsure which license is appropriate for your use, please
00043 ** contact the sales department at qt-sales@nokia.com.
00044 ** 
00045 ****************************************************************************/
00046 
00047 /****************************************************************************
00048 **
00049 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
00050 ** Contact: Qt Software Information (qt-info@nokia.com)
00051 **
00052 ** This file is part of the tools applications of the Qt Toolkit.
00053 **
00054 ** $QT_BEGIN_LICENSE:LGPL$
00055 ** No Commercial Usage
00056 ** This file contains pre-release code and may not be distributed.
00057 ** You may use this file in accordance with the terms and conditions
00058 ** contained in the either Technology Preview License Agreement or the
00059 ** Beta Release License Agreement.
00060 **
00061 ** GNU Lesser General Public License Usage
00062 ** Alternatively, this file may be used under the terms of the GNU Lesser
00063 ** General Public License version 2.1 as published by the Free Software
00064 ** Foundation and appearing in the file LICENSE.LGPL included in the
00065 ** packaging of this file.  Please review the following information to
00066 ** ensure the GNU Lesser General Public License version 2.1 requirements
00067 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
00068 **
00069 ** In addition, as a special exception, Nokia gives you certain
00070 ** additional rights. These rights are described in the Nokia Qt LGPL
00071 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
00072 ** package.
00073 **
00074 ** GNU General Public License Usage
00075 ** Alternatively, this file may be used under the terms of the GNU
00076 ** General Public License version 3.0 as published by the Free Software
00077 ** Foundation and appearing in the file LICENSE.GPL included in the
00078 ** packaging of this file.  Please review the following information to
00079 ** ensure the GNU General Public License version 3.0 requirements will be
00080 ** met: http://www.gnu.org/copyleft/gpl.html.
00081 **
00082 ** If you are unsure which license is appropriate for your use, please
00083 ** contact the sales department at qt-sales@nokia.com.
00084 ** $QT_END_LICENSE$
00085 **
00086 ****************************************************************************/
00087 
00088 #ifndef QTPROPERTYMANAGER_H
00089 #define QTPROPERTYMANAGER_H
00090 
00091 #include "qtpropertybrowser.h"
00092 
00093 #if QT_VERSION >= 0x040400
00094 QT_BEGIN_NAMESPACE
00095 #endif
00096 
00097 class QDate;
00098 class QTime;
00099 class QDateTime;
00100 class QLocale;
00101 
00102 class QT_QTPROPERTYBROWSER_EXPORT QtGroupPropertyManager : public QtAbstractPropertyManager
00103 {
00104     Q_OBJECT
00105 public:
00106     QtGroupPropertyManager(QObject *parent = 0);
00107     ~QtGroupPropertyManager();
00108 
00109 protected:
00110     virtual bool hasValue(const QtProperty *property) const;
00111 
00112     virtual void initializeProperty(QtProperty *property);
00113     virtual void uninitializeProperty(QtProperty *property);
00114 };
00115 
00116 class QtIntPropertyManagerPrivate;
00117 
00118 class QT_QTPROPERTYBROWSER_EXPORT QtIntPropertyManager : public QtAbstractPropertyManager
00119 {
00120     Q_OBJECT
00121 public:
00122     QtIntPropertyManager(QObject *parent = 0);
00123     ~QtIntPropertyManager();
00124 
00125     int value(const QtProperty *property) const;
00126     int minimum(const QtProperty *property) const;
00127     int maximum(const QtProperty *property) const;
00128     int singleStep(const QtProperty *property) const;
00129 
00130 public Q_SLOTS:
00131     void setValue(QtProperty *property, int val);
00132     void setMinimum(QtProperty *property, int minVal);
00133     void setMaximum(QtProperty *property, int maxVal);
00134     void setRange(QtProperty *property, int minVal, int maxVal);
00135     void setSingleStep(QtProperty *property, int step);
00136 Q_SIGNALS:
00137     void valueChanged(QtProperty *property, int val);
00138     void rangeChanged(QtProperty *property, int minVal, int maxVal);
00139     void singleStepChanged(QtProperty *property, int step);
00140 protected:
00141     QString valueText(const QtProperty *property) const;
00142     virtual void initializeProperty(QtProperty *property);
00143     virtual void uninitializeProperty(QtProperty *property);
00144 private:
00145     QtIntPropertyManagerPrivate *d_ptr;
00146     Q_DECLARE_PRIVATE(QtIntPropertyManager)
00147     Q_DISABLE_COPY(QtIntPropertyManager)
00148 };
00149 
00150 class QtBoolPropertyManagerPrivate;
00151 
00152 class QT_QTPROPERTYBROWSER_EXPORT QtBoolPropertyManager : public QtAbstractPropertyManager
00153 {
00154     Q_OBJECT
00155 public:
00156     QtBoolPropertyManager(QObject *parent = 0);
00157     ~QtBoolPropertyManager();
00158 
00159     bool value(const QtProperty *property) const;
00160 
00161 public Q_SLOTS:
00162     void setValue(QtProperty *property, bool val);
00163 Q_SIGNALS:
00164     void valueChanged(QtProperty *property, bool val);
00165 protected:
00166     QString valueText(const QtProperty *property) const;
00167     QIcon valueIcon(const QtProperty *property) const;
00168     virtual void initializeProperty(QtProperty *property);
00169     virtual void uninitializeProperty(QtProperty *property);
00170 private:
00171     QtBoolPropertyManagerPrivate *d_ptr;
00172     Q_DECLARE_PRIVATE(QtBoolPropertyManager)
00173     Q_DISABLE_COPY(QtBoolPropertyManager)
00174 };
00175 
00176 class QtDoublePropertyManagerPrivate;
00177 
00178 class QT_QTPROPERTYBROWSER_EXPORT QtDoublePropertyManager : public QtAbstractPropertyManager
00179 {
00180     Q_OBJECT
00181 public:
00182     QtDoublePropertyManager(QObject *parent = 0);
00183     ~QtDoublePropertyManager();
00184 
00185     double value(const QtProperty *property) const;
00186     double minimum(const QtProperty *property) const;
00187     double maximum(const QtProperty *property) const;
00188     double singleStep(const QtProperty *property) const;
00189     int decimals(const QtProperty *property) const;
00190 
00191 public Q_SLOTS:
00192     void setValue(QtProperty *property, double val);
00193     void setMinimum(QtProperty *property, double minVal);
00194     void setMaximum(QtProperty *property, double maxVal);
00195     void setRange(QtProperty *property, double minVal, double maxVal);
00196     void setSingleStep(QtProperty *property, double step);
00197     void setDecimals(QtProperty *property, int prec);
00198 Q_SIGNALS:
00199     void valueChanged(QtProperty *property, double val);
00200     void rangeChanged(QtProperty *property, double minVal, double maxVal);
00201     void singleStepChanged(QtProperty *property, double step);
00202     void decimalsChanged(QtProperty *property, int prec);
00203 protected:
00204     QString valueText(const QtProperty *property) const;
00205     virtual void initializeProperty(QtProperty *property);
00206     virtual void uninitializeProperty(QtProperty *property);
00207 private:
00208     QtDoublePropertyManagerPrivate *d_ptr;
00209     Q_DECLARE_PRIVATE(QtDoublePropertyManager)
00210     Q_DISABLE_COPY(QtDoublePropertyManager)
00211 };
00212 
00213 class QtStringPropertyManagerPrivate;
00214 
00215 class QT_QTPROPERTYBROWSER_EXPORT QtStringPropertyManager : public QtAbstractPropertyManager
00216 {
00217     Q_OBJECT
00218 public:
00219     QtStringPropertyManager(QObject *parent = 0);
00220     ~QtStringPropertyManager();
00221 
00222     QString value(const QtProperty *property) const;
00223     QRegExp regExp(const QtProperty *property) const;
00224 
00225 public Q_SLOTS:
00226     void setValue(QtProperty *property, const QString &val);
00227     void setRegExp(QtProperty *property, const QRegExp &regExp);
00228 Q_SIGNALS:
00229     void valueChanged(QtProperty *property, const QString &val);
00230     void regExpChanged(QtProperty *property, const QRegExp &regExp);
00231 protected:
00232     QString valueText(const QtProperty *property) const;
00233     virtual void initializeProperty(QtProperty *property);
00234     virtual void uninitializeProperty(QtProperty *property);
00235 private:
00236     QtStringPropertyManagerPrivate *d_ptr;
00237     Q_DECLARE_PRIVATE(QtStringPropertyManager)
00238     Q_DISABLE_COPY(QtStringPropertyManager)
00239 };
00240 
00241 class QtDatePropertyManagerPrivate;
00242 
00243 class QT_QTPROPERTYBROWSER_EXPORT QtDatePropertyManager : public QtAbstractPropertyManager
00244 {
00245     Q_OBJECT
00246 public:
00247     QtDatePropertyManager(QObject *parent = 0);
00248     ~QtDatePropertyManager();
00249 
00250     QDate value(const QtProperty *property) const;
00251     QDate minimum(const QtProperty *property) const;
00252     QDate maximum(const QtProperty *property) const;
00253 
00254 public Q_SLOTS:
00255     void setValue(QtProperty *property, const QDate &val);
00256     void setMinimum(QtProperty *property, const QDate &minVal);
00257     void setMaximum(QtProperty *property, const QDate &maxVal);
00258     void setRange(QtProperty *property, const QDate &minVal, const QDate &maxVal);
00259 Q_SIGNALS:
00260     void valueChanged(QtProperty *property, const QDate &val);
00261     void rangeChanged(QtProperty *property, const QDate &minVal, const QDate &maxVal);
00262 protected:
00263     QString valueText(const QtProperty *property) const;
00264     virtual void initializeProperty(QtProperty *property);
00265     virtual void uninitializeProperty(QtProperty *property);
00266 private:
00267     QtDatePropertyManagerPrivate *d_ptr;
00268     Q_DECLARE_PRIVATE(QtDatePropertyManager)
00269     Q_DISABLE_COPY(QtDatePropertyManager)
00270 };
00271 
00272 class QtTimePropertyManagerPrivate;
00273 
00274 class QT_QTPROPERTYBROWSER_EXPORT QtTimePropertyManager : public QtAbstractPropertyManager
00275 {
00276     Q_OBJECT
00277 public:
00278     QtTimePropertyManager(QObject *parent = 0);
00279     ~QtTimePropertyManager();
00280 
00281     QTime value(const QtProperty *property) const;
00282 
00283 public Q_SLOTS:
00284     void setValue(QtProperty *property, const QTime &val);
00285 Q_SIGNALS:
00286     void valueChanged(QtProperty *property, const QTime &val);
00287 protected:
00288     QString valueText(const QtProperty *property) const;
00289     virtual void initializeProperty(QtProperty *property);
00290     virtual void uninitializeProperty(QtProperty *property);
00291 private:
00292     QtTimePropertyManagerPrivate *d_ptr;
00293     Q_DECLARE_PRIVATE(QtTimePropertyManager)
00294     Q_DISABLE_COPY(QtTimePropertyManager)
00295 };
00296 
00297 class QtDateTimePropertyManagerPrivate;
00298 
00299 class QT_QTPROPERTYBROWSER_EXPORT QtDateTimePropertyManager : public QtAbstractPropertyManager
00300 {
00301     Q_OBJECT
00302 public:
00303     QtDateTimePropertyManager(QObject *parent = 0);
00304     ~QtDateTimePropertyManager();
00305 
00306     QDateTime value(const QtProperty *property) const;
00307 
00308 public Q_SLOTS:
00309     void setValue(QtProperty *property, const QDateTime &val);
00310 Q_SIGNALS:
00311     void valueChanged(QtProperty *property, const QDateTime &val);
00312 protected:
00313     QString valueText(const QtProperty *property) const;
00314     virtual void initializeProperty(QtProperty *property);
00315     virtual void uninitializeProperty(QtProperty *property);
00316 private:
00317     QtDateTimePropertyManagerPrivate *d_ptr;
00318     Q_DECLARE_PRIVATE(QtDateTimePropertyManager)
00319     Q_DISABLE_COPY(QtDateTimePropertyManager)
00320 };
00321 
00322 class QtKeySequencePropertyManagerPrivate;
00323 
00324 class QT_QTPROPERTYBROWSER_EXPORT QtKeySequencePropertyManager : public QtAbstractPropertyManager
00325 {
00326     Q_OBJECT
00327 public:
00328     QtKeySequencePropertyManager(QObject *parent = 0);
00329     ~QtKeySequencePropertyManager();
00330 
00331     QKeySequence value(const QtProperty *property) const;
00332 
00333 public Q_SLOTS:
00334     void setValue(QtProperty *property, const QKeySequence &val);
00335 Q_SIGNALS:
00336     void valueChanged(QtProperty *property, const QKeySequence &val);
00337 protected:
00338     QString valueText(const QtProperty *property) const;
00339     virtual void initializeProperty(QtProperty *property);
00340     virtual void uninitializeProperty(QtProperty *property);
00341 private:
00342     QtKeySequencePropertyManagerPrivate *d_ptr;
00343     Q_DECLARE_PRIVATE(QtKeySequencePropertyManager)
00344     Q_DISABLE_COPY(QtKeySequencePropertyManager)
00345 };
00346 
00347 class QtCharPropertyManagerPrivate;
00348 
00349 class QT_QTPROPERTYBROWSER_EXPORT QtCharPropertyManager : public QtAbstractPropertyManager
00350 {
00351     Q_OBJECT
00352 public:
00353     QtCharPropertyManager(QObject *parent = 0);
00354     ~QtCharPropertyManager();
00355 
00356     QChar value(const QtProperty *property) const;
00357 
00358 public Q_SLOTS:
00359     void setValue(QtProperty *property, const QChar &val);
00360 Q_SIGNALS:
00361     void valueChanged(QtProperty *property, const QChar &val);
00362 protected:
00363     QString valueText(const QtProperty *property) const;
00364     virtual void initializeProperty(QtProperty *property);
00365     virtual void uninitializeProperty(QtProperty *property);
00366 private:
00367     QtCharPropertyManagerPrivate *d_ptr;
00368     Q_DECLARE_PRIVATE(QtCharPropertyManager)
00369     Q_DISABLE_COPY(QtCharPropertyManager)
00370 };
00371 
00372 class QtEnumPropertyManager;
00373 class QtLocalePropertyManagerPrivate;
00374 
00375 class QT_QTPROPERTYBROWSER_EXPORT QtLocalePropertyManager : public QtAbstractPropertyManager
00376 {
00377     Q_OBJECT
00378 public:
00379     QtLocalePropertyManager(QObject *parent = 0);
00380     ~QtLocalePropertyManager();
00381 
00382     QtEnumPropertyManager *subEnumPropertyManager() const;
00383 
00384     QLocale value(const QtProperty *property) const;
00385 
00386 public Q_SLOTS:
00387     void setValue(QtProperty *property, const QLocale &val);
00388 Q_SIGNALS:
00389     void valueChanged(QtProperty *property, const QLocale &val);
00390 protected:
00391     QString valueText(const QtProperty *property) const;
00392     virtual void initializeProperty(QtProperty *property);
00393     virtual void uninitializeProperty(QtProperty *property);
00394 private:
00395     QtLocalePropertyManagerPrivate *d_ptr;
00396     Q_DECLARE_PRIVATE(QtLocalePropertyManager)
00397     Q_DISABLE_COPY(QtLocalePropertyManager)
00398     Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty *, int))
00399     Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
00400 };
00401 
00402 class QtPointPropertyManagerPrivate;
00403 
00404 class QT_QTPROPERTYBROWSER_EXPORT QtPointPropertyManager : public QtAbstractPropertyManager
00405 {
00406     Q_OBJECT
00407 public:
00408     QtPointPropertyManager(QObject *parent = 0);
00409     ~QtPointPropertyManager();
00410 
00411     QtIntPropertyManager *subIntPropertyManager() const;
00412 
00413     QPoint value(const QtProperty *property) const;
00414 
00415 public Q_SLOTS:
00416     void setValue(QtProperty *property, const QPoint &val);
00417 Q_SIGNALS:
00418     void valueChanged(QtProperty *property, const QPoint &val);
00419 protected:
00420     QString valueText(const QtProperty *property) const;
00421     virtual void initializeProperty(QtProperty *property);
00422     virtual void uninitializeProperty(QtProperty *property);
00423 private:
00424     QtPointPropertyManagerPrivate *d_ptr;
00425     Q_DECLARE_PRIVATE(QtPointPropertyManager)
00426     Q_DISABLE_COPY(QtPointPropertyManager)
00427     Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
00428     Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
00429 };
00430 
00431 class QtPointFPropertyManagerPrivate;
00432 
00433 class QT_QTPROPERTYBROWSER_EXPORT QtPointFPropertyManager : public QtAbstractPropertyManager
00434 {
00435     Q_OBJECT
00436 public:
00437     QtPointFPropertyManager(QObject *parent = 0);
00438     ~QtPointFPropertyManager();
00439 
00440     QtDoublePropertyManager *subDoublePropertyManager() const;
00441 
00442     QPointF value(const QtProperty *property) const;
00443     int decimals(const QtProperty *property) const;
00444 
00445 public Q_SLOTS:
00446     void setValue(QtProperty *property, const QPointF &val);
00447     void setDecimals(QtProperty *property, int prec);
00448 Q_SIGNALS:
00449     void valueChanged(QtProperty *property, const QPointF &val);
00450     void decimalsChanged(QtProperty *property, int prec);
00451 protected:
00452     QString valueText(const QtProperty *property) const;
00453     virtual void initializeProperty(QtProperty *property);
00454     virtual void uninitializeProperty(QtProperty *property);
00455 private:
00456     QtPointFPropertyManagerPrivate *d_ptr;
00457     Q_DECLARE_PRIVATE(QtPointFPropertyManager)
00458     Q_DISABLE_COPY(QtPointFPropertyManager)
00459     Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty *, double))
00460     Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
00461 };
00462 
00463 class QtSizePropertyManagerPrivate;
00464 
00465 class QT_QTPROPERTYBROWSER_EXPORT QtSizePropertyManager : public QtAbstractPropertyManager
00466 {
00467     Q_OBJECT
00468 public:
00469     QtSizePropertyManager(QObject *parent = 0);
00470     ~QtSizePropertyManager();
00471 
00472     QtIntPropertyManager *subIntPropertyManager() const;
00473 
00474     QSize value(const QtProperty *property) const;
00475     QSize minimum(const QtProperty *property) const;
00476     QSize maximum(const QtProperty *property) const;
00477 
00478 public Q_SLOTS:
00479     void setValue(QtProperty *property, const QSize &val);
00480     void setMinimum(QtProperty *property, const QSize &minVal);
00481     void setMaximum(QtProperty *property, const QSize &maxVal);
00482     void setRange(QtProperty *property, const QSize &minVal, const QSize &maxVal);
00483 Q_SIGNALS:
00484     void valueChanged(QtProperty *property, const QSize &val);
00485     void rangeChanged(QtProperty *property, const QSize &minVal, const QSize &maxVal);
00486 protected:
00487     QString valueText(const QtProperty *property) const;
00488     virtual void initializeProperty(QtProperty *property);
00489     virtual void uninitializeProperty(QtProperty *property);
00490 private:
00491     QtSizePropertyManagerPrivate *d_ptr;
00492     Q_DECLARE_PRIVATE(QtSizePropertyManager)
00493     Q_DISABLE_COPY(QtSizePropertyManager)
00494     Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
00495     Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
00496 };
00497 
00498 class QtSizeFPropertyManagerPrivate;
00499 
00500 class QT_QTPROPERTYBROWSER_EXPORT QtSizeFPropertyManager : public QtAbstractPropertyManager
00501 {
00502     Q_OBJECT
00503 public:
00504     QtSizeFPropertyManager(QObject *parent = 0);
00505     ~QtSizeFPropertyManager();
00506 
00507     QtDoublePropertyManager *subDoublePropertyManager() const;
00508 
00509     QSizeF value(const QtProperty *property) const;
00510     QSizeF minimum(const QtProperty *property) const;
00511     QSizeF maximum(const QtProperty *property) const;
00512     int decimals(const QtProperty *property) const;
00513 
00514 public Q_SLOTS:
00515     void setValue(QtProperty *property, const QSizeF &val);
00516     void setMinimum(QtProperty *property, const QSizeF &minVal);
00517     void setMaximum(QtProperty *property, const QSizeF &maxVal);
00518     void setRange(QtProperty *property, const QSizeF &minVal, const QSizeF &maxVal);
00519     void setDecimals(QtProperty *property, int prec);
00520 Q_SIGNALS:
00521     void valueChanged(QtProperty *property, const QSizeF &val);
00522     void rangeChanged(QtProperty *property, const QSizeF &minVal, const QSizeF &maxVal);
00523     void decimalsChanged(QtProperty *property, int prec);
00524 protected:
00525     QString valueText(const QtProperty *property) const;
00526     virtual void initializeProperty(QtProperty *property);
00527     virtual void uninitializeProperty(QtProperty *property);
00528 private:
00529     QtSizeFPropertyManagerPrivate *d_ptr;
00530     Q_DECLARE_PRIVATE(QtSizeFPropertyManager)
00531     Q_DISABLE_COPY(QtSizeFPropertyManager)
00532     Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty *, double))
00533     Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
00534 };
00535 
00536 class QtRectPropertyManagerPrivate;
00537 
00538 class QT_QTPROPERTYBROWSER_EXPORT QtRectPropertyManager : public QtAbstractPropertyManager
00539 {
00540     Q_OBJECT
00541 public:
00542     QtRectPropertyManager(QObject *parent = 0);
00543     ~QtRectPropertyManager();
00544 
00545     QtIntPropertyManager *subIntPropertyManager() const;
00546 
00547     QRect value(const QtProperty *property) const;
00548     QRect constraint(const QtProperty *property) const;
00549 
00550 public Q_SLOTS:
00551     void setValue(QtProperty *property, const QRect &val);
00552     void setConstraint(QtProperty *property, const QRect &constraint);
00553 Q_SIGNALS:
00554     void valueChanged(QtProperty *property, const QRect &val);
00555     void constraintChanged(QtProperty *property, const QRect &constraint);
00556 protected:
00557     QString valueText(const QtProperty *property) const;
00558     virtual void initializeProperty(QtProperty *property);
00559     virtual void uninitializeProperty(QtProperty *property);
00560 private:
00561     QtRectPropertyManagerPrivate *d_ptr;
00562     Q_DECLARE_PRIVATE(QtRectPropertyManager)
00563     Q_DISABLE_COPY(QtRectPropertyManager)
00564     Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
00565     Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
00566 };
00567 
00568 class QtRectFPropertyManagerPrivate;
00569 
00570 class QT_QTPROPERTYBROWSER_EXPORT QtRectFPropertyManager : public QtAbstractPropertyManager
00571 {
00572     Q_OBJECT
00573 public:
00574     QtRectFPropertyManager(QObject *parent = 0);
00575     ~QtRectFPropertyManager();
00576 
00577     QtDoublePropertyManager *subDoublePropertyManager() const;
00578 
00579     QRectF value(const QtProperty *property) const;
00580     QRectF constraint(const QtProperty *property) const;
00581     int decimals(const QtProperty *property) const;
00582 
00583 public Q_SLOTS:
00584     void setValue(QtProperty *property, const QRectF &val);
00585     void setConstraint(QtProperty *property, const QRectF &constraint);
00586     void setDecimals(QtProperty *property, int prec);
00587 Q_SIGNALS:
00588     void valueChanged(QtProperty *property, const QRectF &val);
00589     void constraintChanged(QtProperty *property, const QRectF &constraint);
00590     void decimalsChanged(QtProperty *property, int prec);
00591 protected:
00592     QString valueText(const QtProperty *property) const;
00593     virtual void initializeProperty(QtProperty *property);
00594     virtual void uninitializeProperty(QtProperty *property);
00595 private:
00596     QtRectFPropertyManagerPrivate *d_ptr;
00597     Q_DECLARE_PRIVATE(QtRectFPropertyManager)
00598     Q_DISABLE_COPY(QtRectFPropertyManager)
00599     Q_PRIVATE_SLOT(d_func(), void slotDoubleChanged(QtProperty *, double))
00600     Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
00601 };
00602 
00603 class QtEnumPropertyManagerPrivate;
00604 
00605 class QT_QTPROPERTYBROWSER_EXPORT QtEnumPropertyManager : public QtAbstractPropertyManager
00606 {
00607     Q_OBJECT
00608 public:
00609     QtEnumPropertyManager(QObject *parent = 0);
00610     ~QtEnumPropertyManager();
00611 
00612     int value(const QtProperty *property) const;
00613     QStringList enumNames(const QtProperty *property) const;
00614     QMap<int, QIcon> enumIcons(const QtProperty *property) const;
00615 
00616 public Q_SLOTS:
00617     void setValue(QtProperty *property, int val);
00618     void setEnumNames(QtProperty *property, const QStringList &names);
00619     void setEnumIcons(QtProperty *property, const QMap<int, QIcon> &icons);
00620 Q_SIGNALS:
00621     void valueChanged(QtProperty *property, int val);
00622     void enumNamesChanged(QtProperty *property, const QStringList &names);
00623     void enumIconsChanged(QtProperty *property, const QMap<int, QIcon> &icons);
00624 protected:
00625     QString valueText(const QtProperty *property) const;
00626     QIcon valueIcon(const QtProperty *property) const;
00627     virtual void initializeProperty(QtProperty *property);
00628     virtual void uninitializeProperty(QtProperty *property);
00629 private:
00630     QtEnumPropertyManagerPrivate *d_ptr;
00631     Q_DECLARE_PRIVATE(QtEnumPropertyManager)
00632     Q_DISABLE_COPY(QtEnumPropertyManager)
00633 };
00634 
00635 class QtFlagPropertyManagerPrivate;
00636 
00637 class QT_QTPROPERTYBROWSER_EXPORT QtFlagPropertyManager : public QtAbstractPropertyManager
00638 {
00639     Q_OBJECT
00640 public:
00641     QtFlagPropertyManager(QObject *parent = 0);
00642     ~QtFlagPropertyManager();
00643 
00644     QtBoolPropertyManager *subBoolPropertyManager() const;
00645 
00646     int value(const QtProperty *property) const;
00647     QStringList flagNames(const QtProperty *property) const;
00648 
00649 public Q_SLOTS:
00650     void setValue(QtProperty *property, int val);
00651     void setFlagNames(QtProperty *property, const QStringList &names);
00652 Q_SIGNALS:
00653     void valueChanged(QtProperty *property, int val);
00654     void flagNamesChanged(QtProperty *property, const QStringList &names);
00655 protected:
00656     QString valueText(const QtProperty *property) const;
00657     virtual void initializeProperty(QtProperty *property);
00658     virtual void uninitializeProperty(QtProperty *property);
00659 private:
00660     QtFlagPropertyManagerPrivate *d_ptr;
00661     Q_DECLARE_PRIVATE(QtFlagPropertyManager)
00662     Q_DISABLE_COPY(QtFlagPropertyManager)
00663     Q_PRIVATE_SLOT(d_func(), void slotBoolChanged(QtProperty *, bool))
00664     Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
00665 };
00666 
00667 class QtSizePolicyPropertyManagerPrivate;
00668 
00669 class QT_QTPROPERTYBROWSER_EXPORT QtSizePolicyPropertyManager : public QtAbstractPropertyManager
00670 {
00671     Q_OBJECT
00672 public:
00673     QtSizePolicyPropertyManager(QObject *parent = 0);
00674     ~QtSizePolicyPropertyManager();
00675 
00676     QtIntPropertyManager *subIntPropertyManager() const;
00677     QtEnumPropertyManager *subEnumPropertyManager() const;
00678 
00679     QSizePolicy value(const QtProperty *property) const;
00680 
00681 public Q_SLOTS:
00682     void setValue(QtProperty *property, const QSizePolicy &val);
00683 Q_SIGNALS:
00684     void valueChanged(QtProperty *property, const QSizePolicy &val);
00685 protected:
00686     QString valueText(const QtProperty *property) const;
00687     virtual void initializeProperty(QtProperty *property);
00688     virtual void uninitializeProperty(QtProperty *property);
00689 private:
00690     QtSizePolicyPropertyManagerPrivate *d_ptr;
00691     Q_DECLARE_PRIVATE(QtSizePolicyPropertyManager)
00692     Q_DISABLE_COPY(QtSizePolicyPropertyManager)
00693     Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
00694     Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty *, int))
00695     Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
00696 };
00697 
00698 class QtFontPropertyManagerPrivate;
00699 
00700 class QT_QTPROPERTYBROWSER_EXPORT QtFontPropertyManager : public QtAbstractPropertyManager
00701 {
00702     Q_OBJECT
00703 public:
00704     QtFontPropertyManager(QObject *parent = 0);
00705     ~QtFontPropertyManager();
00706 
00707     QtIntPropertyManager *subIntPropertyManager() const;
00708     QtEnumPropertyManager *subEnumPropertyManager() const;
00709     QtBoolPropertyManager *subBoolPropertyManager() const;
00710 
00711     QFont value(const QtProperty *property) const;
00712 
00713 public Q_SLOTS:
00714     void setValue(QtProperty *property, const QFont &val);
00715 Q_SIGNALS:
00716     void valueChanged(QtProperty *property, const QFont &val);
00717 protected:
00718     QString valueText(const QtProperty *property) const;
00719     QIcon valueIcon(const QtProperty *property) const;
00720     virtual void initializeProperty(QtProperty *property);
00721     virtual void uninitializeProperty(QtProperty *property);
00722 private:
00723     QtFontPropertyManagerPrivate *d_ptr;
00724     Q_DECLARE_PRIVATE(QtFontPropertyManager)
00725     Q_DISABLE_COPY(QtFontPropertyManager)
00726     Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
00727     Q_PRIVATE_SLOT(d_func(), void slotEnumChanged(QtProperty *, int))
00728     Q_PRIVATE_SLOT(d_func(), void slotBoolChanged(QtProperty *, bool))
00729     Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
00730     Q_PRIVATE_SLOT(d_func(), void slotFontDatabaseChanged())
00731     Q_PRIVATE_SLOT(d_func(), void slotFontDatabaseDelayedChange())
00732 };
00733 
00734 class QtColorPropertyManagerPrivate;
00735 
00736 class QT_QTPROPERTYBROWSER_EXPORT QtColorPropertyManager : public QtAbstractPropertyManager
00737 {
00738     Q_OBJECT
00739 public:
00740     QtColorPropertyManager(QObject *parent = 0);
00741     ~QtColorPropertyManager();
00742 
00743     QtIntPropertyManager *subIntPropertyManager() const;
00744 
00745     QColor value(const QtProperty *property) const;
00746 
00747 public Q_SLOTS:
00748     void setValue(QtProperty *property, const QColor &val);
00749 Q_SIGNALS:
00750     void valueChanged(QtProperty *property, const QColor &val);
00751 protected:
00752     QString valueText(const QtProperty *property) const;
00753     QIcon valueIcon(const QtProperty *property) const;
00754     virtual void initializeProperty(QtProperty *property);
00755     virtual void uninitializeProperty(QtProperty *property);
00756 private:
00757     QtColorPropertyManagerPrivate *d_ptr;
00758     Q_DECLARE_PRIVATE(QtColorPropertyManager)
00759     Q_DISABLE_COPY(QtColorPropertyManager)
00760     Q_PRIVATE_SLOT(d_func(), void slotIntChanged(QtProperty *, int))
00761     Q_PRIVATE_SLOT(d_func(), void slotPropertyDestroyed(QtProperty *))
00762 };
00763 
00764 class QtCursorPropertyManagerPrivate;
00765 
00766 class QT_QTPROPERTYBROWSER_EXPORT QtCursorPropertyManager : public QtAbstractPropertyManager
00767 {
00768     Q_OBJECT
00769 public:
00770     QtCursorPropertyManager(QObject *parent = 0);
00771     ~QtCursorPropertyManager();
00772 
00773 #ifndef QT_NO_CURSOR
00774     QCursor value(const QtProperty *property) const;
00775 #endif
00776 
00777 public Q_SLOTS:
00778     void setValue(QtProperty *property, const QCursor &val);
00779 Q_SIGNALS:
00780     void valueChanged(QtProperty *property, const QCursor &val);
00781 protected:
00782     QString valueText(const QtProperty *property) const;
00783     QIcon valueIcon(const QtProperty *property) const;
00784     virtual void initializeProperty(QtProperty *property);
00785     virtual void uninitializeProperty(QtProperty *property);
00786 private:
00787     QtCursorPropertyManagerPrivate *d_ptr;
00788     Q_DECLARE_PRIVATE(QtCursorPropertyManager)
00789     Q_DISABLE_COPY(QtCursorPropertyManager)
00790 };
00791 
00792 #if QT_VERSION >= 0x040400
00793 QT_END_NAMESPACE
00794 #endif
00795 
00796 #endif
 All Classes Functions Enumerations Properties