24 #ifndef PROPERTYCONTROLLEREXTENSION_H
25 #define PROPERTYCONTROLLEREXTENSION_H
27 #include "gammaray_core_export.h"
36 class PropertyController;
61 virtual bool setObject(
void *
object,
const QString &typeName);
67 virtual bool setQObject(QObject *
object);
73 virtual bool setMetaObject(
const QMetaObject *metaObject);
83 class PropertyControllerExtensionFactoryBase {
85 explicit PropertyControllerExtensionFactoryBase() {}
86 virtual PropertyControllerExtension *create(PropertyController *controller) = 0;
90 class PropertyControllerExtensionFactory :
public PropertyControllerExtensionFactoryBase
93 explicit PropertyControllerExtensionFactory() {}
94 PropertyControllerExtension *create(PropertyController *controller)
96 return new T(controller);
103 #endif // PROPERTYCONTROLLEREXTENSION_H