.TH "KDateInternalMonthPicker" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KDateInternalMonthPicker \- A table containing month names.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kdatetbl.h>\fP
.PP
Inherits \fBQGridView\fP.
.PP
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBcloseMe\fP (int)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKDateInternalMonthPicker\fP (const \fBQDate\fP &date, \fBQWidget\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "\fB~KDateInternalMonthPicker\fP ()"
.br
.ti -1c
.RI "\fBQSize\fP \fBsizeHint\fP () const "
.br
.ti -1c
.RI "int \fBgetResult\fP () const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBsetupPainter\fP (\fBQPainter\fP *p)"
.br
.ti -1c
.RI "virtual void \fBviewportResizeEvent\fP (\fBQResizeEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBpaintCell\fP (\fBQPainter\fP *painter, int row, int col)"
.br
.ti -1c
.RI "virtual void \fBcontentsMousePressEvent\fP (\fBQMouseEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBcontentsMouseMoveEvent\fP (\fBQMouseEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBcontentsMouseReleaseEvent\fP (\fBQMouseEvent\fP *e)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "int \fBresult\fP"
.br
.ti -1c
.RI "short int \fBactiveCol\fP"
.br
.ti -1c
.RI "short int \fBactiveRow\fP"
.br
.ti -1c
.RI "\fBQRect\fP \fBmax\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
A table containing month names. 

It is used to pick a month directly. 
.PP
Definition at line 67 of file kdatetbl.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KDateInternalMonthPicker::KDateInternalMonthPicker (const \fBQDate\fP & date, \fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
The constructor. 
.PP
Definition at line 663 of file kdatetbl.cpp.
.PP
References QFontMetrics::boundingRect(), KLocale::calendar(), KGlobalSettings::generalFont(), QRect::height(), QString::isNull(), KGlobal::locale(), KCalendarSystem::monthName(), and QRect::width().
.SS "KDateInternalMonthPicker::~\fBKDateInternalMonthPicker\fP ()"
.PP
The destructor. 
.PP
Definition at line 658 of file kdatetbl.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KDateInternalMonthPicker::closeMe (int)\fC [signal]\fP"
.PP
This is send from the mouse click event handler. 
.PP
Referenced by contentsMouseReleaseEvent().
.SS "\fBQSize\fP KDateInternalMonthPicker::sizeHint () const"
.PP
The size hint. 
.PP
Definition at line 699 of file kdatetbl.cpp.
.PP
References QRect::height(), max, QGridView::numCols(), QGridView::numRows(), and QRect::width().
.SS "int KDateInternalMonthPicker::getResult () const"
.PP
Return the result. 
.PP
0 means no selection (reject()), 1..12 are the months. 
.PP
Definition at line 706 of file kdatetbl.cpp.
.PP
References result.
.SS "void KDateInternalMonthPicker::setupPainter (\fBQPainter\fP * p)\fC [protected]\fP"
.PP
Set up the painter. 
.PP
Definition at line 712 of file kdatetbl.cpp.
.SS "void KDateInternalMonthPicker::viewportResizeEvent (\fBQResizeEvent\fP *)\fC [protected, virtual]\fP"
.PP
The resize event. 
.PP
Definition at line 718 of file kdatetbl.cpp.
.PP
References QGridView::numCols(), QGridView::numRows(), QGridView::setCellHeight(), and QGridView::setCellWidth().
.SS "void KDateInternalMonthPicker::paintCell (\fBQPainter\fP * painter, int row, int col)\fC [protected, virtual]\fP"
.PP
Paint a cell. 
.PP
This simply draws the month names in it. 
.PP
Reimplemented from \fBQGridView\fP.
.PP
Definition at line 725 of file kdatetbl.cpp.
.PP
References activeCol, KLocale::calendar(), QGridView::cellHeight(), QGridView::cellWidth(), KGlobal::locale(), and KCalendarSystem::monthName().
.SS "void KDateInternalMonthPicker::contentsMousePressEvent (\fBQMouseEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Catch mouse click and move events to paint a rectangle around the item. 
.PP
Definition at line 740 of file kdatetbl.cpp.
.PP
References activeCol, KNotifyClient::beep(), QGridView::columnAt(), QGridView::rowAt(), QGridView::updateCell(), QPoint::x(), and QPoint::y().
.SS "void KDateInternalMonthPicker::contentsMouseReleaseEvent (\fBQMouseEvent\fP * e)\fC [protected, virtual]\fP"
.PP
Emit monthSelected(int) when a cell has been released. 
.PP
Definition at line 807 of file kdatetbl.cpp.
.PP
References closeMe(), QGridView::columnAt(), result, QGridView::rowAt(), QPoint::x(), and QPoint::y().
.SH "Member Data Documentation"
.PP 
.SS "int \fBKDateInternalMonthPicker::result\fP\fC [protected]\fP"
.PP
Store the month that has been clicked [1..12]. 
.PP
Definition at line 74 of file kdatetbl.h.
.PP
Referenced by contentsMouseReleaseEvent(), and getResult().
.SS "short int \fBKDateInternalMonthPicker::activeCol\fP\fC [protected]\fP"
.PP
the cell under mouse cursor when LBM is pressed 
.PP
Definition at line 78 of file kdatetbl.h.
.PP
Referenced by contentsMousePressEvent(), and paintCell().
.SS "\fBQRect\fP \fBKDateInternalMonthPicker::max\fP\fC [protected]\fP"
.PP
Contains the largest rectangle needed by the month names. 
.PP
Definition at line 83 of file kdatetbl.h.
.PP
Referenced by sizeHint().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
