kexi

kexidatatable.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Lucijan Busch <lucijan@kde.org>
3 Copyright (C) 2003 Joseph Wenninger <jowenn@kde.org>
4 Copyright (C) 2003-2006 Jaroslaw Staniek <js@iidea.pl>
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this program; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20*/
21
22#ifndef KEXIDATATABLE_H
23#define KEXIDATATABLE_H
24
25#include "kexidataawareview.h"
26
27class KexiMainWindow;
29class KexiTableView;
31class TDEPopupMenu;
32
33namespace KexiDB
34{
35 class Cursor;
36}
37
44class KEXIEXTWIDGETS_EXPORT KexiDataTable : public KexiDataAwareView
45{
46 TQ_OBJECT
47
48
49 public:
57 KexiDataTable(KexiMainWindow *mainWin, TQWidget *parent, const char *name = 0,
58 bool dbAware = true);
59
62 KexiDataTable(KexiMainWindow *mainWin, TQWidget *parent,
63 KexiDB::Cursor *cursor, const char *name = 0);
64
65 virtual ~KexiDataTable();
66
67 KexiTableView* tableView() const;
68
69 public slots:
71 void setData(KexiDB::Cursor *cursor);
72
73 protected slots:
75 void filter();
76
77 protected:
78 void init();
79};
80
81#endif
Provides database cursor functionality.
Definition cursor.h:67
Provides a view displaying record-based data.
void init(TQWidget *viewWidget, KexiSharedActionClient *actionClient, KexiDataAwareObjectInterface *dataAwareObject, bool noDataAware=false)
Database aware table widget.
Provides a data-driven (record-based) tabular view.
Kexi's main window interface This interface is implemented by KexiMainWindowImpl class.
KexiTableView class provides a widget for displaying data in a tabular view.
High-level database connectivity library with database backend drivers.