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

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

class TQComboTableItemJBridge : public TQComboTableItem
{
public:
	TQComboTableItemJBridge(TQTable* arg1,const TQStringList& arg2,bool arg3) : TQComboTableItem(arg1,arg2,arg3) {};
	TQComboTableItemJBridge(TQTable* arg1,const TQStringList& arg2) : TQComboTableItem(arg1,arg2) {};
	~TQComboTableItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QComboTableItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QComboTableItem_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QComboTableItem_newTQComboTableItem__Lorg_trinitydesktop_qt_QTable_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject table, jobjectArray list)
{
static TQStringList* _qlist_list = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQComboTableItemJBridge((TQTable*) QtSupport::getQt(env, table), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, list, &_qlist_list)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QComboTableItem_newTQComboTableItem__Lorg_trinitydesktop_qt_QTable_2_3Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jobject table, jobjectArray list, jboolean editable)
{
static TQStringList* _qlist_list = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQComboTableItemJBridge((TQTable*) QtSupport::getQt(env, table), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, list, &_qlist_list), (bool) editable));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QComboTableItem_setCurrentItem__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring i)
{
static TQString* _qstring_i = 0;
	((TQComboTableItem*) QtSupport::getQt(env, obj))->setCurrentItem((const TQString&)*(TQString*) QtSupport::toTQString(env, i, &_qstring_i));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QComboTableItem_setStringList(JNIEnv* env, jobject obj, jobjectArray l)
{
static TQStringList* _qlist_l = 0;
	((TQComboTableItem*) QtSupport::getQt(env, obj))->setStringList((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, l, &_qlist_l));
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QComboTableItem_text(JNIEnv* env, jobject obj, jint i)
{
	TQString  _qstring;
	_qstring = ((TQComboTableItem*) QtSupport::getQt(env, obj))->text((int) i);
	return QtSupport::fromTQString(env, &_qstring);
}

