kexi

kexireportform.h
1/* This file is part of the KDE project
2 Copyright (C) 2004 Lucijan Busch <lucijan@kde.org>
3 Copyright (C) 2004 Cedric Pasteur <cedric.pasteur@free.fr>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KEXIREPORTFORM_H
22#define KEXIREPORTFORM_H
23
24#include <tqwidget.h>
25#include <tqpixmap.h>
26
27#include <formeditor/form.h>
28
30class KEXIREPORTUTILS_EXPORT KexiReportForm : public TQWidget, public KFormDesigner::FormWidget
31{
32 TQ_OBJECT
33
34
35 public:
36 KexiReportForm(TQWidget *parent, const char *name="kexi_dbform");
37 virtual ~KexiReportForm();
38
39 /*TQString datasource() const { return m_ds; }
40 bool navigatorShown() const { return m_nav; }
41 void setDatasource(const TQString &s) { m_ds = s; }
42 void showRecordNavigator(bool s) { m_nav = s; }*/
43
44 virtual void drawRect(const TQRect& r, int type);
45 virtual void drawRects(const TQValueList<TQRect> &list, int type);
46 virtual void initBuffer();
47 virtual void clearForm();
48 virtual void highlightWidgets(TQWidget *from, TQWidget *to/*, const TQPoint &p*/);
49
50 virtual TQSize sizeHint() const;
51
52 private:
53 /*TQString m_ds;
54 bool m_nav;
55 KexiDB::Connection *m_conn;*/
56
57 TQPixmap buffer;
58 TQRect prev_rect;
59};
60
61#endif
Base (virtual) class for all form widgets.
Definition form.h:54
virtual void clearForm()=0
virtual void highlightWidgets(TQWidget *from, TQWidget *to)=0
virtual void initBuffer()=0
virtual void drawRects(const TQValueList< TQRect > &list, int type)=0