/***************************************************************************
                            qt_QIntValidator.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_QIntValidator.h"
}

#include <qvalidator.h>

class QIntValidatorBridge : public QIntValidator
{
public:
	QIntValidatorBridge(QObject* parent, const char* name) : QIntValidator(parent, name) {}
	QIntValidatorBridge(int bottom, int top, QObject* parent, const char* name) : QIntValidator(bottom, top, parent, name) {}
	~QIntValidatorBridge() {}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

qt_QIntValidator * qt_new_QIntValidator(qt_QObject * parent, char* name){
	return (qt_QIntValidator *) new QIntValidatorBridge((QObject*)parent, (char*)name);
}
qt_QIntValidator * qt_new_QIntValidator1(int bottom, int top, qt_QObject * parent, char* name){
	return (qt_QIntValidator *) new QIntValidatorBridge((int)bottom, (int)top, (QObject*)parent, (char*)name);
}
void qt_del_QIntValidator( qt_QIntValidator* p ){
	delete (QIntValidatorBridge*) p;
}
int qt_QIntValidator_validate( qt_QIntValidator* instPointer,qt_QString * arg1, int arg2){
	return (int) ((QIntValidatorBridge*)instPointer)->validate((QString&)* (QString*)arg1, (int&)arg2);
}
void qt_QIntValidator_setBottom( qt_QIntValidator* instPointer,int arg1){
	((QIntValidatorBridge*)instPointer)->setBottom((int)arg1);
	return;
}
void qt_QIntValidator_setTop( qt_QIntValidator* instPointer,int arg1){
	((QIntValidatorBridge*)instPointer)->setTop((int)arg1);
	return;
}
void qt_QIntValidator_setRange( qt_QIntValidator* instPointer,int bottom, int top){
	((QIntValidatorBridge*)instPointer)->setRange((int)bottom, (int)top);
	return;
}
int qt_QIntValidator_bottom( qt_QIntValidator* instPointer){
	return (int) ((QIntValidatorBridge*)instPointer)->bottom();
}
int qt_QIntValidator_top( qt_QIntValidator* instPointer){
	return (int) ((QIntValidatorBridge*)instPointer)->top();
}
