/***************************************************************************
                            qt_QDial.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_QDial.h"
}

#include <qdial.h>

class QDialBridge : public QDial
{
public:
	QDialBridge(QWidget* parent, const char* name, WFlags f) : QDial(parent, name, f) {}
	QDialBridge(int minValue, int maxValue, int pageStep, int value, QWidget* parent, const char* name) : QDial(minValue, maxValue, pageStep, value, parent, name) {}
	~QDialBridge() {}
	void protected_valueChange() {
		QDial::valueChange();
		return;
	}
	void protected_rangeChange() {
		QDial::rangeChange();
		return;
	}
	void protected_repaintScreen(const QRect* cr) {
		QDial::repaintScreen(cr);
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "keyPressEvent", arg1, "QKeyEvent")) {
			QDial::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")) {
			QDial::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")) {
			QDial::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")) {
			QDial::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")) {
			QDial::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")) {
			QDial::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")) {
			QDial::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")) {
			QDial::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")) {
			QDial::resizeEvent(arg1);
		}
		return;
	}
};

qt_QDial * qt_new_QDial(qt_QWidget * parent, char* name, int f){
	return (qt_QDial *) new QDialBridge((QWidget*)parent, (char*)name, (QWidget::WFlags)f);
}
qt_QDial * qt_new_QDial1(int minValue, int maxValue, int pageStep, int value, qt_QWidget * parent, char* name){
	return (qt_QDial *) new QDialBridge((int)minValue, (int)maxValue, (int)pageStep, (int)value, (QWidget*)parent, (char*)name);
}
void qt_del_QDial( qt_QDial* p ){
	delete (QDialBridge*) p;
}
int qt_QDial_tracking( qt_QDial* instPointer){
	return (int) ((QDialBridge*)instPointer)->tracking();
}
int qt_QDial_wrapping( qt_QDial* instPointer){
	return (int) ((QDialBridge*)instPointer)->wrapping();
}
int qt_QDial_notchSize( qt_QDial* instPointer){
	return (int) ((QDialBridge*)instPointer)->notchSize();
}
void qt_QDial_setNotchTarget( qt_QDial* instPointer,double arg1){
	((QDialBridge*)instPointer)->setNotchTarget((double)arg1);
	return;
}
double qt_QDial_notchTarget( qt_QDial* instPointer){
	return (double) ((QDialBridge*)instPointer)->notchTarget();
}
int qt_QDial_notchesVisible( qt_QDial* instPointer){
	return (int) ((QDialBridge*)instPointer)->notchesVisible();
}
qt_QSize * qt_QDial_sizeHint( qt_QDial* instPointer){
	QSize _s= ((QDialBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QDial_minimumSizeHint( qt_QDial* instPointer){
	QSize _s= ((QDialBridge*)instPointer)->minimumSizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
int qt_QDial_minValue( qt_QDial* instPointer){
	return (int) ((QDialBridge*)instPointer)->minValue();
}
int qt_QDial_maxValue( qt_QDial* instPointer){
	return (int) ((QDialBridge*)instPointer)->maxValue();
}
void qt_QDial_setMinValue( qt_QDial* instPointer,int arg1){
	((QDialBridge*)instPointer)->setMinValue((int)arg1);
	return;
}
void qt_QDial_setMaxValue( qt_QDial* instPointer,int arg1){
	((QDialBridge*)instPointer)->setMaxValue((int)arg1);
	return;
}
int qt_QDial_lineStep( qt_QDial* instPointer){
	return (int) ((QDialBridge*)instPointer)->lineStep();
}
int qt_QDial_pageStep( qt_QDial* instPointer){
	return (int) ((QDialBridge*)instPointer)->pageStep();
}
void qt_QDial_setLineStep( qt_QDial* instPointer,int arg1){
	((QDialBridge*)instPointer)->setLineStep((int)arg1);
	return;
}
void qt_QDial_setPageStep( qt_QDial* instPointer,int arg1){
	((QDialBridge*)instPointer)->setPageStep((int)arg1);
	return;
}
int qt_QDial_value( qt_QDial* instPointer){
	return (int) ((QDialBridge*)instPointer)->value();
}
void qt_QDial_setValue( qt_QDial* instPointer,int arg1){
	((QDialBridge*)instPointer)->setValue((int)arg1);
	return;
}
void qt_QDial_addLine( qt_QDial* instPointer){
	((QDialBridge*)instPointer)->addLine();
	return;
}
void qt_QDial_subtractLine( qt_QDial* instPointer){
	((QDialBridge*)instPointer)->subtractLine();
	return;
}
void qt_QDial_addPage( qt_QDial* instPointer){
	((QDialBridge*)instPointer)->addPage();
	return;
}
void qt_QDial_subtractPage( qt_QDial* instPointer){
	((QDialBridge*)instPointer)->subtractPage();
	return;
}
void qt_QDial_setNotchesVisible( qt_QDial* instPointer,int b){
	((QDialBridge*)instPointer)->setNotchesVisible((bool)b);
	return;
}
void qt_QDial_setWrapping( qt_QDial* instPointer,int on){
	((QDialBridge*)instPointer)->setWrapping((bool)on);
	return;
}
void qt_QDial_setTracking( qt_QDial* instPointer,int enable){
	((QDialBridge*)instPointer)->setTracking((bool)enable);
	return;
}
void qt_QDial_valueChange( qt_QDial* instPointer){
	((QDialBridge*)instPointer)->protected_valueChange();
	return;
}
void qt_QDial_rangeChange( qt_QDial* instPointer){
	((QDialBridge*)instPointer)->protected_rangeChange();
	return;
}
void qt_QDial_repaintScreen( qt_QDial* instPointer,qt_QRect* cr){
	((QDialBridge*)instPointer)->protected_repaintScreen((QRect*)cr);
	return;
}
qt_QRangeControl* qt_QDial_QRangeControl(qt_QDial* instPointer){
	return (qt_QRangeControl*) (QRangeControl *) (QDial *) instPointer;
}
qt_QWidget * qt_QDial_QWidget(qt_QDial* instPointer){
	return (qt_QWidget *) (QWidget *) (QDial *) instPointer;
}
