29 #ifndef GAMMARAY_PROPERTYCONTROLLER_H
30 #define GAMMARAY_PROPERTYCONTROLLER_H
32 #include "gammaray_core_export.h"
33 #include "propertycontrollerextension.h"
35 #include <common/propertycontrollerinterface.h>
40 class QAbstractItemModel;
53 const QString &objectBaseName();
55 void setObject(QObject *
object);
56 void setObject(
void *
object,
const QString &className);
57 void setMetaObject(
const QMetaObject *metaObject);
59 void registerModel(QAbstractItemModel *model,
const QString &nameSuffix);
62 static void registerExtension()
64 PropertyControllerExtensionFactoryBase *factory = PropertyControllerExtensionFactory<T>::instance();
65 if (s_extensionFactories.indexOf(factory) >= 0)
67 s_extensionFactories << factory;
69 instance->loadExtension(factory);
73 void objectDestroyed();
76 void loadExtension(PropertyControllerExtensionFactoryBase *factory);
79 QString m_objectBaseName;
81 QPointer<QObject> m_object;
82 QVector<PropertyControllerExtension*> m_extensions;
84 static QVector<PropertyControllerExtensionFactoryBase*> s_extensionFactories;
85 static QVector<PropertyController*> s_instances;
90 #endif // GAMMARAY_PROPERTYCONTROLLER_H
Non-UI part of the property widget.
Definition: propertycontroller.h:45
Client/Server interface of the property editor.
Definition: propertycontrollerinterface.h:40
Definition: endpoint.h:42