\section{KInt\-Validator Class Reference}
\label{classKIntValidator}\index{KIntValidator@{KIntValidator}}
{\bf QValidator} for integers.  


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

Inheritance diagram for KInt\-Validator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=58pt]{classKIntValidator__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KInt\-Validator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=58pt]{classKIntValidator__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KInt\-Validator} ({\bf QWidget} $\ast$parent, int base=10, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constuctor. \item\end{CompactList}\item 
{\bf KInt\-Validator} (int bottom, int top, {\bf QWidget} $\ast$parent, int base=10, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
virtual {\bf $\sim$KInt\-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} (int bottom, int top)
\begin{CompactList}\small\item\em Sets the minimum and maximum values allowed. \item\end{CompactList}\item 
virtual void {\bf set\-Base} (int base)
\begin{CompactList}\small\item\em Sets the numeric base value. \item\end{CompactList}\item 
virtual int {\bf bottom} () const 
\begin{CompactList}\small\item\em Returns the current minimum value allowed. \item\end{CompactList}\item 
virtual int {\bf top} () const 
\begin{CompactList}\small\item\em Returns the current maximum value allowed. \item\end{CompactList}\item 
virtual int {\bf base} () const 
\begin{CompactList}\small\item\em Returns the current numeric base. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
{\bf QValidator} for integers. 

This can be used by {\bf QLine\-Edit} or subclass to provide validated text entry. Can be provided with a base value (default is 10), to allow the proper entry of hexadecimal, octal, or any other base numeric data.

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




Definition at line 42 of file knumvalidator.h.

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


Constuctor. 

Also sets the base value. 

Definition at line 38 of file knumvalidator.cpp.

References KStd\-Accel::name().\index{KIntValidator@{KInt\-Validator}!KIntValidator@{KIntValidator}}
\index{KIntValidator@{KIntValidator}!KIntValidator@{KInt\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KInt\-Validator::KInt\-Validator (int {\em bottom}, int {\em top}, {\bf QWidget} $\ast$ {\em parent}, int {\em base} = 10, const char $\ast$ {\em name} = 0)}\label{classKIntValidator_a1}


Constructor. 

Also sets the minimum, maximum, and numeric base values. 

Definition at line 48 of file knumvalidator.cpp.

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


Destructs the validator. 



Definition at line 58 of file knumvalidator.cpp.

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


Validates the text, and return the result. 

Does not modify the parameters. 

Reimplemented from {\bf QValidator}.

Definition at line 61 of file knumvalidator.cpp.

References QString::from\-Latin1(), QString::length(), QString::strip\-White\-Space(), QString::to\-Int(), and QString::upper().

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


Fixes the text if possible, providing a valid string. 

The parameter may be modified. 

Reimplemented from {\bf QValidator}.

Definition at line 95 of file knumvalidator.cpp.

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


Sets the minimum and maximum values allowed. 



Definition at line 117 of file knumvalidator.cpp.\index{KIntValidator@{KInt\-Validator}!setBase@{setBase}}
\index{setBase@{setBase}!KIntValidator@{KInt\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Validator::set\-Base (int {\em base})\hspace{0.3cm}{\tt  [virtual]}}\label{classKIntValidator_a6}


Sets the numeric base value. 



Definition at line 126 of file knumvalidator.cpp.\index{KIntValidator@{KInt\-Validator}!bottom@{bottom}}
\index{bottom@{bottom}!KIntValidator@{KInt\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KInt\-Validator::bottom () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKIntValidator_a7}


Returns the current minimum value allowed. 



Definition at line 132 of file knumvalidator.cpp.\index{KIntValidator@{KInt\-Validator}!top@{top}}
\index{top@{top}!KIntValidator@{KInt\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KInt\-Validator::top () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKIntValidator_a8}


Returns the current maximum value allowed. 



Definition at line 137 of file knumvalidator.cpp.\index{KIntValidator@{KInt\-Validator}!base@{base}}
\index{base@{base}!KIntValidator@{KInt\-Validator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KInt\-Validator::base () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKIntValidator_a9}


Returns the current numeric base. 



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