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

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

class PartManagerJBridge : public KParts::PartManager
{
public:
	PartManagerJBridge(TQWidget* arg1,const char* arg2) : KParts::PartManager(arg1,arg2) {};
	PartManagerJBridge(TQWidget* arg1) : KParts::PartManager(arg1) {};
	PartManagerJBridge(TQWidget* arg1,TQObject* arg2,const char* arg3) : KParts::PartManager(arg1,arg2,arg3) {};
	PartManagerJBridge(TQWidget* arg1,TQObject* arg2) : KParts::PartManager(arg1,arg2) {};
	void protected_setActiveInstance(TDEInstance* arg1) {
		KParts::PartManager::setActiveInstance(arg1);
		return;
	}
	void protected_slotObjectDestroyed() {
		KParts::PartManager::slotObjectDestroyed();
		return;
	}
	void protected_slotWidgetDestroyed() {
		KParts::PartManager::slotWidgetDestroyed();
		return;
	}
	void protected_slotManagedTopLevelWidgetDestroyed() {
		KParts::PartManager::slotManagedTopLevelWidgetDestroyed();
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void setActiveInstance(TDEInstance* arg1) {
		if (!QtSupport::eventDelegate(this,"setActiveInstance",(void*)arg1,"org.trinitydesktop.koala.TDEInstanceInterface")) {
			PartManager::setActiveInstance(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	void removePart(KParts::Part* arg1) {
		if (!QtSupport::eventDelegate(this,"removePart",(void*)arg1,"org.trinitydesktop.koala.Part")) {
			PartManager::removePart(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.PartManager",object,event)) {
			return PartManager::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jshort JNICALL
Java_org_trinitydesktop_koala_PartManager_activationButtonMask(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((KParts::PartManager*) QtSupport::getQt(env, obj))->activationButtonMask();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_addManagedTopLevelWidget(JNIEnv* env, jobject obj, jobject topLevel)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->addManagedTopLevelWidget((const TQWidget*) QtSupport::getQt(env, topLevel));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_addPart__Lorg_trinitydesktop_koala_Part_2(JNIEnv* env, jobject obj, jobject part)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->addPart((KParts::Part*) QtSupport::getQt(env, part));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_addPart__Lorg_trinitydesktop_koala_Part_2Z(JNIEnv* env, jobject obj, jobject part, jboolean setActive)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->addPart((KParts::Part*) QtSupport::getQt(env, part), (bool) setActive);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_PartManager_allowNestedParts(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::PartManager*) QtSupport::getQt(env, obj))->allowNestedParts();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_PartManager_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KParts::PartManager*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_PartManager_eventFilter(JNIEnv* env, jobject obj, jobject arg1, jobject ev)
{
	jboolean xret = (jboolean) ((KParts::PartManager*) QtSupport::getQt(env, obj))->eventFilter((TQObject*) QtSupport::getQt(env, arg1), (TQEvent*) QtSupport::getQt(env, ev));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_PartManager_ignoreScrollBars(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::PartManager*) QtSupport::getQt(env, obj))->ignoreScrollBars();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_PartManager_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::PartManager*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_newPartManager__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PartManagerJBridge((TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_newPartManager__Lorg_trinitydesktop_qt_QWidget_2Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject topLevel, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PartManagerJBridge((TQWidget*) QtSupport::getQt(env, topLevel), (TQObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_newPartManager__Lorg_trinitydesktop_qt_QWidget_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject topLevel, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PartManagerJBridge((TQWidget*) QtSupport::getQt(env, topLevel), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_PartManager_reason(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KParts::PartManager*) QtSupport::getQt(env, obj))->reason();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_removeManagedTopLevelWidget(JNIEnv* env, jobject obj, jobject topLevel)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->removeManagedTopLevelWidget((const TQWidget*) QtSupport::getQt(env, topLevel));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_removePart(JNIEnv* env, jobject obj, jobject part)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->removePart((KParts::Part*) QtSupport::getQt(env, part));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_replacePart__Lorg_trinitydesktop_koala_Part_2Lorg_trinitydesktop_koala_Part_2(JNIEnv* env, jobject obj, jobject oldPart, jobject newPart)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->replacePart((KParts::Part*) QtSupport::getQt(env, oldPart), (KParts::Part*) QtSupport::getQt(env, newPart));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_replacePart__Lorg_trinitydesktop_koala_Part_2Lorg_trinitydesktop_koala_Part_2Z(JNIEnv* env, jobject obj, jobject oldPart, jobject newPart, jboolean setActive)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->replacePart((KParts::Part*) QtSupport::getQt(env, oldPart), (KParts::Part*) QtSupport::getQt(env, newPart), (bool) setActive);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_setActivationButtonMask(JNIEnv* env, jobject obj, jshort buttonMask)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->setActivationButtonMask((short int) buttonMask);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_setActiveInstance(JNIEnv* env, jobject obj, jobject instance)
{
	((PartManagerJBridge*) QtSupport::getQt(env, obj))->protected_setActiveInstance((TDEInstance*) QtSupport::getQt(env, instance));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_setActivePart__Lorg_trinitydesktop_koala_Part_2(JNIEnv* env, jobject obj, jobject part)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->setActivePart((KParts::Part*) QtSupport::getQt(env, part));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_setActivePart__Lorg_trinitydesktop_koala_Part_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobject part, jobject widget)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->setActivePart((KParts::Part*) QtSupport::getQt(env, part), (TQWidget*) QtSupport::getQt(env, widget));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_setAllowNestedParts(JNIEnv* env, jobject obj, jboolean allow)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->setAllowNestedParts((bool) allow);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_setIgnoreScrollBars(JNIEnv* env, jobject obj, jboolean ignore)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->setIgnoreScrollBars((bool) ignore);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_setSelectedPart__Lorg_trinitydesktop_koala_Part_2(JNIEnv* env, jobject obj, jobject part)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->setSelectedPart((KParts::Part*) QtSupport::getQt(env, part));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_setSelectedPart__Lorg_trinitydesktop_koala_Part_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobject part, jobject widget)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->setSelectedPart((KParts::Part*) QtSupport::getQt(env, part), (TQWidget*) QtSupport::getQt(env, widget));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_slotManagedTopLevelWidgetDestroyed(JNIEnv* env, jobject obj)
{
	((PartManagerJBridge*) QtSupport::getQt(env, obj))->protected_slotManagedTopLevelWidgetDestroyed();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_slotObjectDestroyed(JNIEnv* env, jobject obj)
{
	((PartManagerJBridge*) QtSupport::getQt(env, obj))->protected_slotObjectDestroyed();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_PartManager_slotWidgetDestroyed(JNIEnv* env, jobject obj)
{
	((PartManagerJBridge*) QtSupport::getQt(env, obj))->protected_slotWidgetDestroyed();
	return;
}

