.TH "KIntValidator" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KIntValidator \- \fBQValidator\fP for integers.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <knumvalidator.h>\fP
.PP
Inherits \fBQValidator\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKIntValidator\fP (\fBQWidget\fP *parent, int base=10, const  char *name=0)"
.br
.RI "\fIConstuctor. \fP"
.ti -1c
.RI "\fBKIntValidator\fP (int bottom, int top, \fBQWidget\fP *parent, int base=10, const  char *name=0)"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "virtual \fB~KIntValidator\fP ()"
.br
.RI "\fIDestructs the validator. \fP"
.ti -1c
.RI "virtual State \fBvalidate\fP (\fBQString\fP &, int &) const "
.br
.RI "\fIValidates the text, and return the result. \fP"
.ti -1c
.RI "virtual void \fBfixup\fP (\fBQString\fP &) const "
.br
.RI "\fIFixes the text if possible, providing a valid string. \fP"
.ti -1c
.RI "virtual void \fBsetRange\fP (int bottom, int top)"
.br
.RI "\fISets the minimum and maximum values allowed. \fP"
.ti -1c
.RI "virtual void \fBsetBase\fP (int base)"
.br
.RI "\fISets the numeric base value. \fP"
.ti -1c
.RI "virtual int \fBbottom\fP () const "
.br
.RI "\fIReturns the current minimum value allowed. \fP"
.ti -1c
.RI "virtual int \fBtop\fP () const "
.br
.RI "\fIReturns the current maximum value allowed. \fP"
.ti -1c
.RI "virtual int \fBbase\fP () const "
.br
.RI "\fIReturns the current numeric base. \fP"
.in -1c
.SH "Detailed Description"
.PP 
\fBQValidator\fP for integers. 

This can be used by \fBQLineEdit\fP 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.
.PP
\fBAuthor:\fP
.RS 4
Glen Parker <glenebob@nwlink.com> 
.RE
.PP
\fBVersion:\fP
.RS 4
0.0.1 
.RE
.PP

.PP
Definition at line 42 of file knumvalidator.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KIntValidator::KIntValidator (\fBQWidget\fP * parent, int base = 10, const char * name = 0)"
.PP
Constuctor. Also sets the base value. Definition at line 38 of file knumvalidator.cpp.
.PP
References KStdAccel::name().
.SS "KIntValidator::KIntValidator (int bottom, int top, \fBQWidget\fP * parent, int base = 10, const char * name = 0)"
.PP
Constructor. Also sets the minimum, maximum, and numeric base values. Definition at line 48 of file knumvalidator.cpp.
.PP
References KStdAccel::name().
.SS "KIntValidator::~\fBKIntValidator\fP ()\fC [virtual]\fP"
.PP
Destructs the validator. Definition at line 58 of file knumvalidator.cpp.
.SH "Member Function Documentation"
.PP 
.SS "QValidator::State KIntValidator::validate (\fBQString\fP &, int &) const\fC [virtual]\fP"
.PP
Validates the text, and return the result. Does not modify the parameters. Reimplemented from \fBQValidator\fP.
.PP
Definition at line 61 of file knumvalidator.cpp.
.PP
References QString::fromLatin1(), QString::length(), QString::stripWhiteSpace(), QString::toInt(), and QString::upper().
.PP
Referenced by fixup().
.SS "void KIntValidator::fixup (\fBQString\fP &) const\fC [virtual]\fP"
.PP
Fixes the text if possible, providing a valid string. The parameter may be modified. Reimplemented from \fBQValidator\fP.
.PP
Definition at line 95 of file knumvalidator.cpp.
.PP
References QString::setNum(), QString::toInt(), and validate().
.SS "void KIntValidator::setRange (int bottom, int top)\fC [virtual]\fP"
.PP
Sets the minimum and maximum values allowed. Definition at line 117 of file knumvalidator.cpp.
.SS "void KIntValidator::setBase (int base)\fC [virtual]\fP"
.PP
Sets the numeric base value. Definition at line 126 of file knumvalidator.cpp.
.SS "int KIntValidator::bottom () const\fC [virtual]\fP"
.PP
Returns the current minimum value allowed. Definition at line 132 of file knumvalidator.cpp.
.SS "int KIntValidator::top () const\fC [virtual]\fP"
.PP
Returns the current maximum value allowed. Definition at line 137 of file knumvalidator.cpp.
.SS "int KIntValidator::base () const\fC [virtual]\fP"
.PP
Returns the current numeric base. Definition at line 142 of file knumvalidator.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
