Kexi API Documentation (2.0 alpha)

KexiDataTable Class Reference

#include <kexidatatable.h>

Inheritance diagram for KexiDataTable:

KexiDataAwareView KexiViewBase QWidget KexiActionProxy KexiQueryView KexiTableDesigner_DataView KexiTableDesignerView List of all members.

Detailed Description

Provides a data-driven (record-based) tabular view.

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

See also:
KexiFormView

Definition at line 44 of file kexidatatable.h.

Public Slots

void setData (KexiDB::Cursor *cursor)

Public Member Functions

 KexiDataTable (KexiMainWindow *mainWin, QWidget *parent, const char *name=0, bool dbAware=true)
 KexiDataTable (KexiMainWindow *mainWin, QWidget *parent, KexiDB::Cursor *cursor, const char *name=0)
virtual ~KexiDataTable ()
KexiTableViewtableView () const

Protected Slots

void filter ()

Protected Member Functions

void init ()


Constructor & Destructor Documentation

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

CTOR1: Creates, empty table view that can be initialized later with setData(). If dbAware is true, table will be db-aware, and KexiDataTableView is used internally. Otherwise, table will be not-db-aware, and KexiTableView is used internally. In the latter case, data can be set by calling tableView()->setData(KexiTableViewData* data).

Definition at line 37 of file kexidatatable.cpp.

References KexiDataAwareView::init().

KexiDataTable::KexiDataTable KexiMainWindow mainWin,
QWidget parent,
KexiDB::Cursor cursor,
const char *  name = 0
 

CTOR2: Creates db-aware, table view initialized with cursor. KexiDataTableView is used internally.

Definition at line 56 of file kexidatatable.cpp.

References KexiDataAwareView::init().

KexiDataTable::~KexiDataTable  )  [virtual]
 

Definition at line 68 of file kexidatatable.cpp.


Member Function Documentation

void KexiDataTable::filter  )  [protected, slot]
 

Todo:

Definition at line 198 of file kexidatatable.cpp.

void KexiDataTable::init  )  [protected]
 

void KexiDataTable::setData KexiDB::Cursor cursor  )  [slot]
 

Sets data. Only works for db-aware table.

Definition at line 191 of file kexidatatable.cpp.

References KexiDataAwareView::mainWidget().

Referenced by KexiTableDesigner_DataView::afterSwitchFrom(), and KexiQueryView::executeQuery().

KexiTableView * KexiDataTable::tableView  )  const
 

Definition at line 244 of file kexidatatable.cpp.

References KexiDataAwareView::m_internalView.

Referenced by KexiQueryView::executeQuery(), KexiQueryView::KexiQueryView(), and KexiTableDesigner_DataView::~KexiTableDesigner_DataView().


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