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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_PartActivateEvent_activated(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::PartActivateEvent*) QtSupport::getQt(env, obj))->activated();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartActivateEvent_newPartActivateEvent(JNIEnv* env, jobject obj, jboolean activated, jobject part, jobject widget)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PartActivateEventJBridge((bool) activated, (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_PartActivateEvent_part(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::PartActivateEvent*) QtSupport::getQt(env, obj))->part(), "org.trinitydesktop.koala.Part");
	return xret;
}

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

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

