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-2005 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 //moved     virtual QWidget* mainWidget();
00067 
00068         KexiTableView* tableView() const;
00069 
00070 //moved     virtual QSize minimumSizeHint() const;
00071 //moved     virtual QSize sizeHint() const;
00072 
00073     public slots:
00075         void setData(KexiDB::Cursor *cursor);
00076 
00077 //moved     void deleteAllRows();
00078 
00079     protected slots:
00080 #if 0 //moved
00081 
00085         virtual void slotUpdateRowActions(int row);
00086 #endif
00088         void filter();
00089 //moved     virtual void slotCellSelected(int col, int row);
00090 //moved     void reloadActions();
00091 
00092     protected:
00093 //moved     void initActions();
00094         void init();
00095 //moved     virtual void updateActions(bool activated);
00096 
00097 //moved     KexiTableView *m_view;
00098 };
00099 
00100 #endif
00101 
KDE Home | KDE Accessibility Home | Description of Access Keys