\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=84pt]{classKDateInternalMonthPicker__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KDate\-Internal\-Month\-Picker:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=85pt]{classKDateInternalMonthPicker__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf close\-Me} (int)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KDate\-Internal\-Month\-Picker} (const {\bf QDate} \&date, {\bf QWidget} $\ast$parent, const char $\ast$name=0)
\item 
{\bf $\sim$KDate\-Internal\-Month\-Picker} ()
\item 
{\bf QSize} {\bf size\-Hint} () const 
\item 
int {\bf get\-Result} () const 
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf setup\-Painter} ({\bf QPainter} $\ast$p)
\item 
virtual void {\bf viewport\-Resize\-Event} ({\bf QResize\-Event} $\ast$)
\item 
virtual void {\bf paint\-Cell} ({\bf QPainter} $\ast$painter, int row, int col)
\item 
virtual void {\bf contents\-Mouse\-Press\-Event} ({\bf QMouse\-Event} $\ast$e)
\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)
\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
int {\bf result}
\item 
short int {\bf active\-Col}
\item 
short int {\bf active\-Row}\label{classKDateInternalMonthPicker_p2}

\item 
{\bf QRect} {\bf max}
\end{CompactItemize}


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

It is used to pick a month directly. 



Definition at line 67 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 (const {\bf QDate} \& {\em date}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKDateInternalMonthPicker_a0}


The constructor. 



Definition at line 663 of file kdatetbl.cpp.

References QFont\-Metrics::bounding\-Rect(), KLocale::calendar(), KGlobal\-Settings::general\-Font(), QRect::height(), QString::is\-Null(), KGlobal::locale(), KCalendar\-System::month\-Name(), and QRect::width().\index{KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}!~KDateInternalMonthPicker@{$\sim$KDateInternalMonthPicker}}
\index{~KDateInternalMonthPicker@{$\sim$KDateInternalMonthPicker}!KDateInternalMonthPicker@{KDate\-Internal\-Month\-Picker}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDate\-Internal\-Month\-Picker::$\sim${\bf KDate\-Internal\-Month\-Picker} ()}\label{classKDateInternalMonthPicker_a1}


The destructor. 



Definition at line 658 of file kdatetbl.cpp.

\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_a2}


The size hint. 



Definition at line 699 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_a3}


Return the result. 

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

Definition at line 706 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 712 of file kdatetbl.cpp.\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 718 of file kdatetbl.cpp.

References QGrid\-View::num\-Cols(), QGrid\-View::num\-Rows(), 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 725 of file kdatetbl.cpp.

References active\-Col, KLocale::calendar(), QGrid\-View::cell\-Height(), QGrid\-View::cell\-Width(), KGlobal::locale(), and KCalendar\-System::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 740 of file kdatetbl.cpp.

References active\-Col, KNotify\-Client::beep(), QGrid\-View::column\-At(), 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 807 of file kdatetbl.cpp.

References close\-Me(), QGrid\-View::column\-At(), 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 74 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 78 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 83 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}
