MIRA
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
PropertyEditor::Delegate Class Referenceabstract

Provides display and editing facilities for property items in the editor. More...

#include <widgets/PropertyEditor.h>

Inheritance diagram for PropertyEditor::Delegate:
Inheritance graph
[legend]

Classes

struct  SupportedType
 

Public Types

typedef std::list< SupportedTypeSupportedTypes
 

Public Member Functions

virtual SupportedTypes supportedTypes () const =0
 
virtual std::string getText (const PropertyNode *property)
 Returns text for a text label. More...
 
virtual QIcon getIcon (const PropertyNode *property)
 
virtual QColor getBackgroundColor (const PropertyNode *property)
 
virtual QWidget * createEditor (PropertyNode *property, QWidget *parent)
 
virtual bool execDialog (PropertyNode *property, QWidget *parent)
 
virtual std::string getName (const PropertyNode *property)
 
Class const & getClass () const
 call the virtual internalGetClass(). More...
 

Static Public Member Functions

template<typename Type >
static SupportedType makeSupportedType (SupportedType::Flags flags)
 
static PseudoClass const & CLASS ()
 

Protected Member Functions

virtual Class const & internalGetClass () const =0
 

Detailed Description

Provides display and editing facilities for property items in the editor.

A PropertyEditor::Delegate is used to provide custom display features and editor widgets. Using the delegate mechanism allows the development of display and editing facilities independently from the PropertyEditor. PropertyEditor::Delegate classes can be implemented in different libraries. The PropertyEditor automatically asks the ClassFactory for loaded Delegates and instantiates them.

Member Typedef Documentation

◆ SupportedTypes

typedef std::list<SupportedType> SupportedTypes

Member Function Documentation

◆ makeSupportedType()

static SupportedType makeSupportedType ( SupportedType::Flags  flags)
inlinestatic

◆ supportedTypes()

virtual SupportedTypes supportedTypes ( ) const
pure virtual

◆ getText()

virtual std::string getText ( const PropertyNode property)
inlinevirtual

Returns text for a text label.

◆ getIcon()

virtual QIcon getIcon ( const PropertyNode property)
inlinevirtual

◆ getBackgroundColor()

virtual QColor getBackgroundColor ( const PropertyNode property)
inlinevirtual

◆ createEditor()

virtual QWidget* createEditor ( PropertyNode property,
QWidget *  parent 
)
inlinevirtual

◆ execDialog()

virtual bool execDialog ( PropertyNode property,
QWidget *  parent 
)
inlinevirtual

◆ getName()

virtual std::string getName ( const PropertyNode property)
inlinevirtual

◆ getClass()

Class const& getClass ( ) const
inlineinherited

call the virtual internalGetClass().

◆ CLASS()

static PseudoClass const& CLASS ( )
inlinestaticinherited

◆ internalGetClass()

virtual Class const& internalGetClass ( ) const
protectedpure virtualinherited

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