.TH "KIntSpinBox" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KIntSpinBox \- 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
.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
.ti -1c
.RI "virtual \fB~KIntSpinBox\fP ()"
.br
.ti -1c
.RI "void \fBsetBase\fP (int base)"
.br
.ti -1c
.RI "int \fBbase\fP () const "
.br
.ti -1c
.RI "void \fBsetEditFocus\fP (bool mark)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual \fBQString\fP \fBmapValueToText\fP (int)"
.br
.ti -1c
.RI "virtual int \fBmapTextToValue\fP (bool *)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Properties"

.in +1c
.ti -1c
.RI "int \fBbase\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
A \fBQSpinBox\fP with support for arbitrary base numbers. 

A \fBQSpinBox\fP with support for arbitrary base numbers (e.g. hexadecimal).
.PP
The class provides an easy interface to use other numeric systems than the decimal. 
.PP
Definition at line 704 of file knuminput.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KIntSpinBox::KIntSpinBox (\fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Constructor. 
.PP
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. 
.PP
Definition at line 204 of file knuminput.cpp.
.PP
References QSpinBox::editor(), and QSpinBox::setValue().
.SS "KIntSpinBox::KIntSpinBox (int lower, int upper, int step, int value, int base = \fC10\fP, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Constructor. 
.PP
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

.PP
Definition at line 216 of file knuminput.cpp.
.PP
References QSpinBox::editor(), and QSpinBox::setValue().
.SS "KIntSpinBox::~\fBKIntSpinBox\fP ()\fC [virtual]\fP"
.PP
Destructor. 
.PP
Definition at line 212 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. 
.PP
Definition at line 225 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

.SS "void KIntSpinBox::setEditFocus (bool mark)"
.PP
sets focus and optionally marks all text 
.PP
Definition at line 246 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. 
.PP
Reimplemented from \fBQSpinBox\fP.
.PP
Definition at line 236 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. 
.PP
Reimplemented from \fBQSpinBox\fP.
.PP
Definition at line 241 of file knuminput.cpp.
.PP
References QSpinBox::cleanText(), and QString::toInt().

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