/***************************************************************************
                            kde_KToolBarButton.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, 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 "kde_KToolBarButton.h"
}

#include <ktoolbarbutton.h>

class KToolBarButtonBridge : public KToolBarButton
{
public:
	KToolBarButtonBridge(const QString& icon, int id, QWidget* parent, const char* name, const QString& txt, KInstance* _instance) : KToolBarButton(icon, id, parent, name, txt, _instance) {}
	KToolBarButtonBridge(const QPixmap& pixmap, int id, QWidget* parent, const char* name, const QString& txt) : KToolBarButton(pixmap, id, parent, name, txt) {}
	KToolBarButtonBridge(QWidget* parent, const char* name) : KToolBarButton(parent, name) {}
	~KToolBarButtonBridge() {}
	void protected_paletteChange(const QPalette& arg1) {
		KToolBarButton::paletteChange(arg1);
		return;
	}
	void protected_drawButton(QPainter* p) {
		KToolBarButton::drawButton(p);
		return;
	}
	bool  protected_eventFilter(QObject* o, QEvent* e) {
		return (bool ) KToolBarButton::eventFilter(o, e);
	}
	void protected_showMenu() {
		KToolBarButton::showMenu();
		return;
	}
	QSize  protected_sizeHint() {
		return (QSize ) KToolBarButton::sizeHint();
	}
	QSize  protected_minimumSizeHint() {
		return (QSize ) KToolBarButton::minimumSizeHint();
	}
	QSize  protected_minimumSize() {
		return (QSize ) KToolBarButton::minimumSize();
	}
//	void protected_makeDefaultPixmap() {
//		KToolBarButton::makeDefaultPixmap();
//		return;
//	}
//	void protected_makeDisabledPixmap() {
//		KToolBarButton::makeDisabledPixmap();
//		return;
//	}
	void protected_slotClicked() {
		KToolBarButton::slotClicked();
		return;
	}
	void protected_slotPressed() {
		KToolBarButton::slotPressed();
		return;
	}
	void protected_slotReleased() {
		KToolBarButton::slotReleased();
		return;
	}
	void protected_slotToggled() {
		KToolBarButton::slotToggled();
		return;
	}
	void protected_slotDelayTimeout() {
		KToolBarButton::slotDelayTimeout();
		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* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "leaveEvent", e, "QEvent")) {
			KToolBarButton::leaveEvent(e);
		}
		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* e) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "enterEvent", e, "QEvent")) {
			KToolBarButton::enterEvent(e);
		}
		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;
	}
};

kde_KToolBarButton * kde_new_KToolBarButton(qt_QString * icon, int identifier, qt_QWidget * parent, char* name, qt_QString * txt, kde_KInstance* _instance){
	return (kde_KToolBarButton *) new KToolBarButtonBridge((QString&)* (QString*)icon, (int)identifier, (QWidget*)parent, (char*)name, (QString&)* (QString*)txt, (KInstance*)_instance);
}
kde_KToolBarButton * kde_new_KToolBarButton1(qt_QPixmap * pixmap, int identifier, qt_QWidget * parent, char* name, qt_QString * txt){
	return (kde_KToolBarButton *) new KToolBarButtonBridge((QPixmap&)* (QPixmap*)pixmap, (int)identifier, (QWidget*)parent, (char*)name, (QString&)* (QString*)txt);
}
kde_KToolBarButton * kde_new_KToolBarButton2(qt_QWidget * parent, char* name){
	return (kde_KToolBarButton *) new KToolBarButtonBridge((QWidget*)parent, (char*)name);
}
void kde_del_KToolBarButton( kde_KToolBarButton* p ){
	delete (KToolBarButtonBridge*) p;
}
void kde_KToolBarButton_setEnabled( kde_KToolBarButton* instPointer,int enable){
	((KToolBarButtonBridge*)instPointer)->setEnabled((bool)enable);
	return;
}
void kde_KToolBarButton_setPixmap( kde_KToolBarButton* instPointer,qt_QPixmap * pixmap){
	((KToolBarButtonBridge*)instPointer)->setPixmap((QPixmap&)* (QPixmap*)pixmap);
	return;
}
//void kde_KToolBarButton_setPixmap1( kde_KToolBarButton* instPointer,qt_QPixmap * pixmap, int generate){
//	((KToolBarButtonBridge*)instPointer)->setPixmap((QPixmap&)* (QPixmap*)pixmap, (bool)generate);
//	return;
//}
void kde_KToolBarButton_setDefaultPixmap( kde_KToolBarButton* instPointer,qt_QPixmap * pixmap){
	((KToolBarButtonBridge*)instPointer)->setDefaultPixmap((QPixmap&)* (QPixmap*)pixmap);
	return;
}
void kde_KToolBarButton_setDisabledPixmap( kde_KToolBarButton* instPointer,qt_QPixmap * pixmap){
	((KToolBarButtonBridge*)instPointer)->setDisabledPixmap((QPixmap&)* (QPixmap*)pixmap);
	return;
}
void kde_KToolBarButton_setText( kde_KToolBarButton* instPointer,qt_QString * text){
	((KToolBarButtonBridge*)instPointer)->setText((QString&)* (QString*)text);
	return;
}
void kde_KToolBarButton_setIcon( kde_KToolBarButton* instPointer,qt_QString * icon){
	((KToolBarButtonBridge*)instPointer)->setIcon((QString&)* (QString*)icon);
	return;
}
void kde_KToolBarButton_setIcon1( kde_KToolBarButton* instPointer,qt_QString * icon, int generate){
	((KToolBarButtonBridge*)instPointer)->setIcon((QString&)* (QString*)icon, (bool)generate);
	return;
}
void kde_KToolBarButton_setDefaultIcon( kde_KToolBarButton* instPointer,qt_QString * icon){
	((KToolBarButtonBridge*)instPointer)->setDefaultIcon((QString&)* (QString*)icon);
	return;
}
void kde_KToolBarButton_setDisabledIcon( kde_KToolBarButton* instPointer,qt_QString * icon){
	((KToolBarButtonBridge*)instPointer)->setDisabledIcon((QString&)* (QString*)icon);
	return;
}
void kde_KToolBarButton_setIconSet( kde_KToolBarButton* instPointer,qt_QIconSet* iconset){
	((KToolBarButtonBridge*)instPointer)->setIconSet((QIconSet&)* (QIconSet*)iconset);
	return;
}
void kde_KToolBarButton_on( kde_KToolBarButton* instPointer,int flag){
	((KToolBarButtonBridge*)instPointer)->on((bool)flag);
	return;
}
void kde_KToolBarButton_toggle( kde_KToolBarButton* instPointer){
	((KToolBarButtonBridge*)instPointer)->toggle();
	return;
}
void kde_KToolBarButton_setToggle( kde_KToolBarButton* instPointer,int toggle){
	((KToolBarButtonBridge*)instPointer)->setToggle((bool)toggle);
	return;
}
qt_QPopupMenu* kde_KToolBarButton_popup( kde_KToolBarButton* instPointer){
	return (qt_QPopupMenu*) ((KToolBarButtonBridge*)instPointer)->popup();
}
void kde_KToolBarButton_setPopup( kde_KToolBarButton* instPointer,qt_QPopupMenu* p, int toggle){
	((KToolBarButtonBridge*)instPointer)->setPopup((QPopupMenu*)p, (bool)toggle);
	return;
}
void kde_KToolBarButton_setDelayedPopup( kde_KToolBarButton* instPointer,qt_QPopupMenu* p, int toggle){
	((KToolBarButtonBridge*)instPointer)->setDelayedPopup((QPopupMenu*)p, (bool)toggle);
	return;
}
void kde_KToolBarButton_setRadio( kde_KToolBarButton* instPointer,int f){
	((KToolBarButtonBridge*)instPointer)->setRadio((bool)f);
	return;
}
void kde_KToolBarButton_setNoStyle( kde_KToolBarButton* instPointer,int no_style){
	((KToolBarButtonBridge*)instPointer)->setNoStyle((bool)no_style);
	return;
}
void kde_KToolBarButton_modeChange( kde_KToolBarButton* instPointer){
	((KToolBarButtonBridge*)instPointer)->modeChange();
	return;
}
void kde_KToolBarButton_setTextLabel( kde_KToolBarButton* instPointer,qt_QString * arg1, int tipToo){
	((KToolBarButtonBridge*)instPointer)->setTextLabel((QString&)* (QString*)arg1, (bool)tipToo);
	return;
}
void kde_KToolBarButton_paletteChange( kde_KToolBarButton* instPointer,qt_QPalette * arg1){
	((KToolBarButtonBridge*)instPointer)->protected_paletteChange((QPalette&)* (QPalette*)arg1);
	return;
}
void kde_KToolBarButton_drawButton( kde_KToolBarButton* instPointer,qt_QPainter * p){
	((KToolBarButtonBridge*)instPointer)->protected_drawButton((QPainter*)p);
	return;
}
int kde_KToolBarButton_eventFilter( kde_KToolBarButton* instPointer,qt_QObject * o, qt_QEvent * e){
	return (int) ((KToolBarButtonBridge*)instPointer)->protected_eventFilter((QObject*)o, (QEvent*)e);
}
void kde_KToolBarButton_showMenu( kde_KToolBarButton* instPointer){
	((KToolBarButtonBridge*)instPointer)->protected_showMenu();
	return;
}
qt_QSize * kde_KToolBarButton_sizeHint( kde_KToolBarButton* instPointer){
	QSize _s= ((KToolBarButtonBridge*)instPointer)->protected_sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * kde_KToolBarButton_minimumSizeHint( kde_KToolBarButton* instPointer){
	QSize _s= ((KToolBarButtonBridge*)instPointer)->protected_minimumSizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * kde_KToolBarButton_minimumSize( kde_KToolBarButton* instPointer){
	QSize _s= ((KToolBarButtonBridge*)instPointer)->protected_minimumSize();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
//void kde_KToolBarButton_makeDefaultPixmap( kde_KToolBarButton* instPointer){
//	((KToolBarButtonBridge*)instPointer)->protected_makeDefaultPixmap();
//	return;
//}
//void kde_KToolBarButton_makeDisabledPixmap( kde_KToolBarButton* instPointer){
//	((KToolBarButtonBridge*)instPointer)->protected_makeDisabledPixmap();
//	return;
//}
void kde_KToolBarButton_slotClicked( kde_KToolBarButton* instPointer){
	((KToolBarButtonBridge*)instPointer)->protected_slotClicked();
	return;
}
void kde_KToolBarButton_slotPressed( kde_KToolBarButton* instPointer){
	((KToolBarButtonBridge*)instPointer)->protected_slotPressed();
	return;
}
void kde_KToolBarButton_slotReleased( kde_KToolBarButton* instPointer){
	((KToolBarButtonBridge*)instPointer)->protected_slotReleased();
	return;
}
void kde_KToolBarButton_slotToggled( kde_KToolBarButton* instPointer){
	((KToolBarButtonBridge*)instPointer)->protected_slotToggled();
	return;
}
void kde_KToolBarButton_slotDelayTimeout( kde_KToolBarButton* instPointer){
	((KToolBarButtonBridge*)instPointer)->protected_slotDelayTimeout();
	return;
}
