kexi

kexitableitem.cpp

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002   Lucijan Busch <lucijan@gmx.at>
00003    Copyright (C) 2003   Daniel Molkentin <molkentin@kde.org>
00004    Copyright (C) 2003 Jaroslaw Staniek <js@iidea.pl>
00005 
00006    This program is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this program; see the file COPYING.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020 
00021    Original Author:  Till Busch <till@bux.at>
00022    Original Project: buX (www.bux.at)
00023 */
00024 
00025 #include "kexitableitem.h"
00026 
00027 #include <kdebug.h>
00028 
00029 KexiTableItem::KexiTableItem(int numCols)
00030 : KexiTableItemBase(numCols)
00031 {
00032 //js    m_userData=0;
00033 //js    m_columns.resize(numCols);
00034 //js    m_insertItem = false;
00035 //js    m_pTable = 0;
00036 }
00037 
00038 KexiTableItem::~KexiTableItem()
00039 {
00040 }
00041 
00042 void
00043 KexiTableItem::init(int numCols)
00044 {
00045     clear();
00046     resize(numCols);
00047 }
00048 
00049 void
00050 KexiTableItem::clearValues()
00051 {
00052     init(count());
00053 }
00054 
00055 void
00056 KexiTableItem::debug() const
00057 {
00058     QString s = QString("KexiTableItem (%1 items)").arg(size());
00059     for (uint i = 0; i < size(); i++)
00060         s.append( QString::number(i)+":"+at(i).toString()+" " );
00061     kexidbg << s << endl;
00062 }
KDE Home | KDE Accessibility Home | Description of Access Keys