.TH "KIntSpinBox" 3 "28 Jan 2004" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KIntSpinBox \- A \fBQSpinBox\fP with support for arbitrary base numbers (e.g. A \fBQSpinBox\fP with support for arbitrary base numbers.  

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

.in +1c
.ti -1c
.RI "\fBKIntSpinBox\fP (\fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "\fBKIntSpinBox\fP (int lower, int upper, int step, int \fBvalue\fP, int base=10, \fBQWidget\fP *parent=0, const  char *name=0)"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "virtual \fB~KIntSpinBox\fP ()"
.br
.RI "\fIDestructor. \fP"
.ti -1c
.RI "void \fBsetBase\fP (int base)"
.br
.RI "\fISets the base in which the numbers in the spin box are represented. \fP"
.ti -1c
.RI "int \fBbase\fP () const "
.br
.ti -1c
.RI "void \fBsetEditFocus\fP (bool mark)"
.br
.RI "\fIsets focus and optionally marks all text \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual \fBQString\fP \fBmapValueToText\fP (int)"
.br
.RI "\fIOverloaded the method in \fBQSpinBox\fP to make use of the base given in the constructor. \fP"
.ti -1c
.RI "virtual int \fBmapTextToValue\fP (bool *)"
.br
.RI "\fIOverloaded the method in \fBQSpinBox\fP to make use of the base given in the constructor. \fP"
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
A \fBQSpinBox\fP with support for arbitrary base numbers (e.g. A \fBQSpinBox\fP with support for arbitrary base numbers. 

hexadecimal).
.PP
The class provides an easy interface to use other numeric systems then the decimal.
.PP
Definition at line 708 of file knuminput.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KIntSpinBox::KIntSpinBox (\fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Constructor. Constructs a widget with an integer inputline with a little scrollbar and a slider, with minimal value 0, maximal value 99, step 1, base 10 and initial value 0. Definition at line 202 of file knuminput.cpp.
.PP
References QSpinBox::editor(), KStdAccel::name(), and QSpinBox::setValue().
.SS "KIntSpinBox::KIntSpinBox (int lower, int upper, int step, int value, int base = 10, \fBQWidget\fP * parent = 0, const char * name = 0)"
.PP
Constructor. Constructs a widget with an integer inputline with a little scrollbar and a slider.
.PP
\fBParameters:\fP
.RS 4
\fIlower\fP The lowest valid value. 
.br
\fIupper\fP The greatest valid value. 
.br
\fIstep\fP The step size of the scrollbar. 
.br
\fIvalue\fP The actual value. 
.br
\fIbase\fP The base of the used number system. 
.br
\fIparent\fP The parent of the widget. 
.br
\fIname\fP The Name of the widget. 
.RE
.PP
Definition at line 214 of file knuminput.cpp.
.PP
References QSpinBox::editor(), KStdAccel::name(), and QSpinBox::setValue().
.SS "KIntSpinBox::~\fBKIntSpinBox\fP ()\fC [virtual]\fP"
.PP
Destructor. Definition at line 210 of file knuminput.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KIntSpinBox::setBase (int base)"
.PP
Sets the base in which the numbers in the spin box are represented. Definition at line 223 of file knuminput.cpp.
.SS "int KIntSpinBox::base () const"
.PP
\fBReturns:\fP
.RS 4
the base in which numbers in the spin box are represented. 
.RE
.PP
Definition at line 229 of file knuminput.cpp.
.SS "void KIntSpinBox::setEditFocus (bool mark)"
.PP
sets focus and optionally marks all text Definition at line 244 of file knuminput.cpp.
.PP
References QSpinBox::editor().
.PP
Referenced by KIntNumInput::setEditFocus().
.SS "\fBQString\fP KIntSpinBox::mapValueToText (int)\fC [protected, virtual]\fP"
.PP
Overloaded the method in \fBQSpinBox\fP to make use of the base given in the constructor. Reimplemented from \fBQSpinBox\fP.
.PP
Definition at line 234 of file knuminput.cpp.
.PP
References QString::number().
.SS "int KIntSpinBox::mapTextToValue (bool *)\fC [protected, virtual]\fP"
.PP
Overloaded the method in \fBQSpinBox\fP to make use of the base given in the constructor. Reimplemented from \fBQSpinBox\fP.
.PP
Definition at line 239 of file knuminput.cpp.
.PP
References QSpinBox::cleanText().

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