knumvalidator.cpp
47 KIntValidator::KIntValidator ( int bottom, int top, TQWidget * parent, int base, const char * name )
172 KFloatValidator::KFloatValidator ( double bottom, double top, TQWidget * parent, const char * name )
181 KFloatValidator::KFloatValidator ( double bottom, double top, bool localeAware, TQWidget * parent, const char * name )
217 else if (newStr == TQString::fromLatin1(".") || (d->acceptLocalizedNumbers && newStr==TDEGlobal::locale()->decimalSymbol())) // another special case
KDoubleValidator(TQObject *parent, const char *name=0)
Constuct a locale-aware KDoubleValidator with default range (whatever TQDoubleValidator uses for that...
Definition: knumvalidator.cpp:300
void setAcceptLocalizedNumbers(bool accept)
Sets whether to accept localized numbers (default: true)
Definition: knumvalidator.cpp:322
virtual TQValidator::State validate(TQString &input, int &pos) const
Overloaded for internal reasons.
Definition: knumvalidator.cpp:326
bool acceptLocalizedNumbers() const
Definition: knumvalidator.cpp:318
virtual void setRange(double bottom, double top)
Sets the minimum and maximum value allowed.
Definition: knumvalidator.cpp:267
virtual void fixup(TQString &) const
Fixes the text if possible, providing a valid string.
Definition: knumvalidator.cpp:245
void setAcceptLocalizedNumbers(bool b)
Sets the validator to be locale aware if is true.
Definition: knumvalidator.cpp:195
virtual double top() const
Returns the current maximum value allowed.
Definition: knumvalidator.cpp:281
virtual State validate(TQString &, int &) const
Validates the text, and return the result.
Definition: knumvalidator.cpp:205
bool acceptLocalizedNumbers() const
Returns true if the validator is locale aware.
Definition: knumvalidator.cpp:200
virtual double bottom() const
Returns the current minimum value allowed.
Definition: knumvalidator.cpp:276
virtual State validate(TQString &, int &) const
Validates the text, and return the result.
Definition: knumvalidator.cpp:60
KIntValidator(TQWidget *parent, int base=10, const char *name=0)
Constuctor.
Definition: knumvalidator.cpp:37
virtual void fixup(TQString &) const
Fixes the text if possible, providing a valid string.
Definition: knumvalidator.cpp:94
virtual void setRange(int bottom, int top)
Sets the minimum and maximum values allowed.
Definition: knumvalidator.cpp:116
virtual int bottom() const
Returns the current minimum value allowed.
Definition: knumvalidator.cpp:131
static TDELocale * locale()
TQString positiveSign() const
TQString thousandsSeparator() const
TQString decimalSymbol() const
double readNumber(const TQString &numStr, bool *ok=0) const
TQString negativeSign() const
kndbgstream & endl(kndbgstream &s)
kdbgstream kdWarning(int area=0)