.TH "KFloatValidator" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KFloatValidator \- 
.SH SYNOPSIS
.br
.PP
\fC#include <knumvalidator.h>\fP
.PP
Inherits \fBQValidator\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKFloatValidator\fP (\fBQWidget\fP *parent, const  char *name=0)"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "\fBKFloatValidator\fP (double bottom, double top, \fBQWidget\fP *parent, const  char *name=0)"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "\fBKFloatValidator\fP (double bottom, double top, bool localeAware, \fBQWidget\fP *parent, const  char *name=0)"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "virtual \fB~KFloatValidator\fP ()"
.br
.RI "\fIDestructs the validator. \fP"
.ti -1c
.RI "virtual State \fBvalidate\fP (\fBQString\fP &, int &) const "
.br
.RI "\fIValidates the text, and return the result. \fP"
.ti -1c
.RI "virtual void \fBfixup\fP (\fBQString\fP &) const "
.br
.RI "\fIFixes the text if possible, providing a valid string. \fP"
.ti -1c
.RI "virtual void \fBsetRange\fP (double bottom, double top)"
.br
.RI "\fISets the minimum and maximum value allowed. \fP"
.ti -1c
.RI "virtual double \fBbottom\fP () const "
.br
.RI "\fIReturns the current minimum value allowed. \fP"
.ti -1c
.RI "virtual double \fBtop\fP () const "
.br
.RI "\fIReturns the current maximum value allowed. \fP"
.ti -1c
.RI "void \fBsetAcceptLocalizedNumbers\fP (bool b)"
.br
.RI "\fISets the validator to be locale aware if \fCis\fP true. \fP"
.ti -1c
.RI "bool \fBacceptLocalizedNumbers\fP () const "
.br
.RI "\fIReturns true if the validator is locale aware. \fP"
.in -1c
.SH "Detailed Description"
.PP 
\fBDeprecated\fP
.RS 4
Use \fBKDoubleValidator\fP 
.RE
.PP
\fBQValidator\fP for floating point entry. Extends the \fBQValidator\fP class to properly validate double numeric data. This can be used by \fBQLineEdit\fP or subclass to provide validated text entry.
.PP
\fBAuthor:\fP
.RS 4
Glen Parker <glenebob@nwlink.com> 
.RE
.PP
\fBVersion:\fP
.RS 4
0.0.1 
.RE
.PP
Definition at line 106 of file knumvalidator.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KFloatValidator::KFloatValidator (\fBQWidget\fP * parent, const char * name = 0)"
.PP
Constructor. Definition at line 165 of file knumvalidator.cpp.
.PP
References KStdAccel::name().
.SS "KFloatValidator::KFloatValidator (double bottom, double top, \fBQWidget\fP * parent, const char * name = 0)"
.PP
Constructor. Also sets the minimum and maximum values. Definition at line 173 of file knumvalidator.cpp.
.PP
References KStdAccel::name().
.SS "KFloatValidator::KFloatValidator (double bottom, double top, bool localeAware, \fBQWidget\fP * parent, const char * name = 0)"
.PP
Constructor. Sets the validator to be locale aware if \fClocaleAware\fP is true. Definition at line 182 of file knumvalidator.cpp.
.PP
References KStdAccel::name().
.SS "KFloatValidator::~\fBKFloatValidator\fP ()\fC [virtual]\fP"
.PP
Destructs the validator. Definition at line 191 of file knumvalidator.cpp.
.SH "Member Function Documentation"
.PP 
.SS "QValidator::State KFloatValidator::validate (\fBQString\fP &, int &) const\fC [virtual]\fP"
.PP
Validates the text, and return the result. Does not modify the parameters. Reimplemented from \fBQValidator\fP.
.PP
Definition at line 207 of file knumvalidator.cpp.
.PP
References KLocale::decimalSymbol(), QString::fromLatin1(), QString::length(), KGlobal::locale(), KLocale::readNumber(), QString::stripWhiteSpace(), and QString::toDouble().
.PP
Referenced by fixup().
.SS "void KFloatValidator::fixup (\fBQString\fP &) const\fC [virtual]\fP"
.PP
Fixes the text if possible, providing a valid string. The parameter may be modified. Reimplemented from \fBQValidator\fP.
.PP
Definition at line 247 of file knumvalidator.cpp.
.PP
References QString::setNum(), QString::toDouble(), and validate().
.SS "void KFloatValidator::setRange (double bottom, double top)\fC [virtual]\fP"
.PP
Sets the minimum and maximum value allowed. Definition at line 269 of file knumvalidator.cpp.
.SS "double KFloatValidator::bottom () const\fC [virtual]\fP"
.PP
Returns the current minimum value allowed. Definition at line 278 of file knumvalidator.cpp.
.SS "double KFloatValidator::top () const\fC [virtual]\fP"
.PP
Returns the current maximum value allowed. Definition at line 283 of file knumvalidator.cpp.
.SS "void KFloatValidator::setAcceptLocalizedNumbers (bool b)"
.PP
Sets the validator to be locale aware if \fCis\fP true. In this case, the character \fBKLocale::decimalSymbol()\fP from the global locale is recognized as decimal separator. Definition at line 196 of file knumvalidator.cpp.
.SS "bool KFloatValidator::acceptLocalizedNumbers () const"
.PP
Returns true if the validator is locale aware. \fBSee also:\fP
.RS 4
\fBsetAcceptLocalizedNumbers()\fP. 
.RE
.PP
Definition at line 201 of file knumvalidator.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
