kexi
kexitableview_p.cpp
00001 /* This file is part of the KDE project 00002 Copyright (C) 2002 Till Busch <till@bux.at> 00003 Copyright (C) 2003 Lucijan Busch <lucijan@gmx.at> 00004 Copyright (C) 2003 Daniel Molkentin <molkentin@kde.org> 00005 Copyright (C) 2003 Joseph Wenninger <jowenn@kde.org> 00006 Copyright (C) 2003-2004 Jaroslaw Staniek <js@iidea.pl> 00007 00008 This program is free software; you can redistribute it and,or 00009 modify it under the terms of the GNU Library General Public 00010 License as published by the Free Software Foundation; either 00011 version 2 of the License, or (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Library General Public License for more details. 00017 00018 You should have received a copy of the GNU Library General Public License 00019 along with this program; see the file COPYING. If not, write to 00020 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00021 * Boston, MA 02110-1301, USA. 00022 00023 Original Author: Till Busch <till@bux.at> 00024 Original Project: buX (www.bux.at) 00025 */ 00026 00027 #include "kexitableview_p.h" 00028 #include "kexitableedit.h" 00029 00030 #include <qlabel.h> 00031 00032 #include <kglobalsettings.h> 00033 00034 00035 KexiTableViewPrivate::KexiTableViewPrivate(KexiTableView* t) 00036 : appearance(t) 00037 { 00038 clearVariables(); 00039 tv = t; 00040 editOnDoubleClick = true; 00041 pBufferPm = 0; 00042 disableDrawContents = false; 00043 navigatorEnabled = true; 00044 contextMenuEnabled = true; 00045 skipKeyPress = false; 00046 //moved vScrollBarValueChanged_enabled = true; 00047 //moved scrollbarToolTipsEnabled = true; 00048 //moved scrollBarTipTimerCnt = 0; 00049 //moved scrollBarTip = 0; 00050 ensureCellVisibleOnShow = QPoint(-1,-1); 00051 internal_bottomMargin = tv->horizontalScrollBar()->sizeHint().height()/2; 00052 highlightedRow = -1; 00053 moveCursorOnMouseRelease = false; 00054 horizontalHeaderVisible = true; 00055 recentCellWithToolTip = QPoint(-1,-1); 00056 } 00057 00058 KexiTableViewPrivate::~KexiTableViewPrivate() 00059 { 00060 delete pBufferPm; 00061 //moved delete scrollBarTip; 00062 } 00063 00064 void KexiTableViewPrivate::clearVariables() 00065 { 00066 // Initialize variables 00067 }