Kexi API Documentation (2.0 alpha)

KexiFormView Class Reference

#include <kexiformview.h>

Inheritance diagram for KexiFormView:

KexiDataAwareView KexiViewBase QWidget KexiActionProxy List of all members.

Detailed Description

The KexiFormView lass provides a data-driven (record-based) form view .

The KexiFormView can display data provided "by hand" or from KexiDB-compatible database source.

This class provides a single view used inside KexiDialogBase. It takes care of saving/loading form, of enabling actions when needed. One KexiFormView object is instantiated for data view mode and a second KexiFormView object is instantiated for design view mode.

See also:
KexiDataTable

Definition at line 51 of file kexiformview.h.

Public Types

enum  ResizeMode { ResizeAuto = 0, ResizeDefault = ResizeAuto, ResizeFixed = 1, NoResize = 2 }

Public Slots

virtual void show ()
void insertAutoFields (const QString &sourceMimeType, const QString &sourceName, const QStringList &fields, const QPoint &pos=QPoint(-1,-1))

Public Member Functions

 KexiFormView (KexiMainWindow *mainWin, QWidget *parent, const char *name=0, bool dbAware=true)
virtual ~KexiFormView ()
virtual QSize preferredSizeHint (const QSize &otherSize)
int resizeMode () const
KFormDesigner::Formform () const
void setUnsavedLocalBLOB (QWidget *widget, KexiBLOBBuffer::Id_t id)

Protected Slots

void slotPropertySetSwitched (KoProperty::Set *b, bool forceReload=false, const QCString &propertyToSelect=QCString())
void slotDirty (KFormDesigner::Form *f, bool isDirty)
void slotFocus (bool in)
void slotHandleDragMoveEvent (QDragMoveEvent *e)
void slotHandleDropEvent (QDropEvent *e)
 Handles field(s) dropping from the data source pane onto the form.

Protected Member Functions

virtual tristate beforeSwitchTo (int mode, bool &dontStore)
virtual tristate afterSwitchFrom (int mode)
virtual KoProperty::Set * propertySet ()
virtual KexiDB::SchemaDatastoreNewData (const KexiDB::SchemaData &sdata, bool &cancel)
virtual tristate storeData (bool dontAsk=false)
KexiFormPart::TempDatatempData () const
KexiFormPartformPart () const
void setForm (KFormDesigner::Form *f)
void initForm ()
void loadForm ()
void updateAutoFieldsDataSource ()
 Used in loadForm().
void updateValuesForSubproperties ()
 Used in loadForm().
virtual void resizeEvent (QResizeEvent *)
void initDataSource ()
virtual void setFocusInternal ()
void updateTabStopsOrder ()
void deleteQuery ()
void updateDataSourcePage ()

Protected Attributes

KexiDBFormm_dbform
KexiFormScrollViewm_scrollView
KoProperty::Set * m_propertySet
QString m_previousDataSourceString
int m_resizeMode
KexiDB::QuerySchemam_query
bool m_queryIsOwned
KexiDB::Cursorm_cursor
int m_delayedFormContentsResizeOnShow
QGuardedPtr< QWidgetm_setFocusInternalOnce
 Used in setFocusInternal().
QRect m_widgetGeometryForRecentInsertAutoFields
QMap< QWidget *, KexiBLOBBuffer::Id_tm_unsavedLocalBLOBs
 Used in setUnsavedLocalBLOBs().


Member Enumeration Documentation

enum KexiFormView::ResizeMode
 

Enumeration values:
ResizeAuto 
ResizeDefault 
ResizeFixed 
NoResize 

Definition at line 56 of file kexiformview.h.


Constructor & Destructor Documentation

KexiFormView::KexiFormView KexiMainWindow mainWin,
QWidget parent,
const char *  name = 0,
bool  dbAware = true
 

Todo:
#define KEXI_SHOW_SPLITTER_WIDGET
Todo:
skip this if ther're no borders

Definition at line 61 of file kexiformview.cpp.

References Kexi::DataViewMode, Kexi::DesignViewMode, KexiViewBase::dirty(), KexiViewBase::focus(), KexiDataAwareView::init(), initForm(), m_dbform, m_delayedFormContentsResizeOnShow, m_scrollView, KexiActionProxy::plugSharedAction(), KexiViewBase::propertySetSwitched(), KexiScrollView::recordNavigator(), KFormDesigner::FormManager::self(), KexiViewBase::setAvailable(), KexiScrollView::setResizingEnabled(), KexiScrollView::setWidget(), slotDirty(), slotFocus(), slotHandleDragMoveEvent(), slotHandleDropEvent(), slotPropertySetSwitched(), and KexiViewBase::viewMode().

KexiFormView::~KexiFormView  )  [virtual]
 

Definition at line 165 of file kexiformview.cpp.

References KexiDB::Connection::deleteCursor(), deleteQuery(), m_cursor, m_propertySet, KexiViewBase::parentDialog(), and KexiViewBase::propertySetSwitched().


Member Function Documentation

tristate KexiFormView::afterSwitchFrom int  mode  )  [protected, virtual]
 

Todo:
add option for skipping autoincremented fields
iface->dataSource().isEmpty()

Reimplemented from KexiViewBase.

Definition at line 422 of file kexiformview.cpp.

References KexiFormDataItemInterface::columnInfo(), KexiFormDataItemInterface::dataSource(), Kexi::DataViewMode, Kexi::DesignViewMode, form(), initDataSource(), initForm(), KexiDataItemInterface::isReadOnly(), kexipluginsdbg, m_dbform, m_query, m_scrollView, m_setFocusInternalOnce, KexiViewBase::mainWin(), KexiDBForm::orderedFocusWidgets(), KexiViewBase::parentDialog(), KexiScrollView::refreshContentsSizeLater(), KexiDataAwareObjectInterface::selectFirstRow(), SET_FOCUS_USING_REASON, KexiDBForm::setAutoTabStops(), KexiViewBase::setDirty(), KexiFormEventHandler::setMainWidgetForEventHandling(), KexiScrollView::setWidget(), tempData(), and KexiViewBase::viewMode().

tristate KexiFormView::beforeSwitchTo int  mode,
bool &  dontStore
[protected, virtual]
 

called by KexiDialogBase::switchToViewMode() right before dialog is switched to new mode By default does nothing. Reimplement this if you need to do something before switching to this view.

Returns:
true if you accept or false if a error occupied and view shouldn't change If there is no error but switching should be just cancelled (probably after showing some info messages), you need to return cancelled. Set dontStore to true (it's false by default) if you want to avoid data storing by storeData() or storeNewData().

Reimplemented from KexiViewBase.

Definition at line 394 of file kexiformview.cpp.

References KexiDataAwareObjectInterface::acceptRowEdit(), KexiFormScrollView::beforeSwitchView(), cancelled, Kexi::DataViewMode, KexiViewBase::dirty(), form(), m_scrollView, KFormDesigner::FormIO::saveFormToString(), tempData(), KexiFormPart::TempData::tempForm, and KexiViewBase::viewMode().

void KexiFormView::deleteQuery  )  [protected]
 

Todo:
remove this shared query from listened queries list

Definition at line 182 of file kexiformview.cpp.

References KexiDB::Connection::deleteCursor(), m_cursor, m_query, m_queryIsOwned, and KexiViewBase::parentDialog().

Referenced by initDataSource(), and ~KexiFormView().

KFormDesigner::Form * KexiFormView::form  )  const
 

Definition at line 199 of file kexiformview.cpp.

References Kexi::DataViewMode, tempData(), and KexiViewBase::viewMode().

Referenced by afterSwitchFrom(), beforeSwitchTo(), initForm(), insertAutoFields(), loadForm(), slotDirty(), slotFocus(), slotPropertySetSwitched(), storeData(), updateAutoFieldsDataSource(), and updateValuesForSubproperties().

KexiFormPart* KexiFormView::formPart  )  const [inline, protected]
 

Definition at line 139 of file kexiformview.h.

References KexiViewBase::part().

Referenced by initForm(), slotPropertySetSwitched(), and updateDataSourcePage().

void KexiFormView::initDataSource  )  [protected]
 

Todo:
also handle anonymous (not stored) queries provided as statements here

KexiTableViewData is not great name for data class here... rename/move?

Todo:
check if the query could have skipped unused fields (no GROUP BY, no joins, etc.)
Todo:
There can be read-write queries, e.g. simple "SELECT * FROM...". Add a checking function to KexiDB.
Todo:
add expression support
Todo:
show error
Todo:
fieldName is ok, but what about expressions?
Todo:
PRIMITIVE!! data setting:
Todo:
few backends return result count for free! - no need to reopen()

Definition at line 523 of file kexiformview.cpp.

References KexiDB::QuerySchema::addField(), KexiDBForm::dataSource, KexiDBForm::dataSourceMimeType, deleteQuery(), KexiDB::Connection::executeQuery(), KexiDB::QuerySchema::field(), KexiDB::FieldList::field(), KexiDB::FieldList::hasField(), KexiFormDataProvider::invalidateDataSources(), kexipluginsdbg, m_cursor, m_dbform, m_query, m_queryIsOwned, m_scrollView, KexiDB::SchemaData::name(), KexiViewBase::parentDialog(), KexiTableViewData::preloadAllRows(), KexiDB::TableSchema::primaryKey(), KexiDB::Connection::querySchema(), KexiDataAwareObjectInterface::setData(), KexiFormDataProvider::setMainDataSourceWidget(), KexiTableViewData::setReadOnly(), KexiDB::Connection::tableSchema(), KexiDBForm::updateTabStopsOrder(), and KexiFormDataProvider::usedDataSources().

Referenced by afterSwitchFrom().

void KexiFormView::initForm  )  [protected]
 

Todo:
handle errors

Definition at line 217 of file kexiformview.cpp.

References Kexi::DataViewMode, Kexi::DesignViewMode, KexiDB::FieldList::fields(), form(), formPart(), KexiFormPart::library(), loadForm(), KFormDesigner::FormIO::loadFormFromDom(), m_dbform, m_delayedFormContentsResizeOnShow, m_scrollView, KexiViewBase::mainWin(), KexiViewBase::parentDialog(), KexiFormScrollView::refreshContentsSize(), KFormDesigner::FormManager::self(), KexiFormScrollView::setForm(), setForm(), updateDataSourcePage(), KexiDBForm::updateTabStopsOrder(), and KexiViewBase::viewMode().

Referenced by afterSwitchFrom(), and KexiFormView().

void KexiFormView::insertAutoFields const QString sourceMimeType,
const QString sourceName,
const QStringList &  fields,
const QPoint &  pos = QPoint(-1,-1)
[slot]
 

Inserts autofields onto the form at pos position. sourceMimeType can be "kexi/table" or "kexi/query", sourceName is a name of a table or query, fields is a list of fields to insert (one or more) Fields are inserted using standard KFormDesigner::InsertWidgetCommand framework, so undo/redo is available for this operation.

If multiple fields are provided, they will be aligned vertically. If pos is QPoint(-1,-1) (the default), position is computed automatically based on a position last inserted field using this method. If this method has not been called yet, position of QPoint(40, 40) will be set.

Called by:

Definition at line 1035 of file kexiformview.cpp.

References KFormDesigner::CommandGroup::addCommand(), KexiDB::QueryColumnInfo::aliasOrName(), KexiDB::QueryColumnInfo::captionOrAliasOrName(), KexiDB::TableOrQuerySchema::columnInfo(), KFormDesigner::AdjustSizeCommand::execute(), KFormDesigner::CommandGroup::execute(), KFormDesigner::InsertWidgetCommand::execute(), KexiDB::QueryColumnInfo::field, foreach, foreach_list, form(), kexipluginswarn, m_dbform, m_scrollView, m_widgetGeometryForRecentInsertAutoFields, KexiViewBase::parentDialog(), propertySet(), KexiDB::TableOrQuerySchema::query(), KexiFormScrollView::refreshContentsSize(), KFormDesigner::CommandGroup::resetAllowExecuteFlags(), KFormDesigner::FormManager::self(), KFormDesigner::AdjustSizeCommand::SizeToFit, KexiDB::TableOrQuerySchema::table(), KFormDesigner::ObjectTreeItem::widget(), and KFormDesigner::InsertWidgetCommand::widgetName().

Referenced by KexiFormManager::insertAutoFields(), and slotHandleDropEvent().

void KexiFormView::loadForm  )  [protected]
 

Definition at line 352 of file kexiformview.cpp.

References KexiDBForm::autoTabStops, Kexi::DataViewMode, form(), kexipluginsdbg, KexiViewBase::loadDataBlock(), KFormDesigner::FormIO::loadFormFromString(), m_dbform, KexiViewBase::parentDialog(), tempData(), updateAutoFieldsDataSource(), updateValuesForSubproperties(), and KexiViewBase::viewMode().

Referenced by initForm().

QSize KexiFormView::preferredSizeHint const QSize &  otherSize  )  [virtual]
 

Returns:
preferred size hint, that can be used to resize the view. It is computed using maximum of (a) otherSize and (b) current KMDI dock area's size, so the view won't exceed this maximum size. The method is used e.g. in KexiDialogBase::sizeHint(). If you reimplement this method, do not forget to return value of yoursize.boundedTo( KexiViewBase::preferredSizeHint(otherSize) ).

Reimplemented from KexiViewBase.

Definition at line 925 of file kexiformview.cpp.

References m_dbform, m_scrollView, KexiViewBase::parentDialog(), KexiViewBase::preferredSizeHint(), and KexiFormScrollView::verticalScrollBar().

virtual KoProperty::Set* KexiFormView::propertySet  )  [inline, protected, virtual]
 

Returns:
a property set for this view. For reimplementation. By default returns NULL.

Reimplemented from KexiViewBase.

Definition at line 132 of file kexiformview.h.

Referenced by insertAutoFields().

void KexiFormView::resizeEvent QResizeEvent *   )  [protected, virtual]
 

Definition at line 939 of file kexiformview.cpp.

References Kexi::DataViewMode, m_dbform, m_delayedFormContentsResizeOnShow, m_scrollView, KexiScrollView::refreshContentsSizeLater(), KexiScrollView::updateNavPanelGeometry(), and KexiViewBase::viewMode().

int KexiFormView::resizeMode  )  const [inline]
 

Definition at line 72 of file kexiformview.h.

Referenced by show(), and KexiFormScrollView::show().

void KexiFormView::setFocusInternal  )  [protected, virtual]
 

Reimplemented from KexiViewBase.

Definition at line 956 of file kexiformview.cpp.

References Kexi::DataViewMode, m_dbform, m_setFocusInternalOnce, SET_FOCUS_USING_REASON, and KexiViewBase::viewMode().

void KexiFormView::setForm KFormDesigner::Form f  )  [protected]
 

Definition at line 208 of file kexiformview.cpp.

References Kexi::DataViewMode, tempData(), and KexiViewBase::viewMode().

Referenced by initForm().

void KexiFormView::setUnsavedLocalBLOB QWidget widget,
KexiBLOBBuffer::Id_t  id
 

Assigns id local (static) BLOB's identifier for widget widget. Previously assigned BLOB will be usassigned. If id is 0, BLOB is unassigned and no new is assigned.

This method is called when a widget supporting BLOB data (currently, images from KexiDBImageBox, within KexiDBFactory) has BLOB assigned by identifier id. BLOB identifiers are defined by KexiBLOBBuffer (KexiBLOBBuffer::self() instance).

The data collected by this method is used on form's design saving (in design mode). Local BLOBs are retrieved KexiBLOBBuffer::self() and stored in "kexi__blobs" 'system' table. Note that db-aware BLOBs (non local) are not handled this way.

Definition at line 1179 of file kexiformview.cpp.

References m_unsavedLocalBLOBs.

void KexiFormView::show  )  [virtual, slot]
 

Reimplemented to update resize policy.

Definition at line 975 of file kexiformview.cpp.

References Kexi::DataViewMode, m_scrollView, ResizeAuto, resizeMode(), and KexiViewBase::viewMode().

void KexiFormView::slotDirty KFormDesigner::Form f,
bool  isDirty
[protected, slot]
 

Definition at line 662 of file kexiformview.cpp.

References form(), and KexiViewBase::setDirty().

Referenced by KexiFormView().

void KexiFormView::slotFocus bool  in  )  [protected, slot]
 

Definition at line 990 of file kexiformview.cpp.

References form(), m_dbform, KFormDesigner::FormManager::self(), and updateDataSourcePage().

Referenced by KexiFormView().

void KexiFormView::slotHandleDragMoveEvent QDragMoveEvent *  e  )  [protected, slot]
 

Definition at line 1014 of file kexiformview.cpp.

References KexiFieldDrag::canDecodeMultiple().

Referenced by KexiFormView().

void KexiFormView::slotHandleDropEvent QDropEvent *  e  )  [protected, slot]
 

Handles field(s) dropping from the data source pane onto the form.

See also:
insertAutoFields()

Definition at line 1023 of file kexiformview.cpp.

References KexiFieldDrag::canDecodeMultiple(), KexiFieldDrag::decodeMultiple(), and insertAutoFields().

Referenced by KexiFormView().

void KexiFormView::slotPropertySetSwitched KoProperty::Set *  b,
bool  forceReload = false,
const QCString &  propertyToSelect = QCString()
[protected, slot]
 

Definition at line 379 of file kexiformview.cpp.

References form(), formPart(), m_propertySet, KexiViewBase::propertySetReloaded(), KexiViewBase::propertySetSwitched(), and KFormDesigner::FormManager::self().

Referenced by KexiFormView().

tristate KexiFormView::storeData bool  dontAsk = false  )  [protected, virtual]
 

Todo:
remove unused data stored previously
Todo:
show message about missing kexi__blobs?
Todo:
show message
stored

Todo:
unsafe
Todo:
show message?

Reimplemented from KexiViewBase.

Definition at line 689 of file kexiformview.cpp.

References KFormDesigner::ObjectTreeItem::addModifiedProperty(), KexiBLOBBuffer::Handle::data(), KexiBLOBBuffer::Handle::folderId(), form(), KexiDB::Connection::insertRecord(), KexiDB::PreparedStatement::InsertStatement, kexipluginsdbg, kexipluginswarn, KexiDB::Connection::lastInsertedAutoIncValue(), m_unsavedLocalBLOBs, KexiBLOBBuffer::Handle::mimeType(), KFormDesigner::ObjectTreeItem::name(), KexiDB::FieldList::names(), KexiBLOBBuffer::objectForId(), KexiBLOBBuffer::Handle::originalFileName(), KexiViewBase::parentDialog(), KexiDB::Connection::prepareStatement(), KFormDesigner::FormIO::saveFormToString(), KexiBLOBBuffer::self(), KexiBLOBBuffer::Handle::setStoredWidthID(), KexiViewBase::storeDataBlock(), KexiDB::FieldList::subList(), KexiDB::Connection::tableSchema(), and tempData().

Referenced by storeNewData().

KexiDB::SchemaData * KexiFormView::storeNewData const KexiDB::SchemaData sdata,
bool &  cancel
[protected, virtual]
 

Tells this dialog to create and store data of the new object pointed by sdata on the backend. Called by KexiDialogBase::storeNewData(). Default implementation:

  • makes a deep copy of sdata
  • stores object schema data sdata in 'kexi__objects' internal table using Connection::storeObjectSchemaData(). Reimpelment this for your needs. Requirements:
  • deep copy of sdata should be made
  • schema data should be created at the backend (by calling KexiViewBase::storeNewData(const KexiDB::SchemaData& sdata)), or using Connection::storeObjectSchemaData() or more specialized method. For example, KexiAlterTableDialog uses Connection::createTable(TableSchema) for this (tableschema is SchemaData subclass) to store more information than just a schem adata. You should use such subclasses if needed. Should return newly created schema data object on success. In this case, do not store schema object yourself (make deep copy if needed).

Reimplemented from KexiViewBase.

Definition at line 669 of file kexiformview.cpp.

References KexiDB::SchemaData::id(), kexipluginsdbg, KexiViewBase::parentDialog(), KexiDB::Connection::removeObject(), storeData(), and KexiViewBase::storeNewData().

KexiFormPart::TempData* KexiFormView::tempData  )  const [inline, protected]
 

Definition at line 137 of file kexiformview.h.

References KexiViewBase::parentDialog().

Referenced by afterSwitchFrom(), beforeSwitchTo(), form(), loadForm(), setForm(), and storeData().

void KexiFormView::updateAutoFieldsDataSource  )  [protected]
 

Used in loadForm().

Todo:
call this when form's data source is changed

Definition at line 288 of file kexiformview.cpp.

References KexiDB::TableOrQuerySchema::columnInfo(), KexiDBAutoField::dataSource, KexiDBForm::dataSource, KexiDBForm::dataSourceMimeType, form(), m_dbform, KexiViewBase::parentDialog(), KexiDB::TableOrQuerySchema::query(), KexiDBAutoField::setColumnInfo(), and KexiDB::TableOrQuerySchema::table().

Referenced by loadForm().

void KexiFormView::updateDataSourcePage  )  [protected]
 

Definition at line 999 of file kexiformview.cpp.

References KFormDesigner::WidgetPropertySet::contains(), Kexi::DesignViewMode, formPart(), KFormDesigner::FormManager::self(), and KexiViewBase::viewMode().

Referenced by initForm(), and slotFocus().

void KexiFormView::updateTabStopsOrder  )  [protected]
 

Called after loading the form contents (before showing it). Also called when the form window (KexiDialogBase) is detached (in KMDI's Child Frame mode), because otherwise tabstop ordering can get broken.

void KexiFormView::updateValuesForSubproperties  )  [protected]
 

Used in loadForm().

Todo:
call this when form's data source is changed
Todo:
this could be at the KFD level, but KFD is going to be merged anyway with kexiforms, right?

Definition at line 317 of file kexiformview.cpp.

References KexiDBForm::dataSource, KexiDBForm::dataSourceMimeType, form(), kexipluginsdbg, m_dbform, KexiViewBase::parentDialog(), KexiDB::TableOrQuerySchema::query(), KFormDesigner::WidgetWithSubpropertiesInterface::subwidget(), and KexiDB::TableOrQuerySchema::table().

Referenced by loadForm().


Member Data Documentation

KexiDB::Cursor* KexiFormView::m_cursor [protected]
 

Definition at line 204 of file kexiformview.h.

Referenced by deleteQuery(), initDataSource(), and ~KexiFormView().

KexiDBForm* KexiFormView::m_dbform [protected]
 

Reimplemented after KexiViewBase. Updates actions (e.g. availability).

Definition at line 185 of file kexiformview.h.

Referenced by afterSwitchFrom(), initDataSource(), initForm(), insertAutoFields(), KexiFormView(), loadForm(), preferredSizeHint(), resizeEvent(), setFocusInternal(), slotFocus(), updateAutoFieldsDataSource(), and updateValuesForSubproperties().

int KexiFormView::m_delayedFormContentsResizeOnShow [protected]
 

For new (empty) forms only: Our form's area will be resized more than once. We will resize form widget itself later (in resizeEvent()).

Definition at line 209 of file kexiformview.h.

Referenced by initForm(), KexiFormView(), and resizeEvent().

QString KexiFormView::m_previousDataSourceString [protected]
 

Database cursor used for data retrieving. It is shared between subsequent Data view sessions (just reopened on switch), but deleted and recreated from scratch when form's "dataSource" property changed since last form viewing (m_previousDataSourceString is used for that).

Definition at line 193 of file kexiformview.h.

KoProperty::Set* KexiFormView::m_propertySet [protected]
 

Definition at line 187 of file kexiformview.h.

Referenced by slotPropertySetSwitched(), and ~KexiFormView().

KexiDB::QuerySchema* KexiFormView::m_query [protected]
 

Definition at line 197 of file kexiformview.h.

Referenced by afterSwitchFrom(), deleteQuery(), and initDataSource().

bool KexiFormView::m_queryIsOwned [protected]
 

True, if m_query is created as temporary object within this form. If user selected an existing, predefined (stored) query, m_queryIsOwned will be false, so the query object will not be destroyed.

Definition at line 202 of file kexiformview.h.

Referenced by deleteQuery(), and initDataSource().

int KexiFormView::m_resizeMode [protected]
 

Definition at line 195 of file kexiformview.h.

KexiFormScrollView* KexiFormView::m_scrollView [protected]
 

Definition at line 186 of file kexiformview.h.

Referenced by afterSwitchFrom(), beforeSwitchTo(), initDataSource(), initForm(), insertAutoFields(), KexiFormView(), preferredSizeHint(), resizeEvent(), and show().

QGuardedPtr<QWidget> KexiFormView::m_setFocusInternalOnce [protected]
 

Used in setFocusInternal().

Definition at line 212 of file kexiformview.h.

Referenced by afterSwitchFrom(), and setFocusInternal().

QMap<QWidget*, KexiBLOBBuffer::Id_t> KexiFormView::m_unsavedLocalBLOBs [protected]
 

Used in setUnsavedLocalBLOBs().

Definition at line 223 of file kexiformview.h.

Referenced by setUnsavedLocalBLOB(), and storeData().

QRect KexiFormView::m_widgetGeometryForRecentInsertAutoFields [protected]
 

Stores geometry of widget recently inserted using insertAutoFields() method. having this information, we'r eable to compute position for a newly inserted widget in insertAutoFields() is such position has not been specified. (the position is specified when a widget is inserted with mouse drag & dropping but not with clicking of 'Insert fields' button from Data Source pane)

Definition at line 220 of file kexiformview.h.

Referenced by insertAutoFields().


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