Kexi API Documentation (2.0 alpha)

KexiReportFactory Class Reference

#include <kexireportfactory.h>

Inheritance diagram for KexiReportFactory:

KFormDesigner::WidgetFactory List of all members.

Detailed Description

Kexi Factory (DB widgets + subform).

Definition at line 26 of file kexireportfactory.h.

Public Slots

void editText ()

Public Member Functions

 KexiReportFactory (QObject *parent, const char *name, const QStringList &args)
virtual ~KexiReportFactory ()
virtual QString name ()
virtual QWidgetcreateWidget (const QCString &classname, QWidget *parent, const char *name, KFormDesigner::Container *container, int options=DefaultOptions)
 Creates a widget (and if needed a KFormDesigner::Container).
virtual bool createMenuActions (const QCString &classname, QWidget *w, QPopupMenu *menu, KFormDesigner::Container *container)
virtual bool startEditing (const QCString &classname, QWidget *w, KFormDesigner::Container *container)
virtual bool previewWidget (const QCString &, QWidget *, KFormDesigner::Container *)
virtual QValueList< QCString > autoSaveProperties (const QCString &classname)

Protected Member Functions

virtual bool isPropertyVisibleInternal (const QCString &, QWidget *, const QCString &, bool isTopLevel)


Constructor & Destructor Documentation

KexiReportFactory::KexiReportFactory QObject *  parent,
const char *  name,
const QStringList &  args
 

Definition at line 36 of file kexireportfactory.cpp.

References KFormDesigner::WidgetFactory::addClass(), KFormDesigner::WidgetInfo::setClassName(), KFormDesigner::WidgetInfo::setDescription(), KFormDesigner::WidgetInfo::setName(), KFormDesigner::WidgetInfo::setNamePrefix(), and KFormDesigner::WidgetInfo::setPixmap().

KexiReportFactory::~KexiReportFactory  )  [virtual]
 

Definition at line 85 of file kexireportfactory.cpp.


Member Function Documentation

QValueList< QCString > KexiReportFactory::autoSaveProperties const QCString &  classname  )  [virtual]
 

You need to return here a list of the properties that should automatically be saved for a widget belonging to classname, and your custom properties (eg "text" for label or button, "contents" for combobox...).

Implements KFormDesigner::WidgetFactory.

Definition at line 164 of file kexireportfactory.cpp.

bool KexiReportFactory::createMenuActions const QCString &  classname,
QWidget w,
QPopupMenu *  menu,
KFormDesigner::Container container
[virtual]
 

Todo:
use KAction

Implements KFormDesigner::WidgetFactory.

Definition at line 117 of file kexireportfactory.cpp.

References editText().

QWidget * KexiReportFactory::createWidget const QCString &  classname,
QWidget parent,
const char *  name,
KFormDesigner::Container container,
int  options = DefaultOptions
[virtual]
 

Creates a widget (and if needed a KFormDesigner::Container).

Returns:
the created widget
Parameters:
classname the classname of the widget, which should get created
parent the parent for the created widget
name the name of the created widget
container the toplevel Container (if a container should get created)
options options for the created widget: orientation and view mode (see CreateWidgetOptions)

Implements KFormDesigner::WidgetFactory.

Definition at line 96 of file kexireportfactory.cpp.

References KFormDesigner::Container::form(), and kexipluginsdbg.

void KexiReportFactory::editText  )  [slot]
 

Definition at line 201 of file kexireportfactory.cpp.

References KFormDesigner::WidgetFactory::changeProperty(), KFormDesigner::WidgetFactory::editRichText(), and KFormDesigner::Container::form().

Referenced by createMenuActions(), and startEditing().

bool KexiReportFactory::isPropertyVisibleInternal const QCString &  ,
QWidget ,
const QCString &  ,
bool  isTopLevel
[protected, virtual]
 

This function is called when we want to know whether the property should be visible. Implement it in the factory; don't forget to call implementation in the superclass. Default implementation hides "caption", "icon", "sizeIncrement" and "iconText" properties.

Reimplemented from KFormDesigner::WidgetFactory.

Definition at line 149 of file kexireportfactory.cpp.

QString KexiReportFactory::name  )  [virtual]
 

Definition at line 90 of file kexireportfactory.cpp.

bool KexiReportFactory::previewWidget const QCString &  ,
QWidget ,
KFormDesigner::Container
[virtual]
 

Definition at line 219 of file kexireportfactory.cpp.

bool KexiReportFactory::startEditing const QCString &  classname,
QWidget w,
KFormDesigner::Container container
[virtual]
 

Definition at line 131 of file kexireportfactory.cpp.

References KFormDesigner::WidgetFactory::createEditor(), and editText().


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:21 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003