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

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

class TQCheckTableItemJBridge : public TQCheckTableItem
{
public:
	TQCheckTableItemJBridge(TQTable* arg1,const TQString& arg2) : TQCheckTableItem(arg1,arg2) {};
	~TQCheckTableItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCheckTableItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QCheckTableItem_finalize(env, obj);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QCheckTableItem_isChecked(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQCheckTableItem*) QtSupport::getQt(env, obj))->isChecked();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCheckTableItem_newTQCheckTableItem(JNIEnv* env, jobject obj, jobject table, jstring txt)
{
static TQString* _qstring_txt = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCheckTableItemJBridge((TQTable*) QtSupport::getQt(env, table), (const TQString&)*(TQString*) QtSupport::toTQString(env, txt, &_qstring_txt)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCheckTableItem_paint(JNIEnv* env, jobject obj, jobject p, jobject cg, jobject cr, jboolean selected)
{
	((TQCheckTableItem*) 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 jint JNICALL
Java_org_trinitydesktop_qt_QCheckTableItem_rtti(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQCheckTableItem*) QtSupport::getQt(env, obj))->rtti();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCheckTableItem_setChecked(JNIEnv* env, jobject obj, jboolean b)
{
	((TQCheckTableItem*) QtSupport::getQt(env, obj))->setChecked((bool) b);
	return;
}

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

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

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

