/***************************************************************************
                            qt_QButton.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_QButton.h"
}

#include <qbutton.h>

class QButtonBridge : public QButton
{
public:
	QButtonBridge(QWidget* parent, const char* name, WFlags f) : QButton(parent, name, f) {}
	~QButtonBridge() {}
	void protected_setToggleButton(bool arg1) {
		QButton::setToggleButton(arg1);
		return;
	}
	void protected_setToggleType(ToggleType arg1) {
		QButton::setToggleType(arg1);
		return;
	}
	void protected_setOn(bool arg1) {
		QButton::setOn(arg1);
		return;
	}
	void protected_setState(ToggleState arg1) {
		QButton::setState(arg1);
		return;
	}
	 bool  protected_hitButton(const QPoint& pos) {
		return ( bool ) QButton::hitButton(pos);
	}
	void protected_drawButton(QPainter* arg1) {
		QButton::drawButton(arg1);
		return;
	}
	void protected_drawButtonLabel(QPainter* arg1) {
		QButton::drawButtonLabel(arg1);
		return;
	}
	void protected_enabledChange(bool arg1) {
		QButton::enabledChange(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")) {
			QButton::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imEndEvent", arg1, "QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		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 dropEvent(QDropEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dropEvent", arg1, "QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "focusOutEvent", arg1, "QFocusEvent")) {
			QButton::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 dragEnterEvent(QDragEnterEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragEnterEvent", arg1, "QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "tabletEvent", arg1, "QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseMoveEvent", arg1, "QMouseEvent")) {
			QButton::mouseMoveEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "showEvent", arg1, "QShowEvent")) {
			QWidget::showEvent(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 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 imStartEvent(QIMEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "imStartEvent", arg1, "QIMEvent")) {
			QWidget::imStartEvent(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 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 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 resizeEvent(QResizeEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "resizeEvent", arg1, "QResizeEvent")) {
			QWidget::resizeEvent(arg1);
		}
		return;
	}
};

qt_QButton * qt_new_QButton(qt_QWidget * parent, char* name, int f){
	return (qt_QButton *) new QButtonBridge((QWidget*)parent, (char*)name, (QWidget::WFlags)f);
}
void qt_del_QButton( qt_QButton* p ){
	delete (QButtonBridge*) p;
}
qt_QString * qt_QButton_text( qt_QButton* instPointer){
	return (qt_QString *)new QString(((QButtonBridge*)instPointer)->text());
}
void qt_QButton_setText( qt_QButton* instPointer,qt_QString * arg1){
	((QButtonBridge*)instPointer)->setText((QString&)* (QString*)arg1);
	return;
}
qt_QPixmap * qt_QButton_pixmap( qt_QButton* instPointer){
	return (qt_QPixmap *) ((QButtonBridge*)instPointer)->pixmap();
}
void qt_QButton_setPixmap( qt_QButton* instPointer,qt_QPixmap * arg1){
	((QButtonBridge*)instPointer)->setPixmap((QPixmap&)* (QPixmap*)arg1);
	return;
}
qt_QKeySequence* qt_QButton_accel( qt_QButton* instPointer){
	return (qt_QKeySequence*)new QKeySequence(((QButtonBridge*)instPointer)->accel());
}
void qt_QButton_setAccel( qt_QButton* instPointer,qt_QKeySequence* arg1){
	((QButtonBridge*)instPointer)->setAccel((QKeySequence&)* (QKeySequence*)arg1);
	return;
}
int qt_QButton_isToggleButton( qt_QButton* instPointer){
	return (int) ((QButtonBridge*)instPointer)->isToggleButton();
}
int qt_QButton_toggleType( qt_QButton* instPointer){
	return (int) ((QButtonBridge*)instPointer)->toggleType();
}
void qt_QButton_setDown( qt_QButton* instPointer,int arg1){
	((QButtonBridge*)instPointer)->setDown((bool)arg1);
	return;
}
int qt_QButton_isDown( qt_QButton* instPointer){
	return (int) ((QButtonBridge*)instPointer)->isDown();
}
int qt_QButton_isOn( qt_QButton* instPointer){
	return (int) ((QButtonBridge*)instPointer)->isOn();
}
int qt_QButton_state( qt_QButton* instPointer){
	return (int) ((QButtonBridge*)instPointer)->state();
}
int qt_QButton_autoResize( qt_QButton* instPointer){
	return (int) ((QButtonBridge*)instPointer)->autoResize();
}
void qt_QButton_setAutoResize( qt_QButton* instPointer,int arg1){
	((QButtonBridge*)instPointer)->setAutoResize((bool)arg1);
	return;
}
int qt_QButton_autoRepeat( qt_QButton* instPointer){
	return (int) ((QButtonBridge*)instPointer)->autoRepeat();
}
void qt_QButton_setAutoRepeat( qt_QButton* instPointer,int arg1){
	((QButtonBridge*)instPointer)->setAutoRepeat((bool)arg1);
	return;
}
int qt_QButton_isExclusiveToggle( qt_QButton* instPointer){
	return (int) ((QButtonBridge*)instPointer)->isExclusiveToggle();
}
qt_QButtonGroup* qt_QButton_group( qt_QButton* instPointer){
	return (qt_QButtonGroup*) ((QButtonBridge*)instPointer)->group();
}
void qt_QButton_animateClick( qt_QButton* instPointer){
	((QButtonBridge*)instPointer)->animateClick();
	return;
}
void qt_QButton_toggle( qt_QButton* instPointer){
	((QButtonBridge*)instPointer)->toggle();
	return;
}
void qt_QButton_setToggleButton( qt_QButton* instPointer,int arg1){
	((QButtonBridge*)instPointer)->protected_setToggleButton((bool)arg1);
	return;
}
void qt_QButton_setToggleType( qt_QButton* instPointer,int arg1){
	((QButtonBridge*)instPointer)->protected_setToggleType((QButton::ToggleType)arg1);
	return;
}
void qt_QButton_setOn( qt_QButton* instPointer,int arg1){
	((QButtonBridge*)instPointer)->protected_setOn((bool)arg1);
	return;
}
void qt_QButton_setState( qt_QButton* instPointer,int arg1){
	((QButtonBridge*)instPointer)->protected_setState((QButton::ToggleState)arg1);
	return;
}
int qt_QButton_hitButton( qt_QButton* instPointer,qt_QPoint* pos){
	return (int) ((QButtonBridge*)instPointer)->protected_hitButton((QPoint&)* (QPoint*)pos);
}
void qt_QButton_drawButton( qt_QButton* instPointer,qt_QPainter * arg1){
	((QButtonBridge*)instPointer)->protected_drawButton((QPainter*)arg1);
	return;
}
void qt_QButton_drawButtonLabel( qt_QButton* instPointer,qt_QPainter * arg1){
	((QButtonBridge*)instPointer)->protected_drawButtonLabel((QPainter*)arg1);
	return;
}
void qt_QButton_enabledChange( qt_QButton* instPointer,int arg1){
	((QButtonBridge*)instPointer)->protected_enabledChange((bool)arg1);
	return;
}
