/***************************************************************************
                            qt_QTableItem.cpp -  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.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QTableItem.h"
}

#include <qtable.h>

class QTableItemBridge : public QTableItem
{
public:
	QTableItemBridge(QTable* table, EditType et, const QString& text) : QTableItem(table, et, text) {}
	QTableItemBridge(QTable* table, EditType et, const QString& text, const QPixmap& p) : QTableItem(table, et, text, p) {}
	~QTableItemBridge() {}
};

qt_QTableItem * qt_new_QTableItem(qt_QTable* table, int et, qt_QString * text){
	return (qt_QTableItem *) new QTableItemBridge((QTable*)table, (QTableItem::EditType)et, (QString&)* (QString*)text);
}
qt_QTableItem * qt_new_QTableItem1(qt_QTable* table, int et, qt_QString * text, qt_QPixmap * p){
	return (qt_QTableItem *) new QTableItemBridge((QTable*)table, (QTableItem::EditType)et, (QString&)* (QString*)text, (QPixmap&)* (QPixmap*)p);
}
void qt_del_QTableItem( qt_QTableItem* p ){
	delete (QTableItemBridge*) p;
}
qt_QPixmap * qt_QTableItem_pixmap( qt_QTableItem* instPointer){
	return (qt_QPixmap *)new QPixmap(((QTableItemBridge*)instPointer)->pixmap());
}
qt_QString * qt_QTableItem_text( qt_QTableItem* instPointer){
	return (qt_QString *)new QString(((QTableItemBridge*)instPointer)->text());
}
void qt_QTableItem_setPixmap( qt_QTableItem* instPointer,qt_QPixmap * p){
	((QTableItemBridge*)instPointer)->setPixmap((QPixmap&)* (QPixmap*)p);
	return;
}
void qt_QTableItem_setText( qt_QTableItem* instPointer,qt_QString * t){
	((QTableItemBridge*)instPointer)->setText((QString&)* (QString*)t);
	return;
}
qt_QTable* qt_QTableItem_table( qt_QTableItem* instPointer){
	return (qt_QTable*) ((QTableItemBridge*)instPointer)->table();
}
int qt_QTableItem_alignment( qt_QTableItem* instPointer){
	return (int) ((QTableItemBridge*)instPointer)->alignment();
}
void qt_QTableItem_setWordWrap( qt_QTableItem* instPointer,int b){
	((QTableItemBridge*)instPointer)->setWordWrap((bool)b);
	return;
}
int qt_QTableItem_wordWrap( qt_QTableItem* instPointer){
	return (int) ((QTableItemBridge*)instPointer)->wordWrap();
}
int qt_QTableItem_editType( qt_QTableItem* instPointer){
	return (int) ((QTableItemBridge*)instPointer)->editType();
}
qt_QWidget * qt_QTableItem_createEditor( qt_QTableItem* instPointer){
	return (qt_QWidget *) ((QTableItemBridge*)instPointer)->createEditor();
}
void qt_QTableItem_setContentFromEditor( qt_QTableItem* instPointer,qt_QWidget * w){
	((QTableItemBridge*)instPointer)->setContentFromEditor((QWidget*)w);
	return;
}
void qt_QTableItem_setReplaceable( qt_QTableItem* instPointer,int arg1){
	((QTableItemBridge*)instPointer)->setReplaceable((bool)arg1);
	return;
}
int qt_QTableItem_isReplaceable( qt_QTableItem* instPointer){
	return (int) ((QTableItemBridge*)instPointer)->isReplaceable();
}
qt_QString * qt_QTableItem_key( qt_QTableItem* instPointer){
	return (qt_QString *)new QString(((QTableItemBridge*)instPointer)->key());
}
qt_QSize * qt_QTableItem_sizeHint( qt_QTableItem* instPointer){
	QSize _s= ((QTableItemBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void qt_QTableItem_setSpan( qt_QTableItem* instPointer,int rs, int cs){
	((QTableItemBridge*)instPointer)->setSpan((int)rs, (int)cs);
	return;
}
int qt_QTableItem_rowSpan( qt_QTableItem* instPointer){
	return (int) ((QTableItemBridge*)instPointer)->rowSpan();
}
int qt_QTableItem_colSpan( qt_QTableItem* instPointer){
	return (int) ((QTableItemBridge*)instPointer)->colSpan();
}
void qt_QTableItem_setRow( qt_QTableItem* instPointer,int r){
	((QTableItemBridge*)instPointer)->setRow((int)r);
	return;
}
void qt_QTableItem_setCol( qt_QTableItem* instPointer,int c){
	((QTableItemBridge*)instPointer)->setCol((int)c);
	return;
}
int qt_QTableItem_row( qt_QTableItem* instPointer){
	return (int) ((QTableItemBridge*)instPointer)->row();
}
int qt_QTableItem_col( qt_QTableItem* instPointer){
	return (int) ((QTableItemBridge*)instPointer)->col();
}
void qt_QTableItem_paint( qt_QTableItem* instPointer,qt_QPainter * p, qt_QColorGroup * cg, qt_QRect* cr, int selected){
	((QTableItemBridge*)instPointer)->paint((QPainter*)p, (QColorGroup&)* (QColorGroup*)cg, (QRect&)* (QRect*)cr, (bool)selected);
	return;
}
void qt_QTableItem_updateEditor( qt_QTableItem* instPointer,int oldRow, int oldCol){
	((QTableItemBridge*)instPointer)->updateEditor((int)oldRow, (int)oldCol);
	return;
}
void qt_QTableItem_setEnabled( qt_QTableItem* instPointer,int b){
	((QTableItemBridge*)instPointer)->setEnabled((bool)b);
	return;
}
int qt_QTableItem_isEnabled( qt_QTableItem* instPointer){
	return (int) ((QTableItemBridge*)instPointer)->isEnabled();
}
int qt_QTableItem_rtti( qt_QTableItem* instPointer){
	return (int) ((QTableItemBridge*)instPointer)->rtti();
}
