\section{KInt\-Spin\-Box Class Reference}
\label{classKIntSpinBox}\index{KIntSpinBox@{KIntSpinBox}}
A {\bf QSpin\-Box} with support for arbitrary base numbers (e.g. A {\bf QSpin\-Box} with support for arbitrary base numbers.  


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

Inheritance diagram for KInt\-Spin\-Box:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=55pt]{classKIntSpinBox__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KInt\-Spin\-Box:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=55pt]{classKIntSpinBox__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KInt\-Spin\-Box} ({\bf QWidget} $\ast$parent=0, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
{\bf KInt\-Spin\-Box} (int lower, int upper, int step, int {\bf value}, int base=10, {\bf QWidget} $\ast$parent=0, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
virtual {\bf $\sim$KInt\-Spin\-Box} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
void {\bf set\-Base} (int base)
\begin{CompactList}\small\item\em Sets the base in which the numbers in the spin box are represented. \item\end{CompactList}\item 
int {\bf base} () const 
\item 
void {\bf set\-Edit\-Focus} (bool mark)
\begin{CompactList}\small\item\em sets focus and optionally marks all text \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual {\bf QString} {\bf map\-Value\-To\-Text} (int)
\begin{CompactList}\small\item\em Overloaded the method in {\bf QSpin\-Box} to make use of the base given in the constructor. \item\end{CompactList}\item 
virtual int {\bf map\-Text\-To\-Value} (bool $\ast$)
\begin{CompactList}\small\item\em Overloaded the method in {\bf QSpin\-Box} to make use of the base given in the constructor. \item\end{CompactList}\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKIntSpinBox_b2}

\end{CompactItemize}


\subsection{Detailed Description}
A {\bf QSpin\-Box} with support for arbitrary base numbers (e.g. A {\bf QSpin\-Box} with support for arbitrary base numbers. 

hexadecimal).

The class provides an easy interface to use other numeric systems then the decimal.



Definition at line 708 of file knuminput.h.

\subsection{Constructor \& Destructor Documentation}
\index{KIntSpinBox@{KInt\-Spin\-Box}!KIntSpinBox@{KIntSpinBox}}
\index{KIntSpinBox@{KIntSpinBox}!KIntSpinBox@{KInt\-Spin\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KInt\-Spin\-Box::KInt\-Spin\-Box ({\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0)}\label{classKIntSpinBox_a0}


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.

References QSpin\-Box::editor(), KStd\-Accel::name(), and QSpin\-Box::set\-Value().\index{KIntSpinBox@{KInt\-Spin\-Box}!KIntSpinBox@{KIntSpinBox}}
\index{KIntSpinBox@{KIntSpinBox}!KIntSpinBox@{KInt\-Spin\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KInt\-Spin\-Box::KInt\-Spin\-Box (int {\em lower}, int {\em upper}, int {\em step}, int {\em value}, int {\em base} = 10, {\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0)}\label{classKIntSpinBox_a1}


Constructor. 

Constructs a widget with an integer inputline with a little scrollbar and a slider.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em lower}]The lowest valid value. \item[{\em upper}]The greatest valid value. \item[{\em step}]The step size of the scrollbar. \item[{\em value}]The actual value. \item[{\em base}]The base of the used number system. \item[{\em parent}]The parent of the widget. \item[{\em name}]The Name of the widget. \end{description}
\end{Desc}


Definition at line 214 of file knuminput.cpp.

References QSpin\-Box::editor(), KStd\-Accel::name(), and QSpin\-Box::set\-Value().\index{KIntSpinBox@{KInt\-Spin\-Box}!~KIntSpinBox@{$\sim$KIntSpinBox}}
\index{~KIntSpinBox@{$\sim$KIntSpinBox}!KIntSpinBox@{KInt\-Spin\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KInt\-Spin\-Box::$\sim${\bf KInt\-Spin\-Box} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKIntSpinBox_a2}


Destructor. 



Definition at line 210 of file knuminput.cpp.

\subsection{Member Function Documentation}
\index{KIntSpinBox@{KInt\-Spin\-Box}!setBase@{setBase}}
\index{setBase@{setBase}!KIntSpinBox@{KInt\-Spin\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Spin\-Box::set\-Base (int {\em base})}\label{classKIntSpinBox_a3}


Sets the base in which the numbers in the spin box are represented. 



Definition at line 223 of file knuminput.cpp.\index{KIntSpinBox@{KInt\-Spin\-Box}!base@{base}}
\index{base@{base}!KIntSpinBox@{KInt\-Spin\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KInt\-Spin\-Box::base () const}\label{classKIntSpinBox_a4}


\begin{Desc}
\item[Returns:]the base in which numbers in the spin box are represented. \end{Desc}


Definition at line 229 of file knuminput.cpp.\index{KIntSpinBox@{KInt\-Spin\-Box}!setEditFocus@{setEditFocus}}
\index{setEditFocus@{setEditFocus}!KIntSpinBox@{KInt\-Spin\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Spin\-Box::set\-Edit\-Focus (bool {\em mark})}\label{classKIntSpinBox_a5}


sets focus and optionally marks all text 



Definition at line 244 of file knuminput.cpp.

References QSpin\-Box::editor().

Referenced by KInt\-Num\-Input::set\-Edit\-Focus().\index{KIntSpinBox@{KInt\-Spin\-Box}!mapValueToText@{mapValueToText}}
\index{mapValueToText@{mapValueToText}!KIntSpinBox@{KInt\-Spin\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KInt\-Spin\-Box::map\-Value\-To\-Text (int)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKIntSpinBox_b0}


Overloaded the method in {\bf QSpin\-Box} to make use of the base given in the constructor. 



Reimplemented from {\bf QSpin\-Box}.

Definition at line 234 of file knuminput.cpp.

References QString::number().\index{KIntSpinBox@{KInt\-Spin\-Box}!mapTextToValue@{mapTextToValue}}
\index{mapTextToValue@{mapTextToValue}!KIntSpinBox@{KInt\-Spin\-Box}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KInt\-Spin\-Box::map\-Text\-To\-Value (bool $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKIntSpinBox_b1}


Overloaded the method in {\bf QSpin\-Box} to make use of the base given in the constructor. 



Reimplemented from {\bf QSpin\-Box}.

Definition at line 239 of file knuminput.cpp.

References QSpin\-Box::clean\-Text().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
knuminput.h\item 
knuminput.cpp\end{CompactItemize}
