/***************************************************************************
                            qt_QToolButton.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_QToolButton.h"
}

#include <qtoolbutton.h>

class QToolButtonBridge : public QToolButton
{
public:
	QToolButtonBridge(QWidget* parent, const char* name) : QToolButton(parent, name) {}
	QToolButtonBridge(const QIconSet& s, const QString& textLabel, const QString& grouptext, QObject* receiver, const char* slot, QToolBar* parent, const char* name) : QToolButton(s, textLabel, grouptext, receiver, slot, parent, name) {}
	QToolButtonBridge(ArrowType type, QWidget* parent, const char* name) : QToolButton(type, parent, name) {}
	~QToolButtonBridge() {}
	void protected_drawButton(QPainter* arg1) {
		QToolButton::drawButton(arg1);
		return;
	}
	void protected_drawButtonLabel(QPainter* arg1) {
		QToolButton::drawButtonLabel(arg1);
		return;
	}
	bool  protected_uses3D() {
		return (bool ) QToolButton::uses3D();
	}
	bool  protected_eventFilter(QObject* o, QEvent* e) {
		return (bool ) QToolButton::eventFilter(o, e);
	}
	void protected_paletteChange(const QPalette& arg1) {
		QToolButton::paletteChange(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 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")) {
			QToolButton::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")) {
			QToolButton::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")) {
			QToolButton::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 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")) {
			QToolButton::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")) {
			QWidget::resizeEvent(arg1);
		}
		return;
	}
};

qt_QToolButton * qt_new_QToolButton(qt_QWidget * parent, char* name){
	return (qt_QToolButton *) new QToolButtonBridge((QWidget*)parent, (char*)name);
}
qt_QToolButton * qt_new_QToolButton1(qt_QIconSet* s, qt_QString * textLabel, qt_QString * grouptext, qt_QObject * receiver, char* slot, qt_QToolBar* parent, char* name){
	return (qt_QToolButton *) new QToolButtonBridge((QIconSet&)* (QIconSet*)s, (QString&)* (QString*)textLabel, (QString&)* (QString*)grouptext, (QObject*)receiver, (char*)slot, (QToolBar*)parent, (char*)name);
}
qt_QToolButton * qt_new_QToolButton2(int type, qt_QWidget * parent, char* name){
	return (qt_QToolButton *) new QToolButtonBridge((Qt::ArrowType)type, (QWidget*)parent, (char*)name);
}
void qt_del_QToolButton( qt_QToolButton* p ){
	delete (QToolButtonBridge*) p;
}
qt_QSize * qt_QToolButton_sizeHint( qt_QToolButton* instPointer){
	QSize _s= ((QToolButtonBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QToolButton_minimumSizeHint( qt_QToolButton* instPointer){
	QSize _s= ((QToolButtonBridge*)instPointer)->minimumSizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void qt_QToolButton_setOnIconSet( qt_QToolButton* instPointer,qt_QIconSet* arg1){
	((QToolButtonBridge*)instPointer)->setOnIconSet((QIconSet&)* (QIconSet*)arg1);
	return;
}
void qt_QToolButton_setOffIconSet( qt_QToolButton* instPointer,qt_QIconSet* arg1){
	((QToolButtonBridge*)instPointer)->setOffIconSet((QIconSet&)* (QIconSet*)arg1);
	return;
}
void qt_QToolButton_setIconSet( qt_QToolButton* instPointer,qt_QIconSet* arg1, int on){
	((QToolButtonBridge*)instPointer)->setIconSet((QIconSet&)* (QIconSet*)arg1, (bool)on);
	return;
}
qt_QIconSet* qt_QToolButton_onIconSet( qt_QToolButton* instPointer){
	return (qt_QIconSet*)new QIconSet(((QToolButtonBridge*)instPointer)->onIconSet());
}
qt_QIconSet* qt_QToolButton_offIconSet( qt_QToolButton* instPointer){
	return (qt_QIconSet*)new QIconSet(((QToolButtonBridge*)instPointer)->offIconSet());
}
qt_QIconSet* qt_QToolButton_iconSet( qt_QToolButton* instPointer,int on){
	return (qt_QIconSet*)new QIconSet(((QToolButtonBridge*)instPointer)->iconSet((bool)on));
}
void qt_QToolButton_setIconSet1( qt_QToolButton* instPointer,qt_QIconSet* arg1){
	((QToolButtonBridge*)instPointer)->setIconSet((QIconSet&)* (QIconSet*)arg1);
	return;
}
qt_QIconSet* qt_QToolButton_iconSet1( qt_QToolButton* instPointer){
	return (qt_QIconSet*)new QIconSet(((QToolButtonBridge*)instPointer)->iconSet());
}
int qt_QToolButton_usesBigPixmap( qt_QToolButton* instPointer){
	return (int) ((QToolButtonBridge*)instPointer)->usesBigPixmap();
}
int qt_QToolButton_usesTextLabel( qt_QToolButton* instPointer){
	return (int) ((QToolButtonBridge*)instPointer)->usesTextLabel();
}
qt_QString * qt_QToolButton_textLabel( qt_QToolButton* instPointer){
	return (qt_QString *)new QString(((QToolButtonBridge*)instPointer)->textLabel());
}
void qt_QToolButton_setPopup( qt_QToolButton* instPointer,qt_QPopupMenu* popup){
	((QToolButtonBridge*)instPointer)->setPopup((QPopupMenu*)popup);
	return;
}
qt_QPopupMenu* qt_QToolButton_popup( qt_QToolButton* instPointer){
	return (qt_QPopupMenu*) ((QToolButtonBridge*)instPointer)->popup();
}
void qt_QToolButton_setPopupDelay( qt_QToolButton* instPointer,int delay){
	((QToolButtonBridge*)instPointer)->setPopupDelay((int)delay);
	return;
}
int qt_QToolButton_popupDelay( qt_QToolButton* instPointer){
	return (int) ((QToolButtonBridge*)instPointer)->popupDelay();
}
void qt_QToolButton_openPopup( qt_QToolButton* instPointer){
	((QToolButtonBridge*)instPointer)->openPopup();
	return;
}
void qt_QToolButton_setAutoRaise( qt_QToolButton* instPointer,int enable){
	((QToolButtonBridge*)instPointer)->setAutoRaise((bool)enable);
	return;
}
int qt_QToolButton_autoRaise( qt_QToolButton* instPointer){
	return (int) ((QToolButtonBridge*)instPointer)->autoRaise();
}
void qt_QToolButton_setUsesBigPixmap( qt_QToolButton* instPointer,int enable){
	((QToolButtonBridge*)instPointer)->setUsesBigPixmap((bool)enable);
	return;
}
void qt_QToolButton_setUsesTextLabel( qt_QToolButton* instPointer,int enable){
	((QToolButtonBridge*)instPointer)->setUsesTextLabel((bool)enable);
	return;
}
void qt_QToolButton_setTextLabel( qt_QToolButton* instPointer,qt_QString * arg1, int arg2){
	((QToolButtonBridge*)instPointer)->setTextLabel((QString&)* (QString*)arg1, (bool)arg2);
	return;
}
void qt_QToolButton_setToggleButton( qt_QToolButton* instPointer,int enable){
	((QToolButtonBridge*)instPointer)->setToggleButton((bool)enable);
	return;
}
void qt_QToolButton_setOn( qt_QToolButton* instPointer,int enable){
	((QToolButtonBridge*)instPointer)->setOn((bool)enable);
	return;
}
void qt_QToolButton_toggle( qt_QToolButton* instPointer){
	((QToolButtonBridge*)instPointer)->toggle();
	return;
}
void qt_QToolButton_setTextLabel1( qt_QToolButton* instPointer,qt_QString * arg1){
	((QToolButtonBridge*)instPointer)->setTextLabel((QString&)* (QString*)arg1);
	return;
}
void qt_QToolButton_drawButton( qt_QToolButton* instPointer,qt_QPainter * arg1){
	((QToolButtonBridge*)instPointer)->protected_drawButton((QPainter*)arg1);
	return;
}
void qt_QToolButton_drawButtonLabel( qt_QToolButton* instPointer,qt_QPainter * arg1){
	((QToolButtonBridge*)instPointer)->protected_drawButtonLabel((QPainter*)arg1);
	return;
}
int qt_QToolButton_uses3D( qt_QToolButton* instPointer){
	return (int) ((QToolButtonBridge*)instPointer)->protected_uses3D();
}
int qt_QToolButton_eventFilter( qt_QToolButton* instPointer,qt_QObject * o, qt_QEvent * e){
	return (int) ((QToolButtonBridge*)instPointer)->protected_eventFilter((QObject*)o, (QEvent*)e);
}
void qt_QToolButton_paletteChange( qt_QToolButton* instPointer,qt_QPalette * arg1){
	((QToolButtonBridge*)instPointer)->protected_paletteChange((QPalette&)* (QPalette*)arg1);
	return;
}
