Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KDateInternalMonthPicker Class Reference

#include <kdatetbl.h>

List of all members.

Signals

void closeMe (int)

Public Methods

 KDateInternalMonthPicker (int fontsize, QWidget *parent, const char *name=0)
QSize sizeHint () const
int getResult () const

Protected Methods

void setupPainter (QPainter *p)
virtual void viewportResizeEvent (QResizeEvent *)
virtual void paintCell (QPainter *painter, int row, int col)
virtual void contentsMousePressEvent (QMouseEvent *e)
virtual void contentsMouseReleaseEvent (QMouseEvent *e)

Protected Attributes

int result
short int activeCol
QRect max


Detailed Description

A table containing month names. It is used to pick a month directly.

Definition at line 61 of file kdatetbl.h.


Constructor & Destructor Documentation

KDateInternalMonthPicker::KDateInternalMonthPicker int    fontsize,
QWidget *    parent,
const char *    name = 0
 

The constructor.


Member Function Documentation

void KDateInternalMonthPicker::closeMe int    [signal]
 

This is send from the mouse click event handler.

virtual void KDateInternalMonthPicker::contentsMousePressEvent QMouseEvent *    e [protected, virtual]
 

Catch mouse click and move events to paint a rectangle around the item.

virtual void KDateInternalMonthPicker::contentsMouseReleaseEvent QMouseEvent *    e [protected, virtual]
 

Emit monthSelected(int) when a cell has been released.

int KDateInternalMonthPicker::getResult  
 

Return the result. 0 means no selection (reject()), 1..12 are the months.

virtual void KDateInternalMonthPicker::paintCell QPainter *    painter,
int    row,
int    col
[protected, virtual]
 

Paint a cell. This simply draws the month names in it.

void KDateInternalMonthPicker::setupPainter QPainter *    p [protected]
 

Set up the painter.

QSize KDateInternalMonthPicker::sizeHint  
 

The size hint.

virtual void KDateInternalMonthPicker::viewportResizeEvent QResizeEvent *    [protected, virtual]
 

The resize event.


Member Data Documentation

short int KDateInternalMonthPicker::activeCol [protected]
 

the cell under mouse cursor when LBM is pressed

Definition at line 72 of file kdatetbl.h.

QRect KDateInternalMonthPicker::max [protected]
 

Contains the largest rectangle needed by the month names.

Definition at line 77 of file kdatetbl.h.

int KDateInternalMonthPicker::result [protected]
 

Store the month that has been clicked [1..12].

Definition at line 68 of file kdatetbl.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:08 2003 for kdelibs by doxygen1.2.18