\section{KInt\-Spin\-Box Class Reference}
\label{classKIntSpinBox}\index{KIntSpinBox@{KIntSpinBox}}
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=53pt]{classKIntSpinBox__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KInt\-Spin\-Box:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=53pt]{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)
\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)
\item 
virtual {\bf $\sim$KInt\-Spin\-Box} ()
\item 
void {\bf set\-Base} (int base)
\item 
int {\bf base} () const 
\item 
void {\bf set\-Edit\-Focus} (bool mark)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual {\bf QString} {\bf map\-Value\-To\-Text} (int)
\item 
virtual int {\bf map\-Text\-To\-Value} (bool $\ast$)
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKIntSpinBox_b2}

\end{CompactItemize}
\subsection*{Properties}
\begin{CompactItemize}
\item 
int {\bf base}\label{classKIntSpinBox_00}

\end{CompactItemize}


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

A {\bf QSpin\-Box} with support for arbitrary base numbers (e.g. hexadecimal).

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



Definition at line 704 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} = {\tt 0}, const char $\ast$ {\em name} = {\tt 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 204 of file knuminput.cpp.

References QSpin\-Box::editor(), 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} = {\tt 10}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 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 216 of file knuminput.cpp.

References QSpin\-Box::editor(), 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 212 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 225 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}
\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 246 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 236 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 241 of file knuminput.cpp.

References QSpin\-Box::clean\-Text(), and QString::to\-Int().

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