/***************************************************************************
                            qt_QMenuBar.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_QMenuBar.h"
}

#include <qmenubar.h>

class QMenuBarBridge : public QMenuBar
{
public:
	QMenuBarBridge(QWidget* parent, const char* name) : QMenuBar(parent, name) {}
	~QMenuBarBridge() {}
	void protected_drawContents(QPainter* arg1) {
		QMenuBar::drawContents(arg1);
		return;
	}
	void protected_fontChange(const QFont& arg1) {
		QMenuBar::fontChange(arg1);
		return;
	}
	void protected_menuContentsChanged() {
		QMenuBar::menuContentsChanged();
		return;
	}
	void protected_menuStateChanged() {
		QMenuBar::menuStateChanged();
		return;
	}
	void protected_styleChange(QStyle& arg1) {
		QMenuBar::styleChange(arg1);
		return;
	}
	int  protected_itemAtPos(const QPoint& arg1) {
		return (int ) QMenuBar::itemAtPos(arg1);
	}
	void protected_hidePopups() {
		QMenuBar::hidePopups();
		return;
	}
	QRect  protected_itemRect(int item) {
		return (QRect ) QMenuBar::itemRect(item);
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			QMenuBar::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")) {
			QMenuBar::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::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")) {
			QMenuBar::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")) {
			QMenuBar::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")) {
			QMenuBar::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")) {
			QMenuBar::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")) {
			QMenuBar::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")) {
			QFrame::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")) {
			QMenuBar::resizeEvent(arg1);
		}
		return;
	}
};

qt_QMenuBar * qt_new_QMenuBar(qt_QWidget * parent, char* name){
	return (qt_QMenuBar *) new QMenuBarBridge((QWidget*)parent, (char*)name);
}
void qt_del_QMenuBar( qt_QMenuBar* p ){
	delete (QMenuBarBridge*) p;
}
void qt_QMenuBar_updateItem( qt_QMenuBar* instPointer,int identifier){
	((QMenuBarBridge*)instPointer)->updateItem((int)identifier);
	return;
}
void qt_QMenuBar_show( qt_QMenuBar* instPointer){
	((QMenuBarBridge*)instPointer)->show();
	return;
}
void qt_QMenuBar_hide( qt_QMenuBar* instPointer){
	((QMenuBarBridge*)instPointer)->hide();
	return;
}
int qt_QMenuBar_eventFilter( qt_QMenuBar* instPointer,qt_QObject * arg1, qt_QEvent * arg2){
	return (int) ((QMenuBarBridge*)instPointer)->eventFilter((QObject*)arg1, (QEvent*)arg2);
}
int qt_QMenuBar_heightForWidth( qt_QMenuBar* instPointer,int arg1){
	return (int) ((QMenuBarBridge*)instPointer)->heightForWidth((int)arg1);
}
int qt_QMenuBar_separator( qt_QMenuBar* instPointer){
	return (int) ((QMenuBarBridge*)instPointer)->separator();
}
void qt_QMenuBar_setSeparator( qt_QMenuBar* instPointer,int when){
	((QMenuBarBridge*)instPointer)->setSeparator((QMenuBar::Separator)when);
	return;
}
void qt_QMenuBar_setDefaultUp( qt_QMenuBar* instPointer,int arg1){
	((QMenuBarBridge*)instPointer)->setDefaultUp((bool)arg1);
	return;
}
int qt_QMenuBar_isDefaultUp( qt_QMenuBar* instPointer){
	return (int) ((QMenuBarBridge*)instPointer)->isDefaultUp();
}
int qt_QMenuBar_customWhatsThis( qt_QMenuBar* instPointer){
	return (int) ((QMenuBarBridge*)instPointer)->customWhatsThis();
}
qt_QSize * qt_QMenuBar_sizeHint( qt_QMenuBar* instPointer){
	QSize _s= ((QMenuBarBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QMenuBar_minimumSize( qt_QMenuBar* instPointer){
	QSize _s= ((QMenuBarBridge*)instPointer)->minimumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QMenuBar_minimumSizeHint( qt_QMenuBar* instPointer){
	QSize _s= ((QMenuBarBridge*)instPointer)->minimumSizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void qt_QMenuBar_activateItemAt( qt_QMenuBar* instPointer,int index){
	((QMenuBarBridge*)instPointer)->activateItemAt((int)index);
	return;
}
//void qt_QMenuBar_initialize( ){
//	QMenuBarBridge::initialize();
//	return;
//}
//void qt_QMenuBar_cleanup( ){
//	QMenuBarBridge::cleanup();
//	return;
//}
void qt_QMenuBar_drawContents( qt_QMenuBar* instPointer,qt_QPainter * arg1){
	((QMenuBarBridge*)instPointer)->protected_drawContents((QPainter*)arg1);
	return;
}
void qt_QMenuBar_fontChange( qt_QMenuBar* instPointer,qt_QFont * arg1){
	((QMenuBarBridge*)instPointer)->protected_fontChange((QFont&)* (QFont*)arg1);
	return;
}
void qt_QMenuBar_menuContentsChanged( qt_QMenuBar* instPointer){
	((QMenuBarBridge*)instPointer)->protected_menuContentsChanged();
	return;
}
void qt_QMenuBar_menuStateChanged( qt_QMenuBar* instPointer){
	((QMenuBarBridge*)instPointer)->protected_menuStateChanged();
	return;
}
void qt_QMenuBar_styleChange( qt_QMenuBar* instPointer,qt_QStyle* arg1){
	((QMenuBarBridge*)instPointer)->protected_styleChange((QStyle&)* (QStyle*)arg1);
	return;
}
int qt_QMenuBar_itemAtPos( qt_QMenuBar* instPointer,qt_QPoint* arg1){
	return (int) ((QMenuBarBridge*)instPointer)->protected_itemAtPos((QPoint&)* (QPoint*)arg1);
}
void qt_QMenuBar_hidePopups( qt_QMenuBar* instPointer){
	((QMenuBarBridge*)instPointer)->protected_hidePopups();
	return;
}
qt_QRect* qt_QMenuBar_itemRect( qt_QMenuBar* instPointer,int item){
	QRect _r= ((QMenuBarBridge*)instPointer)->protected_itemRect((int)item);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
qt_QFrame* qt_QMenuBar_QFrame(qt_QMenuBar* instPointer){
	return (qt_QFrame*) (QFrame *) (QMenuBar *) instPointer;
}
qt_QMenuData* qt_QMenuBar_QMenuData(qt_QMenuBar* instPointer){
	return (qt_QMenuData*) (QMenuData *) (QMenuBar *) instPointer;
}
