kexi

kexidatatable.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003 Lucijan Busch <lucijan@kde.org>
00003    Copyright (C) 2003 Joseph Wenninger <jowenn@kde.org>
00004    Copyright (C) 2003-2006 Jaroslaw Staniek <js@iidea.pl>
00005 
00006    This program is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this program; see the file COPYING.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KEXIDATATABLE_H
00023 #define KEXIDATATABLE_H
00024 
00025 #include "kexidataawareview.h"
00026 
00027 class KexiMainWindow;
00028 class KexiDataTableView;
00029 class KexiTableView;
00030 class KexiTableViewData;
00031 class KPopupMenu;
00032 
00033 namespace KexiDB
00034 {
00035     class Cursor;
00036 }
00037 
00044 class KEXIEXTWIDGETS_EXPORT KexiDataTable : public KexiDataAwareView
00045 {
00046     Q_OBJECT
00047 
00048     public:
00056         KexiDataTable(KexiMainWindow *mainWin, QWidget *parent, const char *name = 0, 
00057             bool dbAware = true);
00058 
00061         KexiDataTable(KexiMainWindow *mainWin, QWidget *parent, 
00062             KexiDB::Cursor *cursor, const char *name = 0);
00063 
00064         virtual ~KexiDataTable();
00065 
00066         KexiTableView* tableView() const;
00067 
00068     public slots:
00070         void setData(KexiDB::Cursor *cursor);
00071 
00072     protected slots:
00074         void filter();
00075 
00076     protected:
00077         void init();
00078 };
00079 
00080 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys