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

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

class QComboTableItemJBridge : public QComboTableItem
{
public:
	QComboTableItemJBridge(QTable* arg1,const QStringList& arg2,bool arg3) : QComboTableItem(arg1,arg2,arg3) {};
	QComboTableItemJBridge(QTable* arg1,const QStringList& arg2) : QComboTableItem(arg1,arg2) {};
	~QComboTableItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_kde_qt_QComboTableItem_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QComboTableItem*) QtSupport::getQt(env, obj))->count();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QComboTableItem_currentItem(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QComboTableItem*) QtSupport::getQt(env, obj))->currentItem();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QComboTableItem_currentText(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QComboTableItem*) QtSupport::getQt(env, obj))->currentText();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QComboTableItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QComboTableItem_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QComboTableItem_isEditable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QComboTableItem*) QtSupport::getQt(env, obj))->isEditable();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QComboTableItem_newQComboTableItem__Lorg_kde_qt_QTable_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject table, jobjectArray list)
{
static QStringList* _qlist_list = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QComboTableItemJBridge((QTable*) QtSupport::getQt(env, table), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, list, &_qlist_list)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QComboTableItem_newQComboTableItem__Lorg_kde_qt_QTable_2_3Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jobject table, jobjectArray list, jboolean editable)
{
static QStringList* _qlist_list = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QComboTableItemJBridge((QTable*) QtSupport::getQt(env, table), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, list, &_qlist_list), (bool) editable));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QComboTableItem_setCurrentItem__I(JNIEnv* env, jobject obj, jint i)
{
	((QComboTableItem*) QtSupport::getQt(env, obj))->setCurrentItem((int) i);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QComboTableItem_setCurrentItem__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring i)
{
static QString* _qstring_i = 0;
	((QComboTableItem*) QtSupport::getQt(env, obj))->setCurrentItem((const QString&)*(QString*) QtSupport::toQString(env, i, &_qstring_i));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QComboTableItem_setEditable(JNIEnv* env, jobject obj, jboolean b)
{
	((QComboTableItem*) QtSupport::getQt(env, obj))->setEditable((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QComboTableItem_setStringList(JNIEnv* env, jobject obj, jobjectArray l)
{
static QStringList* _qlist_l = 0;
	((QComboTableItem*) QtSupport::getQt(env, obj))->setStringList((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, l, &_qlist_l));
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QComboTableItem_text(JNIEnv* env, jobject obj, jint i)
{
	QString  _qstring;
	_qstring = ((QComboTableItem*) QtSupport::getQt(env, obj))->text((int) i);
	return QtSupport::fromQString(env, &_qstring);
}

