.TH "KDoubleValidator" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KDoubleValidator \- KDoubleValidator extends \fBQDoubleValidator\fP to be locale-aware. A locale-aware \fBQDoubleValidator\fP.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <knumvalidator.h>\fP
.PP
Inherits \fBQDoubleValidator\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKDoubleValidator\fP (\fBQObject\fP *parent, const  char *name=0)"
.br
.RI "\fIConstuct a locale-aware KDoubleValidator with default range (whatever \fBQDoubleValidator\fP uses for that) and parent \fCparent\fP. \fP"
.ti -1c
.RI "\fBKDoubleValidator\fP (double \fBbottom\fP, double \fBtop\fP, int \fBdecimals\fP, \fBQObject\fP *parent, const  char *name=0)"
.br
.RI "\fIConstuct a locale-aware KDoubleValidator for range [\fCbottom\fP,\fCtop\fP] and a precision of \fCdecimals\fP decimals after the decimal point. \fP"
.ti -1c
.RI "virtual \fB~KDoubleValidator\fP ()"
.br
.RI "\fIDestructs the validator. \fP"
.ti -1c
.RI "virtual QValidator::State \fBvalidate\fP (\fBQString\fP &input, int &pos) const "
.br
.RI "\fIOverloaded for internal reasons. \fP"
.ti -1c
.RI "bool \fBacceptLocalizedNumbers\fP () const "
.br
.ti -1c
.RI "void \fBsetAcceptLocalizedNumbers\fP (bool accept)"
.br
.RI "\fISets whether to accept localized numbers (default: true). \fP"
.in -1c
.SH "Detailed Description"
.PP 
KDoubleValidator extends \fBQDoubleValidator\fP to be locale-aware. A locale-aware \fBQDoubleValidator\fP. 

That means that - subject to not being disabled - \fBKLocale::decimalPoint\fP(), \fBKLocale::thousandsSeparator\fP() and \fBKLocale::positiveSign\fP() and \fBKLocale::negativeSign\fP() are respected.
.PP
\fBAuthor:\fP
.RS 4
Marc Mutz <mutz@kde.org> 
.RE
.PP
\fBVersion:\fP
.RS 4
\fBId\fP.RS 4
\fBknumvalidator.h\fP,v 1.11.2.1 2002/12/29 15:50:19 buis Exp 
.RE
.PP
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKIntValidator\fP 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 178 of file knumvalidator.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KDoubleValidator::KDoubleValidator (\fBQObject\fP * parent, const char * name = 0)"
.PP
Constuct a locale-aware KDoubleValidator with default range (whatever \fBQDoubleValidator\fP uses for that) and parent \fCparent\fP. Definition at line 302 of file knumvalidator.cpp.
.PP
References KStdAccel::name().
.SS "KDoubleValidator::KDoubleValidator (double bottom, double top, int decimals, \fBQObject\fP * parent, const char * name = 0)"
.PP
Constuct a locale-aware KDoubleValidator for range [\fCbottom\fP,\fCtop\fP] and a precision of \fCdecimals\fP decimals after the decimal point. Definition at line 308 of file knumvalidator.cpp.
.PP
References KStdAccel::name().
.SS "KDoubleValidator::~\fBKDoubleValidator\fP ()\fC [virtual]\fP"
.PP
Destructs the validator. Definition at line 315 of file knumvalidator.cpp.
.SH "Member Function Documentation"
.PP 
.SS "QValidator::State KDoubleValidator::validate (\fBQString\fP & input, int & pos) const\fC [virtual]\fP"
.PP
Overloaded for internal reasons. The API is not affected. Reimplemented from \fBQDoubleValidator\fP.
.PP
Definition at line 328 of file knumvalidator.cpp.
.PP
References acceptLocalizedNumbers(), KLocale::decimalSymbol(), QString::find(), QString::isEmpty(), QString::length(), KGlobal::locale(), KLocale::negativeSign(), KLocale::positiveSign(), QString::remove(), QString::replace(), and KLocale::thousandsSeparator().
.SS "bool KDoubleValidator::acceptLocalizedNumbers () const"
.PP
\fBReturns:\fP
.RS 4
whether localized numbers are accepted (default: true) 
.RE
.PP
Definition at line 320 of file knumvalidator.cpp.
.PP
Referenced by validate().
.SS "void KDoubleValidator::setAcceptLocalizedNumbers (bool accept)"
.PP
Sets whether to accept localized numbers (default: true). Definition at line 324 of file knumvalidator.cpp.

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