kexi

KexiMacroPropertyFactory Class Reference

#include <keximacroproperty.h>

Inherits KoProperty::CustomPropertyFactory.

Public Member Functions

 KexiMacroPropertyFactory (TQObject *parent)
 
virtual ~KexiMacroPropertyFactory ()
 
virtual KoProperty::CustomProperty * createCustomProperty (KoProperty::Property *parent)
 
virtual KoProperty::Widget * createCustomWidget (KoProperty::Property *property)
 

Static Public Member Functions

static void initFactory ()
 

Detailed Description

Implementation of a KoProperty::CustomPropertyFactory to handle creation of KexiMacroProperty and KexiMacroPropertyWidget instances for our macro-properties.

Definition at line 110 of file keximacroproperty.h.

Constructor & Destructor Documentation

◆ KexiMacroPropertyFactory()

KexiMacroPropertyFactory::KexiMacroPropertyFactory ( TQObject *  parent)
explicit

Constructor.

Definition at line 167 of file keximacroproperty.cpp.

◆ ~KexiMacroPropertyFactory()

KexiMacroPropertyFactory::~KexiMacroPropertyFactory ( )
virtual

Destructor.

Definition at line 172 of file keximacroproperty.cpp.

Member Function Documentation

◆ createCustomProperty()

KoProperty::CustomProperty * KexiMacroPropertyFactory::createCustomProperty ( KoProperty::Property *  parent)
virtual
Returns
a new instance of custom property for parent. Implement this for property types you want to support. Use parent->type() to get type of the property.

Definition at line 176 of file keximacroproperty.cpp.

◆ createCustomWidget()

KoProperty::Widget * KexiMacroPropertyFactory::createCustomWidget ( KoProperty::Property *  property)
virtual
Returns
a new instance of custom property for property. Implement this for property editor types you want to support. Use parent->type() to get type of the property.

Definition at line 201 of file keximacroproperty.cpp.

◆ initFactory()

void KexiMacroPropertyFactory::initFactory ( )
static

Initializes this factory.

The factory may register itself at the KoProperty::FactoryManager if not alreadydone before. This function should be called from within the KexiMacroDesignView before the functionality provided with KexiMacroProperty and KexiMacroPropertyWidget got used.

Definition at line 207 of file keximacroproperty.cpp.


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