24 #ifndef __KNUMVALIDATOR_H
25 #define __KNUMVALIDATOR_H
27 #include <tqvalidator.h>
29 #include <tdelibs_export.h>
50 KIntValidator ( TQWidget * parent,
int base = 10,
const char * name = 0 );
54 KIntValidator (
int bottom,
int top, TQWidget * parent,
int base = 10,
const char * name = 0 );
62 virtual State validate ( TQString &,
int & )
const;
66 virtual void fixup ( TQString & )
const;
70 virtual void setRange (
int bottom,
int top );
74 virtual void setBase (
int base );
78 virtual int bottom ()
const;
82 virtual int top ()
const;
86 virtual int base ()
const;
95 class KFloatValidatorPrivate;
119 KFloatValidator (
double bottom,
double top, TQWidget * parent,
const char * name = 0 );
123 KFloatValidator (
double bottom,
double top,
bool localeAware, TQWidget * parent,
const char * name = 0 );
131 virtual State validate ( TQString &,
int & )
const;
135 virtual void fixup ( TQString & )
const;
139 virtual void setRange (
double bottom,
double top );
143 virtual double bottom ()
const;
147 virtual double top ()
const;
153 void setAcceptLocalizedNumbers(
bool b);
158 bool acceptLocalizedNumbers()
const;
164 KFloatValidatorPrivate *d;
183 TQ_PROPERTY(
bool acceptLocalizedNumbers READ acceptLocalizedNumbers WRITE setAcceptLocalizedNumbers )
193 TQObject * parent,
const char * name=0 );
199 virtual TQValidator::State validate( TQString & input,
int & pos )
const;
202 bool acceptLocalizedNumbers()
const;
204 void setAcceptLocalizedNumbers(
bool accept );
207 typedef TQDoubleValidator base;
A locale-aware QDoubleValidator.
TQValidator for floating point entry (Obsolete)
TQValidator for integers.