\section{KNum\-Input Class Reference}
\label{classKNumInput}\index{KNumInput@{KNumInput}}
You need to inherit from this class if you want to implement K$\ast$Num\-Input for a different variable type.  


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

Inheritance diagram for KNum\-Input:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=114pt]{classKNumInput__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KNum\-Input:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=167pt]{classKNumInput__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KNum\-Input} ({\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
{\bf KNum\-Input} ({\bf KNum\-Input} $\ast$below, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
virtual void {\bf set\-Label} (const {\bf QString} \&label, int a=Align\-Left$|$Align\-Top)
\item 
{\bf QString} {\bf label} () const 
\item 
bool {\bf show\-Slider} () const 
\item 
void {\bf set\-Steps} (int minor, int major)
\item 
{\bf QSize\-Policy} {\bf size\-Policy} () const 
\item 
virtual {\bf QSize} {\bf size\-Hint} () const 
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf layout} (bool deep)
\item 
virtual void {\bf do\-Layout} ()=0
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKNumInput_b2}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KNum\-Input} $\ast$ {\bf m\_\-prev}\label{classKNumInput_p0}

\item 
{\bf KNum\-Input} $\ast$ {\bf m\_\-next}\label{classKNumInput_p1}

\item 
int {\bf m\_\-colw1}\label{classKNumInput_p2}

\item 
int {\bf m\_\-colw2}\label{classKNumInput_p3}

\item 
{\bf QLabel} $\ast$ {\bf m\_\-label}\label{classKNumInput_p4}

\item 
{\bf QSlider} $\ast$ {\bf m\_\-slider}\label{classKNumInput_p5}

\item 
{\bf QSize} {\bf m\_\-size\-Slider}\label{classKNumInput_p6}

\item 
{\bf QSize} {\bf m\_\-size\-Label}\label{classKNumInput_p7}

\item 
int {\bf m\_\-alignment}\label{classKNumInput_p8}

\end{CompactItemize}
\subsection*{Properties}
\begin{CompactItemize}
\item 
{\bf QString} {\bf label}\label{classKNumInput_00}

\end{CompactItemize}


\subsection{Detailed Description}
You need to inherit from this class if you want to implement K$\ast$Num\-Input for a different variable type. 



Definition at line 49 of file knuminput.h.

\subsection{Constructor \& Destructor Documentation}
\index{KNumInput@{KNum\-Input}!KNumInput@{KNumInput}}
\index{KNumInput@{KNumInput}!KNumInput@{KNum\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNum\-Input::KNum\-Input ({\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKNumInput_a0}


Default constructor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]If parent is 0, the new widget becomes a top-level window. If parent is another widget, this widget becomes a child window inside parent. The new widget is deleted when its parent is deleted. \item[{\em name}]The name is sent to the {\bf QObject} constructor. \end{description}
\end{Desc}


Definition at line 62 of file knuminput.cpp.\index{KNumInput@{KNum\-Input}!KNumInput@{KNumInput}}
\index{KNumInput@{KNumInput}!KNumInput@{KNum\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNum\-Input::KNum\-Input ({\bf KNum\-Input} $\ast$ {\em below}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKNumInput_a1}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em below}]A pointer to another KNum\-Input. \item[{\em parent}]parent widget \item[{\em name}]name of the widget \end{description}
\end{Desc}


Definition at line 68 of file knuminput.cpp.

References m\_\-next, and m\_\-prev.

\subsection{Member Function Documentation}
\index{KNumInput@{KNum\-Input}!setLabel@{setLabel}}
\index{setLabel@{setLabel}!KNumInput@{KNum\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KNum\-Input::set\-Label (const {\bf QString} \& {\em label}, int {\em a} = {\tt AlignLeft$|$AlignTop})\hspace{0.3cm}{\tt  [virtual]}}\label{classKNumInput_a3}


Sets the text and alignment of the main description label. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em label}]The text of the label. Use QString::null to remove an existing one.\item[{\em a}]one of {\tt Align\-Left}, {\tt Align\-HCenter}, YAlign\-Right and {\tt Align\-Top}, {\tt Align\-VCenter}, {\tt Align\-Bottom}. default is {\tt Align\-Left} $|$ {\tt Align\-Top}.\end{description}
\end{Desc}
The vertical alignment flags have special meaning with this widget:

\begin{itemize}
\item {\tt Align\-Top} The label is placed above the edit/slider \item {\tt Align\-VCenter} The label is placed left beside the edit \item {\tt Align\-Bottom} The label is placed below the edit/slider \end{itemize}


Reimplemented in {\bf KInt\-Num\-Input} {\rm (p.\,\pageref{classKIntNumInput_a16})}, and {\bf KDouble\-Num\-Input} {\rm (p.\,\pageref{classKDoubleNumInput_a20})}.

Definition at line 101 of file knuminput.cpp.

References QString::is\-Empty(), QWidget::layout(), QLabel::set\-Alignment(), and QLabel::set\-Text().

Referenced by KDouble\-Num\-Input::set\-Label(), and KInt\-Num\-Input::set\-Label().\index{KNumInput@{KNum\-Input}!label@{label}}
\index{label@{label}!KNumInput@{KNum\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KNum\-Input::label () const}\label{classKNumInput_a4}


\begin{Desc}
\item[Returns:]the text of the label. \end{Desc}
\index{KNumInput@{KNum\-Input}!showSlider@{showSlider}}
\index{showSlider@{showSlider}!KNumInput@{KNum\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KNum\-Input::show\-Slider () const\hspace{0.3cm}{\tt  [inline]}}\label{classKNumInput_a5}


\begin{Desc}
\item[Returns:]if the num input has a slider. \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 98 of file knuminput.h.\index{KNumInput@{KNum\-Input}!setSteps@{setSteps}}
\index{setSteps@{setSteps}!KNumInput@{KNum\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KNum\-Input::set\-Steps (int {\em minor}, int {\em major})}\label{classKNumInput_a6}


Sets the spacing of tickmarks for the slider. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em minor}]Minor tickmark separation. \item[{\em major}]Major tickmark separation. \end{description}
\end{Desc}


Definition at line 195 of file knuminput.cpp.\index{KNumInput@{KNum\-Input}!sizePolicy@{sizePolicy}}
\index{sizePolicy@{sizePolicy}!KNumInput@{KNum\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QSize\-Policy} KNum\-Input::size\-Policy () const}\label{classKNumInput_a7}


Specifies that this widget may stretch horizontally, but is fixed vertically (like {\bf QSpin\-Box} itself). 



Reimplemented from {\bf QWidget}.

Definition at line 185 of file knuminput.cpp.\index{KNumInput@{KNum\-Input}!sizeHint@{sizeHint}}
\index{sizeHint@{sizeHint}!KNumInput@{KNum\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QSize} KNum\-Input::size\-Hint () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKNumInput_a8}


Returns a size which fits the contents of the control. 

\begin{Desc}
\item[Returns:]the preferred size necessary to show the control \end{Desc}


Reimplemented from {\bf QWidget}.

Definition at line 190 of file knuminput.cpp.

References QWidget::minimum\-Size\-Hint().\index{KNumInput@{KNum\-Input}!layout@{layout}}
\index{layout@{layout}!KNumInput@{KNum\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KNum\-Input::layout (bool {\em deep})\hspace{0.3cm}{\tt  [protected]}}\label{classKNumInput_b0}


Call this function whenever you change something in the geometry of your KNum\-Input child. 



Definition at line 128 of file knuminput.cpp.

References do\-Layout(), m\_\-colw1, m\_\-colw2, m\_\-next, m\_\-prev, and QSize::width().\index{KNumInput@{KNum\-Input}!doLayout@{doLayout}}
\index{doLayout@{doLayout}!KNumInput@{KNum\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void KNum\-Input::do\-Layout ()\hspace{0.3cm}{\tt  [protected, pure virtual]}}\label{classKNumInput_b1}


You need to overwrite this method and implement your layout calculations there. 

See {\bf KInt\-Num\-Input::do\-Layout}{\rm (p.\,\pageref{classKIntNumInput_b0})} and {\bf KDouble\-Num\-Input::do\-Layout}{\rm (p.\,\pageref{classKDoubleNumInput_b0})} implementation for details. 

Implemented in {\bf KInt\-Num\-Input} {\rm (p.\,\pageref{classKIntNumInput_b0})}, and {\bf KDouble\-Num\-Input} {\rm (p.\,\pageref{classKDoubleNumInput_b0})}.

Referenced by layout().

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