\section{KFloat\-Validator Class Reference}
\label{classKFloatValidator}\index{KFloatValidator@{KFloatValidator}}
{\bf QValidator} for floating point entry (Obsolete).  


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

Inheritance diagram for KFloat\-Validator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=60pt]{classKFloatValidator__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KFloat\-Validator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=60pt]{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)
\item 
{\bf KFloat\-Validator} (double bottom, double top, {\bf QWidget} $\ast$parent, const char $\ast$name=0)
\item 
{\bf KFloat\-Validator} (double bottom, double top, bool locale\-Aware, {\bf QWidget} $\ast$parent, const char $\ast$name=0)
\item 
virtual {\bf $\sim$KFloat\-Validator} ()
\item 
virtual State {\bf validate} ({\bf QString} \&, int \&) const 
\item 
virtual void {\bf fixup} ({\bf QString} \&) const 
\item 
virtual void {\bf set\-Range} (double bottom, double top)
\item 
virtual double {\bf bottom} () const 
\item 
virtual double {\bf top} () const 
\item 
void {\bf set\-Accept\-Localized\-Numbers} (bool b)
\item 
bool {\bf accept\-Localized\-Numbers} () const 
\end{CompactItemize}


\subsection{Detailed Description}
{\bf QValidator} for floating point entry (Obsolete). 

\begin{Desc}
\item[{\bf Deprecated}]Use {\bf KDouble\-Validator}{\rm (p.\,\pageref{classKDoubleValidator})} \end{Desc}
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 109 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} = {\tt 0})}\label{classKFloatValidator_a0}


Constructor. 



Definition at line 164 of file knumvalidator.cpp.\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} = {\tt 0})}\label{classKFloatValidator_a1}


Constructor. 

Also sets the minimum and maximum values. 

Definition at line 172 of file knumvalidator.cpp.\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} = {\tt 0})}\label{classKFloatValidator_a2}


Constructor. 

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

Definition at line 181 of file knumvalidator.cpp.\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 190 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 205 of file knumvalidator.cpp.

References KLocale::decimal\-Symbol(), 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 245 of file knumvalidator.cpp.

References 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 267 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 276 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 281 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 195 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 200 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}
