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;
44 class ConnectionFilterProxyModel;
55 const QString &objectBaseName();
57 void setObject(QObject *
object);
58 void setObject(
void *
object,
const QString &className);
59 void setMetaObject(
const QMetaObject *metaObject);
61 void registerModel(QAbstractItemModel *model,
const QString &nameSuffix);
64 static void registerExtension()
66 PropertyControllerExtensionFactoryBase *factory = PropertyControllerExtensionFactory<T>::instance();
67 if (s_extensionFactories.indexOf(factory) >= 0)
69 s_extensionFactories << factory;
71 instance->loadExtension(factory);
75 void objectDestroyed();
78 void loadExtension(PropertyControllerExtensionFactoryBase *factory);
81 QString m_objectBaseName;
83 QPointer<QObject> m_object;
84 QVector<PropertyControllerExtension*> m_extensions;
86 static QVector<PropertyControllerExtensionFactoryBase*> s_extensionFactories;
87 static QVector<PropertyController*> s_instances;
92 #endif // GAMMARAY_PROPERTYCONTROLLER_H
Non-UI part of the property widget.
Definition: propertycontroller.h:47
Client/Server interface of the property editor.
Definition: propertycontrollerinterface.h:40
Definition: endpoint.h:41