class KDateTable

# class KDateTable | Date selection table. More...
Internal Use Only
Definition | `#include <kdatetbl.h>`
Inherits | QGridView (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- 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

#### Signals

- void dateChanged (QDate)
- void tableClicked ()

#### Protected Methods

- virtual void paintCell (QPainter*, int, int)
- virtual void viewportResizeEvent (QResizeEvent *)
- virtual void contentsMousePressEvent (QMouseEvent *)
- virtual void wheelEvent ( QWheelEvent * e )
- virtual void keyPressEvent ( QKeyEvent *e )
- virtual void focusInEvent ( QFocusEvent *e )
- virtual void focusOutEvent ( QFocusEvent *e )
- virtual void virtual_hook ( int id, void* data )

#### Protected Members

- int fontsize
- QDate date
- int firstday
- int numdays
- int numDaysPrevMonth
- bool unused_hasSelection
- QRect maxCell

## Detailed Description

Date selection table. This is a support class for the KDatePicker class. It just draws the calender table without titles, but could theoretically be used as a standalone.

When a date is selected by the user, it emits a signal: dateSelected(QDate)

KDateTable (QWidget *parent=0, QDate date=QDate::currentDate(), const char* name=0, WFlags f=0) | ### KDateTable

The constructor.

QSize sizeHint () | ### sizeHint

[const virtual]

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.

void setFontSize (int size) | ### setFontSize

Set the font size of the date table.

bool setDate (const QDate&) | ### setDate

Select and display this date.

const QDate& getDate () | ### getDate

[const]

void paintCell (QPainter*, int, int) | ### paintCell

[protected virtual]

Paint a cell.

void viewportResizeEvent (QResizeEvent *) | ### viewportResizeEvent

[protected virtual]

Handle the resize events.

void contentsMousePressEvent (QMouseEvent *) | ### contentsMousePressEvent

[protected virtual]

React on mouse clicks that select a date.

void wheelEvent ( QWheelEvent * e ) | ### wheelEvent

[protected virtual]

void keyPressEvent ( QKeyEvent *e ) | ### keyPressEvent

[protected virtual]

void focusInEvent ( QFocusEvent *e ) | ### focusInEvent

[protected virtual]

void focusOutEvent ( QFocusEvent *e ) | ### focusOutEvent

[protected virtual]

int fontsize | ### fontsize

[protected]

QDate date | ### date

[protected]

int firstday | ### firstday

[protected]

int numdays | ### numdays

[protected]

int numDaysPrevMonth | ### numDaysPrevMonth

[protected]

bool unused_hasSelection | ### unused_hasSelection

[protected]

QRect maxCell | ### maxCell

[protected]

void dateChanged (QDate) | ### dateChanged

[signal]

The selected date changed.

void tableClicked () | ### tableClicked

[signal]

A date has been selected by clicking on the table.

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

- Version: $Id: kdatetbl.h,v 1.31 2002/07/25 13:26:37 lukas Exp $
- Author: Tim Gilman, Mirko Boehm
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.