/***************************************************************************
                            qt_QMainWindow.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

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

extern "C" {
#include "qt_QMainWindow.h"
}

#include <qmainwindow.h>

class QMainWindowBridge : public QMainWindow
{
public:
	QMainWindowBridge(QWidget* parent, const char* name, WFlags f) : QMainWindow(parent, name, f) {}
	~QMainWindowBridge() {}
	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& globalPos) {
		return ( bool ) QMainWindow::showDockMenu(globalPos);
	}
	void protected_menuAboutToShow() {
		QMainWindow::menuAboutToShow();
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			QWidget::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyReleaseEvent", arg1, "QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusOutEvent", arg1, "QFocusEvent")) {
			QWidget::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QMainWindow::childEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragMoveEvent", arg1, "QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "leaveEvent", arg1, "QEvent")) {
			QWidget::leaveEvent(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "tabletEvent", arg1, "QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "showEvent", arg1, "QShowEvent")) {
			QWidget::showEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contextMenuEvent", arg1, "QContextMenuEvent")) {
			QWidget::contextMenuEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mousePressEvent", arg1, "QMouseEvent")) {
			QWidget::mousePressEvent(arg1);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imComposeEvent", arg1, "QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseReleaseEvent", arg1, "QMouseEvent")) {
			QWidget::mouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseDoubleClickEvent", arg1, "QMouseEvent")) {
			QWidget::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragLeaveEvent", arg1, "QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "enterEvent", arg1, "QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusInEvent", arg1, "QFocusEvent")) {
			QWidget::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imEndEvent", arg1, "QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dropEvent", arg1, "QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragEnterEvent", arg1, "QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseMoveEvent", arg1, "QMouseEvent")) {
			QWidget::mouseMoveEvent(arg1);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "moveEvent", arg1, "QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "wheelEvent", arg1, "QWheelEvent")) {
			QWidget::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "hideEvent", arg1, "QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imStartEvent", arg1, "QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void closeEvent(QCloseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "closeEvent", arg1, "QCloseEvent")) {
			QWidget::closeEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "paintEvent", arg1, "QPaintEvent")) {
			QMainWindow::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "resizeEvent", arg1, "QResizeEvent")) {
			QWidget::resizeEvent(arg1);
		}
		return;
	}
};

qt_QMainWindow * qt_new_QMainWindow(qt_QWidget * parent, char* name, int f){
	return (qt_QMainWindow *) new QMainWindowBridge((QWidget*)parent, (char*)name, (QWidget::WFlags)f);
}
void qt_del_QMainWindow( qt_QMainWindow* p ){
	delete (QMainWindowBridge*) p;
}
qt_QMenuBar * qt_QMainWindow_menuBar( qt_QMainWindow* instPointer){
	return (qt_QMenuBar *) ((QMainWindowBridge*)instPointer)->menuBar();
}
qt_QStatusBar* qt_QMainWindow_statusBar( qt_QMainWindow* instPointer){
	return (qt_QStatusBar*) ((QMainWindowBridge*)instPointer)->statusBar();
}
qt_QToolTipGroup * qt_QMainWindow_toolTipGroup( qt_QMainWindow* instPointer){
	return (qt_QToolTipGroup *) ((QMainWindowBridge*)instPointer)->toolTipGroup();
}
void qt_QMainWindow_setCentralWidget( qt_QMainWindow* instPointer,qt_QWidget * arg1){
	((QMainWindowBridge*)instPointer)->setCentralWidget((QWidget*)arg1);
	return;
}
qt_QWidget * qt_QMainWindow_centralWidget( qt_QMainWindow* instPointer){
	return (qt_QWidget *) ((QMainWindowBridge*)instPointer)->centralWidget();
}
void qt_QMainWindow_setDockEnabled( qt_QMainWindow* instPointer,int dock, int enable){
	((QMainWindowBridge*)instPointer)->setDockEnabled((Qt::Dock)dock, (bool)enable);
	return;
}
int qt_QMainWindow_isDockEnabled( qt_QMainWindow* instPointer,int dock){
	return (int) ((QMainWindowBridge*)instPointer)->isDockEnabled((Qt::Dock)dock);
}
int qt_QMainWindow_isDockEnabled1( qt_QMainWindow* instPointer,qt_QDockArea* area){
	return (int) ((QMainWindowBridge*)instPointer)->isDockEnabled((QDockArea*)area);
}
void qt_QMainWindow_setDockEnabled1( qt_QMainWindow* instPointer,qt_QDockWindow* tb, int dock, int enable){
	((QMainWindowBridge*)instPointer)->setDockEnabled((QDockWindow*)tb, (Qt::Dock)dock, (bool)enable);
	return;
}
int qt_QMainWindow_isDockEnabled2( qt_QMainWindow* instPointer,qt_QDockWindow* tb, int dock){
	return (int) ((QMainWindowBridge*)instPointer)->isDockEnabled((QDockWindow*)tb, (Qt::Dock)dock);
}
int qt_QMainWindow_isDockEnabled3( qt_QMainWindow* instPointer,qt_QDockWindow* tb, qt_QDockArea* area){
	return (int) ((QMainWindowBridge*)instPointer)->isDockEnabled((QDockWindow*)tb, (QDockArea*)area);
}
void qt_QMainWindow_addDockWindow( qt_QMainWindow* instPointer,qt_QDockWindow* arg1, int arg2, int newLine){
	((QMainWindowBridge*)instPointer)->addDockWindow((QDockWindow*)arg1, (Qt::Dock)arg2, (bool)newLine);
	return;
}
void qt_QMainWindow_addDockWindow1( qt_QMainWindow* instPointer,qt_QDockWindow* arg1, qt_QString * label, int arg2, int newLine){
	((QMainWindowBridge*)instPointer)->addDockWindow((QDockWindow*)arg1, (QString&)* (QString*)label, (Qt::Dock)arg2, (bool)newLine);
	return;
}
void qt_QMainWindow_moveDockWindow( qt_QMainWindow* instPointer,qt_QDockWindow* arg1, int arg2){
	((QMainWindowBridge*)instPointer)->moveDockWindow((QDockWindow*)arg1, (Qt::Dock)arg2);
	return;
}
void qt_QMainWindow_moveDockWindow1( qt_QMainWindow* instPointer,qt_QDockWindow* arg1, int arg2, int nl, int index, int extraOffset){
	((QMainWindowBridge*)instPointer)->moveDockWindow((QDockWindow*)arg1, (Qt::Dock)arg2, (bool)nl, (int)index, (int)extraOffset);
	return;
}
void qt_QMainWindow_removeDockWindow( qt_QMainWindow* instPointer,qt_QDockWindow* arg1){
	((QMainWindowBridge*)instPointer)->removeDockWindow((QDockWindow*)arg1);
	return;
}
void qt_QMainWindow_show( qt_QMainWindow* instPointer){
	((QMainWindowBridge*)instPointer)->show();
	return;
}
qt_QSize * qt_QMainWindow_sizeHint( qt_QMainWindow* instPointer){
	QSize _s= ((QMainWindowBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QMainWindow_minimumSizeHint( qt_QMainWindow* instPointer){
	QSize _s= ((QMainWindowBridge*)instPointer)->minimumSizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
int qt_QMainWindow_rightJustification( qt_QMainWindow* instPointer){
	return (int) ((QMainWindowBridge*)instPointer)->rightJustification();
}
int qt_QMainWindow_usesBigPixmaps( qt_QMainWindow* instPointer){
	return (int) ((QMainWindowBridge*)instPointer)->usesBigPixmaps();
}
int qt_QMainWindow_usesTextLabel( qt_QMainWindow* instPointer){
	return (int) ((QMainWindowBridge*)instPointer)->usesTextLabel();
}
int qt_QMainWindow_dockWindowsMovable( qt_QMainWindow* instPointer){
	return (int) ((QMainWindowBridge*)instPointer)->dockWindowsMovable();
}
int qt_QMainWindow_opaqueMoving( qt_QMainWindow* instPointer){
	return (int) ((QMainWindowBridge*)instPointer)->opaqueMoving();
}
int qt_QMainWindow_eventFilter( qt_QMainWindow* instPointer,qt_QObject * arg1, qt_QEvent * arg2){
	return (int) ((QMainWindowBridge*)instPointer)->eventFilter((QObject*)arg1, (QEvent*)arg2);
}
int qt_QMainWindow_getLocation( qt_QMainWindow* instPointer,qt_QDockWindow* tb, int dock, int index, int nl, int extraOffset){
	return (int) ((QMainWindowBridge*)instPointer)->getLocation((QDockWindow*)tb, (Qt::Dock&)dock, (int&)index, (bool&)nl, (int&)extraOffset);
}
void qt_QMainWindow_lineUpDockWindows( qt_QMainWindow* instPointer,int keepNewLines){
	((QMainWindowBridge*)instPointer)->lineUpDockWindows((bool)keepNewLines);
	return;
}
int qt_QMainWindow_isDockMenuEnabled( qt_QMainWindow* instPointer){
	return (int) ((QMainWindowBridge*)instPointer)->isDockMenuEnabled();
}
int qt_QMainWindow_hasDockWindow( qt_QMainWindow* instPointer,qt_QDockWindow* dw){
	return (int) ((QMainWindowBridge*)instPointer)->hasDockWindow((QDockWindow*)dw);
}
void qt_QMainWindow_addToolBar( qt_QMainWindow* instPointer,qt_QDockWindow* arg1, int arg2, int newLine){
	((QMainWindowBridge*)instPointer)->addToolBar((QDockWindow*)arg1, (Qt::Dock)arg2, (bool)newLine);
	return;
}
void qt_QMainWindow_addToolBar1( qt_QMainWindow* instPointer,qt_QDockWindow* arg1, qt_QString * label, int arg2, int newLine){
	((QMainWindowBridge*)instPointer)->addToolBar((QDockWindow*)arg1, (QString&)* (QString*)label, (Qt::Dock)arg2, (bool)newLine);
	return;
}
void qt_QMainWindow_moveToolBar( qt_QMainWindow* instPointer,qt_QDockWindow* arg1, int arg2){
	((QMainWindowBridge*)instPointer)->moveToolBar((QDockWindow*)arg1, (Qt::Dock)arg2);
	return;
}
void qt_QMainWindow_moveToolBar1( qt_QMainWindow* instPointer,qt_QDockWindow* arg1, int arg2, int nl, int index, int extraOffset){
	((QMainWindowBridge*)instPointer)->moveToolBar((QDockWindow*)arg1, (Qt::Dock)arg2, (bool)nl, (int)index, (int)extraOffset);
	return;
}
void qt_QMainWindow_removeToolBar( qt_QMainWindow* instPointer,qt_QDockWindow* arg1){
	((QMainWindowBridge*)instPointer)->removeToolBar((QDockWindow*)arg1);
	return;
}
int qt_QMainWindow_toolBarsMovable( qt_QMainWindow* instPointer){
	return (int) ((QMainWindowBridge*)instPointer)->toolBarsMovable();
}
void qt_QMainWindow_lineUpToolBars( qt_QMainWindow* instPointer,int keepNewLines){
	((QMainWindowBridge*)instPointer)->lineUpToolBars((bool)keepNewLines);
	return;
}
qt_QDockArea* qt_QMainWindow_dockingArea( qt_QMainWindow* instPointer,qt_QPoint* p){
	return (qt_QDockArea*) ((QMainWindowBridge*)instPointer)->dockingArea((QPoint&)* (QPoint*)p);
}
qt_QDockArea* qt_QMainWindow_leftDock( qt_QMainWindow* instPointer){
	return (qt_QDockArea*) ((QMainWindowBridge*)instPointer)->leftDock();
}
qt_QDockArea* qt_QMainWindow_rightDock( qt_QMainWindow* instPointer){
	return (qt_QDockArea*) ((QMainWindowBridge*)instPointer)->rightDock();
}
qt_QDockArea* qt_QMainWindow_topDock( qt_QMainWindow* instPointer){
	return (qt_QDockArea*) ((QMainWindowBridge*)instPointer)->topDock();
}
qt_QDockArea* qt_QMainWindow_bottomDock( qt_QMainWindow* instPointer){
	return (qt_QDockArea*) ((QMainWindowBridge*)instPointer)->bottomDock();
}
int qt_QMainWindow_isCustomizable( qt_QMainWindow* instPointer){
	return (int) ((QMainWindowBridge*)instPointer)->isCustomizable();
}
int qt_QMainWindow_appropriate( qt_QMainWindow* instPointer,qt_QDockWindow* dw){
	return (int) ((QMainWindowBridge*)instPointer)->appropriate((QDockWindow*)dw);
}
qt_QPopupMenu* qt_QMainWindow_createDockWindowMenu( qt_QMainWindow* instPointer,int dockWindows){
	return (qt_QPopupMenu*) ((QMainWindowBridge*)instPointer)->createDockWindowMenu((QMainWindow::DockWindows)dockWindows);
}
void qt_QMainWindow_setRightJustification( qt_QMainWindow* instPointer,int arg1){
	((QMainWindowBridge*)instPointer)->setRightJustification((bool)arg1);
	return;
}
void qt_QMainWindow_setUsesBigPixmaps( qt_QMainWindow* instPointer,int arg1){
	((QMainWindowBridge*)instPointer)->setUsesBigPixmaps((bool)arg1);
	return;
}
void qt_QMainWindow_setUsesTextLabel( qt_QMainWindow* instPointer,int arg1){
	((QMainWindowBridge*)instPointer)->setUsesTextLabel((bool)arg1);
	return;
}
void qt_QMainWindow_setDockWindowsMovable( qt_QMainWindow* instPointer,int arg1){
	((QMainWindowBridge*)instPointer)->setDockWindowsMovable((bool)arg1);
	return;
}
void qt_QMainWindow_setOpaqueMoving( qt_QMainWindow* instPointer,int arg1){
	((QMainWindowBridge*)instPointer)->setOpaqueMoving((bool)arg1);
	return;
}
void qt_QMainWindow_setDockMenuEnabled( qt_QMainWindow* instPointer,int arg1){
	((QMainWindowBridge*)instPointer)->setDockMenuEnabled((bool)arg1);
	return;
}
void qt_QMainWindow_whatsThis( qt_QMainWindow* instPointer){
	((QMainWindowBridge*)instPointer)->whatsThis();
	return;
}
void qt_QMainWindow_setAppropriate( qt_QMainWindow* instPointer,qt_QDockWindow* dw, int a){
	((QMainWindowBridge*)instPointer)->setAppropriate((QDockWindow*)dw, (bool)a);
	return;
}
void qt_QMainWindow_customize( qt_QMainWindow* instPointer){
	((QMainWindowBridge*)instPointer)->customize();
	return;
}
void qt_QMainWindow_setToolBarsMovable( qt_QMainWindow* instPointer,int arg1){
	((QMainWindowBridge*)instPointer)->setToolBarsMovable((bool)arg1);
	return;
}
int qt_QMainWindow_event( qt_QMainWindow* instPointer,qt_QEvent * arg1){
	return (int) ((QMainWindowBridge*)instPointer)->protected_event((QEvent*)arg1);
}
void qt_QMainWindow_styleChange( qt_QMainWindow* instPointer,qt_QStyle* arg1){
	((QMainWindowBridge*)instPointer)->protected_styleChange((QStyle&)* (QStyle*)arg1);
	return;
}
void qt_QMainWindow_setUpLayout( qt_QMainWindow* instPointer){
	((QMainWindowBridge*)instPointer)->protected_setUpLayout();
	return;
}
int qt_QMainWindow_showDockMenu( qt_QMainWindow* instPointer,qt_QPoint* globalPos){
	return (int) ((QMainWindowBridge*)instPointer)->protected_showDockMenu((QPoint&)* (QPoint*)globalPos);
}
void qt_QMainWindow_menuAboutToShow( qt_QMainWindow* instPointer){
	((QMainWindowBridge*)instPointer)->protected_menuAboutToShow();
	return;
}
