/***************************************************************************
                            QTable.m -  description
                             -------------------
    begin                : Wed Nov 21 12:08:37 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 12:08:37 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.                       *
 *                                                                         *
 ***************************************************************************/

#include <qtc/qt_QString.h>
#include <qtc/qt_QCString.h>
#include <qtc/qt_QTable.h>
#include <qtobjc/QTable.h>
#include <qtobjc/QColorGroup.h>
#include <qtobjc/QRect.h>

#include <qtobjc/QTableItem.h>
#include <qtobjc/QColorGroup.h>
#include <qtobjc/QRect.h>

#include <qtobjc/QPixmap.h>
#include <qtobjc/QTableSelection.h>
#include <qtobjc/QColorGroup.h>
#include <qtobjc/QRect.h>

#include <qtobjc/QTableItem.h>
#include <qtobjc/QColorGroup.h>
#include <qtobjc/QRect.h>

#include <qtobjc/QPainter.h>

@implementation  QTable


- initWithWidget: (QWidget *)parent name: (NSString *)name
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QTable((qt_QWidget *) [parent qt], (char*) [name cString])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- init
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QTable(0, 0)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithInt: (int)numRows numCols: (int)numCols parent: (QWidget *)parent name: (NSString *)name
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QTable1((int)numRows, (int)numCols, (qt_QWidget *) [parent qt], (char*) [name cString])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithInt: (int)numRows numCols: (int)numCols 
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QTable1((int)numRows, (int)numCols, 0, 0)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- (void) dealloc
{
	if ([self qt] != 0L) {
		if ([self allocatedInObjcWorld] && [self parentWidget: YES] == nil) {
			qt_del_QTable((qt_QTable *)[self qt]);
		}
		[QtSupport removeQtKey: [self qt]];
		[self setQt: 0L];
	}
	[super dealloc];
}

- (QHeader*) horizontalHeader
{
	return (QHeader*) [QtSupport objectForQtKey: qt_QTable_horizontalHeader((qt_QTable *)[self qt]) withClass: [QHeader class] allocatedInObjcWorld: YES];
}

- (QHeader*) verticalHeader
{
	return (QHeader*) [QtSupport objectForQtKey: qt_QTable_verticalHeader((qt_QTable *)[self qt]) withClass: [QHeader class] allocatedInObjcWorld: YES];
}

- setSelectionMode: (int)mode
{
	qt_QTable_setSelectionMode((qt_QTable *)[self qt], (int)mode);
	return self;
}

- (int) selectionMode
{
	return (int) qt_QTable_selectionMode((qt_QTable *)[self qt]);
}

- setItem: (int)row col: (int)col item: (QTableItem*)item
{
	qt_QTable_setItem((qt_QTable *)[self qt], (int)row, (int)col, (qt_QTableItem*) [item qt]);
	return self;
}

- setText: (int)row col: (int)col text: (NSString *)text
{
static qt_QString * _qstring_text = 0L;
	qt_QTable_setText((qt_QTable *)[self qt], (int)row, (int)col, (qt_QString *) [text toQString: &_qstring_text]);
	return self;
}

- setPixmap: (int)row col: (int)col pix: (QPixmap *)pix
{
	qt_QTable_setPixmap((qt_QTable *)[self qt], (int)row, (int)col, (qt_QPixmap *) [pix qt]);
	return self;
}

- (QTableItem*) item: (int)row col: (int)col
{
	return (QTableItem*) [QtSupport objectForQtKey: qt_QTable_item((qt_QTable *)[self qt], (int)row, (int)col) withClass: [QTableItem class] allocatedInObjcWorld: YES];
}

- (NSString *) text: (int)row col: (int)col
{
static qt_QString * _qstring = 0L;
	_qstring = qt_QTable_text((qt_QTable *)[self qt], (int)row, (int)col);
	return [NSString fromQString: _qstring];
}

- (QPixmap*) pixmap: (int)row col: (int)col
{
	return (QPixmap*) [QtSupport objectForQtKey: qt_QTable_pixmap((qt_QTable *)[self qt], (int)row, (int)col) withClass: [QPixmap class] allocatedInObjcWorld: YES];
}

- clearCell: (int)row col: (int)col
{
	qt_QTable_clearCell((qt_QTable *)[self qt], (int)row, (int)col);
	return self;
}

- (QRect*) cellGeometry: (int)row col: (int)col
{
	return (QRect*) [QtSupport objectForQtKey: qt_QTable_cellGeometry((qt_QTable *)[self qt], (int)row, (int)col) withClass: [QRect class] allocatedInObjcWorld: YES];
}

- (int) columnWidth: (int)col
{
	return (int) qt_QTable_columnWidth((qt_QTable *)[self qt], (int)col);
}

- (int) rowHeight: (int)row
{
	return (int) qt_QTable_rowHeight((qt_QTable *)[self qt], (int)row);
}

- (int) columnPos: (int)col
{
	return (int) qt_QTable_columnPos((qt_QTable *)[self qt], (int)col);
}

- (int) rowPos: (int)row
{
	return (int) qt_QTable_rowPos((qt_QTable *)[self qt], (int)row);
}

- (int) columnAt: (int)x
{
	return (int) qt_QTable_columnAt((qt_QTable *)[self qt], (int)x);
}

- (int) rowAt: (int)y
{
	return (int) qt_QTable_rowAt((qt_QTable *)[self qt], (int)y);
}

- (int) numRows
{
	return (int) qt_QTable_numRows((qt_QTable *)[self qt]);
}

- (int) numCols
{
	return (int) qt_QTable_numCols((qt_QTable *)[self qt]);
}

- updateCell: (int)row col: (int)col
{
	qt_QTable_updateCell((qt_QTable *)[self qt], (int)row, (int)col);
	return self;
}

- (BOOL) eventFilter: (QObject *)o event: (QEvent *)arg1
{
	return (BOOL) qt_QTable_eventFilter((qt_QTable *)[self qt], (qt_QObject *) [o qt], (qt_QEvent *) [arg1 qt]);
}

- (int) currentRow
{
	return (int) qt_QTable_currentRow((qt_QTable *)[self qt]);
}

- (int) currentColumn
{
	return (int) qt_QTable_currentColumn((qt_QTable *)[self qt]);
}

- ensureCellVisible: (int)row col: (int)col
{
	qt_QTable_ensureCellVisible((qt_QTable *)[self qt], (int)row, (int)col);
	return self;
}

- (BOOL) isSelected: (int)row col: (int)col
{
	return (BOOL) qt_QTable_isSelected((qt_QTable *)[self qt], (int)row, (int)col);
}

- (BOOL) isRowSelected: (int)row full: (BOOL)full
{
	return (BOOL) qt_QTable_isRowSelected((qt_QTable *)[self qt], (int)row, (int)full);
}

- (BOOL) isRowSelected: (int)row 
{
	return (BOOL) qt_QTable_isRowSelected((qt_QTable *)[self qt], (int)row, 0);
}

- (BOOL) isColumnSelected: (int)col full: (BOOL)full
{
	return (BOOL) qt_QTable_isColumnSelected((qt_QTable *)[self qt], (int)col, (int)full);
}

- (BOOL) isColumnSelected: (int)col 
{
	return (BOOL) qt_QTable_isColumnSelected((qt_QTable *)[self qt], (int)col, 0);
}

- (int) numSelections
{
	return (int) qt_QTable_numSelections((qt_QTable *)[self qt]);
}

- (QTableSelection*) selection: (int)num
{
	return (QTableSelection*) [QtSupport objectForQtKey: qt_QTable_selection((qt_QTable *)[self qt], (int)num) withClass: [QTableSelection class] allocatedInObjcWorld: YES];
}

- (int) addSelection: (QTableSelection*)s
{
	return (int) qt_QTable_addSelection((qt_QTable *)[self qt], (qt_QTableSelection*) [s qt]);
}

- removeSelection: (QTableSelection*)s
{
	qt_QTable_removeSelection((qt_QTable *)[self qt], (qt_QTableSelection*) [s qt]);
	return self;
}

- removeSelectionAt: (int)num
{
	qt_QTable_removeSelection1((qt_QTable *)[self qt], (int)num);
	return self;
}

- (int) currentSelection
{
	return (int) qt_QTable_currentSelection((qt_QTable *)[self qt]);
}

- (BOOL) showGrid
{
	return (BOOL) qt_QTable_showGrid((qt_QTable *)[self qt]);
}

- (BOOL) columnMovingEnabled
{
	return (BOOL) qt_QTable_columnMovingEnabled((qt_QTable *)[self qt]);
}

- (BOOL) rowMovingEnabled
{
	return (BOOL) qt_QTable_rowMovingEnabled((qt_QTable *)[self qt]);
}

- sortColumn: (int)col ascending: (BOOL)ascending wholeRows: (BOOL)wholeRows
{
	qt_QTable_sortColumn((qt_QTable *)[self qt], (int)col, (int)ascending, (int)wholeRows);
	return self;
}

- sortColumn: (int)col 
{
	qt_QTable_sortColumn((qt_QTable *)[self qt], (int)col, 1, 0);
	return self;
}

- (BOOL) sorting
{
	return (BOOL) qt_QTable_sorting((qt_QTable *)[self qt]);
}

- takeItem: (QTableItem*)i
{
	qt_QTable_takeItem((qt_QTable *)[self qt], (qt_QTableItem*) [i qt]);
	return self;
}

- setCellWidget: (int)row col: (int)col e: (QWidget *)e
{
	qt_QTable_setCellWidget((qt_QTable *)[self qt], (int)row, (int)col, (qt_QWidget *) [e qt]);
	return self;
}

- (QWidget*) cellWidget: (int)row col: (int)col
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QTable_cellWidget((qt_QTable *)[self qt], (int)row, (int)col) withClass: [QWidget class] allocatedInObjcWorld: YES];
}

- clearCellWidget: (int)row col: (int)col
{
	qt_QTable_clearCellWidget((qt_QTable *)[self qt], (int)row, (int)col);
	return self;
}

- (QRect*) cellRect: (int)row col: (int)col
{
	return (QRect*) [QtSupport objectForQtKey: qt_QTable_cellRect((qt_QTable *)[self qt], (int)row, (int)col) withClass: [QRect class] allocatedInObjcWorld: YES];
}

- paintCell: (QPainter *)p row: (int)row col: (int)col cr: (QRect*)cr selected: (BOOL)selected
{
	qt_QTable_paintCell((qt_QTable *)[self qt], (qt_QPainter *) [p qt], (int)row, (int)col, (qt_QRect*) [cr qt], (int)selected);
	return self;
}

- paintCell: (QPainter *)p row: (int)row col: (int)col cr: (QRect*)cr selected: (BOOL)selected cg: (QColorGroup *)cg
{
	qt_QTable_paintCell1((qt_QTable *)[self qt], (qt_QPainter *) [p qt], (int)row, (int)col, (qt_QRect*) [cr qt], (int)selected, (qt_QColorGroup *) [cg qt]);
	return self;
}

- paintFocus: (QPainter *)p r: (QRect*)r
{
	qt_QTable_paintFocus((qt_QTable *)[self qt], (qt_QPainter *) [p qt], (qt_QRect*) [r qt]);
	return self;
}

- (QSize*) sizeHint
{
	return (QSize*) [QtSupport objectForQtKey: qt_QTable_sizeHint((qt_QTable *)[self qt]) withClass: [QSize class] allocatedInObjcWorld: YES];
}

- (BOOL) isReadOnly
{
	return (BOOL) qt_QTable_isReadOnly((qt_QTable *)[self qt]);
}

- (BOOL) isRowReadOnly: (int)row
{
	return (BOOL) qt_QTable_isRowReadOnly((qt_QTable *)[self qt], (int)row);
}

- (BOOL) isColumnReadOnly: (int)col
{
	return (BOOL) qt_QTable_isColumnReadOnly((qt_QTable *)[self qt], (int)col);
}

- setEnabled: (BOOL)b
{
	qt_QTable_setEnabled((qt_QTable *)[self qt], (int)b);
	return self;
}

- repaintSelections
{
	qt_QTable_repaintSelections((qt_QTable *)[self qt]);
	return self;
}

- setFocusStyle: (int)fs
{
	qt_QTable_setFocusStyle((qt_QTable *)[self qt], (int)fs);
	return self;
}

- (int) focusStyle
{
	return (int) qt_QTable_focusStyle((qt_QTable *)[self qt]);
}

- setNumRows: (int)r
{
	qt_QTable_setNumRows((qt_QTable *)[self qt], (int)r);
	return self;
}

- setNumCols: (int)r
{
	qt_QTable_setNumCols((qt_QTable *)[self qt], (int)r);
	return self;
}

- setShowGrid: (BOOL)b
{
	qt_QTable_setShowGrid((qt_QTable *)[self qt], (int)b);
	return self;
}

- hideRow: (int)row
{
	qt_QTable_hideRow((qt_QTable *)[self qt], (int)row);
	return self;
}

- hideColumn: (int)col
{
	qt_QTable_hideColumn((qt_QTable *)[self qt], (int)col);
	return self;
}

- showRow: (int)row
{
	qt_QTable_showRow((qt_QTable *)[self qt], (int)row);
	return self;
}

- showColumn: (int)col
{
	qt_QTable_showColumn((qt_QTable *)[self qt], (int)col);
	return self;
}

- setColumnWidth: (int)col w: (int)w
{
	qt_QTable_setColumnWidth((qt_QTable *)[self qt], (int)col, (int)w);
	return self;
}

- setRowHeight: (int)row h: (int)h
{
	qt_QTable_setRowHeight((qt_QTable *)[self qt], (int)row, (int)h);
	return self;
}

- adjustColumn: (int)col
{
	qt_QTable_adjustColumn((qt_QTable *)[self qt], (int)col);
	return self;
}

- adjustRow: (int)row
{
	qt_QTable_adjustRow((qt_QTable *)[self qt], (int)row);
	return self;
}

- setColumnStretchable: (int)col stretch: (BOOL)stretch
{
	qt_QTable_setColumnStretchable((qt_QTable *)[self qt], (int)col, (int)stretch);
	return self;
}

- setRowStretchable: (int)row stretch: (BOOL)stretch
{
	qt_QTable_setRowStretchable((qt_QTable *)[self qt], (int)row, (int)stretch);
	return self;
}

- (BOOL) isColumnStretchable: (int)col
{
	return (BOOL) qt_QTable_isColumnStretchable((qt_QTable *)[self qt], (int)col);
}

- (BOOL) isRowStretchable: (int)row
{
	return (BOOL) qt_QTable_isRowStretchable((qt_QTable *)[self qt], (int)row);
}

- setSorting: (BOOL)b
{
	qt_QTable_setSorting((qt_QTable *)[self qt], (int)b);
	return self;
}

- swapRows: (int)row1 row2: (int)row2 swapHeader: (BOOL)swapHeader
{
	qt_QTable_swapRows((qt_QTable *)[self qt], (int)row1, (int)row2, (int)swapHeader);
	return self;
}

- swapRows: (int)row1 row2: (int)row2 
{
	qt_QTable_swapRows((qt_QTable *)[self qt], (int)row1, (int)row2, 0);
	return self;
}

- swapColumns: (int)col1 col2: (int)col2 swapHeader: (BOOL)swapHeader
{
	qt_QTable_swapColumns((qt_QTable *)[self qt], (int)col1, (int)col2, (int)swapHeader);
	return self;
}

- swapColumns: (int)col1 col2: (int)col2 
{
	qt_QTable_swapColumns((qt_QTable *)[self qt], (int)col1, (int)col2, 0);
	return self;
}

- swapCells: (int)row1 col1: (int)col1 row2: (int)row2 col2: (int)col2
{
	qt_QTable_swapCells((qt_QTable *)[self qt], (int)row1, (int)col1, (int)row2, (int)col2);
	return self;
}

- setLeftMargin: (int)m
{
	qt_QTable_setLeftMargin((qt_QTable *)[self qt], (int)m);
	return self;
}

- setTopMargin: (int)m
{
	qt_QTable_setTopMargin((qt_QTable *)[self qt], (int)m);
	return self;
}

- setCurrentCell: (int)row col: (int)col
{
	qt_QTable_setCurrentCell((qt_QTable *)[self qt], (int)row, (int)col);
	return self;
}

- clearSelection: (BOOL)repaint
{
	qt_QTable_clearSelection((qt_QTable *)[self qt], (int)repaint);
	return self;
}

- clearSelection
{
	qt_QTable_clearSelection((qt_QTable *)[self qt], 1);
	return self;
}

- setColumnMovingEnabled: (BOOL)b
{
	qt_QTable_setColumnMovingEnabled((qt_QTable *)[self qt], (int)b);
	return self;
}

- setRowMovingEnabled: (BOOL)b
{
	qt_QTable_setRowMovingEnabled((qt_QTable *)[self qt], (int)b);
	return self;
}

- setReadOnly: (BOOL)b
{
	qt_QTable_setReadOnly((qt_QTable *)[self qt], (int)b);
	return self;
}

- setRowReadOnly: (int)row ro: (BOOL)ro
{
	qt_QTable_setRowReadOnly((qt_QTable *)[self qt], (int)row, (int)ro);
	return self;
}

- setColumnReadOnly: (int)col ro: (BOOL)ro
{
	qt_QTable_setColumnReadOnly((qt_QTable *)[self qt], (int)col, (int)ro);
	return self;
}

- setDragEnabled: (BOOL)b
{
	qt_QTable_setDragEnabled((qt_QTable *)[self qt], (int)b);
	return self;
}

- (BOOL) dragEnabled
{
	return (BOOL) qt_QTable_dragEnabled((qt_QTable *)[self qt]);
}

- insertRows: (int)row count: (int)count
{
	qt_QTable_insertRows((qt_QTable *)[self qt], (int)row, (int)count);
	return self;
}

- insertRows: (int)row 
{
	qt_QTable_insertRows((qt_QTable *)[self qt], (int)row, 1);
	return self;
}

- insertColumns: (int)col count: (int)count
{
	qt_QTable_insertColumns((qt_QTable *)[self qt], (int)col, (int)count);
	return self;
}

- insertColumns: (int)col 
{
	qt_QTable_insertColumns((qt_QTable *)[self qt], (int)col, 1);
	return self;
}

- removeRow: (int)row
{
	qt_QTable_removeRow((qt_QTable *)[self qt], (int)row);
	return self;
}

- removeColumn: (int)col
{
	qt_QTable_removeColumn((qt_QTable *)[self qt], (int)col);
	return self;
}

- editCell: (int)row col: (int)col replace: (BOOL)replace
{
	qt_QTable_editCell((qt_QTable *)[self qt], (int)row, (int)col, (int)replace);
	return self;
}

- editCell: (int)row col: (int)col 
{
	qt_QTable_editCell((qt_QTable *)[self qt], (int)row, (int)col, 0);
	return self;
}

- drawContents: (QPainter *)p cx: (int)cx cy: (int)cy cw: (int)cw ch: (int)ch
{
	qt_QTable_drawContents((qt_QTable *)[self qt], (qt_QPainter *) [p qt], (int)cx, (int)cy, (int)cw, (int)ch);
	return self;
}

//- setEditMode: (int)mode row: (int)row col: (int)col
//{
//	qt_QTable_setEditMode((qt_QTable *)[self qt], (int)mode, (int)row, (int)col);
//	return self;
//}

- (QDragObject*) dragObject
{
	return (QDragObject*) [QtSupport objectForQtKey: qt_QTable_dragObject((qt_QTable *)[self qt]) withClass: [QDragObject class] allocatedInObjcWorld: YES];
}

- startDrag
{
	qt_QTable_startDrag((qt_QTable *)[self qt]);
	return self;
}

- paintEmptyArea: (QPainter *)p cx: (int)cx cy: (int)cy cw: (int)cw ch: (int)ch
{
	qt_QTable_paintEmptyArea((qt_QTable *)[self qt], (qt_QPainter *) [p qt], (int)cx, (int)cy, (int)cw, (int)ch);
	return self;
}

- activateNextCell
{
	qt_QTable_activateNextCell((qt_QTable *)[self qt]);
	return self;
}

- (QWidget*) createEditor: (int)row col: (int)col initFromCell: (BOOL)initFromCell
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QTable_createEditor((qt_QTable *)[self qt], (int)row, (int)col, (int)initFromCell) withClass: [QWidget class] allocatedInObjcWorld: YES];
}

- setCellContentFromEditor: (int)row col: (int)col
{
	qt_QTable_setCellContentFromEditor((qt_QTable *)[self qt], (int)row, (int)col);
	return self;
}

- (QWidget*) beginEdit: (int)row col: (int)col replace: (BOOL)replace
{
	return (QWidget*) [QtSupport objectForQtKey: qt_QTable_beginEdit((qt_QTable *)[self qt], (int)row, (int)col, (int)replace) withClass: [QWidget class] allocatedInObjcWorld: YES];
}

- endEdit: (int)row col: (int)col accept: (BOOL)accept replace: (BOOL)replace
{
	qt_QTable_endEdit((qt_QTable *)[self qt], (int)row, (int)col, (int)accept, (int)replace);
	return self;
}

- resizeData: (int)len
{
	qt_QTable_resizeData((qt_QTable *)[self qt], (int)len);
	return self;
}

- insertWidget: (int)row col: (int)col w: (QWidget *)w
{
	qt_QTable_insertWidget((qt_QTable *)[self qt], (int)row, (int)col, (qt_QWidget *) [w qt]);
	return self;
}

- (int) indexOf: (int)row col: (int)col
{
	return (int) qt_QTable_indexOf((qt_QTable *)[self qt], (int)row, (int)col);
}

- windowActivationChange: (BOOL)arg1
{
	qt_QTable_windowActivationChange((qt_QTable *)[self qt], (int)arg1);
	return self;
}

- (BOOL) isEditing
{
	return (BOOL) qt_QTable_isEditing((qt_QTable *)[self qt]);
}

- (int) editMode
{
	return (int) qt_QTable_editMode((qt_QTable *)[self qt]);
}

- (int) currEditRow
{
	return (int) qt_QTable_currEditRow((qt_QTable *)[self qt]);
}

- (int) currEditCol
{
	return (int) qt_QTable_currEditCol((qt_QTable *)[self qt]);
}

- columnWidthChanged: (int)col
{
	qt_QTable_columnWidthChanged((qt_QTable *)[self qt], (int)col);
	return self;
}

- rowHeightChanged: (int)row
{
	qt_QTable_rowHeightChanged((qt_QTable *)[self qt], (int)row);
	return self;
}

- columnIndexChanged: (int)section fromIndex: (int)fromIndex toIndex: (int)toIndex
{
	qt_QTable_columnIndexChanged((qt_QTable *)[self qt], (int)section, (int)fromIndex, (int)toIndex);
	return self;
}

- rowIndexChanged: (int)section fromIndex: (int)fromIndex toIndex: (int)toIndex
{
	qt_QTable_rowIndexChanged((qt_QTable *)[self qt], (int)section, (int)fromIndex, (int)toIndex);
	return self;
}

- columnClicked: (int)col
{
	qt_QTable_columnClicked((qt_QTable *)[self qt], (int)col);
	return self;
}

+ (int) Single
{
	return (int) QTABLE_Single;
}

+ (int) Multi
{
	return (int) QTABLE_Multi;
}

+ (int) SingleRow
{
	return (int) QTABLE_SingleRow;
}

+ (int) MultiRow
{
	return (int) QTABLE_MultiRow;
}

+ (int) NoSelection
{
	return (int) QTABLE_NoSelection;
}

+ (int) FollowStyle
{
	return (int) QTABLE_FollowStyle;
}

+ (int) SpreadSheet
{
	return (int) QTABLE_SpreadSheet;
}

+ (int) NotEditing
{
	return (int) QTABLE_NotEditing;
}

+ (int) Editing
{
	return (int) QTABLE_Editing;
}

+ (int) Replacing
{
	return (int) QTABLE_Replacing;
}

@end
