\section{KDouble\-Validator Class Reference}
\label{classKDoubleValidator}\index{KDoubleValidator@{KDoubleValidator}}
KDouble\-Validator extends {\bf QDouble\-Validator} to be locale-aware. A locale-aware {\bf QDouble\-Validator}.  


{\tt \#include $<$knumvalidator.h$>$}

Inheritance diagram for KDouble\-Validator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=69pt]{classKDoubleValidator__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KDouble\-Validator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=69pt]{classKDoubleValidator__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KDouble\-Validator} ({\bf QObject} $\ast$parent, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constuct a locale-aware KDouble\-Validator with default range (whatever {\bf QDouble\-Validator} uses for that) and parent {\tt parent}. \item\end{CompactList}\item 
{\bf KDouble\-Validator} (double {\bf bottom}, double {\bf top}, int {\bf decimals}, {\bf QObject} $\ast$parent, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constuct a locale-aware KDouble\-Validator for range [{\tt bottom},{\tt top}] and a precision of {\tt decimals} decimals after the decimal point. \item\end{CompactList}\item 
virtual {\bf $\sim$KDouble\-Validator} ()
\begin{CompactList}\small\item\em Destructs the validator. \item\end{CompactList}\item 
virtual QValidator::State {\bf validate} ({\bf QString} \&input, int \&pos) const 
\begin{CompactList}\small\item\em Overloaded for internal reasons. \item\end{CompactList}\item 
bool {\bf accept\-Localized\-Numbers} () const 
\item 
void {\bf set\-Accept\-Localized\-Numbers} (bool accept)
\begin{CompactList}\small\item\em Sets whether to accept localized numbers (default: true). \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
KDouble\-Validator extends {\bf QDouble\-Validator} to be locale-aware. A locale-aware {\bf QDouble\-Validator}. 

That means that - subject to not being disabled - KLocale::decimal\-Point(), {\bf KLocale::thousands\-Separator}() and {\bf KLocale::positive\-Sign}() and {\bf KLocale::negative\-Sign}() are respected.

\begin{Desc}
\item[Author:]Marc Mutz $<${\tt mutz@kde.org}$>$ \end{Desc}
\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]{\bf knumvalidator.h}{\rm (p.\,\pageref{knumvalidator_8h})},v 1.11.2.1 2002/12/29 15:50:19 buis Exp \end{Desc}
\end{Desc}
\begin{Desc}
\item[See also:]{\bf KInt\-Validator}{\rm (p.\,\pageref{classKIntValidator})} \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}




Definition at line 178 of file knumvalidator.h.

\subsection{Constructor \& Destructor Documentation}
\index{KDoubleValidator@{KDouble\-Validator}!KDoubleValidator@{KDoubleValidator}}
\index{KDoubleValidator@{KDoubleValidator}!KDoubleValidator@{KDouble\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDouble\-Validator::KDouble\-Validator ({\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name} = 0)}\label{classKDoubleValidator_a0}


Constuct a locale-aware KDouble\-Validator with default range (whatever {\bf QDouble\-Validator} uses for that) and parent {\tt parent}. 



Definition at line 302 of file knumvalidator.cpp.

References KStd\-Accel::name().\index{KDoubleValidator@{KDouble\-Validator}!KDoubleValidator@{KDoubleValidator}}
\index{KDoubleValidator@{KDoubleValidator}!KDoubleValidator@{KDouble\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDouble\-Validator::KDouble\-Validator (double {\em bottom}, double {\em top}, int {\em decimals}, {\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name} = 0)}\label{classKDoubleValidator_a1}


Constuct a locale-aware KDouble\-Validator for range [{\tt bottom},{\tt top}] and a precision of {\tt decimals} decimals after the decimal point. 



Definition at line 308 of file knumvalidator.cpp.

References KStd\-Accel::name().\index{KDoubleValidator@{KDouble\-Validator}!~KDoubleValidator@{$\sim$KDoubleValidator}}
\index{~KDoubleValidator@{$\sim$KDoubleValidator}!KDoubleValidator@{KDouble\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDouble\-Validator::$\sim${\bf KDouble\-Validator} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKDoubleValidator_a2}


Destructs the validator. 



Definition at line 315 of file knumvalidator.cpp.

\subsection{Member Function Documentation}
\index{KDoubleValidator@{KDouble\-Validator}!validate@{validate}}
\index{validate@{validate}!KDoubleValidator@{KDouble\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}QValidator::State KDouble\-Validator::validate ({\bf QString} \& {\em input}, int \& {\em pos}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKDoubleValidator_a3}


Overloaded for internal reasons. 

The API is not affected. 

Reimplemented from {\bf QDouble\-Validator}.

Definition at line 328 of file knumvalidator.cpp.

References accept\-Localized\-Numbers(), KLocale::decimal\-Symbol(), QString::find(), QString::is\-Empty(), QString::length(), KGlobal::locale(), KLocale::negative\-Sign(), KLocale::positive\-Sign(), QString::remove(), QString::replace(), and KLocale::thousands\-Separator().\index{KDoubleValidator@{KDouble\-Validator}!acceptLocalizedNumbers@{acceptLocalizedNumbers}}
\index{acceptLocalizedNumbers@{acceptLocalizedNumbers}!KDoubleValidator@{KDouble\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDouble\-Validator::accept\-Localized\-Numbers () const}\label{classKDoubleValidator_a4}


\begin{Desc}
\item[Returns:]whether localized numbers are accepted (default: true) \end{Desc}


Definition at line 320 of file knumvalidator.cpp.

Referenced by validate().\index{KDoubleValidator@{KDouble\-Validator}!setAcceptLocalizedNumbers@{setAcceptLocalizedNumbers}}
\index{setAcceptLocalizedNumbers@{setAcceptLocalizedNumbers}!KDoubleValidator@{KDouble\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDouble\-Validator::set\-Accept\-Localized\-Numbers (bool {\em accept})}\label{classKDoubleValidator_a5}


Sets whether to accept localized numbers (default: true). 



Definition at line 324 of file knumvalidator.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
knumvalidator.h\item 
knumvalidator.cpp\end{CompactItemize}
