/***************************************************************************
                            qt_QPopupMenu.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_QPopupMenu.h"
}

#include <qpopupmenu.h>

class QPopupMenuBridge : public QPopupMenu
{
public:
	QPopupMenuBridge(QWidget* parent, const char* name) : QPopupMenu(parent, name) {}
	~QPopupMenuBridge() {}
	int  protected_itemHeight(int arg1) {
		return (int ) QPopupMenu::itemHeight(arg1);
	}
	int  protected_itemHeight(QMenuItem* mi) {
		return (int ) QPopupMenu::itemHeight(mi);
	}
	void protected_drawItem(QPainter* p, int tab, QMenuItem* mi, bool act, int x, int y, int w, int h) {
		QPopupMenu::drawItem(p, tab, mi, act, x, y, w, h);
		return;
	}
	void protected_drawContents(QPainter* arg1) {
		QPopupMenu::drawContents(arg1);
		return;
	}
	void protected_styleChange(QStyle& arg1) {
		QPopupMenu::styleChange(arg1);
		return;
	}
	int  protected_columns() {
		return (int ) QPopupMenu::columns();
	}
	bool  protected_focusNextPrevChild(bool next) {
		return (bool ) QPopupMenu::focusNextPrevChild(next);
	}
	int  protected_itemAtPos(const QPoint& arg1, bool ignoreSeparator) {
		return (int ) QPopupMenu::itemAtPos(arg1, ignoreSeparator);
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			QPopupMenu::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")) {
			QPopupMenu::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")) {
			QPopupMenu::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")) {
			QPopupMenu::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")) {
			QPopupMenu::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")) {
			QPopupMenu::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")) {
			QPopupMenu::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* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "closeEvent", e, "QCloseEvent")) {
			QPopupMenu::closeEvent(e);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "paintEvent", arg1, "QPaintEvent")) {
			QPopupMenu::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QPopupMenu::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "resizeEvent", arg1, "QResizeEvent")) {
			QFrame::resizeEvent(arg1);
		}
		return;
	}
};

qt_QPopupMenu * qt_new_QPopupMenu(qt_QWidget * parent, char* name){
	return (qt_QPopupMenu *) new QPopupMenuBridge((QWidget*)parent, (char*)name);
}
void qt_del_QPopupMenu( qt_QPopupMenu* p ){
	delete (QPopupMenuBridge*) p;
}
void qt_QPopupMenu_popup( qt_QPopupMenu* instPointer,qt_QPoint* pos, int indexAtPoint){
	((QPopupMenuBridge*)instPointer)->popup((QPoint&)* (QPoint*)pos, (int)indexAtPoint);
	return;
}
void qt_QPopupMenu_updateItem( qt_QPopupMenu* instPointer,int identifier){
	((QPopupMenuBridge*)instPointer)->updateItem((int)identifier);
	return;
}
void qt_QPopupMenu_setCheckable( qt_QPopupMenu* instPointer,int arg1){
	((QPopupMenuBridge*)instPointer)->setCheckable((bool)arg1);
	return;
}
int qt_QPopupMenu_isCheckable( qt_QPopupMenu* instPointer){
	return (int) ((QPopupMenuBridge*)instPointer)->isCheckable();
}
void qt_QPopupMenu_setFont( qt_QPopupMenu* instPointer,qt_QFont * arg1){
	((QPopupMenuBridge*)instPointer)->setFont((QFont&)* (QFont*)arg1);
	return;
}
void qt_QPopupMenu_show( qt_QPopupMenu* instPointer){
	((QPopupMenuBridge*)instPointer)->show();
	return;
}
void qt_QPopupMenu_hide( qt_QPopupMenu* instPointer){
	((QPopupMenuBridge*)instPointer)->hide();
	return;
}
int qt_QPopupMenu_exec( qt_QPopupMenu* instPointer){
	return (int) ((QPopupMenuBridge*)instPointer)->exec();
}
int qt_QPopupMenu_exec1( qt_QPopupMenu* instPointer,qt_QPoint* pos, int indexAtPoint){
	return (int) ((QPopupMenuBridge*)instPointer)->exec((QPoint&)* (QPoint*)pos, (int)indexAtPoint);
}
void qt_QPopupMenu_setActiveItem( qt_QPopupMenu* instPointer,int arg1){
	((QPopupMenuBridge*)instPointer)->setActiveItem((int)arg1);
	return;
}
qt_QSize * qt_QPopupMenu_sizeHint( qt_QPopupMenu* instPointer){
	QSize _s= ((QPopupMenuBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
int qt_QPopupMenu_idAt( qt_QPopupMenu* instPointer,int index){
	return (int) ((QPopupMenuBridge*)instPointer)->idAt((int)index);
}
int qt_QPopupMenu_idAt1( qt_QPopupMenu* instPointer,qt_QPoint* pos){
	return (int) ((QPopupMenuBridge*)instPointer)->idAt((QPoint&)* (QPoint*)pos);
}
int qt_QPopupMenu_customWhatsThis( qt_QPopupMenu* instPointer){
	return (int) ((QPopupMenuBridge*)instPointer)->customWhatsThis();
}
int qt_QPopupMenu_insertTearOffHandle( qt_QPopupMenu* instPointer,int identifier, int index){
	return (int) ((QPopupMenuBridge*)instPointer)->insertTearOffHandle((int)identifier, (int)index);
}
void qt_QPopupMenu_activateItemAt( qt_QPopupMenu* instPointer,int index){
	((QPopupMenuBridge*)instPointer)->activateItemAt((int)index);
	return;
}
qt_QRect* qt_QPopupMenu_itemGeometry( qt_QPopupMenu* instPointer,int index){
	QRect _r= ((QPopupMenuBridge*)instPointer)->itemGeometry((int)index);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
int qt_QPopupMenu_itemHeight( qt_QPopupMenu* instPointer,int arg1){
	return (int) ((QPopupMenuBridge*)instPointer)->protected_itemHeight((int)arg1);
}
int qt_QPopupMenu_itemHeight1( qt_QPopupMenu* instPointer,qt_QMenuItem * mi){
	return (int) ((QPopupMenuBridge*)instPointer)->protected_itemHeight((QMenuItem*)mi);
}
void qt_QPopupMenu_drawItem( qt_QPopupMenu* instPointer,qt_QPainter * p, int tab, qt_QMenuItem * mi, int act, int x, int y, int w, int h){
	((QPopupMenuBridge*)instPointer)->protected_drawItem((QPainter*)p, (int)tab, (QMenuItem*)mi, (bool)act, (int)x, (int)y, (int)w, (int)h);
	return;
}
void qt_QPopupMenu_drawContents( qt_QPopupMenu* instPointer,qt_QPainter * arg1){
	((QPopupMenuBridge*)instPointer)->protected_drawContents((QPainter*)arg1);
	return;
}
void qt_QPopupMenu_styleChange( qt_QPopupMenu* instPointer,qt_QStyle* arg1){
	((QPopupMenuBridge*)instPointer)->protected_styleChange((QStyle&)* (QStyle*)arg1);
	return;
}
int qt_QPopupMenu_columns( qt_QPopupMenu* instPointer){
	return (int) ((QPopupMenuBridge*)instPointer)->protected_columns();
}
int qt_QPopupMenu_focusNextPrevChild( qt_QPopupMenu* instPointer,int next){
	return (int) ((QPopupMenuBridge*)instPointer)->protected_focusNextPrevChild((bool)next);
}
int qt_QPopupMenu_itemAtPos( qt_QPopupMenu* instPointer,qt_QPoint* arg1, int ignoreSeparator){
	return (int) ((QPopupMenuBridge*)instPointer)->protected_itemAtPos((QPoint&)* (QPoint*)arg1, (bool)ignoreSeparator);
}
qt_QFrame* qt_QPopupMenu_QFrame(qt_QPopupMenu* instPointer){
	return (qt_QFrame*) (QFrame *) (QPopupMenu *) instPointer;
}
qt_QMenuData* qt_QPopupMenu_QMenuData(qt_QPopupMenu* instPointer){
	return (qt_QMenuData*) (QMenuData *) (QPopupMenu *) instPointer;
}
