/***************************************************************************
                            qt_QPushButton.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_QPushButton.h"
}

#include <qpushbutton.h>

class QPushButtonBridge : public QPushButton
{
public:
	QPushButtonBridge(QWidget* parent, const char* name) : QPushButton(parent, name) {}
	QPushButtonBridge(const QString& text, QWidget* parent, const char* name) : QPushButton(text, parent, name) {}
	QPushButtonBridge(const QIconSet& icon, const QString& text, QWidget* parent, const char* name) : QPushButton(icon, text, parent, name) {}
	~QPushButtonBridge() {}
	void protected_drawButton(QPainter* arg1) {
		QPushButton::drawButton(arg1);
		return;
	}
	void protected_drawButtonLabel(QPainter* arg1) {
		QPushButton::drawButtonLabel(arg1);
		return;
	}
	void protected_updateMask() {
		QPushButton::updateMask();
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			QButton::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyReleaseEvent", arg1, "QKeyEvent")) {
			QButton::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusOutEvent", arg1, "QFocusEvent")) {
			QPushButton::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")) {
			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")) {
			QButton::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")) {
			QButton::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")) {
			QPushButton::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")) {
			QButton::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")) {
			QButton::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")) {
			QPushButton::resizeEvent(arg1);
		}
		return;
	}
};

qt_QPushButton * qt_new_QPushButton(qt_QWidget * parent, char* name){
	return (qt_QPushButton *) new QPushButtonBridge((QWidget*)parent, (char*)name);
}
qt_QPushButton * qt_new_QPushButton1(qt_QString * text, qt_QWidget * parent, char* name){
	return (qt_QPushButton *) new QPushButtonBridge((QString&)* (QString*)text, (QWidget*)parent, (char*)name);
}
qt_QPushButton * qt_new_QPushButton2(qt_QIconSet* icon, qt_QString * text, qt_QWidget * parent, char* name){
	return (qt_QPushButton *) new QPushButtonBridge((QIconSet&)* (QIconSet*)icon, (QString&)* (QString*)text, (QWidget*)parent, (char*)name);
}
void qt_del_QPushButton( qt_QPushButton* p ){
	delete (QPushButtonBridge*) p;
}
qt_QSize * qt_QPushButton_sizeHint( qt_QPushButton* instPointer){
	QSize _s= ((QPushButtonBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void qt_QPushButton_move( qt_QPushButton* instPointer,int x, int y){
	((QPushButtonBridge*)instPointer)->move((int)x, (int)y);
	return;
}
void qt_QPushButton_move1( qt_QPushButton* instPointer,qt_QPoint* p){
	((QPushButtonBridge*)instPointer)->move((QPoint&)* (QPoint*)p);
	return;
}
void qt_QPushButton_resize( qt_QPushButton* instPointer,int w, int h){
	((QPushButtonBridge*)instPointer)->resize((int)w, (int)h);
	return;
}
void qt_QPushButton_resize1( qt_QPushButton* instPointer,qt_QSize * arg1){
	((QPushButtonBridge*)instPointer)->resize((QSize&)* (QSize*)arg1);
	return;
}
void qt_QPushButton_setGeometry( qt_QPushButton* instPointer,int x, int y, int w, int h){
	((QPushButtonBridge*)instPointer)->setGeometry((int)x, (int)y, (int)w, (int)h);
	return;
}
void qt_QPushButton_setGeometry1( qt_QPushButton* instPointer,qt_QRect* arg1){
	((QPushButtonBridge*)instPointer)->setGeometry((QRect&)* (QRect*)arg1);
	return;
}
void qt_QPushButton_setToggleButton( qt_QPushButton* instPointer,int arg1){
	((QPushButtonBridge*)instPointer)->setToggleButton((bool)arg1);
	return;
}
int qt_QPushButton_autoDefault( qt_QPushButton* instPointer){
	return (int) ((QPushButtonBridge*)instPointer)->autoDefault();
}
void qt_QPushButton_setAutoDefault( qt_QPushButton* instPointer,int autoDef){
	((QPushButtonBridge*)instPointer)->setAutoDefault((bool)autoDef);
	return;
}
int qt_QPushButton_isDefault( qt_QPushButton* instPointer){
	return (int) ((QPushButtonBridge*)instPointer)->isDefault();
}
void qt_QPushButton_setDefault( qt_QPushButton* instPointer,int def){
	((QPushButtonBridge*)instPointer)->setDefault((bool)def);
	return;
}
void qt_QPushButton_setIsMenuButton( qt_QPushButton* instPointer,int enable){
	((QPushButtonBridge*)instPointer)->setIsMenuButton((bool)enable);
	return;
}
int qt_QPushButton_isMenuButton( qt_QPushButton* instPointer){
	return (int) ((QPushButtonBridge*)instPointer)->isMenuButton();
}
void qt_QPushButton_setPopup( qt_QPushButton* instPointer,qt_QPopupMenu* popup){
	((QPushButtonBridge*)instPointer)->setPopup((QPopupMenu*)popup);
	return;
}
qt_QPopupMenu* qt_QPushButton_popup( qt_QPushButton* instPointer){
	return (qt_QPopupMenu*) ((QPushButtonBridge*)instPointer)->popup();
}
void qt_QPushButton_setIconSet( qt_QPushButton* instPointer,qt_QIconSet* arg1){
	((QPushButtonBridge*)instPointer)->setIconSet((QIconSet&)* (QIconSet*)arg1);
	return;
}
qt_QIconSet* qt_QPushButton_iconSet( qt_QPushButton* instPointer){
	return (qt_QIconSet*) ((QPushButtonBridge*)instPointer)->iconSet();
}
void qt_QPushButton_setFlat( qt_QPushButton* instPointer,int arg1){
	((QPushButtonBridge*)instPointer)->setFlat((bool)arg1);
	return;
}
int qt_QPushButton_isFlat( qt_QPushButton* instPointer){
	return (int) ((QPushButtonBridge*)instPointer)->isFlat();
}
void qt_QPushButton_setOn( qt_QPushButton* instPointer,int arg1){
	((QPushButtonBridge*)instPointer)->setOn((bool)arg1);
	return;
}
void qt_QPushButton_drawButton( qt_QPushButton* instPointer,qt_QPainter * arg1){
	((QPushButtonBridge*)instPointer)->protected_drawButton((QPainter*)arg1);
	return;
}
void qt_QPushButton_drawButtonLabel( qt_QPushButton* instPointer,qt_QPainter * arg1){
	((QPushButtonBridge*)instPointer)->protected_drawButtonLabel((QPainter*)arg1);
	return;
}
void qt_QPushButton_updateMask( qt_QPushButton* instPointer){
	((QPushButtonBridge*)instPointer)->protected_updateMask();
	return;
}
