42#ifndef QTPROPERTYMANAGER_H
43#define QTPROPERTYMANAGER_H
45#include "qtpropertybrowser.h"
48#include "../commonWidgets.h"
50#if QT_VERSION >= 0x040400
85 int singleStep(
const QtProperty *property)
const;
89 void setMinimum(
QtProperty *property,
int minVal);
90 void setMaximum(
QtProperty *property,
int maxVal);
91 void setRange(
QtProperty *property,
int minVal,
int maxVal);
92 void setSingleStep(
QtProperty *property,
int step);
119 void setValue(
QtProperty *property,
bool val);
142 double value(
const QtProperty *property)
const;
143 double minimum(
const QtProperty *property)
const;
144 double maximum(
const QtProperty *property)
const;
145 double singleStep(
const QtProperty *property)
const;
146 int decimals(
const QtProperty *property)
const;
149 void setValue(
QtProperty *property,
double val);
150 void setMinimum(
QtProperty *property,
double minVal);
151 void setMaximum(
QtProperty *property,
double maxVal);
152 void setRange(
QtProperty *property,
double minVal,
double maxVal);
153 void setSingleStep(
QtProperty *property,
double step);
154 void setDecimals(
QtProperty *property,
int prec);
179 QString value(
const QtProperty *property)
const;
180 QRegularExpression regExp(
const QtProperty *property)
const;
184 void setValue(
QtProperty *property,
const QString &val);
185 void setRegExp(
QtProperty *property,
const QRegularExpression®Exp);
186 void setEchoMode(
QtProperty *property, EchoMode echoMode);
190 void echoModeChanged(
QtProperty *property,
const int);
211 QDate value(
const QtProperty *property)
const;
212 QDate minimum(
const QtProperty *property)
const;
213 QDate maximum(
const QtProperty *property)
const;
216 void setValue(
QtProperty *property,
const QDate &val);
217 void setMinimum(
QtProperty *property,
const QDate &minVal);
218 void setMaximum(
QtProperty *property,
const QDate &maxVal);
219 void setRange(
QtProperty *property,
const QDate &minVal,
const QDate &maxVal);
242 QTime value(
const QtProperty *property)
const;
245 void setValue(
QtProperty *property,
const QTime &val);
267 QDateTime value(
const QtProperty *property)
const;
270 void setValue(
QtProperty *property,
const QDateTime &val);
292 QKeySequence value(
const QtProperty *property)
const;
295 void setValue(
QtProperty *property,
const QKeySequence &val);
317 QChar value(
const QtProperty *property)
const;
320 void setValue(
QtProperty *property,
const QChar &val);
345 QLocale value(
const QtProperty *property)
const;
348 void setValue(
QtProperty *property,
const QLocale &val);
359 Q_PRIVATE_SLOT(d_func(),
void slotEnumChanged(
QtProperty *,
int))
360 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
374 QPoint value(
const QtProperty *property)
const;
377 void setValue(
QtProperty *property,
const QPoint &val);
388 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
389 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
403 QPointF value(
const QtProperty *property)
const;
404 int decimals(
const QtProperty *property)
const;
407 void setValue(
QtProperty *property,
const QPointF &val);
408 void setDecimals(
QtProperty *property,
int prec);
420 Q_PRIVATE_SLOT(d_func(),
void slotDoubleChanged(
QtProperty *,
double))
421 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
435 QSize value(
const QtProperty *property)
const;
436 QSize minimum(
const QtProperty *property)
const;
437 QSize maximum(
const QtProperty *property)
const;
440 void setValue(
QtProperty *property,
const QSize &val);
441 void setMinimum(
QtProperty *property,
const QSize &minVal);
442 void setMaximum(
QtProperty *property,
const QSize &maxVal);
443 void setRange(
QtProperty *property,
const QSize &minVal,
const QSize &maxVal);
455 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
456 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
470 QSizeF value(
const QtProperty *property)
const;
471 QSizeF minimum(
const QtProperty *property)
const;
472 QSizeF maximum(
const QtProperty *property)
const;
473 int decimals(
const QtProperty *property)
const;
476 void setValue(
QtProperty *property,
const QSizeF &val);
477 void setMinimum(
QtProperty *property,
const QSizeF &minVal);
478 void setMaximum(
QtProperty *property,
const QSizeF &maxVal);
479 void setRange(
QtProperty *property,
const QSizeF &minVal,
const QSizeF &maxVal);
480 void setDecimals(
QtProperty *property,
int prec);
493 Q_PRIVATE_SLOT(d_func(),
void slotDoubleChanged(
QtProperty *,
double))
494 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
508 QRect value(
const QtProperty *property)
const;
509 QRect constraint(
const QtProperty *property)
const;
512 void setValue(
QtProperty *property,
const QRect &val);
513 void setConstraint(
QtProperty *property,
const QRect &constraint);
525 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
526 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
540 QRectF value(
const QtProperty *property)
const;
541 QRectF constraint(
const QtProperty *property)
const;
542 int decimals(
const QtProperty *property)
const;
545 void setValue(
QtProperty *property,
const QRectF &val);
546 void setConstraint(
QtProperty *property,
const QRectF &constraint);
547 void setDecimals(
QtProperty *property,
int prec);
560 Q_PRIVATE_SLOT(d_func(),
void slotDoubleChanged(
QtProperty *,
double))
561 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
576 QMargins value(
const QtProperty *property)
const;
577 QMargins constraint(
const QtProperty *property)
const;
580 void setValue(
QtProperty *property,
const QMargins &val);
581 void setConstraint(
QtProperty *property,
const QMargins &constraint);
583 void valueChanged(
QtProperty *property,
const QMargins &val);
584 void constraintChanged(
QtProperty *property,
const QMargins &constraint);
593 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
594 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
597#if QT_VERSION >= 0x050300
598class QtMarginsFPropertyManagerPrivate;
604 QtMarginsFPropertyManager(QObject *parent = 0);
605 ~QtMarginsFPropertyManager();
609 QMarginsF value(
const QtProperty *property)
const;
610 QMarginsF constraint(
const QtProperty *property)
const;
613 void setValue(
QtProperty *property,
const QMarginsF &val);
614 void setConstraint(
QtProperty *property,
const QMarginsF &constraint);
616 void valueChanged(
QtProperty *property,
const QMarginsF &val);
617 void constraintChanged(
QtProperty *property,
const QMarginsF &constraint);
623 QtMarginsFPropertyManagerPrivate *d_ptr;
624 Q_DECLARE_PRIVATE(QtMarginsFPropertyManager)
625 Q_DISABLE_COPY(QtMarginsFPropertyManager)
626 Q_PRIVATE_SLOT(d_func(),
void slotDoubleChanged(
QtProperty *,
double))
627 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
641 QStringList enumNames(
const QtProperty *property)
const;
642 QMap<int, QIcon> enumIcons(
const QtProperty *property)
const;
646 void setEnumNames(
QtProperty *property,
const QStringList &names);
647 void setEnumIcons(
QtProperty *property,
const QMap<int, QIcon> &icons);
675 QStringList flagNames(
const QtProperty *property)
const;
679 void setFlagNames(
QtProperty *property,
const QStringList &names);
691 Q_PRIVATE_SLOT(d_func(),
void slotBoolChanged(
QtProperty *,
bool))
692 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
707 QSizePolicy value(
const QtProperty *property)
const;
710 void setValue(
QtProperty *property,
const QSizePolicy &val);
721 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
722 Q_PRIVATE_SLOT(d_func(),
void slotEnumChanged(
QtProperty *,
int))
723 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
739 QFont value(
const QtProperty *property)
const;
742 void setValue(
QtProperty *property,
const QFont &val);
754 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
755 Q_PRIVATE_SLOT(d_func(),
void slotEnumChanged(
QtProperty *,
int))
756 Q_PRIVATE_SLOT(d_func(),
void slotBoolChanged(
QtProperty *,
bool))
757 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
758 Q_PRIVATE_SLOT(d_func(),
void slotFontDatabaseChanged())
759 Q_PRIVATE_SLOT(d_func(),
void slotFontDatabaseDelayedChange())
773 QColor value(
const QtProperty *property)
const;
776 void setValue(
QtProperty *property,
const QColor &val);
788 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
789 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
802 QCursor value(
const QtProperty *property)
const;
806 void setValue(
QtProperty *property,
const QCursor &val);
820#if QT_VERSION >= 0x040400
The QtAbstractPropertyManager provides an interface for property managers.
Definition qtpropertybrowser.h:102
virtual EchoMode echoMode(const QtProperty *) const
Definition qtpropertybrowser.cpp:761
virtual void initializeProperty(QtProperty *property)=0
virtual QString displayText(const QtProperty *property) const
Definition qtpropertybrowser.cpp:747
virtual QIcon valueIcon(const QtProperty *property) const
Definition qtpropertybrowser.cpp:717
virtual bool hasValue(const QtProperty *property) const
Definition qtpropertybrowser.cpp:702
virtual QString valueText(const QtProperty *property) const
Definition qtpropertybrowser.cpp:732
virtual void uninitializeProperty(QtProperty *property)
Definition qtpropertybrowser.cpp:828
The QtBoolPropertyManager class provides and manages boolean properties.
Definition qtpropertymanager.h:110
void valueChanged(QtProperty *property, bool val)
Definition qtpropertymanager.cpp:1490
The QtCharPropertyManager provides and manages QChar properties.
Definition qtpropertymanager.h:311
void valueChanged(QtProperty *property, const QChar &val)
Definition qtpropertymanager.cpp:2218
The QtColorPropertyManager provides and manages QColor properties.
Definition qtpropertymanager.h:765
void valueChanged(QtProperty *property, const QColor &val)
Definition qtpropertymanager.cpp:6857
The QtCursorPropertyManager provides and manages QCursor properties.
Definition qtpropertymanager.h:795
void valueChanged(QtProperty *property, const QCursor &val)
Definition qtpropertymanager.cpp:7140
The QtDatePropertyManager provides and manages QDate properties.
Definition qtpropertymanager.h:205
void rangeChanged(QtProperty *property, const QDate &minVal, const QDate &maxVal)
void valueChanged(QtProperty *property, const QDate &val)
Definition qtpropertymanager.cpp:1646
The QtDateTimePropertyManager provides and manages QDateTime properties.
Definition qtpropertymanager.h:261
void valueChanged(QtProperty *property, const QDateTime &val)
Definition qtpropertymanager.cpp:1994
The QtDoublePropertyManager provides and manages double properties.
Definition qtpropertymanager.h:136
void valueChanged(QtProperty *property, double val)
void singleStepChanged(QtProperty *property, double step)
void decimalsChanged(QtProperty *property, int prec)
void rangeChanged(QtProperty *property, double minVal, double maxVal)
Definition qtpropertymanager.cpp:908
The QtEnumPropertyManager provides and manages enum properties.
Definition qtpropertymanager.h:634
void enumIconsChanged(QtProperty *property, const QMap< int, QIcon > &icons)
void enumNamesChanged(QtProperty *property, const QStringList &names)
void valueChanged(QtProperty *property, int val)
Definition qtpropertymanager.cpp:5461
The QtFlagPropertyManager provides and manages flag properties.
Definition qtpropertymanager.h:666
void flagNamesChanged(QtProperty *property, const QStringList &names)
void valueChanged(QtProperty *property, int val)
Definition qtpropertymanager.cpp:5730
The QtFontPropertyManager provides and manages QFont properties.
Definition qtpropertymanager.h:729
void valueChanged(QtProperty *property, const QFont &val)
Definition qtpropertymanager.cpp:6382
The QtGroupPropertyManager provides and manages group properties.
Definition qtpropertymanager.h:60
The QtIntPropertyManager provides and manages int properties.
Definition qtpropertymanager.h:76
void rangeChanged(QtProperty *property, int minVal, int maxVal)
void singleStepChanged(QtProperty *property, int step)
void valueChanged(QtProperty *property, int val)
Definition qtpropertymanager.cpp:632
The QtKeySequencePropertyManager provides and manages QKeySequence properties.
Definition qtpropertymanager.h:286
void valueChanged(QtProperty *property, const QKeySequence &val)
Definition qtpropertymanager.cpp:2108
The QtLocalePropertyManager provides and manages QLocale properties.
Definition qtpropertymanager.h:337
void valueChanged(QtProperty *property, const QLocale &val)
Definition qtpropertymanager.cpp:2327
The QtMarginsPropertyManager provides and manages QMargins properties.
Definition qtpropertymanager.h:568
Definition qtpropertymanager.cpp:4687
The QtPointFPropertyManager provides and manages QPointF properties.
Definition qtpropertymanager.h:395
void valueChanged(QtProperty *property, const QPointF &val)
void decimalsChanged(QtProperty *property, int prec)
Definition qtpropertymanager.cpp:2788
The QtPointPropertyManager provides and manages QPoint properties.
Definition qtpropertymanager.h:366
void valueChanged(QtProperty *property, const QPoint &val)
Definition qtpropertymanager.cpp:2576
The QtProperty class encapsulates an instance of a property.
Definition qtpropertybrowser.h:61
The QtRectFPropertyManager provides and manages QRectF properties.
Definition qtpropertymanager.h:532
void constraintChanged(QtProperty *property, const QRectF &constraint)
void decimalsChanged(QtProperty *property, int prec)
void valueChanged(QtProperty *property, const QRectF &val)
Definition qtpropertymanager.cpp:4216
The QtRectPropertyManager provides and manages QRect properties.
Definition qtpropertymanager.h:500
void constraintChanged(QtProperty *property, const QRect &constraint)
void valueChanged(QtProperty *property, const QRect &val)
Definition qtpropertymanager.cpp:3808
The QtSizeFPropertyManager provides and manages QSizeF properties.
Definition qtpropertymanager.h:462
void valueChanged(QtProperty *property, const QSizeF &val)
void rangeChanged(QtProperty *property, const QSizeF &minVal, const QSizeF &maxVal)
void decimalsChanged(QtProperty *property, int prec)
Definition qtpropertymanager.cpp:3408
The QtSizePolicyPropertyManager provides and manages QSizePolicy properties.
Definition qtpropertymanager.h:698
void valueChanged(QtProperty *property, const QSizePolicy &val)
Definition qtpropertymanager.cpp:6057
The QtSizePropertyManager provides and manages QSize properties.
Definition qtpropertymanager.h:427
void valueChanged(QtProperty *property, const QSize &val)
void rangeChanged(QtProperty *property, const QSize &minVal, const QSize &maxVal)
Definition qtpropertymanager.cpp:3064
The QtStringPropertyManager provides and manages QString properties.
Definition qtpropertymanager.h:173
void valueChanged(QtProperty *property, const QString &val)
void regExpChanged(QtProperty *property, const QRegularExpression ®Exp)
Definition qtpropertymanager.cpp:1238
The QtTimePropertyManager provides and manages QTime properties.
Definition qtpropertymanager.h:236
void valueChanged(QtProperty *property, const QTime &val)
Definition qtpropertymanager.cpp:1878