\section{KFloat\-Validator Class Reference}
\label{classKFloatValidator}\index{KFloatValidator@{KFloatValidator}}
{\tt \#include $<$knumvalidator.h$>$}

Inheritance diagram for KFloat\-Validator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=63pt]{classKFloatValidator__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KFloat\-Validator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=63pt]{classKFloatValidator__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KFloat\-Validator} ({\bf QWidget} $\ast$parent, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
{\bf KFloat\-Validator} (double bottom, double top, {\bf QWidget} $\ast$parent, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
{\bf KFloat\-Validator} (double bottom, double top, bool locale\-Aware, {\bf QWidget} $\ast$parent, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
virtual {\bf $\sim$KFloat\-Validator} ()
\begin{CompactList}\small\item\em Destructs the validator. \item\end{CompactList}\item 
virtual State {\bf validate} ({\bf QString} \&, int \&) const 
\begin{CompactList}\small\item\em Validates the text, and return the result. \item\end{CompactList}\item 
virtual void {\bf fixup} ({\bf QString} \&) const 
\begin{CompactList}\small\item\em Fixes the text if possible, providing a valid string. \item\end{CompactList}\item 
virtual void {\bf set\-Range} (double bottom, double top)
\begin{CompactList}\small\item\em Sets the minimum and maximum value allowed. \item\end{CompactList}\item 
virtual double {\bf bottom} () const 
\begin{CompactList}\small\item\em Returns the current minimum value allowed. \item\end{CompactList}\item 
virtual double {\bf top} () const 
\begin{CompactList}\small\item\em Returns the current maximum value allowed. \item\end{CompactList}\item 
void {\bf set\-Accept\-Localized\-Numbers} (bool b)
\begin{CompactList}\small\item\em Sets the validator to be locale aware if {\tt is} true. \item\end{CompactList}\item 
bool {\bf accept\-Localized\-Numbers} () const 
\begin{CompactList}\small\item\em Returns true if the validator is locale aware. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
\begin{Desc}
\item[{\bf Deprecated}]Use {\bf KDouble\-Validator}{\rm (p.\,\pageref{classKDoubleValidator})} \end{Desc}
{\bf QValidator} for floating point entry. Extends the {\bf QValidator} class to properly validate double numeric data. This can be used by {\bf QLine\-Edit} or subclass to provide validated text entry.

\begin{Desc}
\item[Author:]Glen Parker $<${\tt glenebob@nwlink.com}$>$ \end{Desc}
\begin{Desc}
\item[Version:]0.0.1 \end{Desc}




Definition at line 106 of file knumvalidator.h.

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


Constructor. 



Definition at line 165 of file knumvalidator.cpp.

References KStd\-Accel::name().\index{KFloatValidator@{KFloat\-Validator}!KFloatValidator@{KFloatValidator}}
\index{KFloatValidator@{KFloatValidator}!KFloatValidator@{KFloat\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KFloat\-Validator::KFloat\-Validator (double {\em bottom}, double {\em top}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = 0)}\label{classKFloatValidator_a1}


Constructor. 

Also sets the minimum and maximum values. 

Definition at line 173 of file knumvalidator.cpp.

References KStd\-Accel::name().\index{KFloatValidator@{KFloat\-Validator}!KFloatValidator@{KFloatValidator}}
\index{KFloatValidator@{KFloatValidator}!KFloatValidator@{KFloat\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KFloat\-Validator::KFloat\-Validator (double {\em bottom}, double {\em top}, bool {\em locale\-Aware}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = 0)}\label{classKFloatValidator_a2}


Constructor. 

Sets the validator to be locale aware if {\tt locale\-Aware} is true. 

Definition at line 182 of file knumvalidator.cpp.

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


Destructs the validator. 



Definition at line 191 of file knumvalidator.cpp.

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


Validates the text, and return the result. 

Does not modify the parameters. 

Reimplemented from {\bf QValidator}.

Definition at line 207 of file knumvalidator.cpp.

References KLocale::decimal\-Symbol(), QString::from\-Latin1(), QString::length(), KGlobal::locale(), KLocale::read\-Number(), QString::strip\-White\-Space(), and QString::to\-Double().

Referenced by fixup().\index{KFloatValidator@{KFloat\-Validator}!fixup@{fixup}}
\index{fixup@{fixup}!KFloatValidator@{KFloat\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFloat\-Validator::fixup ({\bf QString} \&) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKFloatValidator_a5}


Fixes the text if possible, providing a valid string. 

The parameter may be modified. 

Reimplemented from {\bf QValidator}.

Definition at line 247 of file knumvalidator.cpp.

References QString::set\-Num(), QString::to\-Double(), and validate().\index{KFloatValidator@{KFloat\-Validator}!setRange@{setRange}}
\index{setRange@{setRange}!KFloatValidator@{KFloat\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFloat\-Validator::set\-Range (double {\em bottom}, double {\em top})\hspace{0.3cm}{\tt  [virtual]}}\label{classKFloatValidator_a6}


Sets the minimum and maximum value allowed. 



Definition at line 269 of file knumvalidator.cpp.\index{KFloatValidator@{KFloat\-Validator}!bottom@{bottom}}
\index{bottom@{bottom}!KFloatValidator@{KFloat\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double KFloat\-Validator::bottom () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKFloatValidator_a7}


Returns the current minimum value allowed. 



Definition at line 278 of file knumvalidator.cpp.\index{KFloatValidator@{KFloat\-Validator}!top@{top}}
\index{top@{top}!KFloatValidator@{KFloat\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double KFloat\-Validator::top () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKFloatValidator_a8}


Returns the current maximum value allowed. 



Definition at line 283 of file knumvalidator.cpp.\index{KFloatValidator@{KFloat\-Validator}!setAcceptLocalizedNumbers@{setAcceptLocalizedNumbers}}
\index{setAcceptLocalizedNumbers@{setAcceptLocalizedNumbers}!KFloatValidator@{KFloat\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFloat\-Validator::set\-Accept\-Localized\-Numbers (bool {\em b})}\label{classKFloatValidator_a9}


Sets the validator to be locale aware if {\tt is} true. 

In this case, the character {\bf KLocale::decimal\-Symbol()} from the global locale is recognized as decimal separator. 

Definition at line 196 of file knumvalidator.cpp.\index{KFloatValidator@{KFloat\-Validator}!acceptLocalizedNumbers@{acceptLocalizedNumbers}}
\index{acceptLocalizedNumbers@{acceptLocalizedNumbers}!KFloatValidator@{KFloat\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KFloat\-Validator::accept\-Localized\-Numbers () const}\label{classKFloatValidator_a10}


Returns true if the validator is locale aware. 

\begin{Desc}
\item[See also:]{\bf set\-Accept\-Localized\-Numbers()}{\rm (p.\,\pageref{classKFloatValidator_a9})}. \end{Desc}


Definition at line 201 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}
