kexi
KexiFormPart Class Reference
#include <kexiformpart.h>
Inheritance diagram for KexiFormPart:

Detailed Description
Kexi Form Plugin.It just creates a KexiFormView. See there for most of code.
Definition at line 49 of file kexiformpart.h.
Public Member Functions | |
KexiFormPart (QObject *parent, const char *name, const QStringList &) | |
virtual | ~KexiFormPart () |
KexiDataSourcePage * | dataSourcePage () const |
void | generateForm (KexiDB::FieldList *list, QDomDocument &domDoc) |
virtual QString | i18nMessage (const QCString &englishMessage, KexiDialogBase *dlg) const |
Static Public Member Functions | |
static KFormDesigner::WidgetLibrary * | library () |
Protected Slots | |
void | slotAutoTabStopsSet (KFormDesigner::Form *form, bool set) |
void | slotAssignAction () |
void | slotPropertyChanged (QWidget *widget, const QCString &name, const QVariant &value) |
void | slotWidgetCreatedByFormsLibrary (QWidget *widget) |
Protected Member Functions | |
virtual KexiDialogTempData * | createTempData (KexiDialogBase *dialog) |
virtual KexiViewBase * | createView (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::WidgetLibrary * | static_formsLibrary |
Classes | |
class | TempData |
Member Function Documentation
KFormDesigner::WidgetLibrary * KexiFormPart::library | ( | ) | [static] |
void KexiFormPart::generateForm | ( | KexiDB::FieldList * | list, | |
QDomDocument & | domDoc | |||
) |
Definition at line 253 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.
Reimplemented from KexiPart::Part.
Definition at line 444 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 231 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 236 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 485 of file kexiformpart.cpp.
Member Data Documentation
KFormDesigner::WidgetLibrary * KexiFormPart::static_formsLibrary [static, protected] |
The documentation for this class was generated from the following files: