//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqlistbox.h>
#include <tqstring.h>

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

class TQListBoxTextJBridge : public TQListBoxText
{
public:
	TQListBoxTextJBridge(TQListBox* arg1,const TQString& arg2) : TQListBoxText(arg1,arg2) {};
	TQListBoxTextJBridge(TQListBox* arg1) : TQListBoxText(arg1) {};
	TQListBoxTextJBridge(const TQString& arg1) : TQListBoxText(arg1) {};
	TQListBoxTextJBridge() : TQListBoxText() {};
	TQListBoxTextJBridge(TQListBox* arg1,const TQString& arg2,TQListBoxItem* arg3) : TQListBoxText(arg1,arg2,arg3) {};
	void protected_paint(TQPainter* arg1) {
		TQListBoxText::paint(arg1);
		return;
	}
	~TQListBoxTextJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QListBoxText_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QListBoxText_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QListBoxText_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TQListBoxText*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QListBoxText_height(JNIEnv* env, jobject obj, jobject arg1)
{
	jint xret = (jint) ((TQListBoxText*) QtSupport::getQt(env, obj))->height((const TQListBox*) QtSupport::getQt(env, arg1));
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QListBoxText_newTQListBoxText__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQListBoxTextJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QListBoxText_newTQListBoxText__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQListBoxTextJBridge((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_QListBoxText_newTQListBoxText__Lorg_trinitydesktop_qt_QListBox_2(JNIEnv* env, jobject obj, jobject listbox)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQListBoxTextJBridge((TQListBox*) QtSupport::getQt(env, listbox)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QListBoxText_newTQListBoxText__Lorg_trinitydesktop_qt_QListBox_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject listbox, jstring text)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQListBoxTextJBridge((TQListBox*) QtSupport::getQt(env, listbox), (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_QListBoxText_newTQListBoxText__Lorg_trinitydesktop_qt_QListBox_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QListBoxItem_2(JNIEnv* env, jobject obj, jobject listbox, jstring text, jobject after)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQListBoxTextJBridge((TQListBox*) QtSupport::getQt(env, listbox), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (TQListBoxItem*) QtSupport::getQt(env, after)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QListBoxText_paint(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQListBoxTextJBridge*) QtSupport::getQt(env, obj))->protected_paint((TQPainter*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QListBoxText_width(JNIEnv* env, jobject obj, jobject arg1)
{
	jint xret = (jint) ((TQListBoxText*) QtSupport::getQt(env, obj))->width((const TQListBox*) QtSupport::getQt(env, arg1));
	return xret;
}

