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 //moved , autonumberIcon( qembed_findData("autonumber.png") )
00038 {
00039     clearVariables();
00040     tv = t;
00041 //moved pInsertItem = 0;
00042 
00043     editOnDoubleClick = true;
00044     pBufferPm = 0;
00045 //moved deletionPolicy = KexiTableView::AskDelete;
00046     disableDrawContents = false;
00047 //moved readOnly = -1; //don't know
00048 //moved insertingEnabled = -1; //don't know
00049     
00050 //moved contentsMousePressEvent_dblClick = false;
00051 //moved isSortingEnabled = true;
00052     navigatorEnabled = true;
00053     contextMenuEnabled = true;
00054 //moved filteringEnabled = true;
00055 //moved navPanel = 0;
00056     skipKeyPress = false;
00057     vScrollBarValueChanged_enabled = true;
00058     scrollbarToolTipsEnabled = true;
00059     scrollBarTipTimerCnt = 0;
00060     scrollBarTip = 0;
00061 //moved inside_acceptEditor = false;
00062 //moved internal_acceptsRowEditAfterCellAccepting = false;
00063 //moved acceptsRowEditAfterCellAccepting = false;
00064 //moved emptyRowInsertingEnabled = false;
00065 //moved dragIndicatorLine = -1;
00066 //moved     rowWillBeDeleted = -1;
00067 //  dropsAtRowEnabled = false;
00068 //moved initDataContentsOnShow = false;
00069 //moved cursorPositionSetExplicityBeforeShow = false;
00070 //moved verticalHeaderAlreadyAdded = false;
00071     ensureCellVisibleOnShow = QPoint(-1,-1);
00072 //moved spreadSheetMode = false;
00073     internal_bottomMargin = tv->horizontalScrollBar()->sizeHint().height()/2;
00074     highlightedRow = -1;
00075     moveCursorOnMouseRelease = false;
00076 }
00077 
00078 KexiTableViewPrivate::~KexiTableViewPrivate()
00079 {
00080     delete pBufferPm;
00081 //moved delete pInsertItem;
00082 //moved delete pRowEditBuffer;
00083     delete scrollBarTip;
00084 }
00085 
00086 void KexiTableViewPrivate::clearVariables()
00087 {
00088     // Initialize variables
00089 //moved pEditor = 0;
00090 //  numRows = 0;
00091 //moved curRow = -1;
00092 //moved curCol = -1;
00093 //moved pCurrentItem=0;
00094 //moved pRowEditBuffer=0;
00095 //  pInsertItem = 0;
00096 //moved rowEditing = false;
00097 //moved newRowEditing = false;
00098 //  sortedColumn = -1;
00099 //  sortOrder = true;
00100 //  recordIndicator = false;
00101 }
00102 
KDE Home | KDE Accessibility Home | Description of Access Keys