BPS C++ API  2.24.4
bpspropertymanager.h
Go to the documentation of this file.
1 
4 #ifndef BPSPROPERTYMANAGER_H
5 #define BPSPROPERTYMANAGER_H
6 
7 #include "bpsgui_global.h"
8 #include <QtVariantProperty>
9 
41 class BPSGUI_EXPORT BpsPropertyManager : public QtVariantPropertyManager
42 {
43  Q_OBJECT
45 
46 public:
47 
53 
59  virtual bool isPropertyTypeSupported(int aPropertyType) const;
60 
66  virtual QVariant value(const QtProperty* aProperty) const;
67 
73  virtual int valueType(int aPropertyType) const;
74 
78  static int marginsTypeId();
79 
80 public slots:
81 
90  virtual void setValue(QtProperty* aProperty, const QVariant& aValue);
91 
98  virtual void setAttribute(QtProperty* aProperty, const QString& aName, const QVariant& aValue);
99 
100 protected:
101 
107  virtual QString valueText(const QtProperty* aProperty) const;
108 
114  virtual QIcon valueIcon(const QtProperty* aProperty) const;
115 
123  virtual void initializeProperty(QtProperty* aProperty);
124 
131  virtual void uninitializeProperty(QtProperty* aProperty);
132 };
133 
134 #endif // BPSPROPERTYMANAGER_H
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
The class extends QtVariantPropertyManager by support for objects of the following types: .
Definition: bpspropertymanager.h:42
virtual QString valueText(const QtProperty *aProperty) const
Get a string representing the current state of the given property.
virtual void setValue(QtProperty *aProperty, const QVariant &aValue)
Sets the value of the given property to value.
static int marginsTypeId()
virtual QIcon valueIcon(const QtProperty *aProperty) const
Get a icon representing the current state of the given property.
virtual int valueType(int aPropertyType) const
Get the value type belonging to a given property type.
virtual QVariant value(const QtProperty *aProperty) const
Get the properties value.
BpsPropertyManager(QObject *aParent)
Creates a manager with the given parent.
virtual void initializeProperty(QtProperty *aProperty)
This function is called whenever a new valid property pointer has been created, passing the pointer a...
virtual bool isPropertyTypeSupported(int aPropertyType) const
Check if a given property type is supported by the manager.
virtual void uninitializeProperty(QtProperty *aProperty)
This function is called just before the specified property is destroyed.
virtual void setAttribute(QtProperty *aProperty, const QString &aName, const QVariant &aValue)
Sets the value of the specified attribute for the property.