Kexi API Documentation (2.0 alpha)

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 = 0L

Classes

class  TempData


Constructor & Destructor Documentation

KexiFormPart::KexiFormPart QObject *  parent,
const char *  name,
const QStringList & 
 

Definition at line 79 of file kexiformpart.cpp.

References KFormDesigner::FormManager::createWidgetLibrary(), Kexi::DataViewMode, Kexi::DesignViewMode, KexiPart::FormObjectType, kexipluginsdbg, KexiPart::Part::m_names, KexiPart::Part::m_newObjectsAreDirty, KexiPart::Part::m_registeredPartID, KexiPart::Part::m_supportedViewModes, KFormDesigner::FormManager::self(), KFormDesigner::WidgetLibrary::setAdvancedPropertiesVisible(), slotAutoTabStopsSet(), slotPropertyChanged(), and static_formsLibrary.

KexiFormPart::~KexiFormPart  )  [virtual]
 

Definition at line 116 of file kexiformpart.cpp.


Member Function Documentation

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 228 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 233 of file kexiformpart.cpp.

References kexipluginsdbg, KexiDialogBase::mainWin(), KexiPart::Item::name(), and KexiMainWindow::project().

KexiDataSourcePage * KexiFormPart::dataSourcePage  )  const
 

Definition at line 477 of file kexiformpart.cpp.

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

line edit!

Definition at line 250 of file kexiformpart.cpp.

References KexiDB::FieldList::field(), and KexiDB::FieldList::fieldCount().

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 441 of file kexiformpart.cpp.

void KexiFormPart::initInstanceActions  )  [protected, virtual]
 

Reimplemented from KexiPart::Part.

Definition at line 156 of file kexiformpart.cpp.

References KexiPart::Part::actionCollectionForMode(), KexiPart::Part::createSharedAction(), Kexi::DesignViewMode, library(), KFormDesigner::FormManager::self(), and slotAssignAction().

void KexiFormPart::initPartActions  )  [protected, virtual]
 

Reimplemented from KexiPart::Part.

Definition at line 150 of file kexiformpart.cpp.

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

Returns:
a pointer to Forms Widget Library.

Definition at line 121 of file kexiformpart.cpp.

References static_formsLibrary.

Referenced by KexiDBWidgetContextMenuExtender::createTitle(), KexiFormView::initForm(), initInstanceActions(), KexiDBSubForm::setFormName(), and KexiDBImageBox::updateActionStrings().

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 482 of file kexiformpart.cpp.

References KexiMainWindow::project(), and KFormDesigner::FormManager::self().

void KexiFormPart::slotAssignAction  )  [protected, slot]
 

Definition at line 403 of file kexiformpart.cpp.

References KexiActionSelectionDialog::currentAction(), KexiDBForm::dataAwareObject(), KexiFormEventAction::ActionData::option, KexiViewBase::parentDialog(), KFormDesigner::WidgetPropertySet::property(), KFormDesigner::FormManager::self(), and KexiFormEventAction::ActionData::string.

Referenced by initInstanceActions().

void KexiFormPart::slotAutoTabStopsSet KFormDesigner::Form form,
bool  set
[protected, slot]
 

Definition at line 394 of file kexiformpart.cpp.

References KFormDesigner::FormManager::self().

Referenced by KexiFormPart().

void KexiFormPart::slotPropertyChanged QWidget widget,
const QCString &  name,
const QVariant &  value
[protected, slot]
 

Definition at line 453 of file kexiformpart.cpp.

References KFormDesigner::FormManager::self().

Referenced by KexiFormPart().


Member Data Documentation

KFormDesigner::WidgetLibrary * KexiFormPart::static_formsLibrary = 0L [static, protected]
 

Todo:
#define KEXI_SHOW_SPLITTER_WIDGET

Definition at line 59 of file kexiformpart.cpp.

Referenced by KexiFormPart(), and library().


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