kexi

KexiFormPart Class Reference

#include <kexiformpart.h>

Inheritance diagram for KexiFormPart:

KexiPart::Part List of all members.

Detailed Description

Kexi Form Plugin.

It just creates a KexiFormView. See there for most of code.

Definition at line 48 of file kexiformpart.h.


Public Member Functions

 KexiFormPart (QObject *parent, const char *name, const QStringList &)
virtual ~KexiFormPart ()
KexiDataSourcePagedataSourcePage () const
void generateForm (KexiDB::FieldList *list, QDomDocument &domDoc)
virtual QString i18nMessage (const QCString &englishMessage, KexiDialogBase *dlg) const

Static Public Member Functions

static KFormDesigner::WidgetLibrarylibrary ()

Protected Slots

void slotAutoTabStopsSet (KFormDesigner::Form *form, bool set)
void slotAssignAction ()
void slotPropertyChanged (QWidget *widget, const QCString &name, const QVariant &value)

Protected Member Functions

virtual KexiDialogTempDatacreateTempData (KexiDialogBase *dialog)
virtual KexiViewBasecreateView (QWidget *parent, KexiDialogBase *dialog, KexiPart::Item &item, int viewMode=Kexi::DataViewMode, QMap< QString, QString > *staticObjectArgs=0)
virtual void initPartActions ()
virtual void initInstanceActions ()
virtual void setupCustomPropertyPanelTabs (KTabWidget *tab, KexiMainWindow *mainWin)

Static Protected Attributes

static KFormDesigner::WidgetLibrarystatic_formsLibrary

Classes

class  TempData

Member Function Documentation

KFormDesigner::WidgetLibrary * KexiFormPart::library (  )  [static]

Returns:
a pointer to Forms Widget Library.

Definition at line 119 of file kexiformpart.cpp.

void KexiFormPart::generateForm ( KexiDB::FieldList list,
QDomDocument &  domDoc 
)

Definition at line 244 of file kexiformpart.cpp.

QString KexiFormPart::i18nMessage ( const QCString &  englishMessage,
KexiDialogBase dlg 
) const [virtual]

Returns:
i18n'd message translated from englishMessage. This method is useful for messages like: "<p>Table \"1\" has been modified.</p>", -- such messages can be accurately translated, while this could not: "<p>%1 \"2\" has been modified.</p>". See implementation of this method in KexiTablePart to see what strings are needed for translation.
Default implementation returns generic englishMessage. In special cases, englishMessage can start with ":", to indicate that empty string will be generated if a part does not offer a message for such englishMessage. This is used e.g. in KexiMainWindowImpl::closeDialog().

Reimplemented from KexiPart::Part.

Definition at line 428 of file kexiformpart.cpp.

KexiDialogTempData * KexiFormPart::createTempData ( KexiDialogBase dialog  )  [protected, virtual]

Creates and returns a new temporary data for a dialog dialog. This method is called on openInstance() once per dialog. Reimplement this to return KexiDialogTempData subclass instance. Default implemention just returns empty KexiDialogTempData object.

Reimplemented from KexiPart::Part.

Definition at line 222 of file kexiformpart.cpp.

KexiViewBase * KexiFormPart::createView ( QWidget *  parent,
KexiDialogBase dialog,
KexiPart::Item item,
int  viewMode = Kexi::DataViewMode,
QMap< QString, QString > *  staticObjectArgs = 0 
) [protected, virtual]

Creates a new view for mode viewMode, item and parent. The view will be used inside dialog.

Implements KexiPart::Part.

Definition at line 227 of file kexiformpart.cpp.

void KexiFormPart::setupCustomPropertyPanelTabs ( KTabWidget *  tab,
KexiMainWindow mainWin 
) [protected, virtual]

This method can be reimplemented to setup additional tabs in the property editor panel. Default implementation does nothing. This method is called whenever current dialog (KexiDialogBase) is switched and type (mime type) of its contents differs from previous one. For example, if a user switched from Table Designer to Form Designer, additional tab containing Form Designer's object tree should be shown.

Reimplemented from KexiPart::Part.

Definition at line 469 of file kexiformpart.cpp.


Member Data Documentation

Todo:
define KEXI_SHOW_SPLITTER_WIDGET

Definition at line 88 of file kexiformpart.h.


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