kexi

KexiDBFactory Class Reference

#include <kexidbfactory.h>

Inheritance diagram for KexiDBFactory:

KFormDesigner::WidgetFactory List of all members.

Detailed Description

Kexi Factory (DB widgets + subform).

Definition at line 34 of file kexidbfactory.h.


Public Member Functions

 KexiDBFactory (QObject *parent, const char *name, const QStringList &args)
virtual ~KexiDBFactory ()
virtual QWidget * createWidget (const QCString &classname, QWidget *parent, const char *name, KFormDesigner::Container *container, int options=DefaultOptions)
virtual void createCustomActions (KActionCollection *col)
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 bool clearWidgetContent (const QCString &classname, QWidget *w)
virtual QValueList< QCString > autoSaveProperties (const QCString &classname)

Protected Slots

void slotImageBoxIdChanged (long id)

Protected Member Functions

virtual bool changeText (const QString &newText)
virtual void resizeEditor (QWidget *editor, QWidget *widget, const QCString &classname)
virtual bool isPropertyVisibleInternal (const QCString &, QWidget *, const QCString &, bool isTopLevel)

Protected Attributes

KAction * m_assignAction

Member Function Documentation

QValueList< QCString > KexiDBFactory::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 526 of file kexidbfactory.cpp.

bool KexiDBFactory::changeText const QString &  text  )  [protected, virtual]
 

Todo:
check field's geometry

Reimplemented from KFormDesigner::WidgetFactory.

Definition at line 600 of file kexidbfactory.cpp.

bool KexiDBFactory::clearWidgetContent const QCString &  classname,
QWidget *  w
[virtual]
 

Todo:
this code should not be copied here but just inherited StdWidgetFactory::clearWidgetContent() should be called

Reimplemented from KFormDesigner::WidgetFactory.

Definition at line 515 of file kexidbfactory.cpp.

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

Todo:
also call createMenuActions() for inherited factory!
Todo:
make these actions undoable/redoable

Implements KFormDesigner::WidgetFactory.

Definition at line 375 of file kexidbfactory.cpp.

QWidget * KexiDBFactory::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 316 of file kexidbfactory.cpp.

bool KexiDBFactory::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 509 of file kexidbfactory.cpp.

void KexiDBFactory::resizeEditor QWidget *  editor,
QWidget *  widget,
const QCString &  classname
[protected, virtual]
 

This function is called when the widget is resized, and the editor size needs to be updated.

Reimplemented from KFormDesigner::WidgetFactory.

Definition at line 618 of file kexidbfactory.cpp.

void KexiDBFactory::slotImageBoxIdChanged long  id  )  [protected, slot]
 

Todo:
unsafe

Definition at line 628 of file kexidbfactory.cpp.

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

Todo:
this code should not be copied here but just inherited StdWidgetFactory::clearWidgetContent() should be called
Todo:
this code should not be copied here but just inherited StdWidgetFactory::clearWidgetContent() should be called

Implements KFormDesigner::WidgetFactory.

Definition at line 416 of file kexidbfactory.cpp.


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