\section{KDate\-Internal\-Month\-Picker Class Reference}
\label{classKDateInternalMonthPicker}\index{KDateInternalMonthPicker@{KDateInternalMonthPicker}}
A table containing month names.  


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

Inheritance diagram for KDate\-Internal\-Month\-Picker:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=91pt]{classKDateInternalMonthPicker__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KDate\-Internal\-Month\-Picker:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=91pt]{classKDateInternalMonthPicker__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf close\-Me} (int)
\begin{CompactList}\small\item\em This is send from the mouse click event handler. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KDate\-Internal\-Month\-Picker} (int fontsize, {\bf QWidget} $\ast$parent, const  char $\ast$name=0)
\begin{CompactList}\small\item\em The constructor. \item\end{CompactList}\item 
{\bf QSize} {\bf size\-Hint} () const 
\begin{CompactList}\small\item\em The size hint. \item\end{CompactList}\item 
int {\bf get\-Result} () const 
\begin{CompactList}\small\item\em Return the result. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf setup\-Painter} ({\bf QPainter} $\ast$p)
\begin{CompactList}\small\item\em Set up the painter. \item\end{CompactList}\item 
virtual void {\bf viewport\-Resize\-Event} ({\bf QResize\-Event} $\ast$)
\begin{CompactList}\small\item\em The resize event. \item\end{CompactList}\item 
virtual void {\bf paint\-Cell} ({\bf QPainter} $\ast$painter, int row, int col)
\begin{CompactList}\small\item\em Paint a cell. \item\end{CompactList}\item 
virtual void {\bf contents\-Mouse\-Press\-Event} ({\bf QMouse\-Event} $\ast$e)
\begin{CompactList}\small\item\em Catch mouse click and move events to paint a rectangle around the item. \item\end{CompactList}\item 
virtual void {\bf contents\-Mouse\-Move\-Event} ({\bf QMouse\-Event} $\ast$e)\label{classKDateInternalMonthPicker_b4}

\item 
virtual void {\bf contents\-Mouse\-Release\-Event} ({\bf QMouse\-Event} $\ast$e)
\begin{CompactList}\small\item\em Emit month\-Selected(int) when a cell has been released. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
int {\bf result}
\begin{CompactList}\small\item\em Store the month that has been clicked [1..12]. \item\end{CompactList}\item 
short int {\bf active\-Col}
\begin{CompactList}\small\item\em the cell under mouse cursor when LBM is pressed \item\end{CompactList}\item 
short int {\bf active\-Row}\label{classKDateInternalMonthPicker_p2}

\item 
{\bf QRect} {\bf max}
\begin{CompactList}\small\item\em Contains the largest rectangle needed by the month names. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
A table containing month names. 

It is used to pick a month directly. 



Definition at line 61 of file kdatetbl.h.

\subsection{Constructor \& Destructor Documentation}
\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!KDateInternalMonthPicker@{KDateInternalMonthPicker}}
\index{KDateInternalMonthPicker@{KDateInternalMonthPicker}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDate\-Internal\-Month\-Picker::KDate\-Internal\-Month\-Picker (int {\em fontsize}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = 0)}\label{classKDateInternalMonthPicker_a0}


The constructor. 



Definition at line 469 of file kdatetbl.cpp.

References KGlobal\-Settings::base\-Color(), QFont\-Metrics::bounding\-Rect(), KGlobal\-Settings::general\-Font(), QRect::height(), KGlobal::locale(), KStd\-Accel::name(), QFont::set\-Point\-Size(), and QRect::width().

\subsection{Member Function Documentation}
\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!closeMe@{closeMe}}
\index{closeMe@{closeMe}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDate\-Internal\-Month\-Picker::close\-Me (int)\hspace{0.3cm}{\tt  [signal]}}\label{classKDateInternalMonthPicker_l0}


This is send from the mouse click event handler. 



Referenced by contents\-Mouse\-Release\-Event().\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!sizeHint@{sizeHint}}
\index{sizeHint@{sizeHint}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QSize} KDate\-Internal\-Month\-Picker::size\-Hint () const}\label{classKDateInternalMonthPicker_a1}


The size hint. 



Definition at line 502 of file kdatetbl.cpp.

References QRect::height(), max, QGrid\-View::num\-Cols(), QGrid\-View::num\-Rows(), and QRect::width().\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!getResult@{getResult}}
\index{getResult@{getResult}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KDate\-Internal\-Month\-Picker::get\-Result () const}\label{classKDateInternalMonthPicker_a2}


Return the result. 

0 means no selection (reject()), 1..12 are the months. 

Definition at line 509 of file kdatetbl.cpp.

References result.\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!setupPainter@{setupPainter}}
\index{setupPainter@{setupPainter}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDate\-Internal\-Month\-Picker::setup\-Painter ({\bf QPainter} $\ast$ {\em p})\hspace{0.3cm}{\tt  [protected]}}\label{classKDateInternalMonthPicker_b0}


Set up the painter. 



Definition at line 515 of file kdatetbl.cpp.

References QPainter::set\-Pen(), and KGlobal\-Settings::text\-Color().\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!viewportResizeEvent@{viewportResizeEvent}}
\index{viewportResizeEvent@{viewportResizeEvent}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDate\-Internal\-Month\-Picker::viewport\-Resize\-Event ({\bf QResize\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKDateInternalMonthPicker_b1}


The resize event. 



Definition at line 521 of file kdatetbl.cpp.

References QGrid\-View::set\-Cell\-Height(), and QGrid\-View::set\-Cell\-Width().\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!paintCell@{paintCell}}
\index{paintCell@{paintCell}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDate\-Internal\-Month\-Picker::paint\-Cell ({\bf QPainter} $\ast$ {\em painter}, int {\em row}, int {\em col})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKDateInternalMonthPicker_b2}


Paint a cell. 

This simply draws the month names in it. 

Reimplemented from {\bf QGrid\-View}.

Definition at line 528 of file kdatetbl.cpp.

References active\-Col, QGrid\-View::cell\-Height(), QGrid\-View::cell\-Width(), QPainter::draw\-Rect(), QPainter::draw\-Text(), KGlobal::locale(), and KLocale::month\-Name().\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!contentsMousePressEvent@{contentsMousePressEvent}}
\index{contentsMousePressEvent@{contentsMousePressEvent}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDate\-Internal\-Month\-Picker::contents\-Mouse\-Press\-Event ({\bf QMouse\-Event} $\ast$ {\em e})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKDateInternalMonthPicker_b3}


Catch mouse click and move events to paint a rectangle around the item. 



Definition at line 541 of file kdatetbl.cpp.

References active\-Col, KNotify\-Client::beep(), QMouse\-Event::button(), QGrid\-View::column\-At(), QMouse\-Event::pos(), QGrid\-View::row\-At(), QGrid\-View::update\-Cell(), QPoint::x(), and QPoint::y().\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!contentsMouseReleaseEvent@{contentsMouseReleaseEvent}}
\index{contentsMouseReleaseEvent@{contentsMouseReleaseEvent}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDate\-Internal\-Month\-Picker::contents\-Mouse\-Release\-Event ({\bf QMouse\-Event} $\ast$ {\em e})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKDateInternalMonthPicker_b5}


Emit month\-Selected(int) when a cell has been released. 



Definition at line 608 of file kdatetbl.cpp.

References close\-Me(), QGrid\-View::column\-At(), QMouse\-Event::pos(), result, QGrid\-View::row\-At(), QPoint::x(), and QPoint::y().

\subsection{Member Data Documentation}
\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!result@{result}}
\index{result@{result}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf KDate\-Internal\-Month\-Picker::result}\hspace{0.3cm}{\tt  [protected]}}\label{classKDateInternalMonthPicker_p0}


Store the month that has been clicked [1..12]. 



Definition at line 68 of file kdatetbl.h.

Referenced by contents\-Mouse\-Release\-Event(), and get\-Result().\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!activeCol@{activeCol}}
\index{activeCol@{activeCol}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}short int {\bf KDate\-Internal\-Month\-Picker::active\-Col}\hspace{0.3cm}{\tt  [protected]}}\label{classKDateInternalMonthPicker_p1}


the cell under mouse cursor when LBM is pressed 



Definition at line 72 of file kdatetbl.h.

Referenced by contents\-Mouse\-Press\-Event(), and paint\-Cell().\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!max@{max}}
\index{max@{max}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QRect} {\bf KDate\-Internal\-Month\-Picker::max}\hspace{0.3cm}{\tt  [protected]}}\label{classKDateInternalMonthPicker_p3}


Contains the largest rectangle needed by the month names. 



Definition at line 77 of file kdatetbl.h.

Referenced by size\-Hint().

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