#include </home/clem/local/src/opie/noncore/apps/tinykate/libkate/microkde/kdatetbl.h>
Collaboration diagram for KDateTable:

Signals | |
| void | dateChanged (QDate) |
| void | tableClicked () |
Public Member Functions | |
| KDateTable (QWidget *parent=0, QDate date=QDate::currentDate(), const char *name=0, WFlags f=0) | |
| virtual QSize | sizeHint () const |
| void | setFontSize (int size) |
| bool | setDate (const QDate &) |
| const QDate & | getDate () const |
Protected Member Functions | |
| virtual void | paintCell (QPainter *, int, int) |
| virtual void | viewportResizeEvent (QResizeEvent *) |
| virtual void | contentsMousePressEvent (QMouseEvent *) |
| virtual void | keyPressEvent (QKeyEvent *e) |
| virtual void | focusInEvent (QFocusEvent *e) |
| virtual void | focusOutEvent (QFocusEvent *e) |
| virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
| int | fontsize |
| QDate | date |
| int | firstday |
| int | numdays |
| int | numDaysPrevMonth |
| bool | unused_hasSelection |
| QRect | maxCell |
Private Attributes | |
| KDateTablePrivate * | d |
When a date is selected by the user, it emits a signal: dateSelected(QDate)
For internal use only.
Definition at line 218 of file kdatetbl.h.
|
||||||||||||||||||||
|
The constructor. Definition at line 81 of file kdatetbl.cpp. References QDate::currentDate(), Opie::Core::endl(), QDate::isValid(), kdDebug(), setDate(), and setFontSize(). |
|
|
React on mouse clicks that select a date. Definition at line 294 of file kdatetbl.cpp. References KNotifyClient::beep(), col, date, QDate::day(), firstday, KGlobal::locale(), QDate::month(), numdays, pos, row, setDate(), tableClicked(), and QDate::year(). |
|
|
The selected date changed. Referenced by setDate(). |
|
|
Definition at line 378 of file kdatetbl.cpp. |
|
|
Definition at line 384 of file kdatetbl.cpp. |
|
|
Definition at line 373 of file kdatetbl.cpp. References date. Referenced by KDatePicker::date(), KDatePicker::getDate(), KDatePicker::monthBackwardClicked(), KDatePicker::monthForwardClicked(), KDatePicker::selectMonthClicked(), KDatePicker::selectYearClicked(), KDatePicker::tableClickedSlot(), KDatePicker::yearBackwardClicked(), and KDatePicker::yearForwardClicked(). |
|
|
Definition at line 196 of file kdatetbl.cpp. References assert, KNotifyClient::beep(), date, QDate::day(), firstday, i18n, QDate::isValid(), Qt::Key_Down, Qt::Key_Left, Qt::Key_Next, Qt::Key_Prior, Qt::Key_Right, Qt::Key_Up, KGlobal::locale(), QDate::month(), numdays, pos, setDate(), and QDate::year(). |
|
||||||||||||||||
|
Paint a cell. Definition at line 102 of file kdatetbl.cpp. References date, QDate::day(), firstday, fontsize, KGlobalSettings::generalFont(), KGlobal::locale(), maxCell, numdays, numDaysPrevMonth, pos, QString::setNum(), and text. |
|
|
Select and display this date. Definition at line 338 of file kdatetbl.cpp. References date, dateChanged(), QDate::dayOfWeek(), QDate::daysInMonth(), Opie::Core::endl(), firstday, QDate::isValid(), kdDebug(), QDate::month(), numdays, numDaysPrevMonth, QDate::setYMD(), and QDate::year(). Referenced by contentsMousePressEvent(), KDateTable(), keyPressEvent(), and KDatePicker::setDate(). |
|
|
Set the font size of the date table. Definition at line 271 of file kdatetbl.cpp. References fontsize, QString::fromLatin1(), KGlobal::locale(), and maxCell. Referenced by KDateTable(), and KDatePicker::setFontSize(). |
|
|
Returns a recommended size for the widget. To save some time, the size of the largest used cell content is calculated in each paintCell() call, since all calculations have to be done there anyway. The size is stored in maxCell. The sizeHint() simply returns a multiple of maxCell. Definition at line 391 of file kdatetbl.cpp. References Opie::Core::endl(), kdDebug(), and maxCell. Referenced by KDatePicker::sizeHint(). |
|
|
A date has been selected by clicking on the table. Referenced by contentsMousePressEvent(). |
|
|
Handle the resize events. Definition at line 262 of file kdatetbl.cpp. |
|
||||||||||||
|
Definition at line 715 of file kdatetbl.cpp. |
|
|
Definition at line 304 of file kdatetbl.h. |
|
|
The currently selected date. Definition at line 270 of file kdatetbl.h. Referenced by contentsMousePressEvent(), getDate(), keyPressEvent(), paintCell(), and setDate(). |
|
|
The day of the first day in the month [1..7]. Definition at line 274 of file kdatetbl.h. Referenced by contentsMousePressEvent(), keyPressEvent(), paintCell(), and setDate(). |
|
|
The font size of the displayed text. Definition at line 266 of file kdatetbl.h. Referenced by paintCell(), and setFontSize(). |
|
|
Save the size of the largest used cell content. Definition at line 290 of file kdatetbl.h. Referenced by paintCell(), setFontSize(), and sizeHint(). |
|
|
The number of days in the current month. Definition at line 278 of file kdatetbl.h. Referenced by contentsMousePressEvent(), keyPressEvent(), paintCell(), and setDate(). |
|
|
The number of days in the previous month. Definition at line 282 of file kdatetbl.h. Referenced by paintCell(), and setDate(). |
|
|
unused Definition at line 286 of file kdatetbl.h. |
1.4.2