Kexi API Documentation (2.0 alpha)

KexiMacroPropertyFactory Class Reference

#include <keximacroproperty.h>

Inheritance diagram for KexiMacroPropertyFactory:

CustomPropertyFactory List of all members.

Detailed Description

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

Definition at line 109 of file keximacroproperty.h.

Public Member Functions

 KexiMacroPropertyFactory (QObject *parent)
 Constructor.
virtual ~KexiMacroPropertyFactory ()
 Destructor.
virtual KoProperty::CustomProperty * createCustomProperty (KoProperty::Property *parent)
virtual KoProperty::Widget * createCustomWidget (KoProperty::Property *property)

Static Public Member Functions

static void initFactory ()
 Initializes this factory.


Constructor & Destructor Documentation

KexiMacroPropertyFactory::KexiMacroPropertyFactory QObject *  parent  )  [explicit]
 

Constructor.

Definition at line 167 of file keximacroproperty.cpp.

Referenced by initFactory().

KexiMacroPropertyFactory::~KexiMacroPropertyFactory  )  [virtual]
 

Destructor.

Definition at line 172 of file keximacroproperty.cpp.


Member Function Documentation

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.

References KexiMacroProperty::macroItem(), KexiMacroProperty::name(), and KexiMacroProperty::variable().

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.

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.

References KEXIMACRO_PROPERTYEDITORTYPE, and KexiMacroPropertyFactory().

Referenced by KexiMacroDesignView::KexiMacroDesignView().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:11 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003