//Auto-generated by kalyptus. DO NOT EDIT.
#include <qsize.h>
#include <qrect.h>
#include <qstring.h>
#include <qtable.h>
#include <qpalette.h>

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

class QCheckTableItemJBridge : public QCheckTableItem
{
public:
	QCheckTableItemJBridge(QTable* arg1,const QString& arg2) : QCheckTableItem(arg1,arg2) {};
	~QCheckTableItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCheckTableItem_createEditor(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QCheckTableItem*) QtSupport::getQt(env, obj))->createEditor(), "org.kde.qt.QWidget");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCheckTableItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QCheckTableItem_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCheckTableItem_newQCheckTableItem(JNIEnv* env, jobject obj, jobject table, jstring txt)
{
static QString* _qstring_txt = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QCheckTableItemJBridge((QTable*) QtSupport::getQt(env, table), (const QString&)*(QString*) QtSupport::toQString(env, txt, &_qstring_txt)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCheckTableItem_paint(JNIEnv* env, jobject obj, jobject p, jobject cg, jobject cr, jboolean selected)
{
	((QCheckTableItem*) QtSupport::getQt(env, obj))->paint((QPainter*) QtSupport::getQt(env, p), (const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, cg), (const QRect&)*(const QRect*) QtSupport::getQt(env, cr), (bool) selected);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCheckTableItem_setContentFromEditor(JNIEnv* env, jobject obj, jobject w)
{
	((QCheckTableItem*) QtSupport::getQt(env, obj))->setContentFromEditor((QWidget*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCheckTableItem_setText(JNIEnv* env, jobject obj, jstring t)
{
static QString* _qstring_t = 0;
	((QCheckTableItem*) QtSupport::getQt(env, obj))->setText((const QString&)*(QString*) QtSupport::toQString(env, t, &_qstring_t));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCheckTableItem_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QCheckTableItem*) QtSupport::getQt(env, obj))->sizeHint()), "org.kde.qt.QSize", TRUE);
	return xret;
}

