\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=54pt]{classKIntValidator__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KInt\-Validator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=54pt]{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)
\item 
{\bf KInt\-Validator} (int bottom, int top, {\bf QWidget} $\ast$parent, int base=10, const char $\ast$name=0)
\item 
virtual {\bf $\sim$KInt\-Validator} ()
\item 
virtual State {\bf validate} ({\bf QString} \&, int \&) const 
\item 
virtual void {\bf fixup} ({\bf QString} \&) const 
\item 
virtual void {\bf set\-Range} (int bottom, int top)
\item 
virtual void {\bf set\-Base} (int base)
\item 
virtual int {\bf bottom} () const 
\item 
virtual int {\bf top} () const 
\item 
virtual int {\bf base} () const 
\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 44 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} = {\tt 10}, const char $\ast$ {\em name} = {\tt 0})}\label{classKIntValidator_a0}


Constuctor. 

Also sets the base value. 

Definition at line 37 of file knumvalidator.cpp.\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} = {\tt 10}, const char $\ast$ {\em name} = {\tt 0})}\label{classKIntValidator_a1}


Constructor. 

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

Definition at line 47 of file knumvalidator.cpp.\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 57 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 60 of file knumvalidator.cpp.

References 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 94 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 116 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 125 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 131 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 136 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 141 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}
