//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeparts/event.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/PartSelectEvent.h>

class PartSelectEventJBridge : public KParts::PartSelectEvent
{
public:
	PartSelectEventJBridge(bool arg1,KParts::Part* arg2,TQWidget* arg3) : KParts::PartSelectEvent(arg1,arg2,arg3) {};
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartSelectEvent_newPartSelectEvent(JNIEnv* env, jobject obj, jboolean selected, jobject part, jobject widget)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PartSelectEventJBridge((bool) selected, (KParts::Part*) QtSupport::getQt(env, part), (TQWidget*) QtSupport::getQt(env, widget)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_PartSelectEvent_part(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::PartSelectEvent*) QtSupport::getQt(env, obj))->part(), "org.trinitydesktop.koala.Part");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_PartSelectEvent_selected(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::PartSelectEvent*) QtSupport::getQt(env, obj))->selected();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_PartSelectEvent_test(JNIEnv* env, jclass cls, jobject event)
{
	(void) cls;
	jboolean xret = (jboolean) PartSelectEventJBridge::test((const TQEvent*) QtSupport::getQt(env, event));
	return xret;
}

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

