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

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/PartManager.h>

class PartManagerJBridge : public KParts::PartManager
{
public:
	PartManagerJBridge(QWidget* arg1,const char* arg2) : KParts::PartManager(arg1,arg2) {};
	PartManagerJBridge(QWidget* arg1) : KParts::PartManager(arg1) {};
	PartManagerJBridge(QWidget* arg1,QObject* arg2,const char* arg3) : KParts::PartManager(arg1,arg2,arg3) {};
	PartManagerJBridge(QWidget* arg1,QObject* arg2) : KParts::PartManager(arg1,arg2) {};
	void protected_setActiveInstance(KInstance* 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(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void setActiveInstance(KInstance* arg1) {
		if (!QtSupport::eventDelegate(this,"setActiveInstance",(void*)arg1,"org.kde.koala.KInstanceInterface")) {
			PartManager::setActiveInstance(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	void removePart(KParts::Part* arg1) {
		if (!QtSupport::eventDelegate(this,"removePart",(void*)arg1,"org.kde.koala.Part")) {
			PartManager::removePart(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.PartManager",object,event)) {
			return PartManager::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_PartManager_addPart__Lorg_kde_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_kde_koala_PartManager_addPart__Lorg_kde_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_kde_koala_PartManager_allowNestedParts(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::PartManager*) QtSupport::getQt(env, obj))->allowNestedParts();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_koala_PartManager_eventFilter(JNIEnv* env, jobject obj, jobject arg1, jobject ev)
{
	jboolean xret = (jboolean) ((KParts::PartManager*) QtSupport::getQt(env, obj))->eventFilter((QObject*) QtSupport::getQt(env, arg1), (QEvent*) QtSupport::getQt(env, ev));
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_PartManager_newPartManager__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PartManagerJBridge((QWidget*) 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_kde_koala_PartManager_newPartManager__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject topLevel, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PartManagerJBridge((QWidget*) QtSupport::getQt(env, topLevel), (QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_PartManager_newPartManager__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject topLevel, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PartManagerJBridge((QWidget*) QtSupport::getQt(env, topLevel), (QObject*) 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_kde_koala_PartManager_reason(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KParts::PartManager*) QtSupport::getQt(env, obj))->reason();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_PartManager_replacePart__Lorg_kde_koala_Part_2Lorg_kde_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_kde_koala_PartManager_replacePart__Lorg_kde_koala_Part_2Lorg_kde_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_kde_koala_PartManager_selectedPart(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::PartManager*) QtSupport::getQt(env, obj))->selectedPart(), "org.kde.koala.Part");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_PartManager_setActiveInstance(JNIEnv* env, jobject obj, jobject instance)
{
	((PartManagerJBridge*) QtSupport::getQt(env, obj))->protected_setActiveInstance((KInstance*) QtSupport::getQt(env, instance));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_PartManager_setActivePart__Lorg_kde_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_kde_koala_PartManager_setActivePart__Lorg_kde_koala_Part_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jobject part, jobject widget)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->setActivePart((KParts::Part*) QtSupport::getQt(env, part), (QWidget*) QtSupport::getQt(env, widget));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_PartManager_setSelectedPart__Lorg_kde_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_kde_koala_PartManager_setSelectedPart__Lorg_kde_koala_Part_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jobject part, jobject widget)
{
	((KParts::PartManager*) QtSupport::getQt(env, obj))->setSelectedPart((KParts::Part*) QtSupport::getQt(env, part), (QWidget*) QtSupport::getQt(env, widget));
	return;
}

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

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

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

