40 #pragma GCC system_header
41 #pragma GCC diagnostic ignored "-Wswitch-default"
42 #pragma GCC diagnostic ignored "-Wfloat-equal"
43 #pragma GCC diagnostic ignored "-Wshadow"
46 #ifndef QTPROPERTYMANAGER_H
47 #define QTPROPERTYMANAGER_H
49 #include <QtCore/QLocale>
50 #include <QtCore/QDateTime>
51 #include <QtCore/QMetaEnum>
53 #include <QtGui/QIcon>
58 #if QT_VERSION >= 0x040400
67 template <
class PrivateData,
class Value>
70 data->minVal = minVal;
71 if (data->maxVal < data->minVal)
72 data->maxVal = data->minVal;
74 if (data->val < data->minVal)
75 data->val = data->minVal;
78 template <
class PrivateData,
class Value>
81 data->maxVal = maxVal;
82 if (data->minVal > data->maxVal)
83 data->minVal = data->maxVal;
85 if (data->val > data->maxVal)
86 data->val = data->maxVal;
88 template <
class PrivateData,
class Value>
91 data->minVal = newMinVal;
92 if (data->maxVal.width() < data->minVal.width())
93 data->maxVal.setWidth(data->minVal.width());
94 if (data->maxVal.height() < data->minVal.height())
95 data->maxVal.setHeight(data->minVal.height());
97 if (data->val.width() < data->minVal.width())
98 data->val.setWidth(data->minVal.width());
99 if (data->val.height() < data->minVal.height())
100 data->val.setHeight(data->minVal.height());
103 template <
class PrivateData,
class Value>
106 data->maxVal = newMaxVal;
107 if (data->minVal.width() > data->maxVal.width())
108 data->minVal.setWidth(data->maxVal.width());
109 if (data->minVal.height() > data->maxVal.height())
110 data->minVal.setHeight(data->maxVal.height());
112 if (data->val.width() > data->maxVal.width())
113 data->val.setWidth(data->maxVal.width());
114 if (data->val.height() > data->maxVal.height())
115 data->val.setHeight(data->maxVal.height());
146 int minimum(
const QtProperty *property)
const;
147 int maximum(
const QtProperty *property)
const;
148 int singleStep(
const QtProperty *property)
const;
152 void setMinimum(
QtProperty *property,
int minVal);
153 void setMaximum(
QtProperty *property,
int maxVal);
154 void setRange(
QtProperty *property,
int minVal,
int maxVal);
155 void setSingleStep(
QtProperty *property,
int step);
157 void valueChanged(
QtProperty *property,
int val);
158 void rangeChanged(
QtProperty *property,
int minVal,
int maxVal);
159 void singleStepChanged(
QtProperty *property,
int step);
178 Data() : val(0), minVal(-INT_MAX), maxVal(INT_MAX), singleStep(1) {}
183 int minimumValue()
const {
return minVal; }
184 int maximumValue()
const {
return maxVal; }
191 typedef QMap<const QtProperty *, Data> PropertyValueMap;
192 PropertyValueMap m_values;
209 void setValue(
QtProperty *property,
bool val);
211 void valueChanged(
QtProperty *property,
bool val);
229 QMap<const QtProperty *, bool> m_values;
244 double value(
const QtProperty *property)
const;
245 double minimum(
const QtProperty *property)
const;
246 double maximum(
const QtProperty *property)
const;
247 double singleStep(
const QtProperty *property)
const;
248 int decimals(
const QtProperty *property)
const;
251 void setValue(
QtProperty *property,
double val);
252 void setMinimum(
QtProperty *property,
double minVal);
253 void setMaximum(
QtProperty *property,
double maxVal);
254 void setRange(
QtProperty *property,
double minVal,
double maxVal);
255 void setSingleStep(
QtProperty *property,
double step);
256 void setDecimals(
QtProperty *property,
int prec);
258 void valueChanged(
QtProperty *property,
double val);
259 void rangeChanged(
QtProperty *property,
double minVal,
double maxVal);
260 void singleStepChanged(
QtProperty *property,
double step);
261 void decimalsChanged(
QtProperty *property,
int prec);
279 Data() : val(0), minVal(-INT_MAX), maxVal(INT_MAX), singleStep(1),
286 double minimumValue()
const {
return minVal; }
287 double maximumValue()
const {
return maxVal; }
294 typedef QMap<const QtProperty *, Data> PropertyValueMap;
295 PropertyValueMap m_values;
308 QString value(
const QtProperty *property)
const;
309 QRegExp regExp(
const QtProperty *property)
const;
313 void setValue(
QtProperty *property,
const QString &val);
314 void setRegExp(
QtProperty *property,
const QRegExp ®Exp);
317 void valueChanged(
QtProperty *property,
const QString &val);
318 void regExpChanged(
QtProperty *property,
const QRegExp ®Exp);
319 void echoModeChanged(
QtProperty *property,
const int);
340 Data() : regExp(QString(QLatin1Char(
'*')), Qt::CaseSensitive,
341 QRegExp::Wildcard), echoMode(QLineEdit::Normal)
349 typedef QMap<const QtProperty *, Data> PropertyValueMap;
350 QMap<const QtProperty *, Data> m_values;
363 QDate value(
const QtProperty *property)
const;
364 QDate minimum(
const QtProperty *property)
const;
365 QDate maximum(
const QtProperty *property)
const;
368 void setValue(
QtProperty *property,
const QDate &val);
369 void setMinimum(
QtProperty *property,
const QDate &minVal);
370 void setMaximum(
QtProperty *property,
const QDate &maxVal);
371 void setRange(
QtProperty *property,
const QDate &minVal,
372 const QDate &maxVal);
374 void valueChanged(
QtProperty *property,
const QDate &val);
375 void rangeChanged(
QtProperty *property,
const QDate &minVal,
376 const QDate &maxVal);
394 Data() : val(QDate::currentDate()), minVal(QDate(1752, 9, 14)),
395 maxVal(QDate(7999, 12, 31)) {}
399 QDate minimumValue()
const {
return minVal; }
400 QDate maximumValue()
const {
return maxVal; }
409 typedef QMap<const QtProperty *, Data> PropertyValueMap;
410 QMap<const QtProperty *, Data> m_values;
423 QTime value(
const QtProperty *property)
const;
426 void setValue(
QtProperty *property,
const QTime &val);
428 void valueChanged(
QtProperty *property,
const QTime &val);
446 typedef QMap<const QtProperty *, QTime> PropertyValueMap;
447 PropertyValueMap m_values;
462 QDateTime value(
const QtProperty *property)
const;
465 void setValue(
QtProperty *property,
const QDateTime &val);
467 void valueChanged(
QtProperty *property,
const QDateTime &val);
485 typedef QMap<const QtProperty *, QDateTime> PropertyValueMap;
486 PropertyValueMap m_values;
501 QKeySequence value(
const QtProperty *property)
const;
504 void setValue(
QtProperty *property,
const QKeySequence &val);
506 void valueChanged(
QtProperty *property,
const QKeySequence &val);
524 typedef QMap<const QtProperty *, QKeySequence> PropertyValueMap;
525 PropertyValueMap m_values;
540 QChar value(
const QtProperty *property)
const;
543 void setValue(
QtProperty *property,
const QChar &val);
545 void valueChanged(
QtProperty *property,
const QChar &val);
561 typedef QMap<const QtProperty *, QChar> PropertyValueMap;
562 PropertyValueMap m_values;
580 QLocale value(
const QtProperty *property)
const;
583 void setValue(
QtProperty *property,
const QLocale &val);
585 void valueChanged(
QtProperty *property,
const QLocale &val);
594 Q_PRIVATE_SLOT(d_func(),
void slotEnumChanged(
QtProperty *,
int))
595 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
606 void slotEnumChanged(
QtProperty *property,
int value);
607 void slotPropertyDestroyed(
QtProperty *property);
609 typedef QMap<const QtProperty *, QLocale> PropertyValueMap;
610 PropertyValueMap m_values;
614 QMap<const QtProperty *, QtProperty *> m_propertyToLanguage;
615 QMap<const QtProperty *, QtProperty *> m_propertyToCountry;
617 QMap<const QtProperty *, QtProperty *> m_languageToProperty;
618 QMap<const QtProperty *, QtProperty *> m_countryToProperty;
636 QPoint value(
const QtProperty *property)
const;
639 void setValue(
QtProperty *property,
const QPoint &val);
641 void valueChanged(
QtProperty *property,
const QPoint &val);
650 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
651 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
660 : q_ptr(
NULL), m_intPropertyManager(
NULL) {}
661 void slotIntChanged(
QtProperty *property,
int value);
662 void slotPropertyDestroyed(
QtProperty *property);
664 typedef QMap<const QtProperty *, QPoint> PropertyValueMap;
665 PropertyValueMap m_values;
669 QMap<const QtProperty *, QtProperty *> m_propertyToX;
670 QMap<const QtProperty *, QtProperty *> m_propertyToY;
672 QMap<const QtProperty *, QtProperty *> m_xToProperty;
673 QMap<const QtProperty *, QtProperty *> m_yToProperty;
689 QPointF value(
const QtProperty *property)
const;
690 int decimals(
const QtProperty *property)
const;
693 void setValue(
QtProperty *property,
const QPointF &val);
694 void setDecimals(
QtProperty *property,
int prec);
696 void valueChanged(
QtProperty *property,
const QPointF &val);
697 void decimalsChanged(
QtProperty *property,
int prec);
706 Q_PRIVATE_SLOT(d_func(),
void slotDoubleChanged(
QtProperty *,
double))
707 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
715 : q_ptr(
NULL), m_doublePropertyManager(
NULL) {}
718 Data() : decimals(2) {}
723 void slotDoubleChanged(
QtProperty *property,
double value);
724 void slotPropertyDestroyed(
QtProperty *property);
726 typedef QMap<const QtProperty *, Data> PropertyValueMap;
727 PropertyValueMap m_values;
731 QMap<const QtProperty *, QtProperty *> m_propertyToX;
732 QMap<const QtProperty *, QtProperty *> m_propertyToY;
734 QMap<const QtProperty *, QtProperty *> m_xToProperty;
735 QMap<const QtProperty *, QtProperty *> m_yToProperty;
751 QSize value(
const QtProperty *property)
const;
752 QSize minimum(
const QtProperty *property)
const;
753 QSize maximum(
const QtProperty *property)
const;
756 void setValue(
QtProperty *property,
const QSize &val);
757 void setMinimum(
QtProperty *property,
const QSize &minVal);
758 void setMaximum(
QtProperty *property,
const QSize &maxVal);
759 void setRange(
QtProperty *property,
const QSize &minVal,
760 const QSize &maxVal);
762 void valueChanged(
QtProperty *property,
const QSize &val);
763 void rangeChanged(
QtProperty *property,
const QSize &minVal,
764 const QSize &maxVal);
773 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
774 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
783 : q_ptr(
NULL), m_intPropertyManager(
NULL) {}
784 void slotIntChanged(
QtProperty *property,
int value);
785 void slotPropertyDestroyed(
QtProperty *property);
786 void setValue(
QtProperty *property,
const QSize &val);
788 const QSize &minVal,
const QSize &maxVal,
const QSize &val);
792 Data() : val(QSize(0, 0)), minVal(QSize(0, 0)), maxVal(QSize(INT_MAX,
797 QSize minimumValue()
const {
return minVal; }
798 QSize maximumValue()
const {
return maxVal; }
805 typedef QMap<const QtProperty *, Data> PropertyValueMap;
806 PropertyValueMap m_values;
810 QMap<const QtProperty *, QtProperty *> m_propertyToW;
811 QMap<const QtProperty *, QtProperty *> m_propertyToH;
813 QMap<const QtProperty *, QtProperty *> m_wToProperty;
814 QMap<const QtProperty *, QtProperty *> m_hToProperty;
830 QSizeF value(
const QtProperty *property)
const;
831 QSizeF minimum(
const QtProperty *property)
const;
832 QSizeF maximum(
const QtProperty *property)
const;
833 int decimals(
const QtProperty *property)
const;
836 void setValue(
QtProperty *property,
const QSizeF &val);
837 void setMinimum(
QtProperty *property,
const QSizeF &minVal);
838 void setMaximum(
QtProperty *property,
const QSizeF &maxVal);
839 void setRange(
QtProperty *property,
const QSizeF &minVal,
840 const QSizeF &maxVal);
841 void setDecimals(
QtProperty *property,
int prec);
843 void valueChanged(
QtProperty *property,
const QSizeF &val);
844 void rangeChanged(
QtProperty *property,
const QSizeF &minVal,
845 const QSizeF &maxVal);
846 void decimalsChanged(
QtProperty *property,
int prec);
855 Q_PRIVATE_SLOT(d_func(),
void slotDoubleChanged(
QtProperty *,
double))
856 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
865 : q_ptr(
NULL), m_doublePropertyManager(
NULL) {}
866 void slotDoubleChanged(
QtProperty *property,
double value);
867 void slotPropertyDestroyed(
QtProperty *property);
868 void setValue(
QtProperty *property,
const QSizeF &val);
870 const QSizeF &minVal,
const QSizeF &maxVal,
const QSizeF &val);
874 Data() : val(QSizeF(0, 0)), minVal(QSizeF(0, 0)), maxVal(QSizeF(INT_MAX,
875 INT_MAX)), decimals(2) {}
880 QSizeF minimumValue()
const {
return minVal; }
881 QSizeF maximumValue()
const {
return maxVal; }
888 typedef QMap<const QtProperty *, Data> PropertyValueMap;
889 PropertyValueMap m_values;
893 QMap<const QtProperty *, QtProperty *> m_propertyToW;
894 QMap<const QtProperty *, QtProperty *> m_propertyToH;
896 QMap<const QtProperty *, QtProperty *> m_wToProperty;
897 QMap<const QtProperty *, QtProperty *> m_hToProperty;
913 QRect value(
const QtProperty *property)
const;
914 QRect constraint(
const QtProperty *property)
const;
917 void setValue(
QtProperty *property,
const QRect &val);
918 void setConstraint(
QtProperty *property,
const QRect &constraint);
920 void valueChanged(
QtProperty *property,
const QRect &val);
921 void constraintChanged(
QtProperty *property,
const QRect &constraint);
930 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
931 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
940 : q_ptr(
NULL), m_intPropertyManager(
NULL) {}
942 void slotIntChanged(
QtProperty *property,
int value);
943 void slotPropertyDestroyed(
QtProperty *property);
944 void setConstraint(
QtProperty *property,
const QRect &constraint,
949 Data() : val(0, 0, 0, 0) {}
954 typedef QMap<const QtProperty *, Data> PropertyValueMap;
955 PropertyValueMap m_values;
959 QMap<const QtProperty *, QtProperty *> m_propertyToX;
960 QMap<const QtProperty *, QtProperty *> m_propertyToY;
961 QMap<const QtProperty *, QtProperty *> m_propertyToW;
962 QMap<const QtProperty *, QtProperty *> m_propertyToH;
964 QMap<const QtProperty *, QtProperty *> m_xToProperty;
965 QMap<const QtProperty *, QtProperty *> m_yToProperty;
966 QMap<const QtProperty *, QtProperty *> m_wToProperty;
967 QMap<const QtProperty *, QtProperty *> m_hToProperty;
983 QRectF value(
const QtProperty *property)
const;
984 QRectF constraint(
const QtProperty *property)
const;
985 int decimals(
const QtProperty *property)
const;
988 void setValue(
QtProperty *property,
const QRectF &val);
989 void setConstraint(
QtProperty *property,
const QRectF &constraint);
990 void setDecimals(
QtProperty *property,
int prec);
992 void valueChanged(
QtProperty *property,
const QRectF &val);
993 void constraintChanged(
QtProperty *property,
const QRectF &constraint);
994 void decimalsChanged(
QtProperty *property,
int prec);
1003 Q_PRIVATE_SLOT(d_func(),
void slotDoubleChanged(
QtProperty *,
double))
1004 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
1013 : q_ptr(
NULL), m_doublePropertyManager(
NULL) {}
1014 void slotDoubleChanged(
QtProperty *property,
double value);
1015 void slotPropertyDestroyed(
QtProperty *property);
1016 void setConstraint(
QtProperty *property,
const QRectF &constraint,
1021 Data() : val(0, 0, 0, 0), decimals(2) {}
1027 typedef QMap<const QtProperty *, Data> PropertyValueMap;
1028 PropertyValueMap m_values;
1032 QMap<const QtProperty *, QtProperty *> m_propertyToX;
1033 QMap<const QtProperty *, QtProperty *> m_propertyToY;
1034 QMap<const QtProperty *, QtProperty *> m_propertyToW;
1035 QMap<const QtProperty *, QtProperty *> m_propertyToH;
1037 QMap<const QtProperty *, QtProperty *> m_xToProperty;
1038 QMap<const QtProperty *, QtProperty *> m_yToProperty;
1039 QMap<const QtProperty *, QtProperty *> m_wToProperty;
1040 QMap<const QtProperty *, QtProperty *> m_hToProperty;
1055 QStringList enumNames(
const QtProperty *property)
const;
1056 QMap<int, QIcon> enumIcons(
const QtProperty *property)
const;
1059 void setValue(
QtProperty *property,
int val);
1060 void setEnumNames(
QtProperty *property,
const QStringList &names);
1061 void setEnumIcons(
QtProperty *property,
const QMap<int, QIcon> &icons);
1063 void valueChanged(
QtProperty *property,
int val);
1064 void enumNamesChanged(
QtProperty *property,
const QStringList &names);
1065 void enumIconsChanged(
QtProperty *property,
const QMap<int, QIcon> &icons);
1088 QStringList enumNames;
1089 QMap<int, QIcon> enumIcons;
1092 typedef QMap<const QtProperty *, Data> PropertyValueMap;
1093 PropertyValueMap m_values;
1110 QStringList flagNames(
const QtProperty *property)
const;
1113 void setValue(
QtProperty *property,
int val);
1114 void setFlagNames(
QtProperty *property,
const QStringList &names);
1116 void valueChanged(
QtProperty *property,
int val);
1117 void flagNamesChanged(
QtProperty *property,
const QStringList &names);
1126 Q_PRIVATE_SLOT(d_func(),
void slotBoolChanged(
QtProperty *,
bool))
1127 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
1136 : q_ptr(
NULL), m_boolPropertyManager(
NULL) {}
1137 void slotBoolChanged(
QtProperty *property,
bool value);
1138 void slotPropertyDestroyed(
QtProperty *property);
1144 QStringList flagNames;
1147 typedef QMap<const QtProperty *, Data> PropertyValueMap;
1148 PropertyValueMap m_values;
1152 QMap<const QtProperty *, QList<QtProperty *> > m_propertyToFlags;
1154 QMap<const QtProperty *, QtProperty *> m_flagToProperty;
1171 QSizePolicy value(
const QtProperty *property)
const;
1174 void setValue(
QtProperty *property,
const QSizePolicy &val);
1176 void valueChanged(
QtProperty *property,
const QSizePolicy &val);
1185 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
1186 Q_PRIVATE_SLOT(d_func(),
void slotEnumChanged(
QtProperty *,
int))
1187 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
1198 void slotIntChanged(
QtProperty *property,
int value);
1199 void slotEnumChanged(
QtProperty *property,
int value);
1200 void slotPropertyDestroyed(
QtProperty *property);
1202 typedef QMap<const QtProperty *, QSizePolicy> PropertyValueMap;
1203 PropertyValueMap m_values;
1208 QMap<const QtProperty *, QtProperty *> m_propertyToHPolicy;
1209 QMap<const QtProperty *, QtProperty *> m_propertyToVPolicy;
1210 QMap<const QtProperty *, QtProperty *> m_propertyToHStretch;
1211 QMap<const QtProperty *, QtProperty *> m_propertyToVStretch;
1213 QMap<const QtProperty *, QtProperty *> m_hPolicyToProperty;
1214 QMap<const QtProperty *, QtProperty *> m_vPolicyToProperty;
1215 QMap<const QtProperty *, QtProperty *> m_hStretchToProperty;
1216 QMap<const QtProperty *, QtProperty *> m_vStretchToProperty;
1234 QFont value(
const QtProperty *property)
const;
1237 void setValue(
QtProperty *property,
const QFont &val);
1239 void valueChanged(
QtProperty *property,
const QFont &val);
1249 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
1250 Q_PRIVATE_SLOT(d_func(),
void slotEnumChanged(
QtProperty *,
int))
1251 Q_PRIVATE_SLOT(d_func(),
void slotBoolChanged(
QtProperty *,
bool))
1252 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
1253 Q_PRIVATE_SLOT(d_func(),
void slotFontDatabaseChanged())
1254 Q_PRIVATE_SLOT(d_func(),
void slotFontDatabaseDelayedChange())
1265 void slotIntChanged(
QtProperty *property,
int value);
1266 void slotEnumChanged(
QtProperty *property,
int value);
1267 void slotBoolChanged(
QtProperty *property,
bool value);
1268 void slotPropertyDestroyed(
QtProperty *property);
1269 void slotFontDatabaseChanged();
1270 void slotFontDatabaseDelayedChange();
1272 QStringList m_familyNames;
1274 typedef QMap<const QtProperty *, QFont> PropertyValueMap;
1275 PropertyValueMap m_values;
1281 QMap<const QtProperty *, QtProperty *> m_propertyToFamily;
1282 QMap<const QtProperty *, QtProperty *> m_propertyToPointSize;
1283 QMap<const QtProperty *, QtProperty *> m_propertyToBold;
1284 QMap<const QtProperty *, QtProperty *> m_propertyToItalic;
1285 QMap<const QtProperty *, QtProperty *> m_propertyToUnderline;
1286 QMap<const QtProperty *, QtProperty *> m_propertyToStrikeOut;
1287 QMap<const QtProperty *, QtProperty *> m_propertyToKerning;
1289 QMap<const QtProperty *, QtProperty *> m_familyToProperty;
1290 QMap<const QtProperty *, QtProperty *> m_pointSizeToProperty;
1291 QMap<const QtProperty *, QtProperty *> m_boldToProperty;
1292 QMap<const QtProperty *, QtProperty *> m_italicToProperty;
1293 QMap<const QtProperty *, QtProperty *> m_underlineToProperty;
1294 QMap<const QtProperty *, QtProperty *> m_strikeOutToProperty;
1295 QMap<const QtProperty *, QtProperty *> m_kerningToProperty;
1297 bool m_settingValue;
1298 QTimer *m_fontDatabaseChangeTimer;
1314 QColor value(
const QtProperty *property)
const;
1317 void setValue(
QtProperty *property,
const QColor &val);
1319 void valueChanged(
QtProperty *property,
const QColor &val);
1329 Q_PRIVATE_SLOT(d_func(),
void slotIntChanged(
QtProperty *,
int))
1330 Q_PRIVATE_SLOT(d_func(),
void slotPropertyDestroyed(
QtProperty *))
1339 : q_ptr(
NULL), m_intPropertyManager(
NULL) {}
1340 void slotIntChanged(
QtProperty *property,
int value);
1341 void slotPropertyDestroyed(
QtProperty *property);
1343 typedef QMap<const QtProperty *, QColor> PropertyValueMap;
1344 PropertyValueMap m_values;
1348 QMap<const QtProperty *, QtProperty *> m_propertyToR;
1349 QMap<const QtProperty *, QtProperty *> m_propertyToG;
1350 QMap<const QtProperty *, QtProperty *> m_propertyToB;
1351 QMap<const QtProperty *, QtProperty *> m_propertyToA;
1353 QMap<const QtProperty *, QtProperty *> m_rToProperty;
1354 QMap<const QtProperty *, QtProperty *> m_gToProperty;
1355 QMap<const QtProperty *, QtProperty *> m_bToProperty;
1356 QMap<const QtProperty *, QtProperty *> m_aToProperty;
1370 #ifndef QT_NO_CURSOR
1371 QCursor value(
const QtProperty *property)
const;
1375 void setValue(
QtProperty *property,
const QCursor &val);
1377 void valueChanged(
QtProperty *property,
const QCursor &val);
1395 typedef QMap<const QtProperty *, QCursor> PropertyValueMap;
1396 PropertyValueMap m_values;
1407 {
return m_countryEnumNames.value(language); }
1413 QLocale::Language *language, QLocale::Country *country)
const;
1414 void localeToIndex(QLocale::Language language, QLocale::Country country,
1415 int *languageIndex,
int *countryIndex)
const;
1420 QStringList m_policyEnumNames;
1421 QStringList m_languageEnumNames;
1422 QMap<QLocale::Language, QStringList> m_countryEnumNames;
1423 QMap<int, QLocale::Language> m_indexToLanguage;
1424 QMap<QLocale::Language, int> m_languageToIndex;
1425 QMap<int, QMap<int, QLocale::Country> > m_indexToCountry;
1426 QMap<QLocale::Language, QMap<QLocale::Country, int> > m_countryToIndex;
1427 QMetaEnum m_policyEnum;
1436 QSizePolicy::Policy
policy()
const {
return QSizePolicy::Ignored; }
1442 #if QT_VERSION >= 0x040400
Definition: qtpropertymanager.h:438
Definition: qtpropertymanager.h:169
Definition: qtpropertymanager.h:236
static void setSizeMinimumData(PrivateData *data, const Value &newMinVal)
Definition: qtpropertymanager.h:89
Definition: qtpropertymanager.h:903
Definition: qtpropertymanager.h:679
Definition: qtpropertymanager.h:654
Definition: qtpropertymanager.h:1099
static void setSimpleMinimumData(PrivateData *data, const Value &minVal)
Definition: qtpropertymanager.h:68
Definition: qtpropertymanager.h:1333
Definition: qtpropertymanager.h:570
Definition: qtpropertybrowser.h:141
Definition: qtpropertymanager.h:386
Definition: qtpropertymanager.h:493
Definition: qtpropertymanager.h:626
Definition: qtpropertymanager.h:777
virtual QString valueText(const QtProperty *property) const
Definition: qtpropertymanager.h:516
Definition: qtpropertymanager.h:934
Definition: qtpropertymanager.h:709
Definition: qtpropertymanager.h:300
Definition: qtpropertymanager.h:532
virtual EchoMode echoMode(const QtProperty *) const
Definition: qtpropertymanager.h:1222
static void setSizeMaximumData(PrivateData *data, const Value &newMaxVal)
Definition: qtpropertymanager.h:104
Definition: qtpropertymanager.h:137
Definition: qtpropertymanager.h:1362
virtual QString displayText(const QtProperty *property) const
Definition: qtpropertymanager.h:415
Definition: qtpropertymanager.h:1389
virtual QIcon valueIcon(const QtProperty *property) const
Definition: qtpropertymanager.h:1160
Definition: qtpropertymanager.h:741
Definition: qtpropertymanager.h:1007
static void setSimpleMaximumData(PrivateData *data, const Value &maxVal)
Definition: qtpropertymanager.h:79
Definition: qtpropertymanager.h:119
Definition: qtpropertymanager.h:355
Definition: qtpropertymanager.h:1304
Definition: qtpropertymanager.h:331
Definition: qtpropertymanager.h:820
Definition: qtpropertymanager.h:198
Definition: qtpropertymanager.h:271
virtual void uninitializeProperty(QtProperty *property)
Definition: qtpropertymanager.h:555
virtual void initializeProperty(QtProperty *property)=0
Definition: qtpropertymanager.h:1257
#define NULL
Definition: CommonTypes.hh:31
Definition: qtpropertymanager.h:223
#define QT_QTPROPERTYBROWSER_EXPORT
Definition: qtpropertybrowser.h:68
virtual bool hasValue(const QtProperty *property) const
Definition: qtpropertymanager.h:1130
Definition: qtpropertymanager.h:859
Definition: qtpropertymanager.h:454
Definition: qtpropertybrowser.h:77
Definition: qtpropertymanager.h:477
QLineEdit::EchoMode EchoMode
Definition: qtpropertybrowser.h:71
Definition: qtpropertymanager.h:1046
Definition: qtpropertymanager.h:1077
Definition: qtpropertymanager.h:1190
Definition: qtpropertymanager.h:973
Definition: qtpropertymanager.h:598