KDateInternalMonthPicker Class Reference
A table containing month names. More...
#include <kdatetbl.h>
Inheritance diagram for KDateInternalMonthPicker:


| Signals | |
| void | closeMe (int) | 
| Public Member Functions | |
| KDateInternalMonthPicker (const QDate &date, QWidget *parent, const char *name=0) | |
| ~KDateInternalMonthPicker () | |
| QSize | sizeHint () const | 
| int | getResult () const | 
| Protected Member Functions | |
| void | setupPainter (QPainter *p) | 
| virtual void | viewportResizeEvent (QResizeEvent *) | 
| virtual void | paintCell (QPainter *painter, int row, int col) | 
| virtual void | contentsMousePressEvent (QMouseEvent *e) | 
| virtual void | contentsMouseMoveEvent (QMouseEvent *e) | 
| virtual void | contentsMouseReleaseEvent (QMouseEvent *e) | 
| Protected Attributes | |
| int | result | 
| short int | activeCol | 
| short int | activeRow | 
| QRect | max | 
Detailed Description
A table containing month names.It is used to pick a month directly.
Definition at line 63 of file kdatetbl.h.
Constructor & Destructor Documentation
| 
 | ||||||||||||||||
| The constructor. 
 Definition at line 610 of file kdatetbl.cpp. References QFontMetrics::boundingRect(), KLocale::calendar(), KGlobalSettings::generalFont(), QRect::height(), QString::isNull(), KGlobal::locale(), KCalendarSystem::monthName(), and QRect::width(). | 
| 
 | 
| The destructor. 
 Definition at line 605 of file kdatetbl.cpp. | 
Member Function Documentation
| 
 | 
| This is send from the mouse click event handler. 
 Referenced by contentsMouseReleaseEvent(). | 
| 
 | 
| The size hint. 
 Definition at line 646 of file kdatetbl.cpp. References QRect::height(), max, QGridView::numCols(), QGridView::numRows(), and QRect::width(). | 
| 
 | 
| Return the result. 0 means no selection (reject()), 1..12 are the months. Definition at line 653 of file kdatetbl.cpp. References result. | 
| 
 | 
| Set up the painter. 
 Definition at line 659 of file kdatetbl.cpp. References QPainter::setPen(). | 
| 
 | 
| The resize event. 
 Definition at line 665 of file kdatetbl.cpp. References QGridView::numCols(), QGridView::numRows(), QGridView::setCellHeight(), and QGridView::setCellWidth(). | 
| 
 | ||||||||||||||||
| Paint a cell. This simply draws the month names in it. Reimplemented from QGridView. Definition at line 672 of file kdatetbl.cpp. References activeCol, KLocale::calendar(), QGridView::cellHeight(), QGridView::cellWidth(), QPainter::drawRect(), QPainter::drawText(), KGlobal::locale(), and KCalendarSystem::monthName(). | 
| 
 | 
| Catch mouse click and move events to paint a rectangle around the item. 
 Definition at line 687 of file kdatetbl.cpp. References activeCol, KNotifyClient::beep(), QMouseEvent::button(), QGridView::columnAt(), QMouseEvent::pos(), QGridView::rowAt(), QGridView::updateCell(), QPoint::x(), and QPoint::y(). | 
| 
 | 
| Emit monthSelected(int) when a cell has been released. 
 Definition at line 754 of file kdatetbl.cpp. References closeMe(), QGridView::columnAt(), QMouseEvent::pos(), result, QGridView::rowAt(), QPoint::x(), and QPoint::y(). | 
Member Data Documentation
| 
 | 
| Store the month that has been clicked [1..12]. 
 Definition at line 70 of file kdatetbl.h. Referenced by contentsMouseReleaseEvent(), and getResult(). | 
| 
 | 
| the cell under mouse cursor when LBM is pressed 
 Definition at line 74 of file kdatetbl.h. Referenced by contentsMousePressEvent(), and paintCell(). | 
| 
 | 
| Contains the largest rectangle needed by the month names. 
 Definition at line 79 of file kdatetbl.h. Referenced by sizeHint(). | 
The documentation for this class was generated from the following files:

