//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstyle.h>
#include <qstring.h>
#include <qpoint.h>
#include <qsize.h>
#include <qmainwindow.h>
#include <qnamespace.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QMainWindow.h>

class QMainWindowJBridge : public QMainWindow
{
public:
	QMainWindowJBridge(QWidget* arg1,const char* arg2,Qt::WFlags arg3) : QMainWindow(arg1,arg2,arg3) {};
	QMainWindowJBridge(QWidget* arg1,const char* arg2) : QMainWindow(arg1,arg2) {};
	QMainWindowJBridge(QWidget* arg1) : QMainWindow(arg1) {};
	QMainWindowJBridge() : QMainWindow() {};
	void public_whatsThis() {
		QMainWindow::whatsThis();
		return;
	}
	void public_customize() {
		QMainWindow::customize();
		return;
	}
	void protected_paintEvent(QPaintEvent* arg1) {
		QMainWindow::paintEvent(arg1);
		return;
	}
	void protected_childEvent(QChildEvent* arg1) {
		QMainWindow::childEvent(arg1);
		return;
	}
	bool protected_event(QEvent* arg1) {
		return (bool) QMainWindow::event(arg1);
	}
	void protected_styleChange(QStyle& arg1) {
		QMainWindow::styleChange(arg1);
		return;
	}
	void protected_setUpLayout() {
		QMainWindow::setUpLayout();
		return;
	}
	bool protected_showDockMenu(const QPoint& arg1) {
		return (bool) QMainWindow::showDockMenu(arg1);
	}
	void protected_menuAboutToShow() {
		QMainWindow::menuAboutToShow();
		return;
	}
	~QMainWindowJBridge() {QtSupport::qtKeyDeleted(this);}
	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")) {
			QWidget::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;
	}
	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.qt.QMainWindow","setActiveWindow")) {
			QWidget::setActiveWindow();
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dragEnterEvent",(void*)arg1,"org.kde.qt.QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		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.qt.QMainWindow","setFocus")) {
			QWidget::setFocus();
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"dragMoveEvent",(void*)arg1,"org.kde.qt.QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		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")) {
			QMainWindow::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.qt.QMainWindow","unsetCursor")) {
			QWidget::unsetCursor();
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"hideEvent",(void*)arg1,"org.kde.qt.QHideEvent")) {
			QWidget::hideEvent(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.qt.QMainWindow","polish")) {
			QWidget::polish();
		}
		return;
	}
	void showMaximized() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QMainWindow","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")) {
			QWidget::closeEvent(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.qt.QMainWindow","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")) {
			QMainWindow::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")) {
			QWidget::setIcon(arg1);
		}
		return;
	}
	void updateMask() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QMainWindow","updateMask")) {
			QWidget::updateMask();
		}
		return;
	}
	void showNormal() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QMainWindow","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.qt.QMainWindow","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.qt.QMainWindow","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.qt.QMainWindow","customize")) {
			QMainWindow::customize();
		}
		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 showMinimized() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QMainWindow","showMinimized")) {
			QWidget::showMinimized();
		}
		return;
	}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_addDockWindow__Lorg_kde_qt_QDockWindow_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->addDockWindow((QDockWindow*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_addDockWindow__Lorg_kde_qt_QDockWindow_2I(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->addDockWindow((QDockWindow*) QtSupport::getQt(env, arg1), (Qt::Dock) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_addDockWindow__Lorg_kde_qt_QDockWindow_2IZ(JNIEnv* env, jobject obj, jobject arg1, jint arg2, jboolean newLine)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->addDockWindow((QDockWindow*) QtSupport::getQt(env, arg1), (Qt::Dock) arg2, (bool) newLine);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_addDockWindow__Lorg_kde_qt_QDockWindow_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject arg1, jstring label)
{
static QString* _qstring_label = 0;
	((QMainWindow*) QtSupport::getQt(env, obj))->addDockWindow((QDockWindow*) QtSupport::getQt(env, arg1), (const QString&)*(QString*) QtSupport::toQString(env, label, &_qstring_label));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_addDockWindow__Lorg_kde_qt_QDockWindow_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject arg1, jstring label, jint arg3)
{
static QString* _qstring_label = 0;
	((QMainWindow*) QtSupport::getQt(env, obj))->addDockWindow((QDockWindow*) QtSupport::getQt(env, arg1), (const QString&)*(QString*) QtSupport::toQString(env, label, &_qstring_label), (Qt::Dock) arg3);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_addDockWindow__Lorg_kde_qt_QDockWindow_2Ljava_lang_String_2IZ(JNIEnv* env, jobject obj, jobject arg1, jstring label, jint arg3, jboolean newLine)
{
static QString* _qstring_label = 0;
	((QMainWindow*) QtSupport::getQt(env, obj))->addDockWindow((QDockWindow*) QtSupport::getQt(env, arg1), (const QString&)*(QString*) QtSupport::toQString(env, label, &_qstring_label), (Qt::Dock) arg3, (bool) newLine);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_addToolBar__Lorg_kde_qt_QDockWindow_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->addToolBar((QDockWindow*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_addToolBar__Lorg_kde_qt_QDockWindow_2I(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->addToolBar((QDockWindow*) QtSupport::getQt(env, arg1), (Qt::Dock) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_addToolBar__Lorg_kde_qt_QDockWindow_2IZ(JNIEnv* env, jobject obj, jobject arg1, jint arg2, jboolean newLine)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->addToolBar((QDockWindow*) QtSupport::getQt(env, arg1), (Qt::Dock) arg2, (bool) newLine);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_addToolBar__Lorg_kde_qt_QDockWindow_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject arg1, jstring label)
{
static QString* _qstring_label = 0;
	((QMainWindow*) QtSupport::getQt(env, obj))->addToolBar((QDockWindow*) QtSupport::getQt(env, arg1), (const QString&)*(QString*) QtSupport::toQString(env, label, &_qstring_label));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_addToolBar__Lorg_kde_qt_QDockWindow_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject arg1, jstring label, jint arg3)
{
static QString* _qstring_label = 0;
	((QMainWindow*) QtSupport::getQt(env, obj))->addToolBar((QDockWindow*) QtSupport::getQt(env, arg1), (const QString&)*(QString*) QtSupport::toQString(env, label, &_qstring_label), (Qt::Dock) arg3);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_addToolBar__Lorg_kde_qt_QDockWindow_2Ljava_lang_String_2IZ(JNIEnv* env, jobject obj, jobject arg1, jstring label, jint arg3, jboolean newLine)
{
static QString* _qstring_label = 0;
	((QMainWindow*) QtSupport::getQt(env, obj))->addToolBar((QDockWindow*) QtSupport::getQt(env, arg1), (const QString&)*(QString*) QtSupport::toQString(env, label, &_qstring_label), (Qt::Dock) arg3, (bool) newLine);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_appropriate(JNIEnv* env, jobject obj, jobject dw)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->appropriate((QDockWindow*) QtSupport::getQt(env, dw));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMainWindow_bottomDock(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMainWindow*) QtSupport::getQt(env, obj))->bottomDock(), "org.kde.qt.QDockArea");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_childEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((QMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_childEvent((QChildEvent*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMainWindow_createDockWindowMenu__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMainWindow*) QtSupport::getQt(env, obj))->createDockWindowMenu(), "org.kde.qt.QPopupMenu");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMainWindow_createDockWindowMenu__I(JNIEnv* env, jobject obj, jint dockWindows)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMainWindow*) QtSupport::getQt(env, obj))->createDockWindowMenu((QMainWindow::DockWindows) dockWindows), "org.kde.qt.QPopupMenu");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_customize(JNIEnv* env, jobject obj)
{
	((QMainWindowJBridge*) QtSupport::getQt(env, obj))->public_customize();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QMainWindow_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_dockWindowsMovable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->dockWindowsMovable();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMainWindow_dockingArea(JNIEnv* env, jobject obj, jobject p)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMainWindow*) QtSupport::getQt(env, obj))->dockingArea((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p)), "org.kde.qt.QDockArea");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_eventFilter(JNIEnv* env, jobject obj, jobject arg1, jobject arg2)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->eventFilter((QObject*) QtSupport::getQt(env, arg1), (QEvent*) QtSupport::getQt(env, arg2));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_event(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_event((QEvent*) QtSupport::getQt(env, arg1));
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_getLocation(JNIEnv* env, jobject obj, jobject tb, jint dock, jintArray index, jboolean nl, jintArray extraOffset)
{
	int* _int_index = QtSupport::toIntPtr(env, index);
	int* _int_extraOffset = QtSupport::toIntPtr(env, extraOffset);
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->getLocation((QDockWindow*) QtSupport::getQt(env, tb), (Qt::Dock&) dock,  (int&) *_int_index, (bool&) nl,  (int&) *_int_extraOffset);
	env->SetIntArrayRegion(index, 0, 1, (jint *) _int_index);
	env->SetIntArrayRegion(extraOffset, 0, 1, (jint *) _int_extraOffset);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_hasDockWindow(JNIEnv* env, jobject obj, jobject dw)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->hasDockWindow((QDockWindow*) QtSupport::getQt(env, dw));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_hide(JNIEnv* env, jobject obj)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->hide();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_isCustomizable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->isCustomizable();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_isDockEnabled__I(JNIEnv* env, jobject obj, jint dock)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->isDockEnabled((Qt::Dock) dock);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_isDockEnabled__Lorg_kde_qt_QDockArea_2(JNIEnv* env, jobject obj, jobject area)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->isDockEnabled((QDockArea*) QtSupport::getQt(env, area));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_isDockEnabled__Lorg_kde_qt_QDockWindow_2I(JNIEnv* env, jobject obj, jobject tb, jint dock)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->isDockEnabled((QDockWindow*) QtSupport::getQt(env, tb), (Qt::Dock) dock);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_isDockEnabled__Lorg_kde_qt_QDockWindow_2Lorg_kde_qt_QDockArea_2(JNIEnv* env, jobject obj, jobject tb, jobject area)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->isDockEnabled((QDockWindow*) QtSupport::getQt(env, tb), (QDockArea*) QtSupport::getQt(env, area));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_isDockMenuEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->isDockMenuEnabled();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMainWindow_leftDock(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMainWindow*) QtSupport::getQt(env, obj))->leftDock(), "org.kde.qt.QDockArea");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_lineUpDockWindows__(JNIEnv* env, jobject obj)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->lineUpDockWindows();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_lineUpDockWindows__Z(JNIEnv* env, jobject obj, jboolean keepNewLines)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->lineUpDockWindows((bool) keepNewLines);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_lineUpToolBars__(JNIEnv* env, jobject obj)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->lineUpToolBars();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_lineUpToolBars__Z(JNIEnv* env, jobject obj, jboolean keepNewLines)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->lineUpToolBars((bool) keepNewLines);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_menuAboutToShow(JNIEnv* env, jobject obj)
{
	((QMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_menuAboutToShow();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMainWindow_menuBar(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMainWindow*) QtSupport::getQt(env, obj))->menuBar(), "org.kde.qt.QMenuBar");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMainWindow_minimumSizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QMainWindow*) QtSupport::getQt(env, obj))->minimumSizeHint()), "org.kde.qt.QSize", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_moveDockWindow__Lorg_kde_qt_QDockWindow_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->moveDockWindow((QDockWindow*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_moveDockWindow__Lorg_kde_qt_QDockWindow_2I(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->moveDockWindow((QDockWindow*) QtSupport::getQt(env, arg1), (Qt::Dock) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_moveDockWindow__Lorg_kde_qt_QDockWindow_2IZI(JNIEnv* env, jobject obj, jobject arg1, jint arg2, jboolean nl, jint index)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->moveDockWindow((QDockWindow*) QtSupport::getQt(env, arg1), (Qt::Dock) arg2, (bool) nl, (int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_moveDockWindow__Lorg_kde_qt_QDockWindow_2IZII(JNIEnv* env, jobject obj, jobject arg1, jint arg2, jboolean nl, jint index, jint extraOffset)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->moveDockWindow((QDockWindow*) QtSupport::getQt(env, arg1), (Qt::Dock) arg2, (bool) nl, (int) index, (int) extraOffset);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_moveToolBar__Lorg_kde_qt_QDockWindow_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->moveToolBar((QDockWindow*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_moveToolBar__Lorg_kde_qt_QDockWindow_2I(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->moveToolBar((QDockWindow*) QtSupport::getQt(env, arg1), (Qt::Dock) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_moveToolBar__Lorg_kde_qt_QDockWindow_2IZI(JNIEnv* env, jobject obj, jobject arg1, jint arg2, jboolean nl, jint index)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->moveToolBar((QDockWindow*) QtSupport::getQt(env, arg1), (Qt::Dock) arg2, (bool) nl, (int) index);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_moveToolBar__Lorg_kde_qt_QDockWindow_2IZII(JNIEnv* env, jobject obj, jobject arg1, jint arg2, jboolean nl, jint index, jint extraOffset)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->moveToolBar((QDockWindow*) QtSupport::getQt(env, arg1), (Qt::Dock) arg2, (bool) nl, (int) index, (int) extraOffset);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_newQMainWindow__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 QMainWindowJBridge((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_qt_QMainWindow_newQMainWindow__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 QMainWindowJBridge((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 jboolean JNICALL
Java_org_kde_qt_QMainWindow_opaqueMoving(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->opaqueMoving();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_paintEvent(JNIEnv* env, jobject obj, jobject arg1)
{
	((QMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_paintEvent((QPaintEvent*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_removeDockWindow(JNIEnv* env, jobject obj, jobject arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->removeDockWindow((QDockWindow*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_removeToolBar(JNIEnv* env, jobject obj, jobject arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->removeToolBar((QDockWindow*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMainWindow_rightDock(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMainWindow*) QtSupport::getQt(env, obj))->rightDock(), "org.kde.qt.QDockArea");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_rightJustification(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->rightJustification();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_setAppropriate(JNIEnv* env, jobject obj, jobject dw, jboolean a)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->setAppropriate((QDockWindow*) QtSupport::getQt(env, dw), (bool) a);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_setCentralWidget(JNIEnv* env, jobject obj, jobject arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->setCentralWidget((QWidget*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_setDockEnabled__IZ(JNIEnv* env, jobject obj, jint dock, jboolean enable)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->setDockEnabled((Qt::Dock) dock, (bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_setDockEnabled__Lorg_kde_qt_QDockWindow_2IZ(JNIEnv* env, jobject obj, jobject tb, jint dock, jboolean enable)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->setDockEnabled((QDockWindow*) QtSupport::getQt(env, tb), (Qt::Dock) dock, (bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_setDockMenuEnabled(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->setDockMenuEnabled((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_setDockWindowsMovable(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->setDockWindowsMovable((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_setOpaqueMoving(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->setOpaqueMoving((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_setRightJustification(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->setRightJustification((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_setToolBarsMovable(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->setToolBarsMovable((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_setUpLayout(JNIEnv* env, jobject obj)
{
	((QMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_setUpLayout();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_setUsesBigPixmaps(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->setUsesBigPixmaps((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_setUsesTextLabel(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->setUsesTextLabel((bool) arg1);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_showDockMenu(JNIEnv* env, jobject obj, jobject globalPos)
{
	jboolean xret = (jboolean) ((QMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_showDockMenu((const QPoint&)*(const QPoint*) QtSupport::getQt(env, globalPos));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_show(JNIEnv* env, jobject obj)
{
	((QMainWindow*) QtSupport::getQt(env, obj))->show();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMainWindow_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QMainWindow*) QtSupport::getQt(env, obj))->sizeHint()), "org.kde.qt.QSize", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMainWindow_statusBar(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMainWindow*) QtSupport::getQt(env, obj))->statusBar(), "org.kde.qt.QStatusBar");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_styleChange(JNIEnv* env, jobject obj, jobject arg1)
{
	((QMainWindowJBridge*) QtSupport::getQt(env, obj))->protected_styleChange((QStyle&)*(QStyle*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_toolBarsMovable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->toolBarsMovable();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMainWindow_toolTipGroup(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMainWindow*) QtSupport::getQt(env, obj))->toolTipGroup(), "org.kde.qt.QToolTipGroup");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMainWindow_topDock(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QMainWindow*) QtSupport::getQt(env, obj))->topDock(), "org.kde.qt.QDockArea");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QMainWindow_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QMainWindowJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QMainWindow_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QMainWindowJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_usesBigPixmaps(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->usesBigPixmaps();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMainWindow_usesTextLabel(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QMainWindow*) QtSupport::getQt(env, obj))->usesTextLabel();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMainWindow_whatsThis(JNIEnv* env, jobject obj)
{
	((QMainWindowJBridge*) QtSupport::getQt(env, obj))->public_whatsThis();
	return;
}

