kexi

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 QWidget * createWidget (const QCString &classname, QWidget *parent, const char *name, KFormDesigner::Container *container, int options=DefaultOptions)
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)

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]

This function can be used to add custom items in widget w context menu menu.

Implements KFormDesigner::WidgetFactory.

Definition at line 117 of file kexireportfactory.cpp.

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.

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

This function is called just before the Form is previewed. It allows widgets to make changes before switching (ie for a Spring, hiding the cross)

Implements KFormDesigner::WidgetFactory.

Definition at line 219 of file kexireportfactory.cpp.

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

Creates (if necessary) an editor to edit the contents of the widget directly in the Form (eg creates a line edit to change the text of a label). classname is the class the widget belongs to, w is the widget to edit and container is the parent container of this widget (to access Form etc.).

Implements KFormDesigner::WidgetFactory.

Definition at line 131 of file kexireportfactory.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys