/***************************************************************************
                            kde_KDualColorButton.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_KDualColorButton.h"
}

#include <kdualcolorbutton.h>

class KDualColorButtonBridge : public KDualColorButton
{
public:
	KDualColorButtonBridge(QWidget* parent, const char* name, QWidget* dialogParent) : KDualColorButton(parent, name, dialogParent) {}
	KDualColorButtonBridge(const QColor& fgColor, const QColor& bgColor, QWidget* parent, const char* name, QWidget* dialogParent) : KDualColorButton(fgColor, bgColor, parent, name, dialogParent) {}
	~KDualColorButtonBridge() {}
	void protected_metrics(QRect& fgRect, QRect& bgRect) {
		KDualColorButton::metrics(fgRect, bgRect);
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			QWidget::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")) {
			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* ev) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mousePressEvent", ev, "QMouseEvent")) {
			KDualColorButton::mousePressEvent(ev);
		}
		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* ev) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseReleaseEvent", ev, "QMouseEvent")) {
			KDualColorButton::mouseReleaseEvent(ev);
		}
		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* ev) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dropEvent", ev, "QDropEvent")) {
			KDualColorButton::dropEvent(ev);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* ev) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "dragEnterEvent", ev, "QDragEnterEvent")) {
			KDualColorButton::dragEnterEvent(ev);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* ev) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "mouseMoveEvent", ev, "QMouseEvent")) {
			KDualColorButton::mouseMoveEvent(ev);
		}
		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* ev) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "paintEvent", ev, "QPaintEvent")) {
			KDualColorButton::paintEvent(ev);
		}
		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_KDualColorButton * kde_new_KDualColorButton(qt_QWidget * parent, char* name, qt_QWidget * dialogParent){
	return (kde_KDualColorButton *) new KDualColorButtonBridge((QWidget*)parent, (char*)name, (QWidget*)dialogParent);
}
kde_KDualColorButton * kde_new_KDualColorButton1(qt_QColor * fgColor, qt_QColor * bgColor, qt_QWidget * parent, char* name, qt_QWidget * dialogParent){
	return (kde_KDualColorButton *) new KDualColorButtonBridge((QColor&)* (QColor*)fgColor, (QColor&)* (QColor*)bgColor, (QWidget*)parent, (char*)name, (QWidget*)dialogParent);
}
void kde_del_KDualColorButton( kde_KDualColorButton* p ){
	delete (KDualColorButtonBridge*) p;
}
qt_QColor * kde_KDualColorButton_foreground( kde_KDualColorButton* instPointer){
	return (qt_QColor *)new QColor(((KDualColorButtonBridge*)instPointer)->foreground());
}
qt_QColor * kde_KDualColorButton_background( kde_KDualColorButton* instPointer){
	return (qt_QColor *)new QColor(((KDualColorButtonBridge*)instPointer)->background());
}
int kde_KDualColorButton_current( kde_KDualColorButton* instPointer){
	return (int) ((KDualColorButtonBridge*)instPointer)->current();
}
qt_QColor * kde_KDualColorButton_currentColor( kde_KDualColorButton* instPointer){
	return (qt_QColor *)new QColor(((KDualColorButtonBridge*)instPointer)->currentColor());
}
qt_QSize * kde_KDualColorButton_sizeHint( kde_KDualColorButton* instPointer){
	QSize _s= ((KDualColorButtonBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
void kde_KDualColorButton_setForeground( kde_KDualColorButton* instPointer,qt_QColor * c){
	((KDualColorButtonBridge*)instPointer)->setForeground((QColor&)* (QColor*)c);
	return;
}
void kde_KDualColorButton_setBackground( kde_KDualColorButton* instPointer,qt_QColor * c){
	((KDualColorButtonBridge*)instPointer)->setBackground((QColor&)* (QColor*)c);
	return;
}
void kde_KDualColorButton_setCurrent( kde_KDualColorButton* instPointer,int s){
	((KDualColorButtonBridge*)instPointer)->setCurrent((KDualColorButton::DualColor)s);
	return;
}
void kde_KDualColorButton_setCurrentColor( kde_KDualColorButton* instPointer,qt_QColor * c){
	((KDualColorButtonBridge*)instPointer)->setCurrentColor((QColor&)* (QColor*)c);
	return;
}
void kde_KDualColorButton_metrics( kde_KDualColorButton* instPointer,qt_QRect* fgRect, qt_QRect* bgRect){
	((KDualColorButtonBridge*)instPointer)->protected_metrics((QRect&)* (QRect*)fgRect, (QRect&)* (QRect*)bgRect);
	return;
}
