//Auto-generated by kalyptus. DO NOT EDIT.
#include <kmainwindow.h>
#include <kxmlguiclient.h>
#include <qpixmap.h>
#include <qstring.h>
#include <qdom.h>
#include <qstringlist.h>
#include <kxmlguibuilder.h>
#include <qnamespace.h>

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

class KMainWindowJBridge : public KMainWindow
{
public:
	KMainWindowJBridge(QWidget* arg1,const char* arg2,Qt::WFlags arg3) : KMainWindow(arg1,arg2,arg3) {};
	KMainWindowJBridge(QWidget* arg1,const char* arg2) : KMainWindow(arg1,arg2) {};
	KMainWindowJBridge(QWidget* arg1) : KMainWindow(arg1) {};
	KMainWindowJBridge() : KMainWindow() {};
	KMainWindowJBridge(int arg1,QWidget* arg2,const char* arg3,Qt::WFlags arg4) : KMainWindow(arg1,arg2,arg3,arg4) {};
	KMainWindowJBridge(int arg1,QWidget* arg2,const char* arg3) : KMainWindow(arg1,arg2,arg3) {};
	KMainWindowJBridge(int arg1,QWidget* arg2) : KMainWindow(arg1,arg2) {};
	KMainWindowJBridge(int arg1) : KMainWindow(arg1) {};
	void public_show() {
		KMainWindow::show();
		return;
	}
	void public_hide() {
		KMainWindow::hide();
		return;
	}
	void protected_paintEvent(QPaintEvent* arg1) {
		KMainWindow::paintEvent(arg1);
		return;
	}
	void protected_childEvent(QChildEvent* arg1) {
		KMainWindow::childEvent(arg1);
		return;
	}
	void protected_resizeEvent(QResizeEvent* arg1) {
		KMainWindow::resizeEvent(arg1);
		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* arg1) {
		KMainWindow::saveGlobalProperties(arg1);
		return;
	}
	void protected_readGlobalProperties(KConfig* arg1) {
		KMainWindow::readGlobalProperties(arg1);
		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* arg1) {
		KMainWindow::saveWindowSize(arg1);
		return;
	}
	void protected_restoreWindowSize(KConfig* arg1) {
		KMainWindow::restoreWindowSize(arg1);
		return;
	}
	void protected_parseGeometry(bool arg1) {
		KMainWindow::parseGeometry(arg1);
		return;
	}
	void protected_saveNewToolbarConfig() {
		KMainWindow::saveNewToolbarConfig();
		return;
	}
	void protected_showAboutApplication() {
		KMainWindow::showAboutApplication();
		return;
	}
	void protected_saveAutoSaveSettings() {
		KMainWindow::saveAutoSaveSettings();
		return;
	}
	~KMainWindowJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_setInstance(KInstance* arg1) {
		KXMLGUIClient::setInstance(arg1);
		return;
	}
	void protected_setXMLFile(const QString& arg1,bool arg2,bool arg3) {
		KXMLGUIClient::setXMLFile(arg1,arg2,arg3);
		return;
	}
	void protected_setXMLFile(const QString& arg1,bool arg2) {
		KXMLGUIClient::setXMLFile(arg1,arg2);
		return;
	}
	void protected_setXMLFile(const QString& arg1) {
		KXMLGUIClient::setXMLFile(arg1);
		return;
	}
	void protected_setLocalXMLFile(const QString& arg1) {
		KXMLGUIClient::setLocalXMLFile(arg1);
		return;
	}
	void protected_setXML(const QString& arg1,bool arg2) {
		KXMLGUIClient::setXML(arg1,arg2);
		return;
	}
	void protected_setXML(const QString& arg1) {
		KXMLGUIClient::setXML(arg1);
		return;
	}
	void protected_setDOMDocument(const QDomDocument& arg1,bool arg2) {
		KXMLGUIClient::setDOMDocument(arg1,arg2);
		return;
	}
	void protected_setDOMDocument(const QDomDocument& arg1) {
		KXMLGUIClient::setDOMDocument(arg1);
		return;
	}
	void protected_conserveMemory() {
		KXMLGUIClient::conserveMemory();
		return;
	}
	void protected_stateChanged(const QString& arg1,KXMLGUIClient::ReverseStateChange arg2) {
		KXMLGUIClient::stateChanged(arg1,arg2);
		return;
	}
	void protected_stateChanged(const QString& arg1) {
		KXMLGUIClient::stateChanged(arg1);
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dragLeaveEvent",(void*)arg1,"org.kde.qt.QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void setMask(const QRegion& arg1) {
		if (!QtSupport::eventDelegate(this,"setMask",(void*)&arg1,"org.kde.qt.QRegion")) {
			QWidget::setMask(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"resizeEvent",(void*)arg1,"org.kde.qt.QResizeEvent")) {
			KMainWindow::resizeEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"mouseDoubleClickEvent",(void*)arg1,"org.kde.qt.QMouseEvent")) {
			QWidget::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void paletteChange(const QPalette& arg1) {
		if (!QtSupport::eventDelegate(this,"paletteChange",(void*)&arg1,"org.kde.qt.QPalette")) {
			QWidget::paletteChange(arg1);
		}
		return;
	}
	bool queryClose() {
		return QtSupport::booleanDelegate(this,"queryClose");
	}
	void setCentralWidget(QWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"setCentralWidget",(void*)arg1,"org.kde.qt.QWidget")) {
			QMainWindow::setCentralWidget(arg1);
		}
		return;
	}
	void setActiveWindow() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","setActiveWindow")) {
			QWidget::setActiveWindow();
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dragEnterEvent",(void*)arg1,"org.kde.qt.QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void show() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","show")) {
			KMainWindow::show();
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"focusOutEvent",(void*)arg1,"org.kde.qt.QFocusEvent")) {
			QWidget::focusOutEvent(arg1);
		}
		return;
	}
	void setFocus() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","setFocus")) {
			QWidget::setFocus();
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dragMoveEvent",(void*)arg1,"org.kde.qt.QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void hide() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","hide")) {
			KMainWindow::hide();
		}
		return;
	}
	void setPaletteBackgroundColor(const QColor& arg1) {
		if (!QtSupport::eventDelegate(this,"setPaletteBackgroundColor",(void*)&arg1,"org.kde.qt.QColor")) {
			QWidget::setPaletteBackgroundColor(arg1);
		}
		return;
	}
	void setEraseColor(const QColor& arg1) {
		if (!QtSupport::eventDelegate(this,"setEraseColor",(void*)&arg1,"org.kde.qt.QColor")) {
			QWidget::setEraseColor(arg1);
		}
		return;
	}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"paintEvent",(void*)arg1,"org.kde.qt.QPaintEvent")) {
			KMainWindow::paintEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"imStartEvent",(void*)arg1,"org.kde.qt.QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void removeDockWindow(QDockWindow* arg1) {
		if (!QtSupport::eventDelegate(this,"removeDockWindow",(void*)arg1,"org.kde.qt.QDockWindow")) {
			QMainWindow::removeDockWindow(arg1);
		}
		return;
	}
	void unsetCursor() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","unsetCursor")) {
			QWidget::unsetCursor();
		}
		return;
	}
	void showAboutApplication() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","showAboutApplication")) {
			KMainWindow::showAboutApplication();
		}
		return;
	}
	void readGlobalProperties(KConfig* arg1) {
		if (!QtSupport::eventDelegate(this,"readGlobalProperties",(void*)arg1,"org.kde.koala.KConfig")) {
			KMainWindow::readGlobalProperties(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"hideEvent",(void*)arg1,"org.kde.qt.QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void conserveMemory() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","conserveMemory")) {
			KXMLGUIClient::conserveMemory();
		}
		return;
	}
	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 moveEvent(QMoveEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"moveEvent",(void*)arg1,"org.kde.qt.QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void polish() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","polish")) {
			QWidget::polish();
		}
		return;
	}
	void showMaximized() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","showMaximized")) {
			QWidget::showMaximized();
		}
		return;
	}
	void setBackgroundPixmap(const QPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setBackgroundPixmap",(void*)&arg1,"org.kde.qt.QPixmap")) {
			QWidget::setBackgroundPixmap(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"showEvent",(void*)arg1,"org.kde.qt.QShowEvent")) {
			QWidget::showEvent(arg1);
		}
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"keyPressEvent",(void*)arg1,"org.kde.qt.QKeyEvent")) {
			QWidget::keyPressEvent(arg1);
		}
		return;
	}
	bool customWhatsThis() {
		return QtSupport::booleanDelegate(this,"customWhatsThis");
	}
	void setPaletteBackgroundPixmap(const QPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setPaletteBackgroundPixmap",(void*)&arg1,"org.kde.qt.QPixmap")) {
			QWidget::setPaletteBackgroundPixmap(arg1);
		}
		return;
	}
	void setCursor(const QCursor& arg1) {
		if (!QtSupport::eventDelegate(this,"setCursor",(void*)&arg1,"org.kde.qt.QCursor")) {
			QWidget::setCursor(arg1);
		}
		return;
	}
	void closeEvent(QCloseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"closeEvent",(void*)arg1,"org.kde.qt.QCloseEvent")) {
			KMainWindow::closeEvent(arg1);
		}
		return;
	}
	void readProperties(KConfig* arg1) {
		if (!QtSupport::eventDelegate(this,"readProperties",(void*)arg1,"org.kde.koala.KConfig")) {
			KMainWindow::readProperties(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void setUpLayout() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","setUpLayout")) {
			QMainWindow::setUpLayout();
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"enterEvent",(void*)arg1,"org.kde.qt.QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"mouseReleaseEvent",(void*)arg1,"org.kde.qt.QMouseEvent")) {
			QWidget::mouseReleaseEvent(arg1);
		}
		return;
	}
	void setErasePixmap(const QPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setErasePixmap",(void*)&arg1,"org.kde.qt.QPixmap")) {
			QWidget::setErasePixmap(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			KMainWindow::childEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dropEvent",(void*)arg1,"org.kde.qt.QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"leaveEvent",(void*)arg1,"org.kde.qt.QEvent")) {
			QWidget::leaveEvent(arg1);
		}
		return;
	}
	void setIcon(const QPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setIcon",(void*)&arg1,"org.kde.qt.QPixmap")) {
			KMainWindow::setIcon(arg1);
		}
		return;
	}
	void updateMask() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","updateMask")) {
			QWidget::updateMask();
		}
		return;
	}
	void showNormal() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","showNormal")) {
			QWidget::showNormal();
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"imComposeEvent",(void*)arg1,"org.kde.qt.QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"mousePressEvent",(void*)arg1,"org.kde.qt.QMouseEvent")) {
			QWidget::mousePressEvent(arg1);
		}
		return;
	}
	void whatsThis() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","whatsThis")) {
			QMainWindow::whatsThis();
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"mouseMoveEvent",(void*)arg1,"org.kde.qt.QMouseEvent")) {
			QWidget::mouseMoveEvent(arg1);
		}
		return;
	}
	void setFocusProxy(QWidget* arg1) {
		if (!QtSupport::eventDelegate(this,"setFocusProxy",(void*)arg1,"org.kde.qt.QWidget")) {
			QWidget::setFocusProxy(arg1);
		}
		return;
	}
	void fontChange(const QFont& arg1) {
		if (!QtSupport::eventDelegate(this,"fontChange",(void*)&arg1,"org.kde.qt.QFont")) {
			QWidget::fontChange(arg1);
		}
		return;
	}
	void setBackgroundColor(const QColor& arg1) {
		if (!QtSupport::eventDelegate(this,"setBackgroundColor",(void*)&arg1,"org.kde.qt.QColor")) {
			QWidget::setBackgroundColor(arg1);
		}
		return;
	}
	void adjustSize() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","adjustSize")) {
			QWidget::adjustSize();
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"wheelEvent",(void*)arg1,"org.kde.qt.QWheelEvent")) {
			QWidget::wheelEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"imEndEvent",(void*)arg1,"org.kde.qt.QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"focusInEvent",(void*)arg1,"org.kde.qt.QFocusEvent")) {
			QWidget::focusInEvent(arg1);
		}
		return;
	}
	bool isCustomizable() {
		return QtSupport::booleanDelegate(this,"isCustomizable");
	}
	void customize() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","customize")) {
			QMainWindow::customize();
		}
		return;
	}
	void saveGlobalProperties(KConfig* arg1) {
		if (!QtSupport::eventDelegate(this,"saveGlobalProperties",(void*)arg1,"org.kde.koala.KConfig")) {
			KMainWindow::saveGlobalProperties(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"tabletEvent",(void*)arg1,"org.kde.qt.QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"keyReleaseEvent",(void*)arg1,"org.kde.qt.QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"contextMenuEvent",(void*)arg1,"org.kde.qt.QContextMenuEvent")) {
			QWidget::contextMenuEvent(arg1);
		}
		return;
	}
	void setGeometry(const QRect& arg1) {
		if (!QtSupport::eventDelegate(this,"setGeometry",(void*)&arg1,"org.kde.qt.QRect")) {
			QWidget::setGeometry(arg1);
		}
		return;
	}
	void setInstance(KInstance* arg1) {
		if (!QtSupport::eventDelegate(this,"setInstance",(void*)arg1,"org.kde.koala.KInstanceInterface")) {
			KXMLGUIClient::setInstance(arg1);
		}
		return;
	}
	void showMinimized() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KMainWindow","showMinimized")) {
			QWidget::showMinimized();
		}
		return;
	}
};

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_addStateActionEnabled(JNIEnv* env, jobject obj, jstring state, jstring action)
{
static QString* _qstring_state = 0;
static QString* _qstring_action = 0;
	((KXMLGUIClient*)(KMainWindow*) QtSupport::getQt(env, obj))->addStateActionEnabled((const QString&)*(QString*) QtSupport::toQString(env, state, &_qstring_state), (const QString&)*(QString*) QtSupport::toQString(env, action, &_qstring_action));
	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_applyMainWindowSettings__Lorg_kde_koala_KConfig_2(JNIEnv* env, jobject obj, jobject config)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->applyMainWindowSettings((KConfig*) QtSupport::getQt(env, config));
	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), (const QString&)*(QString*) QtSupport::toQString(env, groupName, &_qstring_groupName));
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KMainWindow_autoSaveSettings(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KMainWindow*) QtSupport::getQt(env, obj))->autoSaveSettings();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_beginXMLPlug(JNIEnv* env, jobject obj, jobject arg1)
{
	((KXMLGUIClient*)(KMainWindow*) QtSupport::getQt(env, obj))->beginXMLPlug((QWidget*) QtSupport::getQt(env, arg1));
	return;
}

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

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

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

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 jstring JNICALL
Java_org_kde_koala_KMainWindow_classNameOfToplevel(JNIEnv* env, jclass cls, jint number)
{
	QString  _qstring;
	(void) cls;
	_qstring = KMainWindowJBridge::classNameOfToplevel((int) number);
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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 jint JNICALL
Java_org_kde_koala_KMainWindow_configureToolbars(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KMainWindow*) QtSupport::getQt(env, obj))->configureToolbars();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_conserveMemory(JNIEnv* env, jobject obj)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_conserveMemory();
	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, jintArray id)
{
	int* _int_id = QtSupport::toIntPtr(env, id);
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIBuilder*)(KMainWindow*) QtSupport::getQt(env, obj))->createContainer((QWidget*) QtSupport::getQt(env, parent), (int) index, (const QDomElement&)*(const QDomElement*) QtSupport::getQt(env, element),  (int&) *_int_id), "org.kde.qt.QWidget");
	env->SetIntArrayRegion(id, 0, 1, (jint *) _int_id);
	return xret;
}

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

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

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

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((const QString&)*(QString*) QtSupport::toQString(env, xmlfile, &_qstring_xmlfile), (bool) _conserveMemory);
	return;
}

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

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

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

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 void JNICALL
Java_org_kde_koala_KMainWindow_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KMainWindow_finalize(env, obj);
	return;
}

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

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KMainWindow_findMostRecentXMLFile(JNIEnv* env, jclass cls, jobjectArray files, jobject doc)
{
	QString  _qstring;
	(void) cls;
static QStringList* _qlist_files = 0;
static QString* _qstring_doc = 0;
	_qstring = KMainWindowJBridge::findMostRecentXMLFile((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, files, &_qlist_files), (QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, doc, &_qstring_doc));
	QtSupport::fromQStringToStringBuffer(env, _qstring_doc, doc);
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KMainWindow_hasMenuBar(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KMainWindow*) QtSupport::getQt(env, obj))->hasMenuBar();
	return xret;
}

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

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

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;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KMainWindow*) QtSupport::getQt(env, obj))->helpMenu((const QString&)*(QString*) QtSupport::toQString(env, aboutAppText, &_qstring_aboutAppText), (bool) showWhatsThis), "org.kde.koala.KPopupMenu");
	return xret;
}

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

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

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KMainWindow_isStandardToolBarMenuEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KMainWindow*) QtSupport::getQt(env, obj))->isStandardToolBarMenuEnabled();
	return xret;
}

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

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

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

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

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());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_newKMainWindow__I(JNIEnv* env, jobject obj, jint cflags)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMainWindowJBridge((int) cflags));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_newKMainWindow__ILorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jint cflags, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMainWindowJBridge((int) cflags, (QWidget*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_newKMainWindow__ILorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jint cflags, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMainWindowJBridge((int) cflags, (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_KMainWindow_newKMainWindow__ILorg_kde_qt_QWidget_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jint cflags, jobject parent, jstring name, jint f)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMainWindowJBridge((int) cflags, (QWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (Qt::WFlags) f));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_newKMainWindow__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 KMainWindowJBridge((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_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), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (Qt::WFlags) f));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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 jobject JNICALL
Java_org_kde_koala_KMainWindow_parentClient(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*)(KMainWindow*) QtSupport::getQt(env, obj))->parentClient(), "org.kde.koala.KXMLGUIClientInterface");
	return xret;
}

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_prepareXMLUnplug(JNIEnv* env, jobject obj, jobject arg1)
{
	((KXMLGUIClient*)(KMainWindow*) QtSupport::getQt(env, obj))->prepareXMLUnplug((QWidget*) QtSupport::getQt(env, arg1));
	return;
}

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

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

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 jboolean JNICALL
Java_org_kde_koala_KMainWindow_readPropertiesInternal(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	jboolean xret = (jboolean) ((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_readPropertiesInternal((KConfig*) QtSupport::getQt(env, arg1), (int) arg2);
	return xret;
}

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_reloadXML(JNIEnv* env, jobject obj)
{
	((KXMLGUIClient*)(KMainWindow*) QtSupport::getQt(env, obj))->reloadXML();
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_removeCustomElement(JNIEnv* env, jobject obj, jobject parent, jint id)
{
	((KXMLGUIBuilder*)(KMainWindow*) QtSupport::getQt(env, obj))->removeCustomElement((QWidget*) QtSupport::getQt(env, parent), (int) id);
	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_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_restoreWindowSize(JNIEnv* env, jobject obj, jobject config)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_restoreWindowSize((KConfig*) QtSupport::getQt(env, config));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_saveAutoSaveSettings(JNIEnv* env, jobject obj)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_saveAutoSaveSettings();
	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_saveMainWindowSettings__Lorg_kde_koala_KConfig_2(JNIEnv* env, jobject obj, jobject config)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->saveMainWindowSettings((KConfig*) QtSupport::getQt(env, config));
	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), (const QString&)*(QString*) QtSupport::toQString(env, groupName, &_qstring_groupName));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_saveNewToolbarConfig(JNIEnv* env, jobject obj)
{
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_saveNewToolbarConfig();
	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 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_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_setAutoSaveSettings__(JNIEnv* env, jobject obj)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->setAutoSaveSettings();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setAutoSaveSettings__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring groupName, jboolean saveWindowSize)
{
static QString* _qstring_groupName = 0;
	((KMainWindow*) QtSupport::getQt(env, obj))->setAutoSaveSettings((const QString&)*(QString*) QtSupport::toQString(env, groupName, &_qstring_groupName), (bool) saveWindowSize);
	return;
}

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 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 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((const 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((const QString&)*(QString*) QtSupport::toQString(env, caption, &_qstring_caption), (bool) modified);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setClientBuilder(JNIEnv* env, jobject obj, jobject builder)
{
	((KXMLGUIClient*)(KMainWindow*) QtSupport::getQt(env, obj))->setClientBuilder((KXMLGUIBuilder*) QtSupport::getQt(env, builder));
	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((const QDomDocument&)*(const QDomDocument*) QtSupport::getQt(env, document));
	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((const QDomDocument&)*(const QDomDocument*) QtSupport::getQt(env, document), (bool) merge);
	return;
}

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

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_setHelpMenuEnabled__(JNIEnv* env, jobject obj)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->setHelpMenuEnabled();
	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_setIcon(JNIEnv* env, jobject obj, jobject arg1)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->setIcon((const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, arg1));
	return;
}

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_setLocalXMLFile(JNIEnv* env, jobject obj, jstring file)
{
static QString* _qstring_file = 0;
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_setLocalXMLFile((const QString&)*(QString*) QtSupport::toQString(env, file, &_qstring_file));
	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((const QString&)*(QString*) QtSupport::toQString(env, caption, &_qstring_caption));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setStandardToolBarMenuEnabled(JNIEnv* env, jobject obj, jboolean enable)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->setStandardToolBarMenuEnabled((bool) enable);
	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((const QString&)*(QString*) QtSupport::toQString(env, file, &_qstring_file));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setXMLFile__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring file, jboolean merge)
{
static QString* _qstring_file = 0;
	((KMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_setXMLFile((const QString&)*(QString*) QtSupport::toQString(env, file, &_qstring_file), (bool) merge);
	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((const QString&)*(QString*) QtSupport::toQString(env, file, &_qstring_file), (bool) merge, (bool) setXMLDoc);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setXMLGUIBuildDocument(JNIEnv* env, jobject obj, jobject doc)
{
	((KXMLGUIClient*)(KMainWindow*) QtSupport::getQt(env, obj))->setXMLGUIBuildDocument((const QDomDocument&)*(const QDomDocument*) QtSupport::getQt(env, doc));
	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((const QString&)*(QString*) QtSupport::toQString(env, document, &_qstring_document));
	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((const QString&)*(QString*) QtSupport::toQString(env, document, &_qstring_document), (bool) merge);
	return;
}

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

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_setupGUI__(JNIEnv* env, jobject obj)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->setupGUI();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setupGUI__I(JNIEnv* env, jobject obj, jint options)
{
	((KMainWindow*) QtSupport::getQt(env, obj))->setupGUI((int) options);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KMainWindow_setupGUI__ILjava_lang_String_2(JNIEnv* env, jobject obj, jint options, jstring xmlfile)
{
static QString* _qstring_xmlfile = 0;
	((KMainWindow*) QtSupport::getQt(env, obj))->setupGUI((int) options, (const QString&)*(QString*) QtSupport::toQString(env, xmlfile, &_qstring_xmlfile));
	return;
}

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

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_toolBarMenuAction(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KMainWindow*) QtSupport::getQt(env, obj))->toolBarMenuAction(), "org.kde.koala.KAction");
	return xret;
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KMainWindow_widget(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIBuilder*)(KMainWindow*) QtSupport::getQt(env, obj))->widget(), "org.kde.qt.QWidget");
	return xret;
}

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

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

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

