26#ifndef INTERFACEPROPERTY_H
27#define INTERFACEPROPERTY_H
This class describes what are the methods to implement in order to manage dynamic properties.
Definition InterfaceProperty.h:43
virtual unsigned int getNumberOfPropertyWidget()=0
get the number of alternative property widgets
virtual QWidget * getPropertyWidgetAt(unsigned int i)=0
get the ith alternative property widget override this method and use the method setObjectName of QWid...
virtual bool addProperty(Property *)=0
Add a new CamiTK property to the component.
virtual QStringList getHierarchy() const =0
Get the inheritance hierachy of this Component instance as a list of QString.
virtual QVariant getPropertyValue(const QString &name) const =0
get the property QVariant (same as property(const char*)) but check if it exists first.
~InterfaceProperty()=default
empty virtual destructor, to avoid memory leak
virtual const QObject * getPropertyObject() const =0
virtual QObject * getPropertyObject()=0
get the property object that could be understood by PropertyEditor.
virtual bool setPropertyValue(const QString &name, QVariant newValue)=0
set the property QVariant value (same as setProperty(const char*, newValue)) but check if it exists f...
virtual void propertyValueChanged(QString name)=0
This method is called when a dynamic property value has been modified.
virtual bool isInstanceOf(QString className) const =0
Assert that a Component instance really inherits from a given className.
virtual unsigned int getIndexOfPropertyExplorerTab()=0
Get the index of the tab in the PropertyExplorer to select for display.
virtual Q_INVOKABLE camitk::Property * getProperty(QString name)=0
Get a Property given its name.
virtual void setIndexOfPropertyExplorerTab(unsigned int index)=0
Set the index of the tab in the PropertyExplorer to select for display.
This class describes a property that can be used in components and actions or any class that needs to...
Definition Property.h:306