//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <tqstring.h>
#include <tqtable.h>
#include <tqpalette.h>
#include <tqsize.h>
#include <tqpixmap.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQTableItem.h>

class TQTableItemJBridge : public TQTableItem
{
public:
	TQTableItemJBridge(TQTable* arg1,TQTableItem::EditType arg2) : TQTableItem(arg1,arg2) {};
	TQTableItemJBridge(TQTable* arg1,TQTableItem::EditType arg2,const TQString& arg3) : TQTableItem(arg1,arg2,arg3) {};
	TQTableItemJBridge(TQTable* arg1,TQTableItem::EditType arg2,const TQString& arg3,const TQPixmap& arg4) : TQTableItem(arg1,arg2,arg3,arg4) {};
	~TQTableItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTableItem_alignment(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQTableItem*) QtSupport::getQt(env, obj))->alignment();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTableItem_colSpan(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQTableItem*) QtSupport::getQt(env, obj))->colSpan();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTableItem_col(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQTableItem*) QtSupport::getQt(env, obj))->col();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTableItem_createEditor(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQTableItem*) QtSupport::getQt(env, obj))->createEditor(), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QTableItem_finalize(env, obj);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTableItem_editType(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQTableItem*) QtSupport::getQt(env, obj))->editType();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQTableItem*)(TQTableItem*)QtSupport::getQt(env, obj))->table() == 0) {
		delete (TQTableItem*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTableItem_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTableItem_isEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQTableItem*) QtSupport::getQt(env, obj))->isEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTableItem_isReplaceable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQTableItem*) QtSupport::getQt(env, obj))->isReplaceable();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QTableItem_key(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQTableItem*) QtSupport::getQt(env, obj))->key();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_newTQTableItem__Lorg_trinitydesktop_qt_QTable_2I(JNIEnv* env, jobject obj, jobject table, jint et)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQTableItemJBridge((TQTable*) QtSupport::getQt(env, table), (TQTableItem::EditType) et));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_newTQTableItem__Lorg_trinitydesktop_qt_QTable_2ILjava_lang_String_2(JNIEnv* env, jobject obj, jobject table, jint et, jstring text)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQTableItemJBridge((TQTable*) QtSupport::getQt(env, table), (TQTableItem::EditType) et, (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_newTQTableItem__Lorg_trinitydesktop_qt_QTable_2ILjava_lang_String_2Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject table, jint et, jstring text, jobject p)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQTableItemJBridge((TQTable*) QtSupport::getQt(env, table), (TQTableItem::EditType) et, (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, p)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_paint(JNIEnv* env, jobject obj, jobject p, jobject cg, jobject cr, jboolean selected)
{
	((TQTableItem*) QtSupport::getQt(env, obj))->paint((TQPainter*) QtSupport::getQt(env, p), (const TQColorGroup&)*(const TQColorGroup*) QtSupport::getQt(env, cg), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, cr), (bool) selected);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTableItem_pixmap(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TQTableItem*) QtSupport::getQt(env, obj))->pixmap()), "org.trinitydesktop.qt.TQPixmap", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTableItem_rowSpan(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQTableItem*) QtSupport::getQt(env, obj))->rowSpan();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTableItem_row(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQTableItem*) QtSupport::getQt(env, obj))->row();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTableItem_rtti(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQTableItem*) QtSupport::getQt(env, obj))->rtti();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_setCol(JNIEnv* env, jobject obj, jint c)
{
	((TQTableItem*) QtSupport::getQt(env, obj))->setCol((int) c);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_setContentFromEditor(JNIEnv* env, jobject obj, jobject w)
{
	((TQTableItem*) QtSupport::getQt(env, obj))->setContentFromEditor((TQWidget*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_setEnabled(JNIEnv* env, jobject obj, jboolean b)
{
	((TQTableItem*) QtSupport::getQt(env, obj))->setEnabled((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_setPixmap(JNIEnv* env, jobject obj, jobject p)
{
	((TQTableItem*) QtSupport::getQt(env, obj))->setPixmap((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_setReplaceable(JNIEnv* env, jobject obj, jboolean arg1)
{
	((TQTableItem*) QtSupport::getQt(env, obj))->setReplaceable((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_setRow(JNIEnv* env, jobject obj, jint r)
{
	((TQTableItem*) QtSupport::getQt(env, obj))->setRow((int) r);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_setSpan(JNIEnv* env, jobject obj, jint rs, jint cs)
{
	((TQTableItem*) QtSupport::getQt(env, obj))->setSpan((int) rs, (int) cs);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_setText(JNIEnv* env, jobject obj, jstring t)
{
static TQString* _qstring_t = 0;
	((TQTableItem*) QtSupport::getQt(env, obj))->setText((const TQString&)*(TQString*) QtSupport::toTQString(env, t, &_qstring_t));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_setWordWrap(JNIEnv* env, jobject obj, jboolean b)
{
	((TQTableItem*) QtSupport::getQt(env, obj))->setWordWrap((bool) b);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTableItem_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQTableItem*) QtSupport::getQt(env, obj))->sizeHint()), "org.trinitydesktop.qt.TQSize", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QTableItem_table(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQTableItem*) QtSupport::getQt(env, obj))->table(), "org.trinitydesktop.qt.TQTable");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QTableItem_text(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQTableItem*) QtSupport::getQt(env, obj))->text();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTableItem_updateEditor(JNIEnv* env, jobject obj, jint oldRow, jint oldCol)
{
	((TQTableItem*) QtSupport::getQt(env, obj))->updateEditor((int) oldRow, (int) oldCol);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QTableItem_wordWrap(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQTableItem*) QtSupport::getQt(env, obj))->wordWrap();
	return xret;
}

