kplato

KPlato::DateInternalMonthPicker Class Reference

#include <kptdatetable.h>

List of all members.


Detailed Description

A table containing month names.

It is used to pick a month directly.

Definition at line 75 of file kptdatetable.h.


Signals

void closeMe (int)

Public Member Functions

 DateInternalMonthPicker (int fontsize, QWidget *parent, const char *name=0)
QSize sizeHint () const
QSize minimumSizeHint () 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

Constructor & Destructor Documentation

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

The constructor.

Definition at line 744 of file kptdatetable.cc.


Member Function Documentation

void KPlato::DateInternalMonthPicker::closeMe int   )  [signal]
 

This is send from the mouse click event handler.

void KPlato::DateInternalMonthPicker::contentsMousePressEvent QMouseEvent *  e  )  [protected, virtual]
 

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

Definition at line 816 of file kptdatetable.cc.

void KPlato::DateInternalMonthPicker::contentsMouseReleaseEvent QMouseEvent *  e  )  [protected, virtual]
 

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

Definition at line 883 of file kptdatetable.cc.

int KPlato::DateInternalMonthPicker::getResult  )  const
 

Return the result.

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

Definition at line 784 of file kptdatetable.cc.

QSize KPlato::DateInternalMonthPicker::minimumSizeHint  )  const [inline]
 

The minimum size hint.

Definition at line 109 of file kptdatetable.h.

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

Paint a cell.

This simply draws the month names in it.

Definition at line 803 of file kptdatetable.cc.

void KPlato::DateInternalMonthPicker::setupPainter QPainter *  p  )  [protected]
 

Set up the painter.

Definition at line 790 of file kptdatetable.cc.

QSize KPlato::DateInternalMonthPicker::sizeHint  )  const
 

The size hint.

Definition at line 777 of file kptdatetable.cc.

void KPlato::DateInternalMonthPicker::viewportResizeEvent QResizeEvent *   )  [protected, virtual]
 

The resize event.

Definition at line 796 of file kptdatetable.cc.


Member Data Documentation

short int KPlato::DateInternalMonthPicker::activeCol [protected]
 

the cell under mouse cursor when LBM is pressed

Definition at line 86 of file kptdatetable.h.

QRect KPlato::DateInternalMonthPicker::max [protected]
 

Contains the largest rectangle needed by the month names.

Definition at line 91 of file kptdatetable.h.

int KPlato::DateInternalMonthPicker::result [protected]
 

Store the month that has been clicked [1.

.12].

Definition at line 82 of file kptdatetable.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys