/***************************************************************************
                            kde_KIntValidator.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_KIntValidator.h"
}

#include <knumvalidator.h>

class KIntValidatorBridge : public KIntValidator
{
public:
	KIntValidatorBridge(QWidget* parent, int base, const char* name) : KIntValidator(parent, base, name) {}
	KIntValidatorBridge(int bottom, int top, QWidget* parent, int base, const char* name) : KIntValidator(bottom, top, parent, base, name) {}
	~KIntValidatorBridge() {}
	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;
	}
};

kde_KIntValidator * kde_new_KIntValidator(qt_QWidget * parent, int base, char* name){
	return (kde_KIntValidator *) new KIntValidatorBridge((QWidget*)parent, (int)base, (char*)name);
}
kde_KIntValidator * kde_new_KIntValidator1(int bottom, int top, qt_QWidget * parent, int base, char* name){
	return (kde_KIntValidator *) new KIntValidatorBridge((int)bottom, (int)top, (QWidget*)parent, (int)base, (char*)name);
}
void kde_del_KIntValidator( kde_KIntValidator* p ){
	delete (KIntValidatorBridge*) p;
}
int kde_KIntValidator_validate( kde_KIntValidator* instPointer,qt_QString * arg1, int arg2){
	return (int) ((KIntValidatorBridge*)instPointer)->validate((QString&)* (QString*)arg1, (int&)arg2);
}
void kde_KIntValidator_fixup( kde_KIntValidator* instPointer,qt_QString * arg1){
	((KIntValidatorBridge*)instPointer)->fixup((QString&)* (QString*)arg1);
	return;
}
void kde_KIntValidator_setRange( kde_KIntValidator* instPointer,int bottom, int top){
	((KIntValidatorBridge*)instPointer)->setRange((int)bottom, (int)top);
	return;
}
void kde_KIntValidator_setBase( kde_KIntValidator* instPointer,int base){
	((KIntValidatorBridge*)instPointer)->setBase((int)base);
	return;
}
int kde_KIntValidator_bottom( kde_KIntValidator* instPointer){
	return (int) ((KIntValidatorBridge*)instPointer)->bottom();
}
int kde_KIntValidator_top( kde_KIntValidator* instPointer){
	return (int) ((KIntValidatorBridge*)instPointer)->top();
}
int kde_KIntValidator_base( kde_KIntValidator* instPointer){
	return (int) ((KIntValidatorBridge*)instPointer)->base();
}
