XII Release 0.1.0
Loading...
Searching...
No Matches
xiiTypeWidgetAttribute Class Reference

Derive from this class if you want to define an attribute that replaces the property type widget. More...

#include <PropertyAttributes.h>

Inheritance diagram for xiiTypeWidgetAttribute:
[legend]

Additional Inherited Members

- Public Member Functions inherited from xiiReflectedClass
virtual const xiiRTTIGetDynamicRTTI () 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 Public Member Functions inherited from xiiNoBase
static const xiiRTTIGetStaticRTTI ()
 

Detailed Description

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.


The documentation for this class was generated from the following file: