/***************************************************************************
                            qt_QDataTable.h -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef QT_QDATATABLE
#define QT_QDATATABLE

#include <qtc/qtc_types.h>

#define QDATATABLE_RefreshData	1
#define QDATATABLE_RefreshColumns	2
#define QDATATABLE_RefreshAll	3
qt_QDataTable * qt_new_QDataTable(qt_QWidget * parent, char* name);
qt_QDataTable * qt_new_QDataTable1(qt_QSqlCursor* cursor, int autoPopulate, qt_QWidget * parent, char* name);
void qt_del_QDataTable( qt_QDataTable* p );
void qt_QDataTable_addColumn(qt_QDataTable* instPointer,qt_QString * fieldName, qt_QString * label, int width, qt_QIconSet* iconset);
void qt_QDataTable_removeColumn(qt_QDataTable* instPointer,unsigned int col);
void qt_QDataTable_setColumn(qt_QDataTable* instPointer,unsigned int col, qt_QString * fieldName, qt_QString * label, int width, qt_QIconSet* iconset);
qt_QString * qt_QDataTable_nullText(qt_QDataTable* instPointer);
qt_QString * qt_QDataTable_trueText(qt_QDataTable* instPointer);
qt_QString * qt_QDataTable_falseText(qt_QDataTable* instPointer);
int qt_QDataTable_dateFormat(qt_QDataTable* instPointer);
int qt_QDataTable_confirmEdits(qt_QDataTable* instPointer);
int qt_QDataTable_confirmInsert(qt_QDataTable* instPointer);
int qt_QDataTable_confirmUpdate(qt_QDataTable* instPointer);
int qt_QDataTable_confirmDelete(qt_QDataTable* instPointer);
int qt_QDataTable_confirmCancels(qt_QDataTable* instPointer);
int qt_QDataTable_autoDelete(qt_QDataTable* instPointer);
int qt_QDataTable_autoEdit(qt_QDataTable* instPointer);
qt_QString * qt_QDataTable_filter(qt_QDataTable* instPointer);
qt_QStringList* qt_QDataTable_sort(qt_QDataTable* instPointer);
void qt_QDataTable_setSqlCursor(qt_QDataTable* instPointer,qt_QSqlCursor* cursor, int autoPopulate, int autoDelete);
qt_QSqlCursor* qt_QDataTable_sqlCursor(qt_QDataTable* instPointer);
void qt_QDataTable_setNullText(qt_QDataTable* instPointer,qt_QString * nullText);
void qt_QDataTable_setTrueText(qt_QDataTable* instPointer,qt_QString * trueText);
void qt_QDataTable_setFalseText(qt_QDataTable* instPointer,qt_QString * falseText);
void qt_QDataTable_setDateFormat(qt_QDataTable* instPointer,int f);
void qt_QDataTable_setConfirmEdits(qt_QDataTable* instPointer,int confirm);
void qt_QDataTable_setConfirmInsert(qt_QDataTable* instPointer,int confirm);
void qt_QDataTable_setConfirmUpdate(qt_QDataTable* instPointer,int confirm);
void qt_QDataTable_setConfirmDelete(qt_QDataTable* instPointer,int confirm);
void qt_QDataTable_setConfirmCancels(qt_QDataTable* instPointer,int confirm);
void qt_QDataTable_setAutoDelete(qt_QDataTable* instPointer,int enable);
void qt_QDataTable_setAutoEdit(qt_QDataTable* instPointer,int autoEdit);
void qt_QDataTable_setFilter(qt_QDataTable* instPointer,qt_QString * filter);
void qt_QDataTable_setSort(qt_QDataTable* instPointer,qt_QStringList* sort);
void qt_QDataTable_setSort1(qt_QDataTable* instPointer,qt_QSqlIndex* sort);
void qt_QDataTable_refresh(qt_QDataTable* instPointer,int mode);
void qt_QDataTable_sortColumn(qt_QDataTable* instPointer,int col, int ascending, int wholeRows);
qt_QString * qt_QDataTable_text(qt_QDataTable* instPointer,int row, int col);
qt_QVariant * qt_QDataTable_value(qt_QDataTable* instPointer,int row, int col);
qt_QSqlRecord* qt_QDataTable_currentRecord(qt_QDataTable* instPointer);
void qt_QDataTable_installEditorFactory(qt_QDataTable* instPointer,qt_QSqlEditorFactory* f);
void qt_QDataTable_installPropertyMap(qt_QDataTable* instPointer,qt_QSqlPropertyMap* m);
int qt_QDataTable_numCols(qt_QDataTable* instPointer);
int qt_QDataTable_numRows(qt_QDataTable* instPointer);
void qt_QDataTable_setNumCols(qt_QDataTable* instPointer,int c);
void qt_QDataTable_setNumRows(qt_QDataTable* instPointer,int r);
int qt_QDataTable_findBuffer(qt_QDataTable* instPointer,qt_QSqlIndex* idx, int atHint);
void qt_QDataTable_find(qt_QDataTable* instPointer,qt_QString * str, int caseSensitive, int backwards);
void qt_QDataTable_sortAscending(qt_QDataTable* instPointer,int col);
void qt_QDataTable_sortDescending(qt_QDataTable* instPointer,int col);
void qt_QDataTable_refresh1(qt_QDataTable* instPointer);
void qt_QDataTable_setColumnWidth(qt_QDataTable* instPointer,int col, int w);
int qt_QDataTable_insertCurrent(qt_QDataTable* instPointer);
int qt_QDataTable_updateCurrent(qt_QDataTable* instPointer);
int qt_QDataTable_deleteCurrent(qt_QDataTable* instPointer);
int qt_QDataTable_confirmEdit(qt_QDataTable* instPointer,int m);
int qt_QDataTable_confirmCancel(qt_QDataTable* instPointer,int m);
void qt_QDataTable_handleError(qt_QDataTable* instPointer,qt_QSqlError* e);
int qt_QDataTable_beginInsert(qt_QDataTable* instPointer);
qt_QWidget * qt_QDataTable_beginUpdate(qt_QDataTable* instPointer,int row, int col, int replace);
int qt_QDataTable_eventFilter(qt_QDataTable* instPointer,qt_QObject * o, qt_QEvent * e);
void qt_QDataTable_endEdit(qt_QDataTable* instPointer,int row, int col, int accept, int replace);
qt_QWidget * qt_QDataTable_createEditor(qt_QDataTable* instPointer,int row, int col, int initFromCell);
void qt_QDataTable_activateNextCell(qt_QDataTable* instPointer);
int qt_QDataTable_indexOf(qt_QDataTable* instPointer,unsigned int i);
void qt_QDataTable_reset(qt_QDataTable* instPointer);
void qt_QDataTable_setSize(qt_QDataTable* instPointer,qt_QSqlCursor* sql);
void qt_QDataTable_repaintCell(qt_QDataTable* instPointer,int row, int col);
void qt_QDataTable_paintCell(qt_QDataTable* instPointer,qt_QPainter * p, int row, int col, qt_QRect* cr, int selected, qt_QColorGroup * cg);
void qt_QDataTable_paintField(qt_QDataTable* instPointer,qt_QPainter * p, qt_QSqlField* field, qt_QRect* cr, int selected);
int qt_QDataTable_fieldAlignment(qt_QDataTable* instPointer,qt_QSqlField* field);
void qt_QDataTable_columnClicked(qt_QDataTable* instPointer,int col);
void qt_QDataTable_resizeData(qt_QDataTable* instPointer,int len);
qt_QTableItem* qt_QDataTable_item(qt_QDataTable* instPointer,int row, int col);
void qt_QDataTable_setItem(qt_QDataTable* instPointer,int row, int col, qt_QTableItem* item);
void qt_QDataTable_clearCell(qt_QDataTable* instPointer,int row, int col);
void qt_QDataTable_setPixmap(qt_QDataTable* instPointer,int row, int col, qt_QPixmap * pix);
void qt_QDataTable_takeItem(qt_QDataTable* instPointer,qt_QTableItem* i);

#endif
