Kexi API Documentation (2.0 alpha)

KexiFormManager Class Reference

#include <kexiformmanager.h>

Inheritance diagram for KexiFormManager:

KFormDesigner::FormManager List of all members.

Public Slots

void setFormDataSource (const QCString &mime, const QCString &name)
 Receives signal from KexiDataSourcePage about changed form's data source.
void setDataSourceFieldOrExpression (const QString &string, const QString &caption, KexiDB::Field::Type type)
void insertAutoFields (const QString &sourceMimeType, const QString &sourceName, const QStringList &fields)

Public Member Functions

 KexiFormManager (KexiPart::Part *parent, const char *name=0)
virtual ~KexiFormManager ()
virtual KActionaction (const char *name)
virtual void enableAction (const char *name, bool enable)

Protected Slots

void slotHistoryCommandExecuted ()

Protected Member Functions

QString translateName (const char *name) const

Constructor & Destructor Documentation

KexiFormManager::KexiFormManager KexiPart::Part parent,
const char *  name = 0
 

Definition at line 38 of file kexiformmanager.cpp.

References KexiCustomPropertyFactory::init(), and KFormDesigner::FormManager::m_emitSelectionSignalsUpdatesPropertySet.

KexiFormManager::~KexiFormManager  )  [virtual]
 

Definition at line 50 of file kexiformmanager.cpp.


Member Function Documentation

KAction * KexiFormManager::action const char *  name  )  [virtual]
 

Returns:
action for name.
See also:
enableAction()

Implements KFormDesigner::FormManager.

Definition at line 54 of file kexiformmanager.cpp.

References KexiPart::Part::actionCollectionForMode(), KFormDesigner::FormManager::activeForm(), KexiDBForm::dataAwareObject(), Kexi::DesignViewMode, KexiViewBase::parentDialog(), and translateName().

void KexiFormManager::enableAction const char *  name,
bool  enable
[virtual]
 

Enables or disables actions name. KFD uses KPart's, action collection here. Kexi implements this to get (shared) actions defined elsewhere.

Implements KFormDesigner::FormManager.

Definition at line 88 of file kexiformmanager.cpp.

References KexiViewBase::setAvailable(), and translateName().

void KexiFormManager::insertAutoFields const QString sourceMimeType,
const QString sourceName,
const QStringList &  fields
[slot]
 

Receives signal from KexiDataSourcePage and inserts autofields onto the current form.

Definition at line 187 of file kexiformmanager.cpp.

References KexiFormView::insertAutoFields().

void KexiFormManager::setDataSourceFieldOrExpression const QString string,
const QString caption,
KexiDB::Field::Type  type
[slot]
 

Receives signal from KexiDataSourcePage about changed widget's data source. This is because we couldn't pass objects like KexiDB::QueryColumnInfo.

Also sets following things in KexiDBAutoField:

  • caption related to the data source
  • data type related to the data source

Definition at line 152 of file kexiformmanager.cpp.

References KFormDesigner::FormManager::activeForm(), KFormDesigner::WidgetPropertySet::contains(), and KFormDesigner::FormManager::propertySet().

void KexiFormManager::setFormDataSource const QCString &  mime,
const QCString &  name
[slot]
 

Receives signal from KexiDataSourcePage about changed form's data source.

Definition at line 98 of file kexiformmanager.cpp.

References KFormDesigner::FormManager::activeForm(), KexiDBForm::dataSource, KexiDBForm::dataSourceMimeType, and KFormDesigner::FormManager::propertySet().

void KexiFormManager::slotHistoryCommandExecuted  )  [protected, slot]
 

Definition at line 196 of file kexiformmanager.cpp.

References KFormDesigner::FormManager::activeForm(), KFormDesigner::CommandGroup::commands(), KexiDBForm::dataSource, KexiDBForm::dataSourceMimeType, KFormDesigner::PropertyCommand::oldValues(), and KFormDesigner::PropertyCommand::property().

QString KexiFormManager::translateName const char *  name  )  const [inline, protected]
 

Definition at line 75 of file kexiformmanager.h.

Referenced by action(), and enableAction().


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