/***************************************************************************
                            qt_QMessageBox.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_QMessageBox.h"
}

#include <qmessagebox.h>
#include <qpixmap.h>

class QMessageBoxBridge : public QMessageBox
{
public:
	QMessageBoxBridge(QWidget* parent, const char* name) : QMessageBox(parent, name) {}
	QMessageBoxBridge(const QString& caption, const QString& text, Icon icon, int button0, int button1, int button2, QWidget* parent, const char* name, bool modal, WFlags f) : QMessageBox(caption, text, icon, button0, button1, button2, parent, name, modal, f) {}
	~QMessageBoxBridge() {}
	void protected_styleChanged(QStyle& arg1) {
		QMessageBox::styleChanged(arg1);
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			QMessageBox::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")) {
			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")) {
			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")) {
			QMessageBox::showEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "contextMenuEvent", arg1, "QContextMenuEvent")) {
			QDialog::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")) {
			QDialog::closeEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "paintEvent", arg1, "QPaintEvent")) {
			QWidget::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")) {
			QMessageBox::resizeEvent(arg1);
		}
		return;
	}
};

qt_QMessageBox * qt_new_QMessageBox(qt_QWidget * parent, char* name){
	return (qt_QMessageBox *) new QMessageBoxBridge((QWidget*)parent, (char*)name);
}
qt_QMessageBox * qt_new_QMessageBox1(qt_QString * caption, qt_QString * text, int icon, int button0, int button1, int button2, qt_QWidget * parent, char* name, int modal, int f){
	return (qt_QMessageBox *) new QMessageBoxBridge((QString&)* (QString*)caption, (QString&)* (QString*)text, (QMessageBox::Icon)icon, (int)button0, (int)button1, (int)button2, (QWidget*)parent, (char*)name, (bool)modal, (QWidget::WFlags)f);
}
void qt_del_QMessageBox( qt_QMessageBox* p ){
	delete (QMessageBoxBridge*) p;
}
qt_QString * qt_QMessageBox_text( qt_QMessageBox* instPointer){
	return (qt_QString *)new QString(((QMessageBoxBridge*)instPointer)->text());
}
void qt_QMessageBox_setText( qt_QMessageBox* instPointer,qt_QString * arg1){
	((QMessageBoxBridge*)instPointer)->setText((QString&)* (QString*)arg1);
	return;
}
int qt_QMessageBox_icon( qt_QMessageBox* instPointer){
	return (int) ((QMessageBoxBridge*)instPointer)->icon();
}
void qt_QMessageBox_setIcon( qt_QMessageBox* instPointer,int arg1){
	((QMessageBoxBridge*)instPointer)->setIcon((QMessageBox::Icon)arg1);
	return;
}
void qt_QMessageBox_setIcon1( qt_QMessageBox* instPointer,qt_QPixmap * arg1){
	((QMessageBoxBridge*)instPointer)->setIcon((QPixmap&)* (QPixmap*)arg1);
	return;
}
qt_QPixmap * qt_QMessageBox_iconPixmap( qt_QMessageBox* instPointer){
	return (qt_QPixmap *) ((QMessageBoxBridge*)instPointer)->iconPixmap();
}
void qt_QMessageBox_setIconPixmap( qt_QMessageBox* instPointer,qt_QPixmap * arg1){
	((QMessageBoxBridge*)instPointer)->setIconPixmap((QPixmap&)* (QPixmap*)arg1);
	return;
}
qt_QString * qt_QMessageBox_buttonText( qt_QMessageBox* instPointer,int button){
	return (qt_QString *)new QString(((QMessageBoxBridge*)instPointer)->buttonText((int)button));
}
void qt_QMessageBox_setButtonText( qt_QMessageBox* instPointer,int button, qt_QString * arg1){
	((QMessageBoxBridge*)instPointer)->setButtonText((int)button, (QString&)* (QString*)arg1);
	return;
}
void qt_QMessageBox_adjustSize( qt_QMessageBox* instPointer){
	((QMessageBoxBridge*)instPointer)->adjustSize();
	return;
}
int qt_QMessageBox_textFormat( qt_QMessageBox* instPointer){
	return (int) ((QMessageBoxBridge*)instPointer)->textFormat();
}
void qt_QMessageBox_setTextFormat( qt_QMessageBox* instPointer,int arg1){
	((QMessageBoxBridge*)instPointer)->setTextFormat((Qt::TextFormat)arg1);
	return;
}
int qt_QMessageBox_information( qt_QWidget * parent, qt_QString * caption, qt_QString * text, int button0, int button1, int button2){
	return (int) QMessageBoxBridge::information((QWidget*)parent, (QString&)* (QString*)caption, (QString&)* (QString*)text, (int)button0, (int)button1, (int)button2);
}
int qt_QMessageBox_information1( qt_QWidget * parent, qt_QString * caption, qt_QString * text, qt_QString * button0Text, qt_QString * button1Text, qt_QString * button2Text, int defaultButtonNumber, int escapeButtonNumber){
	return (int) QMessageBoxBridge::information((QWidget*)parent, (QString&)* (QString*)caption, (QString&)* (QString*)text, (QString&)* (QString*)button0Text, (QString&)* (QString*)button1Text, (QString&)* (QString*)button2Text, (int)defaultButtonNumber, (int)escapeButtonNumber);
}
int qt_QMessageBox_warning( qt_QWidget * parent, qt_QString * caption, qt_QString * text, int button0, int button1, int button2){
	return (int) QMessageBoxBridge::warning((QWidget*)parent, (QString&)* (QString*)caption, (QString&)* (QString*)text, (int)button0, (int)button1, (int)button2);
}
int qt_QMessageBox_warning1( qt_QWidget * parent, qt_QString * caption, qt_QString * text, qt_QString * button0Text, qt_QString * button1Text, qt_QString * button2Text, int defaultButtonNumber, int escapeButtonNumber){
	return (int) QMessageBoxBridge::warning((QWidget*)parent, (QString&)* (QString*)caption, (QString&)* (QString*)text, (QString&)* (QString*)button0Text, (QString&)* (QString*)button1Text, (QString&)* (QString*)button2Text, (int)defaultButtonNumber, (int)escapeButtonNumber);
}
int qt_QMessageBox_critical( qt_QWidget * parent, qt_QString * caption, qt_QString * text, int button0, int button1, int button2){
	return (int) QMessageBoxBridge::critical((QWidget*)parent, (QString&)* (QString*)caption, (QString&)* (QString*)text, (int)button0, (int)button1, (int)button2);
}
int qt_QMessageBox_critical1( qt_QWidget * parent, qt_QString * caption, qt_QString * text, qt_QString * button0Text, qt_QString * button1Text, qt_QString * button2Text, int defaultButtonNumber, int escapeButtonNumber){
	return (int) QMessageBoxBridge::critical((QWidget*)parent, (QString&)* (QString*)caption, (QString&)* (QString*)text, (QString&)* (QString*)button0Text, (QString&)* (QString*)button1Text, (QString&)* (QString*)button2Text, (int)defaultButtonNumber, (int)escapeButtonNumber);
}
void qt_QMessageBox_about( qt_QWidget * parent, qt_QString * caption, qt_QString * text){
	QMessageBoxBridge::about((QWidget*)parent, (QString&)* (QString*)caption, (QString&)* (QString*)text);
	return;
}
void qt_QMessageBox_aboutQt( qt_QWidget * parent, qt_QString * caption){
	QMessageBoxBridge::aboutQt((QWidget*)parent, (QString&)* (QString*)caption);
	return;
}
int qt_QMessageBox_message( qt_QString * caption, qt_QString * text, qt_QString * buttonText, qt_QWidget * parent, char* arg1){
	return (int) QMessageBoxBridge::message((QString&)* (QString*)caption, (QString&)* (QString*)text, (QString&)* (QString*)buttonText, (QWidget*)parent, (char*)arg1);
}
int qt_QMessageBox_query( qt_QString * caption, qt_QString * text, qt_QString * yesButtonText, qt_QString * noButtonText, qt_QWidget * parent, char* arg1){
	return (int) QMessageBoxBridge::query((QString&)* (QString*)caption, (QString&)* (QString*)text, (QString&)* (QString*)yesButtonText, (QString&)* (QString*)noButtonText, (QWidget*)parent, (char*)arg1);
}
qt_QPixmap * qt_QMessageBox_standardIcon( int icon, int arg1){
	return (qt_QPixmap *)new QPixmap(QMessageBoxBridge::standardIcon((QMessageBox::Icon)icon, (Qt::GUIStyle)arg1));
}
qt_QPixmap * qt_QMessageBox_standardIcon1( int icon){
	return (qt_QPixmap *)new QPixmap(QMessageBoxBridge::standardIcon((QMessageBox::Icon)icon));
}
void qt_QMessageBox_styleChanged( qt_QMessageBox* instPointer,qt_QStyle* arg1){
	((QMessageBoxBridge*)instPointer)->protected_styleChanged((QStyle&)* (QStyle*)arg1);
	return;
}
