/***************************************************************************
                            KMainWindow.cpp -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <kmainwindow.h>
#include <qstring.h>
#include <qcstring.h>

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

class KMainWindowJBridge : public KMainWindow
{
public:
	KMainWindowJBridge(QWidget* parent, const char* name, WFlags f) : KMainWindow(parent, name, f) {}
	~KMainWindowJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_paintEvent(QPaintEvent* e) {
		KMainWindow::paintEvent(e);
		return;
	}
	void protected_childEvent(QChildEvent* e) {
		KMainWindow::childEvent(e);
		return;
	}
	void protected_resizeEvent(QResizeEvent* e) {
		KMainWindow::resizeEvent(e);
		return;
	}
	void protected_closeEvent(QCloseEvent* arg1) {
		KMainWindow::closeEvent(arg1);
		return;
	}
	 bool  protected_queryExit() {
		return ( bool ) KMainWindow::queryExit();
	}
	 bool  protected_queryClose() {
		return ( bool ) KMainWindow::queryClose();
	}
	void protected_saveProperties(KConfig* arg1) {
		KMainWindow::saveProperties(arg1);
		return;
	}
	void protected_readProperties(KConfig* arg1) {
		KMainWindow::readProperties(arg1);
		return;
	}
	void protected_saveGlobalProperties(KConfig* sessionConfig) {
		KMainWindow::saveGlobalProperties(sessionConfig);
		return;
	}
	void protected_readGlobalProperties(KConfig* sessionConfig) {
		KMainWindow::readGlobalProperties(sessionConfig);
		return;
	}
	void protected_savePropertiesInternal(KConfig* arg1, int arg2) {
		KMainWindow::savePropertiesInternal(arg1, arg2);
		return;
	}
	bool  protected_readPropertiesInternal(KConfig* arg1, int arg2) {
		return (bool ) KMainWindow::readPropertiesInternal(arg1, arg2);
	}
	bool  protected_settingsDirty() {
		return (bool ) KMainWindow::settingsDirty();
	}
	QString  protected_settingsGroup() {
		return (QString ) KMainWindow::settingsGroup();
	}
	void protected_saveWindowSize(KConfig* config) {
		KMainWindow::saveWindowSize(config);
		return;
	}
	void protected_restoreWindowSize(KConfig* config) {
		KMainWindow::restoreWindowSize(config);
		return;
	}
	void protected_parseGeometry(bool parsewidth) {
		KMainWindow::parseGeometry(parsewidth);
		return;
	}
	void protected_showAboutApplication() {
		KMainWindow::showAboutApplication();
		return;
	}
	void protected_stateChanged(const QString& newstate) {
		KMainWindow::stateChanged(newstate);
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyReleaseEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusOutEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QWidget::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* e) {
		if (! QtSupport::eventDelegate(this, "childEvent", e, "org.kde.qt.QChildEvent")) {
			KMainWindow::childEvent(e);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "leaveEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::leaveEvent(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "tabletEvent", arg1, "org.kde.qt.QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "showEvent", arg1, "org.kde.qt.QShowEvent")) {
			QWidget::showEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QWidget::contextMenuEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mousePressEvent(arg1);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imComposeEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "customEvent", arg1, "org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "enterEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusInEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QWidget::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imEndEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseMoveEvent(arg1);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "moveEvent", arg1, "org.kde.qt.QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "wheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QWidget::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "hideEvent", arg1, "org.kde.qt.QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imStartEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void closeEvent(QCloseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "closeEvent", arg1, "org.kde.qt.QCloseEvent")) {
			KMainWindow::closeEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* e) {
		if (! QtSupport::eventDelegate(this, "paintEvent", e, "org.kde.qt.QPaintEvent")) {
			KMainWindow::paintEvent(e);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* e) {
		if (! QtSupport::eventDelegate(this, "resizeEvent", e, "org.kde.qt.QResizeEvent")) {
			KMainWindow::resizeEvent(e);
		}
		return;
	}
 	/* Various session management callbacks */
 	bool queryClose() {
 		return QtSupport::booleanDelegate(this, "queryClose");
 	}
 	bool queryExit() {
 		return QtSupport::booleanDelegate(this, "queryExit");
 	}
 	void saveProperties(KConfig* arg1) {
 		if (! QtSupport::eventDelegate(this, "saveProperties", (void *) arg1, "org.kde.koala.KConfig")) {
 			KMainWindow::saveProperties(arg1);
 		}
 		return;
 	}
 	void readProperties(KConfig* arg1) {
 		if (! QtSupport::eventDelegate(this, "readProperties", (void *) arg1, "org.kde.koala.KConfig")) {
 			KMainWindow::readProperties(arg1);
 		}
 		return;
 	}
 	void saveGlobalProperties(KConfig* arg1) {
 		if (! QtSupport::eventDelegate(this, "saveGlobalProperties", (void *) arg1, "org.kde.koala.KConfig")) {
 			KMainWindow::saveGlobalProperties(arg1);
 		}
 		return;
 	}
 	void readGlobalProperties(KConfig* arg1) {
 		if (! QtSupport::eventDelegate(this, "readGlobalProperties", (void *) arg1, "org.kde.koala.KConfig")) {
 			KMainWindow::readGlobalProperties(arg1);
 		}
 		return;
 	}
 	void protected_setInstance(KInstance* instance) {
 		KMainWindow::setInstance(instance);
 		return;
 	}
 	void protected_setXMLFile(const QString& file, bool merge, bool setXMLDoc) {
 		KMainWindow::setXMLFile(file, merge, setXMLDoc);
 		return;
 	}
 	void protected_setLocalXMLFile(const QString& file) {
 		KMainWindow::setLocalXMLFile(file);
 		return;
 	}
 	void protected_setXML(const QString& document, bool merge) {
 		KMainWindow::setXML(document, merge);
 		return;
 	}
 	void protected_setDOMDocument(const QDomDocument& document, bool merge) {
 		KMainWindow::setDOMDocument(document, merge);
 		return;
 	}
 	void protected_conserveMemory() {
 		KMainWindow::conserveMemory();
 		return;
 	}
};


JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_newKMainWindow__Lorg_kde_qt_QWidget_2Ljava_lang_String_2I(JNIEnv *env, jobject obj, jobject parent, jstring name, jint f)
{
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMainWindowJBridge((QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name), (QWidget::WFlags) f));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_newKMainWindow__(JNIEnv *env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMainWindowJBridge(0, 0, KMainWindow::WType_TopLevel | KMainWindow::WDestructiveClose));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KMainWindow*)QtSupport::getQt(env, obj))->parentWidget(TRUE) == (QWidget *) 0) {
		delete (KMainWindow*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KMainWindow_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_helpMenu__Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring aboutAppText, jboolean showWhatsThis)
{
static QString * _qstring_aboutAppText = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KMainWindow*) QtSupport::getQt(env, obj))->helpMenu((QString&) * (QString *) QtSupport::toQString(env, aboutAppText, &_qstring_aboutAppText), (bool) showWhatsThis), "org.kde.koala.KPopupMenu");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_helpMenu__(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KMainWindow*) QtSupport::getQt(env, obj))->helpMenu(QString::null, TRUE), "org.kde.koala.KPopupMenu");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_customHelpMenu__Z(JNIEnv *env, jobject obj, jboolean showWhatsThis)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KMainWindow*) QtSupport::getQt(env, obj))->customHelpMenu((bool) showWhatsThis), "org.kde.koala.KPopupMenu");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_customHelpMenu__(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KMainWindow*) QtSupport::getQt(env, obj))->customHelpMenu(TRUE), "org.kde.koala.KPopupMenu");
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KMainWindow_restore__IZ(JNIEnv *env, jobject obj, jint number, jboolean show)
{
	return (jboolean) ((KMainWindow*) QtSupport::getQt(env, obj))->restore((int) number, (bool) show);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KMainWindow_restore__I(JNIEnv *env, jobject obj, jint number)
{
	return (jboolean) ((KMainWindow*) QtSupport::getQt(env, obj))->restore((int) number, TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_guiFactory(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KMainWindow*) QtSupport::getQt(env, obj))->guiFactory(), "org.kde.koala.KXMLGUIFactory");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_createGUI__Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring xmlfile, jboolean _conserveMemory)
{
static QString * _qstring_xmlfile = 0;
	((KMainWindow*) QtSupport::getQt(env, obj))->createGUI((QString&) * (QString *) QtSupport::toQString(env, xmlfile, &_qstring_xmlfile), (bool) _conserveMemory);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_createGUI__(JNIEnv *env, jobject obj)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->createGUI(QString::null, TRUE);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setHelpMenuEnabled__Z(JNIEnv *env, jobject obj, jboolean showHelpMenu)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->setHelpMenuEnabled((bool) showHelpMenu);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setHelpMenuEnabled__(JNIEnv *env, jobject obj)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->setHelpMenuEnabled(true);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KMainWindow_isHelpMenuEnabled(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KMainWindow*) QtSupport::getQt(env, obj))->isHelpMenuEnabled();
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_menuBar(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KMainWindow*) QtSupport::getQt(env, obj))->menuBar(), "org.kde.koala.KMenuBar");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_statusBar(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KMainWindow*) QtSupport::getQt(env, obj))->statusBar(), "org.kde.koala.KStatusBar");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_memberList(JNIEnv * env, jobject obj)
{
	return (jobject) KDESupport::arrayWithKMainWindowList(env, KMainWindow::memberList);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_toolBar__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring name)
{
static QCString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KMainWindow*) QtSupport::getQt(env, obj))->toolBar((char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.kde.koala.KToolBar");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_toolBar__(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KMainWindow*) QtSupport::getQt(env, obj))->toolBar(0), "org.kde.koala.KToolBar");
}

//JNIEXPORT  JNICALL
//Java_org_kde_koala_KMainWindow_toolBarIterator(JNIEnv *env, jobject obj)
//{
//	return () ((KMainWindow*) QtSupport::getQt(env, obj))->toolBarIterator();
//}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_accel(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KMainWindow*) QtSupport::getQt(env, obj))->accel(), "org.kde.koala.KAccel");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setFrameBorderWidth(JNIEnv *env, jobject obj, jint arg1)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->setFrameBorderWidth((int) arg1);
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KMainWindow_setAutoSaveSettings__Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring arg1, jboolean saveWindowSize)
//{
//	((KMainWindow*) QtSupport::getQt(env, obj))->setAutoSaveSettings((QString groupName ("MainWindow")) arg1, (bool) saveWindowSize);
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setAutoSaveSettings__(JNIEnv *env, jobject obj)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->setAutoSaveSettings(QString::fromLatin1("MainWindow"), true);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_resetAutoSaveSettings(JNIEnv *env, jobject obj)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->resetAutoSaveSettings();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_applyMainWindowSettings__Lorg_kde_koala_KConfig_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject config, jstring groupName)
{
static QString * _qstring_groupName = 0;
	((KMainWindow*) QtSupport::getQt(env, obj))->applyMainWindowSettings((KConfig*) QtSupport::getQt(env, config), (QString&) * (QString *) QtSupport::toQString(env, groupName, &_qstring_groupName));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_applyMainWindowSettings__Lorg_kde_koala_KConfig_2(JNIEnv *env, jobject obj, jobject config)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->applyMainWindowSettings((KConfig*) QtSupport::getQt(env, config), QString::null);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_saveMainWindowSettings__Lorg_kde_koala_KConfig_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject config, jstring groupName)
{
static QString * _qstring_groupName = 0;
	((KMainWindow*) QtSupport::getQt(env, obj))->saveMainWindowSettings((KConfig*) QtSupport::getQt(env, config), (QString&) * (QString *) QtSupport::toQString(env, groupName, &_qstring_groupName));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_saveMainWindowSettings__Lorg_kde_koala_KConfig_2(JNIEnv *env, jobject obj, jobject config)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->saveMainWindowSettings((KConfig*) QtSupport::getQt(env, config), QString::null);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_finalizeGUI(JNIEnv *env, jobject obj, jboolean force)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->finalizeGUI((bool) force);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KMainWindow_initialGeometrySet(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KMainWindow*) QtSupport::getQt(env, obj))->initialGeometrySet();
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_sizeForCentralWidgetSize(JNIEnv *env, jobject obj, jobject size)
{
	QSize _s= ((KMainWindow*) QtSupport::getQt(env, obj))->sizeForCentralWidgetSize((QSize) *(QSize *) QtSupport::getQt(env, size));
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSize(_s.width(),_s.height()), "org.kde.qt.QSize", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setCaption__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring caption)
{
static QString * _qstring_caption = 0;
	((KMainWindow*) QtSupport::getQt(env, obj))->setCaption((QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setCaption__Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring caption, jboolean modified)
{
static QString * _qstring_caption = 0;
	((KMainWindow*) QtSupport::getQt(env, obj))->setCaption((QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption), (bool) modified);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setPlainCaption(JNIEnv *env, jobject obj, jstring caption)
{
static QString * _qstring_caption = 0;
	((KMainWindow*) QtSupport::getQt(env, obj))->setPlainCaption((QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_appHelpActivated(JNIEnv *env, jobject obj)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->appHelpActivated();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_slotStateChanged(JNIEnv *env, jobject obj, jstring newstate)
{
static QString * _qstring_newstate = 0;
	((KMainWindow*) QtSupport::getQt(env, obj))->slotStateChanged((QString&) * (QString *) QtSupport::toQString(env, newstate, &_qstring_newstate));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setSettingsDirty(JNIEnv *env, jobject obj)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->setSettingsDirty();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KMainWindow_canBeRestored(JNIEnv *env, jclass obj, jint number)
{
	return (jboolean) KMainWindowJBridge::canBeRestored((int) number);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KMainWindow_classNameOfToplevel(JNIEnv *env, jclass obj, jint number)
{
	QString  _qstring;
	_qstring = KMainWindowJBridge::classNameOfToplevel((int) number);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_paintEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_paintEvent((QPaintEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_childEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_childEvent((QChildEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_resizeEvent(JNIEnv *env, jobject obj, jobject e)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_resizeEvent((QResizeEvent*) QtSupport::getQt(env, e));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_closeEvent(JNIEnv *env, jobject obj, jobject arg1)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_closeEvent((QCloseEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KMainWindow_queryExit(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_queryExit();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KMainWindow_queryClose(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_queryClose();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_saveProperties(JNIEnv *env, jobject obj, jobject arg1)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_saveProperties((KConfig*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_readProperties(JNIEnv *env, jobject obj, jobject arg1)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_readProperties((KConfig*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_saveGlobalProperties(JNIEnv *env, jobject obj, jobject sessionConfig)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_saveGlobalProperties((KConfig*) QtSupport::getQt(env, sessionConfig));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_readGlobalProperties(JNIEnv *env, jobject obj, jobject sessionConfig)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_readGlobalProperties((KConfig*) QtSupport::getQt(env, sessionConfig));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_savePropertiesInternal(JNIEnv *env, jobject obj, jobject arg1, jint arg2)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_savePropertiesInternal((KConfig*) QtSupport::getQt(env, arg1), (int) arg2);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KMainWindow_readPropertiesInternal(JNIEnv *env, jobject obj, jobject arg1, jint arg2)
{
	return (jboolean) ((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_readPropertiesInternal((KConfig*) QtSupport::getQt(env, arg1), (int) arg2);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KMainWindow_settingsDirty(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_settingsDirty();
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KMainWindow_settingsGroup(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_settingsGroup();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_saveWindowSize(JNIEnv *env, jobject obj, jobject config)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_saveWindowSize((KConfig*) QtSupport::getQt(env, config));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_restoreWindowSize(JNIEnv *env, jobject obj, jobject config)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_restoreWindowSize((KConfig*) QtSupport::getQt(env, config));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_parseGeometry(JNIEnv *env, jobject obj, jboolean parsewidth)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_parseGeometry((bool) parsewidth);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_showAboutApplication(JNIEnv *env, jobject obj)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_showAboutApplication();
	return;
}

// From KXMLGUIBuilder
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_builderClient(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KXMLGUIBuilder*) (KMainWindow*) QtSupport::getQt(env, obj))->builderClient(), "org.kde.koala.KXMLGUIClientInterface");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setBuilderClient(JNIEnv *env, jobject obj, jobject client)
{
	((KXMLGUIBuilder*) (KMainWindow*) QtSupport::getQt(env, obj))->setBuilderClient((KXMLGUIClient*) QtSupport::getQt(env, client));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_builderInstance(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KXMLGUIBuilder*) (KMainWindow*) QtSupport::getQt(env, obj))->builderInstance(), "org.kde.koala.KInstanceInterface");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setBuilderInstance(JNIEnv *env, jobject obj, jobject instance)
{
	((KXMLGUIBuilder*) (KMainWindow*) QtSupport::getQt(env, obj))->setBuilderInstance((KInstance*) QtSupport::getQt(env, instance));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_containerTags(JNIEnv *env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KXMLGUIBuilder*) (KMainWindow*) QtSupport::getQt(env, obj))->containerTags();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList *) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_createContainer(JNIEnv *env, jobject obj, jobject parent, jint index, jobject element, jint identifier)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KXMLGUIBuilder*) (KMainWindow*) QtSupport::getQt(env, obj))->createContainer((QWidget*) QtSupport::getQt(env, parent), (int) index, (QDomElement&) *(QDomElement *) QtSupport::getQt(env, element), (int&) * (int *) identifier), "org.kde.qt.QWidget");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_removeContainer(JNIEnv *env, jobject obj, jobject container, jobject parent, jobject element, jint identifier)
{
	((KXMLGUIBuilder*) (KMainWindow*) QtSupport::getQt(env, obj))->removeContainer((QWidget*) QtSupport::getQt(env, container), (QWidget*) QtSupport::getQt(env, parent), (QDomElement&) *(QDomElement *) QtSupport::getQt(env, element), (int) identifier);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_customTags(JNIEnv *env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KXMLGUIBuilder*) (KMainWindow*) QtSupport::getQt(env, obj))->customTags();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList *) &_qlist);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KMainWindow_createCustomElement(JNIEnv *env, jobject obj, jobject parent, jint index, jobject element)
{
	return (jint) ((KXMLGUIBuilder*) (KMainWindow*) QtSupport::getQt(env, obj))->createCustomElement((QWidget*) QtSupport::getQt(env, parent), (int) index, (QDomElement&) *(QDomElement *) QtSupport::getQt(env, element));
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_removeCustomElement(JNIEnv *env, jobject obj, jobject parent, jint identifier)
{
	((KXMLGUIBuilder*) (KMainWindow*) QtSupport::getQt(env, obj))->removeCustomElement((QWidget*) QtSupport::getQt(env, parent), (int) identifier);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_finalizeGUI(JNIEnv *env, jobject obj, jobject client)
{
	((KXMLGUIBuilder*) (KMainWindow*) QtSupport::getQt(env, obj))->finalizeGUI((KXMLGUIClient*) QtSupport::getQt(env, client));
	return;
}

// From KXMLGUIClient
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_action__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring name)
{
static QCString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KXMLGUIClient*) (KMainWindow*) QtSupport::getQt(env, obj))->action((char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.kde.koala.KAction");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_action__Lorg_kde_qt_QDomElement_2(JNIEnv *env, jobject obj, jobject element)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->action((QDomElement&) *(QDomElement *) QtSupport::getQt(env, element)), "org.kde.koala.KAction");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_actionCollection(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->actionCollection(), "org.kde.koala.KActionCollection");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_instance(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->instance(), "org.kde.koala.KInstanceInterface");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_domDocument(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomDocument (((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->domDocument()), "org.kde.qt.QDomDocument", TRUE);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KMainWindow_xmlFile(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->xmlFile();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KMainWindow_localXMLFile(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->localXMLFile();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setXMLGUIBuildDocument(JNIEnv *env, jobject obj, jobject doc)
{
	((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->setXMLGUIBuildDocument((QDomDocument&) *(QDomDocument *) QtSupport::getQt(env, doc));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_xmlguiBuildDocument(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomDocument (((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->xmlguiBuildDocument()), "org.kde.qt.QDomDocument", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setFactory(JNIEnv *env, jobject obj, jobject factory)
{
	((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->setFactory((KXMLGUIFactory*) QtSupport::getQt(env, factory));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_factory(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->factory(), "org.kde.koala.KXMLGUIFactory");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_parentClient(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->parentClient(), "org.kde.koala.KXMLGUIClientInterface");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_insertChildClient(JNIEnv *env, jobject obj, jobject child)
{
	((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->insertChildClient((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, child));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_removeChildClient(JNIEnv *env, jobject obj, jobject child)
{
	((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->removeChildClient((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, child));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_childClients(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->childClients(), "org.kde.koala.KXMLGUIClientPtrList");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setClientBuilder(JNIEnv *env, jobject obj, jobject builder)
{
	((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->setClientBuilder((KXMLGUIBuilder*) QtSupport::getQt(env, builder));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_clientBuilder(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->clientBuilder(), "org.kde.koala.KXMLGUIBuilderInterface");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_reloadXML(JNIEnv *env, jobject obj)
{
	((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->reloadXML();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_plugActionList(JNIEnv *env, jobject obj, jstring name, jobject actionList)
{
static QString * _qstring_name = 0;
	((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->plugActionList((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (QPtrList<KAction>&) *(QPtrList<KAction> *) QtSupport::getQt(env, actionList));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_unplugActionList(JNIEnv *env, jobject obj, jstring name)
{
static QString * _qstring_name = 0;
	((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->unplugActionList((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_addStateActionEnabled(JNIEnv *env, jobject obj, jstring state, jstring action)
{
static QString * _qstring_action = 0;
static QString * _qstring_state = 0;
	((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->addStateActionEnabled((QString&) * (QString *) QtSupport::toQString(env, state, &_qstring_state), (QString&) * (QString *) QtSupport::toQString(env, action, &_qstring_action));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_addStateActionDisabled(JNIEnv *env, jobject obj, jstring state, jstring action)
{
static QString * _qstring_action = 0;
static QString * _qstring_state = 0;
	((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->addStateActionDisabled((QString&) * (QString *) QtSupport::toQString(env, state, &_qstring_state), (QString&) * (QString *) QtSupport::toQString(env, action, &_qstring_action));
	return;
}

//JNIEXPORT  JNICALL
//Java_org_kde_koala_KMainWindow_getActionsToChangeForState(JNIEnv *env, jobject obj, jstring state)
//{
//static QString * _qstring_state = 0;
//	return () ((KXMLGUIClient*) (KMainWindow*) (KMainWindow*) QtSupport::getQt(env, obj))->getActionsToChangeForState((QString&) * (QString *) QtSupport::toQString(env, state, &_qstring_state));
//}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KMainWindow_findMostRecentXMLFile(JNIEnv *env, jclass obj, jobjectArray files, jstring doc)
{
	QString  _qstring;
static QString * _qstring_doc = 0;
static QStringList * _qlist_files = 0;
	_qstring = KXMLGUIClient::findMostRecentXMLFile((QStringList&) * (QStringList *) QtSupport::toQStringList(env, files, &_qlist_files), (QString&) * (QString *) QtSupport::toQString(env, doc, &_qstring_doc));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setInstance(JNIEnv *env, jobject obj, jobject instance)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_setInstance((KInstance*) QtSupport::getQt(env, instance));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setXMLFile__Ljava_lang_String_2ZZ(JNIEnv *env, jobject obj, jstring file, jboolean merge, jboolean setXMLDoc)
{
static QString * _qstring_file = 0;
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_setXMLFile((QString&) * (QString *) QtSupport::toQString(env, file, &_qstring_file), (bool) merge, (bool) setXMLDoc);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setXMLFile__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring file)
{
static QString * _qstring_file = 0;
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_setXMLFile((QString&) * (QString *) QtSupport::toQString(env, file, &_qstring_file), false, true);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setLocalXMLFile(JNIEnv *env, jobject obj, jstring file)
{
static QString * _qstring_file = 0;
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_setLocalXMLFile((QString&) * (QString *) QtSupport::toQString(env, file, &_qstring_file));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setXML__Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring document, jboolean merge)
{
static QString * _qstring_document = 0;
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_setXML((QString&) * (QString *) QtSupport::toQString(env, document, &_qstring_document), (bool) merge);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setXML__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring document)
{
static QString * _qstring_document = 0;
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_setXML((QString&) * (QString *) QtSupport::toQString(env, document, &_qstring_document), false);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setDOMDocument__Lorg_kde_qt_QDomDocument_2Z(JNIEnv *env, jobject obj, jobject document, jboolean merge)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_setDOMDocument((QDomDocument&) *(QDomDocument *) QtSupport::getQt(env, document), (bool) merge);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setDOMDocument__Lorg_kde_qt_QDomDocument_2(JNIEnv *env, jobject obj, jobject document)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_setDOMDocument((QDomDocument&) *(QDomDocument *) QtSupport::getQt(env, document), false);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_conserveMemory(JNIEnv *env, jobject obj)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_conserveMemory();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_stateChanged(JNIEnv *env, jobject obj, jstring newstate)
{
static QString * _qstring_newstate = 0;
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_stateChanged((QString&) * (QString *) QtSupport::toQString(env, newstate, &_qstring_newstate));
	return;
}

