.TH "KDateInternalMonthPicker" 3 "28 Jan 2004" "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
.RI "\fIThis is send from the mouse click event handler. \fP"
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKDateInternalMonthPicker\fP (int fontsize, \fBQWidget\fP *parent, const  char *name=0)"
.br
.RI "\fIThe constructor. \fP"
.ti -1c
.RI "\fBQSize\fP \fBsizeHint\fP () const "
.br
.RI "\fIThe size hint. \fP"
.ti -1c
.RI "int \fBgetResult\fP () const "
.br
.RI "\fIReturn the result. \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBsetupPainter\fP (\fBQPainter\fP *p)"
.br
.RI "\fISet up the painter. \fP"
.ti -1c
.RI "virtual void \fBviewportResizeEvent\fP (\fBQResizeEvent\fP *)"
.br
.RI "\fIThe resize event. \fP"
.ti -1c
.RI "virtual void \fBpaintCell\fP (\fBQPainter\fP *painter, int row, int col)"
.br
.RI "\fIPaint a cell. \fP"
.ti -1c
.RI "virtual void \fBcontentsMousePressEvent\fP (\fBQMouseEvent\fP *e)"
.br
.RI "\fICatch mouse click and move events to paint a rectangle around the item. \fP"
.ti -1c
.RI "virtual void \fBcontentsMouseMoveEvent\fP (\fBQMouseEvent\fP *e)"
.br
.ti -1c
.RI "virtual void \fBcontentsMouseReleaseEvent\fP (\fBQMouseEvent\fP *e)"
.br
.RI "\fIEmit monthSelected(int) when a cell has been released. \fP"
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "int \fBresult\fP"
.br
.RI "\fIStore the month that has been clicked [1..12]. \fP"
.ti -1c
.RI "short int \fBactiveCol\fP"
.br
.RI "\fIthe cell under mouse cursor when LBM is pressed \fP"
.ti -1c
.RI "short int \fBactiveRow\fP"
.br
.ti -1c
.RI "\fBQRect\fP \fBmax\fP"
.br
.RI "\fIContains the largest rectangle needed by the month names. \fP"
.in -1c
.SH "Detailed Description"
.PP 
A table containing month names. 

It is used to pick a month directly. 
.PP
Definition at line 61 of file kdatetbl.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KDateInternalMonthPicker::KDateInternalMonthPicker (int fontsize, \fBQWidget\fP * parent, const char * name = 0)"
.PP
The constructor. Definition at line 469 of file kdatetbl.cpp.
.PP
References KGlobalSettings::baseColor(), QFontMetrics::boundingRect(), KGlobalSettings::generalFont(), QRect::height(), KGlobal::locale(), KStdAccel::name(), QFont::setPointSize(), and QRect::width().
.SH "Member Function Documentation"
.PP 
.SS "void KDateInternalMonthPicker::closeMe (int)\fC [signal]\fP"
.PP
This is send from the mouse click event handler. Referenced by contentsMouseReleaseEvent().
.SS "\fBQSize\fP KDateInternalMonthPicker::sizeHint () const"
.PP
The size hint. Definition at line 502 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. 0 means no selection (reject()), 1..12 are the months. Definition at line 509 of file kdatetbl.cpp.
.PP
References result.
.SS "void KDateInternalMonthPicker::setupPainter (\fBQPainter\fP * p)\fC [protected]\fP"
.PP
Set up the painter. Definition at line 515 of file kdatetbl.cpp.
.PP
References QPainter::setPen(), and KGlobalSettings::textColor().
.SS "void KDateInternalMonthPicker::viewportResizeEvent (\fBQResizeEvent\fP *)\fC [protected, virtual]\fP"
.PP
The resize event. Definition at line 521 of file kdatetbl.cpp.
.PP
References QGridView::setCellHeight(), and QGridView::setCellWidth().
.SS "void KDateInternalMonthPicker::paintCell (\fBQPainter\fP * painter, int row, int col)\fC [protected, virtual]\fP"
.PP
Paint a cell. This simply draws the month names in it. Reimplemented from \fBQGridView\fP.
.PP
Definition at line 528 of file kdatetbl.cpp.
.PP
References activeCol, QGridView::cellHeight(), QGridView::cellWidth(), QPainter::drawRect(), QPainter::drawText(), KGlobal::locale(), and KLocale::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. Definition at line 541 of file kdatetbl.cpp.
.PP
References activeCol, KNotifyClient::beep(), QMouseEvent::button(), QGridView::columnAt(), QMouseEvent::pos(), 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. Definition at line 608 of file kdatetbl.cpp.
.PP
References closeMe(), QGridView::columnAt(), QMouseEvent::pos(), 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]. Definition at line 68 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 Definition at line 72 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. Definition at line 77 of file kdatetbl.h.
.PP
Referenced by sizeHint().

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