kexi

kexidbtextwidgetinterface.h
1/* This file is part of the KDE project
2 Copyright (C) 2005-2006 Jaroslaw Staniek <js@iidea.pl>
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KexiDBTextWidgetInterface_H
21#define KexiDBTextWidgetInterface_H
22
23#include <widget/utils/kexidisplayutils.h>
24
25namespace KexiDB {
26 class QueryColumnInfo;
27}
28class TQFrame;
29
31
33class KEXIFORMUTILS_EXPORT KexiDBTextWidgetInterface
34{
35 public:
36 KexiDBTextWidgetInterface();
37 ~KexiDBTextWidgetInterface();
38
40 void setColumnInfo(KexiDB::QueryColumnInfo* cinfo, TQWidget *w);
41
43 void paint( TQFrame *w, TQPainter *p, bool textIsEmpty, int alignment, bool hasFocus );
44
46 void event( TQEvent * e, TQWidget *w, bool textIsEmpty );
47
48 protected:
51};
52
53#endif
void setColumnInfo(KexiDB::QueryColumnInfo *cinfo, TQWidget *w)
Called from KexiFormDataItemInterface::setColumnInfo(KexiDB::QueryColumnInfo* cinfo) implementation.
void event(TQEvent *e, TQWidget *w, bool textIsEmpty)
Called from event( TQEvent * e ) method of the data aware widget.
void paint(TQFrame *w, TQPainter *p, bool textIsEmpty, int alignment, bool hasFocus)
Called from paintEvent( TQPaintEvent *pe ) method of the data aware widget.
KexiDisplayUtils::DisplayParameters * m_autonumberDisplayParameters
parameters for displaying autonumber sign
Helper class that assigns additional information for the column in a query.
Definition queryschema.h:49
Stores set of display parameters used in utility functions.
High-level database connectivity library with database backend drivers.