![]() |
XII Release 0.1.0
|
Derive from this class if you want to define an attribute that replaces the property type widget. More...
#include <PropertyAttributes.h>
Additional Inherited Members | |
![]() | |
virtual const xiiRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const xiiRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T> | |
XII_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
![]() | |
static const xiiRTTI * | GetStaticRTTI () |
Derive from this class if you want to define an attribute that replaces the property type widget.
Using this attribute affects both member properties as well as elements in a container but not the container widget. When creating a property widget, the property grid will look for an attribute of this type and use its type to look for a factory creator in xiiRttiMappedObjectFactory<xiiQtPropertyWidget>. E.g. xiiRttiMappedObjectFactory<xiiQtPropertyWidget>::RegisterCreator(xiiGetStaticRTTI<xiiFileBrowserAttribute>(), FileBrowserCreator); will replace the property widget for all properties that use xiiFileBrowserAttribute.