/***************************************************************************
                            qt_QSpinBox.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_QSpinBox.h"
}

#include <qspinbox.h>

class QSpinBoxBridge : public QSpinBox
{
public:
	QSpinBoxBridge(QWidget* parent, const char* name) : QSpinBox(parent, name) {}
	QSpinBoxBridge(int minValue, int maxValue, int step, QWidget* parent, const char* name) : QSpinBox(minValue, maxValue, step, parent, name) {}
	~QSpinBoxBridge() {}
	 QString  protected_mapValueToText(int value) {
		return ( QString ) QSpinBox::mapValueToText(value);
	}
	 int  protected_mapTextToValue(bool* ok) {
		return ( int ) QSpinBox::mapTextToValue(ok);
	}
	QString  protected_currentValueText() {
		return (QString ) QSpinBox::currentValueText();
	}
	void protected_updateDisplay() {
		QSpinBox::updateDisplay();
		return;
	}
	void protected_interpretText() {
		QSpinBox::interpretText();
		return;
	}
	QLineEdit*  protected_editor() {
		return (QLineEdit* ) QSpinBox::editor();
	}
	void protected_valueChange() {
		QSpinBox::valueChange();
		return;
	}
	void protected_rangeChange() {
		QSpinBox::rangeChange();
		return;
	}
	bool  protected_eventFilter(QObject* obj, QEvent* ev) {
		return (bool ) QSpinBox::eventFilter(obj, ev);
	}
	void protected_styleChange(QStyle& arg1) {
		QSpinBox::styleChange(arg1);
		return;
	}
	void protected_textChanged() {
		QSpinBox::textChanged();
		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")) {
			QSpinBox::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")) {
			QWidget::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")) {
			QWidget::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")) {
			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* 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")) {
			QWidget::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")) {
			QSpinBox::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")) {
			QWidget::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* ev) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "resizeEvent", ev, "QResizeEvent")) {
			QSpinBox::resizeEvent(ev);
		}
		return;
	}
};

qt_QSpinBox * qt_new_QSpinBox(qt_QWidget * parent, char* name){
	return (qt_QSpinBox *) new QSpinBoxBridge((QWidget*)parent, (char*)name);
}
qt_QSpinBox * qt_new_QSpinBox1(int minValue, int maxValue, int step, qt_QWidget * parent, char* name){
	return (qt_QSpinBox *) new QSpinBoxBridge((int)minValue, (int)maxValue, (int)step, (QWidget*)parent, (char*)name);
}
void qt_del_QSpinBox( qt_QSpinBox* p ){
	delete (QSpinBoxBridge*) p;
}
qt_QString * qt_QSpinBox_text( qt_QSpinBox* instPointer){
	return (qt_QString *)new QString(((QSpinBoxBridge*)instPointer)->text());
}
qt_QString * qt_QSpinBox_prefix( qt_QSpinBox* instPointer){
	return (qt_QString *)new QString(((QSpinBoxBridge*)instPointer)->prefix());
}
qt_QString * qt_QSpinBox_suffix( qt_QSpinBox* instPointer){
	return (qt_QString *)new QString(((QSpinBoxBridge*)instPointer)->suffix());
}
qt_QString * qt_QSpinBox_cleanText( qt_QSpinBox* instPointer){
	return (qt_QString *)new QString(((QSpinBoxBridge*)instPointer)->cleanText());
}
void qt_QSpinBox_setSpecialValueText( qt_QSpinBox* instPointer,qt_QString * text){
	((QSpinBoxBridge*)instPointer)->setSpecialValueText((QString&)* (QString*)text);
	return;
}
qt_QString * qt_QSpinBox_specialValueText( qt_QSpinBox* instPointer){
	return (qt_QString *)new QString(((QSpinBoxBridge*)instPointer)->specialValueText());
}
void qt_QSpinBox_setWrapping( qt_QSpinBox* instPointer,int on){
	((QSpinBoxBridge*)instPointer)->setWrapping((bool)on);
	return;
}
int qt_QSpinBox_wrapping( qt_QSpinBox* instPointer){
	return (int) ((QSpinBoxBridge*)instPointer)->wrapping();
}
void qt_QSpinBox_setButtonSymbols( qt_QSpinBox* instPointer,int arg1){
	((QSpinBoxBridge*)instPointer)->setButtonSymbols((QSpinBox::ButtonSymbols)arg1);
	return;
}
int qt_QSpinBox_buttonSymbols( qt_QSpinBox* instPointer){
	return (int) ((QSpinBoxBridge*)instPointer)->buttonSymbols();
}
void qt_QSpinBox_setValidator( qt_QSpinBox* instPointer,qt_QValidator * v){
	((QSpinBoxBridge*)instPointer)->setValidator((QValidator*)v);
	return;
}
qt_QValidator * qt_QSpinBox_validator( qt_QSpinBox* instPointer){
	return (qt_QValidator *) ((QSpinBoxBridge*)instPointer)->validator();
}
qt_QSize * qt_QSpinBox_sizeHint( qt_QSpinBox* instPointer){
	QSize _s= ((QSpinBoxBridge*)instPointer)->sizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QSize * qt_QSpinBox_minimumSizeHint( qt_QSpinBox* instPointer){
	QSize _s= ((QSpinBoxBridge*)instPointer)->minimumSizeHint();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
int qt_QSpinBox_minValue( qt_QSpinBox* instPointer){
	return (int) ((QSpinBoxBridge*)instPointer)->minValue();
}
int qt_QSpinBox_maxValue( qt_QSpinBox* instPointer){
	return (int) ((QSpinBoxBridge*)instPointer)->maxValue();
}
void qt_QSpinBox_setMinValue( qt_QSpinBox* instPointer,int arg1){
	((QSpinBoxBridge*)instPointer)->setMinValue((int)arg1);
	return;
}
void qt_QSpinBox_setMaxValue( qt_QSpinBox* instPointer,int arg1){
	((QSpinBoxBridge*)instPointer)->setMaxValue((int)arg1);
	return;
}
int qt_QSpinBox_lineStep( qt_QSpinBox* instPointer){
	return (int) ((QSpinBoxBridge*)instPointer)->lineStep();
}
void qt_QSpinBox_setLineStep( qt_QSpinBox* instPointer,int arg1){
	((QSpinBoxBridge*)instPointer)->setLineStep((int)arg1);
	return;
}
int qt_QSpinBox_value( qt_QSpinBox* instPointer){
	return (int) ((QSpinBoxBridge*)instPointer)->value();
}
qt_QRect* qt_QSpinBox_upRect( qt_QSpinBox* instPointer){
	QRect _r= ((QSpinBoxBridge*)instPointer)->upRect();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
qt_QRect* qt_QSpinBox_downRect( qt_QSpinBox* instPointer){
	QRect _r= ((QSpinBoxBridge*)instPointer)->downRect();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
void qt_QSpinBox_setValue( qt_QSpinBox* instPointer,int value){
	((QSpinBoxBridge*)instPointer)->setValue((int)value);
	return;
}
void qt_QSpinBox_setPrefix( qt_QSpinBox* instPointer,qt_QString * text){
	((QSpinBoxBridge*)instPointer)->setPrefix((QString&)* (QString*)text);
	return;
}
void qt_QSpinBox_setSuffix( qt_QSpinBox* instPointer,qt_QString * text){
	((QSpinBoxBridge*)instPointer)->setSuffix((QString&)* (QString*)text);
	return;
}
void qt_QSpinBox_stepUp( qt_QSpinBox* instPointer){
	((QSpinBoxBridge*)instPointer)->stepUp();
	return;
}
void qt_QSpinBox_stepDown( qt_QSpinBox* instPointer){
	((QSpinBoxBridge*)instPointer)->stepDown();
	return;
}
void qt_QSpinBox_setEnabled( qt_QSpinBox* instPointer,int enabled){
	((QSpinBoxBridge*)instPointer)->setEnabled((bool)enabled);
	return;
}
void qt_QSpinBox_selectAll( qt_QSpinBox* instPointer){
	((QSpinBoxBridge*)instPointer)->selectAll();
	return;
}
qt_QString * qt_QSpinBox_mapValueToText( qt_QSpinBox* instPointer,int value){
	return (qt_QString *)new QString(((QSpinBoxBridge*)instPointer)->protected_mapValueToText((int)value));
}
int qt_QSpinBox_mapTextToValue( qt_QSpinBox* instPointer,int* ok){
	return (int) ((QSpinBoxBridge*)instPointer)->protected_mapTextToValue((bool*)ok);
}
qt_QString * qt_QSpinBox_currentValueText( qt_QSpinBox* instPointer){
	return (qt_QString *)new QString(((QSpinBoxBridge*)instPointer)->protected_currentValueText());
}
void qt_QSpinBox_updateDisplay( qt_QSpinBox* instPointer){
	((QSpinBoxBridge*)instPointer)->protected_updateDisplay();
	return;
}
void qt_QSpinBox_interpretText( qt_QSpinBox* instPointer){
	((QSpinBoxBridge*)instPointer)->protected_interpretText();
	return;
}
qt_QLineEdit* qt_QSpinBox_editor( qt_QSpinBox* instPointer){
	return (qt_QLineEdit*) ((QSpinBoxBridge*)instPointer)->protected_editor();
}
void qt_QSpinBox_valueChange( qt_QSpinBox* instPointer){
	((QSpinBoxBridge*)instPointer)->protected_valueChange();
	return;
}
void qt_QSpinBox_rangeChange( qt_QSpinBox* instPointer){
	((QSpinBoxBridge*)instPointer)->protected_rangeChange();
	return;
}
int qt_QSpinBox_eventFilter( qt_QSpinBox* instPointer,qt_QObject * obj, qt_QEvent * ev){
	return (int) ((QSpinBoxBridge*)instPointer)->protected_eventFilter((QObject*)obj, (QEvent*)ev);
}
void qt_QSpinBox_styleChange( qt_QSpinBox* instPointer,qt_QStyle* arg1){
	((QSpinBoxBridge*)instPointer)->protected_styleChange((QStyle&)* (QStyle*)arg1);
	return;
}
void qt_QSpinBox_textChanged( qt_QSpinBox* instPointer){
	((QSpinBoxBridge*)instPointer)->protected_textChanged();
	return;
}
qt_QRangeControl* qt_QSpinBox_QRangeControl(qt_QSpinBox* instPointer){
	return (qt_QRangeControl*) (QRangeControl *) (QSpinBox *) instPointer;
}
qt_QWidget * qt_QSpinBox_QWidget(qt_QSpinBox* instPointer){
	return (qt_QWidget *) (QWidget *) (QSpinBox *) instPointer;
}
