kexi

kexitableview_p.cpp
1/* This file is part of the KDE project
2 Copyright (C) 2002 Till Busch <till@bux.at>
3 Copyright (C) 2003 Lucijan Busch <lucijan@gmx.at>
4 Copyright (C) 2003 Daniel Molkentin <molkentin@kde.org>
5 Copyright (C) 2003 Joseph Wenninger <jowenn@kde.org>
6 Copyright (C) 2003-2004 Jaroslaw Staniek <js@iidea.pl>
7
8 This program is free software; you can redistribute it and,or
9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
17
18 You should have received a copy of the GNU Library General Public License
19 along with this program; see the file COPYING. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22
23 Original Author: Till Busch <till@bux.at>
24 Original Project: buX (www.bux.at)
25*/
26
27#include "kexitableview_p.h"
28#include "kexitableedit.h"
29
30#include <tqlabel.h>
31
32#include <tdeglobalsettings.h>
33
34
35KexiTableViewPrivate::KexiTableViewPrivate(KexiTableView* t)
36 : appearance(t)
37{
38 clearVariables();
39 tv = t;
40 editOnDoubleClick = true;
41 pBufferPm = 0;
42 disableDrawContents = false;
43 navigatorEnabled = true;
44 contextMenuEnabled = true;
45 skipKeyPress = false;
46//moved vScrollBarValueChanged_enabled = true;
47//moved scrollbarToolTipsEnabled = true;
48//moved scrollBarTipTimerCnt = 0;
49//moved scrollBarTip = 0;
50 ensureCellVisibleOnShow = TQPoint(-1,-1);
51 internal_bottomMargin = tv->horizontalScrollBar()->sizeHint().height()/2;
52 highlightedRow = -1;
53 moveCursorOnMouseRelease = false;
54 horizontalHeaderVisible = true;
55 recentCellWithToolTip = TQPoint(-1,-1);
56}
57
58KexiTableViewPrivate::~KexiTableViewPrivate()
59{
60 delete pBufferPm;
61//moved delete scrollBarTip;
62}
63
64void KexiTableViewPrivate::clearVariables()
65{
66 // Initialize variables
67}
KexiTableView class provides a widget for displaying data in a tabular view.