Go to the documentation of this file.00001
00004 #ifndef BPSPROPERTYMANAGER_H
00005 #define BPSPROPERTYMANAGER_H
00006
00007 #include "bpsgui_global.h"
00008 #include <QtVariantProperty>
00009
00041 class BPSGUI_EXPORT BpsPropertyManager : public QtVariantPropertyManager
00042 {
00043 Q_OBJECT
00044 BPS_PRIVATE(BpsPropertyManager)
00045
00046 public:
00047
00052 BpsPropertyManager(QObject* aParent);
00053
00059 virtual bool isPropertyTypeSupported(int aPropertyType) const;
00060
00066 virtual QVariant value(const QtProperty* aProperty) const;
00067
00073 virtual int valueType(int aPropertyType) const;
00074
00078 static int marginsTypeId();
00079
00080 public slots:
00081
00090 virtual void setValue(QtProperty* aProperty, const QVariant& aValue);
00091
00098 virtual void setAttribute(QtProperty* aProperty, const QString& aName, const QVariant& aValue);
00099
00100 protected:
00101
00107 virtual QString valueText(const QtProperty* aProperty) const;
00108
00114 virtual QIcon valueIcon(const QtProperty* aProperty) const;
00115
00123 virtual void initializeProperty(QtProperty* aProperty);
00124
00131 virtual void uninitializeProperty(QtProperty* aProperty);
00132 };
00133
00134 #endif // BPSPROPERTYMANAGER_H