/***************************************************************************
                            qt_QTable.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_QTABLE
#define QT_QTABLE

#include <qtc/qtc_types.h>

#define QTABLE_Single	0
#define QTABLE_Multi	1
#define QTABLE_SingleRow	2
#define QTABLE_MultiRow	3
#define QTABLE_NoSelection	4
#define QTABLE_FollowStyle	0
#define QTABLE_SpreadSheet	1
qt_QTable * qt_new_QTable(qt_QWidget * parent, char* name);
qt_QTable * qt_new_QTable1(int numRows, int numCols, qt_QWidget * parent, char* name);
void qt_del_QTable( qt_QTable* p );
qt_QHeader * qt_QTable_horizontalHeader(qt_QTable* instPointer);
qt_QHeader * qt_QTable_verticalHeader(qt_QTable* instPointer);
void qt_QTable_setSelectionMode(qt_QTable* instPointer,int mode);
int qt_QTable_selectionMode(qt_QTable* instPointer);
void qt_QTable_setItem(qt_QTable* instPointer,int row, int col, qt_QTableItem* item);
void qt_QTable_setText(qt_QTable* instPointer,int row, int col, qt_QString * text);
void qt_QTable_setPixmap(qt_QTable* instPointer,int row, int col, qt_QPixmap * pix);
qt_QTableItem* qt_QTable_item(qt_QTable* instPointer,int row, int col);
qt_QString * qt_QTable_text(qt_QTable* instPointer,int row, int col);
qt_QPixmap * qt_QTable_pixmap(qt_QTable* instPointer,int row, int col);
void qt_QTable_clearCell(qt_QTable* instPointer,int row, int col);
qt_QRect* qt_QTable_cellGeometry(qt_QTable* instPointer,int row, int col);
int qt_QTable_columnWidth(qt_QTable* instPointer,int col);
int qt_QTable_rowHeight(qt_QTable* instPointer,int row);
int qt_QTable_columnPos(qt_QTable* instPointer,int col);
int qt_QTable_rowPos(qt_QTable* instPointer,int row);
int qt_QTable_columnAt(qt_QTable* instPointer,int x);
int qt_QTable_rowAt(qt_QTable* instPointer,int y);
int qt_QTable_numRows(qt_QTable* instPointer);
int qt_QTable_numCols(qt_QTable* instPointer);
void qt_QTable_updateCell(qt_QTable* instPointer,int row, int col);
int qt_QTable_eventFilter(qt_QTable* instPointer,qt_QObject * o, qt_QEvent * arg1);
int qt_QTable_currentRow(qt_QTable* instPointer);
int qt_QTable_currentColumn(qt_QTable* instPointer);
void qt_QTable_ensureCellVisible(qt_QTable* instPointer,int row, int col);
int qt_QTable_isSelected(qt_QTable* instPointer,int row, int col);
int qt_QTable_isRowSelected(qt_QTable* instPointer,int row, int full);
int qt_QTable_isColumnSelected(qt_QTable* instPointer,int col, int full);
int qt_QTable_numSelections(qt_QTable* instPointer);
qt_QTableSelection* qt_QTable_selection(qt_QTable* instPointer,int num);
int qt_QTable_addSelection(qt_QTable* instPointer,qt_QTableSelection* s);
void qt_QTable_removeSelection(qt_QTable* instPointer,qt_QTableSelection* s);
void qt_QTable_removeSelection1(qt_QTable* instPointer,int num);
int qt_QTable_currentSelection(qt_QTable* instPointer);
int qt_QTable_showGrid(qt_QTable* instPointer);
int qt_QTable_columnMovingEnabled(qt_QTable* instPointer);
int qt_QTable_rowMovingEnabled(qt_QTable* instPointer);
void qt_QTable_sortColumn(qt_QTable* instPointer,int col, int ascending, int wholeRows);
int qt_QTable_sorting(qt_QTable* instPointer);
void qt_QTable_takeItem(qt_QTable* instPointer,qt_QTableItem* i);
void qt_QTable_setCellWidget(qt_QTable* instPointer,int row, int col, qt_QWidget * e);
qt_QWidget * qt_QTable_cellWidget(qt_QTable* instPointer,int row, int col);
void qt_QTable_clearCellWidget(qt_QTable* instPointer,int row, int col);
qt_QRect* qt_QTable_cellRect(qt_QTable* instPointer,int row, int col);
void qt_QTable_paintCell(qt_QTable* instPointer,qt_QPainter * p, int row, int col, qt_QRect* cr, int selected);
void qt_QTable_paintCell1(qt_QTable* instPointer,qt_QPainter * p, int row, int col, qt_QRect* cr, int selected, qt_QColorGroup * cg);
void qt_QTable_paintFocus(qt_QTable* instPointer,qt_QPainter * p, qt_QRect* r);
qt_QSize * qt_QTable_sizeHint(qt_QTable* instPointer);
int qt_QTable_isReadOnly(qt_QTable* instPointer);
int qt_QTable_isRowReadOnly(qt_QTable* instPointer,int row);
int qt_QTable_isColumnReadOnly(qt_QTable* instPointer,int col);
void qt_QTable_setEnabled(qt_QTable* instPointer,int b);
void qt_QTable_repaintSelections(qt_QTable* instPointer);
void qt_QTable_setFocusStyle(qt_QTable* instPointer,int fs);
int qt_QTable_focusStyle(qt_QTable* instPointer);
void qt_QTable_setNumRows(qt_QTable* instPointer,int r);
void qt_QTable_setNumCols(qt_QTable* instPointer,int r);
void qt_QTable_setShowGrid(qt_QTable* instPointer,int b);
void qt_QTable_hideRow(qt_QTable* instPointer,int row);
void qt_QTable_hideColumn(qt_QTable* instPointer,int col);
void qt_QTable_showRow(qt_QTable* instPointer,int row);
void qt_QTable_showColumn(qt_QTable* instPointer,int col);
void qt_QTable_setColumnWidth(qt_QTable* instPointer,int col, int w);
void qt_QTable_setRowHeight(qt_QTable* instPointer,int row, int h);
void qt_QTable_adjustColumn(qt_QTable* instPointer,int col);
void qt_QTable_adjustRow(qt_QTable* instPointer,int row);
void qt_QTable_setColumnStretchable(qt_QTable* instPointer,int col, int stretch);
void qt_QTable_setRowStretchable(qt_QTable* instPointer,int row, int stretch);
int qt_QTable_isColumnStretchable(qt_QTable* instPointer,int col);
int qt_QTable_isRowStretchable(qt_QTable* instPointer,int row);
void qt_QTable_setSorting(qt_QTable* instPointer,int b);
void qt_QTable_swapRows(qt_QTable* instPointer,int row1, int row2, int swapHeader);
void qt_QTable_swapColumns(qt_QTable* instPointer,int col1, int col2, int swapHeader);
void qt_QTable_swapCells(qt_QTable* instPointer,int row1, int col1, int row2, int col2);
void qt_QTable_setLeftMargin(qt_QTable* instPointer,int m);
void qt_QTable_setTopMargin(qt_QTable* instPointer,int m);
void qt_QTable_setCurrentCell(qt_QTable* instPointer,int row, int col);
void qt_QTable_clearSelection(qt_QTable* instPointer,int repaint);
void qt_QTable_setColumnMovingEnabled(qt_QTable* instPointer,int b);
void qt_QTable_setRowMovingEnabled(qt_QTable* instPointer,int b);
void qt_QTable_setReadOnly(qt_QTable* instPointer,int b);
void qt_QTable_setRowReadOnly(qt_QTable* instPointer,int row, int ro);
void qt_QTable_setColumnReadOnly(qt_QTable* instPointer,int col, int ro);
void qt_QTable_setDragEnabled(qt_QTable* instPointer,int b);
int qt_QTable_dragEnabled(qt_QTable* instPointer);
void qt_QTable_insertRows(qt_QTable* instPointer,int row, int count);
void qt_QTable_insertColumns(qt_QTable* instPointer,int col, int count);
void qt_QTable_removeRow(qt_QTable* instPointer,int row);
void qt_QTable_removeColumn(qt_QTable* instPointer,int col);
void qt_QTable_editCell(qt_QTable* instPointer,int row, int col, int replace);
#define QTABLE_NotEditing	0
#define QTABLE_Editing	1
#define QTABLE_Replacing	2
void qt_QTable_drawContents(qt_QTable* instPointer,qt_QPainter * p, int cx, int cy, int cw, int ch);
void qt_QTable_setEditMode(qt_QTable* instPointer,int mode, int row, int col);
qt_QDragObject* qt_QTable_dragObject(qt_QTable* instPointer);
void qt_QTable_startDrag(qt_QTable* instPointer);
void qt_QTable_paintEmptyArea(qt_QTable* instPointer,qt_QPainter * p, int cx, int cy, int cw, int ch);
void qt_QTable_activateNextCell(qt_QTable* instPointer);
qt_QWidget * qt_QTable_createEditor(qt_QTable* instPointer,int row, int col, int initFromCell);
void qt_QTable_setCellContentFromEditor(qt_QTable* instPointer,int row, int col);
qt_QWidget * qt_QTable_beginEdit(qt_QTable* instPointer,int row, int col, int replace);
void qt_QTable_endEdit(qt_QTable* instPointer,int row, int col, int accept, int replace);
void qt_QTable_resizeData(qt_QTable* instPointer,int len);
void qt_QTable_insertWidget(qt_QTable* instPointer,int row, int col, qt_QWidget * w);
int qt_QTable_indexOf(qt_QTable* instPointer,int row, int col);
void qt_QTable_windowActivationChange(qt_QTable* instPointer,int arg1);
int qt_QTable_isEditing(qt_QTable* instPointer);
int qt_QTable_editMode(qt_QTable* instPointer);
int qt_QTable_currEditRow(qt_QTable* instPointer);
int qt_QTable_currEditCol(qt_QTable* instPointer);
void qt_QTable_columnWidthChanged(qt_QTable* instPointer,int col);
void qt_QTable_rowHeightChanged(qt_QTable* instPointer,int row);
void qt_QTable_columnIndexChanged(qt_QTable* instPointer,int section, int fromIndex, int toIndex);
void qt_QTable_rowIndexChanged(qt_QTable* instPointer,int section, int fromIndex, int toIndex);
void qt_QTable_columnClicked(qt_QTable* instPointer,int col);

#endif
