Plasma Engine  2.0
Loading...
Searching...
No Matches
plTypeWidgetAttribute 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 plTypeWidgetAttribute:

Additional Inherited Members

- Public Member Functions inherited from plReflectedClass
virtual const plRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const plRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
PL_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 plNoBase
static const plRTTIGetStaticRTTI ()
 

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 plRttiMappedObjectFactory<plQtPropertyWidget>. E.g. plRttiMappedObjectFactory<plQtPropertyWidget>::RegisterCreator(plGetStaticRTTI<plFileBrowserAttribute>(), FileBrowserCreator); will replace the property widget for all properties that use plFileBrowserAttribute.


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