Kexi API Documentation (2.0 alpha)

KexiTableDesigner_DataView Class Reference

#include <kexitabledesigner_dataview.h>

Inheritance diagram for KexiTableDesigner_DataView:

KexiDataTable KexiDataAwareView KexiViewBase QWidget KexiActionProxy List of all members.

Public Member Functions

 KexiTableDesigner_DataView (KexiMainWindow *win, QWidget *parent)
virtual ~KexiTableDesigner_DataView ()
KexiTablePart::TempDatatempData () const

Protected Member Functions

virtual tristate beforeSwitchTo (int mode, bool &dontStore)
virtual tristate afterSwitchFrom (int mode)

Constructor & Destructor Documentation

KexiTableDesigner_DataView::KexiTableDesigner_DataView KexiMainWindow win,
QWidget parent
 

Definition at line 29 of file kexitabledesigner_dataview.cpp.

KexiTableDesigner_DataView::~KexiTableDesigner_DataView  )  [virtual]
 

Definition at line 34 of file kexitabledesigner_dataview.cpp.

References KexiViewBase::mainWin(), and KexiDataTable::tableView().


Member Function Documentation

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

called by KexiDialogBase::switchToViewMode() right after dialog is switched to new mode By default does nothing. Reimplement this if you need to do something after 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.

Reimplemented from KexiViewBase.

Definition at line 59 of file kexitabledesigner_dataview.cpp.

References KexiViewBase::mainWin(), KexiDataTable::setData(), and tempData().

tristate KexiTableDesigner_DataView::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 44 of file kexitabledesigner_dataview.cpp.

References KexiDataAwareView::acceptRowEdit(), cancelled, and Kexi::DataViewMode.

KexiTablePart::TempData * KexiTableDesigner_DataView::tempData  )  const
 

Definition at line 74 of file kexitabledesigner_dataview.cpp.

References KexiViewBase::parentDialog().

Referenced by afterSwitchFrom().


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