/***************************************************************************
                            kde_KFloatValidator.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_KFloatValidator.h"
}

#include <knumvalidator.h>

class KFloatValidatorBridge : public KFloatValidator
{
public:
	KFloatValidatorBridge(QWidget* parent, const char* name) : KFloatValidator(parent, name) {}
	KFloatValidatorBridge(double bottom, double top, QWidget* parent, const char* name) : KFloatValidator(bottom, top, parent, name) {}
	~KFloatValidatorBridge() {}
	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_KFloatValidator * kde_new_KFloatValidator(qt_QWidget * parent, char* name){
	return (kde_KFloatValidator *) new KFloatValidatorBridge((QWidget*)parent, (char*)name);
}
kde_KFloatValidator * kde_new_KFloatValidator1(double bottom, double top, qt_QWidget * parent, char* name){
	return (kde_KFloatValidator *) new KFloatValidatorBridge((double)bottom, (double)top, (QWidget*)parent, (char*)name);
}
void kde_del_KFloatValidator( kde_KFloatValidator* p ){
	delete (KFloatValidatorBridge*) p;
}
int kde_KFloatValidator_validate( kde_KFloatValidator* instPointer,qt_QString * arg1, int arg2){
	return (int) ((KFloatValidatorBridge*)instPointer)->validate((QString&)* (QString*)arg1, (int&)arg2);
}
void kde_KFloatValidator_fixup( kde_KFloatValidator* instPointer,qt_QString * arg1){
	((KFloatValidatorBridge*)instPointer)->fixup((QString&)* (QString*)arg1);
	return;
}
void kde_KFloatValidator_setRange( kde_KFloatValidator* instPointer,double bottom, double top){
	((KFloatValidatorBridge*)instPointer)->setRange((double)bottom, (double)top);
	return;
}
double kde_KFloatValidator_bottom( kde_KFloatValidator* instPointer){
	return (double) ((KFloatValidatorBridge*)instPointer)->bottom();
}
double kde_KFloatValidator_top( kde_KFloatValidator* instPointer){
	return (double) ((KFloatValidatorBridge*)instPointer)->top();
}
void kde_KFloatValidator_setAcceptLocalizedNumbers( kde_KFloatValidator* instPointer,int b){
	((KFloatValidatorBridge*)instPointer)->setAcceptLocalizedNumbers((bool)b);
	return;
}
int kde_KFloatValidator_acceptLocalizedNumbers( kde_KFloatValidator* instPointer){
	return (int) ((KFloatValidatorBridge*)instPointer)->acceptLocalizedNumbers();
}
