Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

KDateInternalMonthPicker Class Reference

#include </home/clem/local/src/opie/noncore/apps/tinykate/libkate/microkde/kdatetbl.h>

List of all members.

Signals

void closeMe (int)

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

int result
short int activeCol
short int activeRow
QRect max

Private Attributes

KDateInternalMonthPrivate * d


Detailed Description

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

For internal use only.

Version:
Id
kdatetbl.h,v 1.1 2002/11/10 21:10:14 jowenn Exp
Author:
Tim Gilman, Mirko Boehm

Definition at line 34 of file kdatetbl.h.


Constructor & Destructor Documentation

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

The constructor.

Definition at line 404 of file kdatetbl.cpp.

References fontsize, KGlobalSettings::generalFont(), i, KGlobal::locale(), and max.


Member Function Documentation

void KDateInternalMonthPicker::closeMe int   )  [signal]
 

This is send from the mouse click event handler.

Referenced by contentsMouseReleaseEvent().

void KDateInternalMonthPicker::contentsMouseMoveEvent QMouseEvent *  e  )  [protected]
 

Definition at line 505 of file kdatetbl.cpp.

References activeCol, activeRow, col, and row.

void KDateInternalMonthPicker::contentsMousePressEvent QMouseEvent *  e  )  [protected]
 

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

Definition at line 478 of file kdatetbl.cpp.

References activeCol, activeRow, KNotifyClient::beep(), col, and row.

void KDateInternalMonthPicker::contentsMouseReleaseEvent QMouseEvent *  e  )  [protected]
 

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

Definition at line 545 of file kdatetbl.cpp.

References closeMe(), col, pos, result, and row.

int KDateInternalMonthPicker::getResult  )  const
 

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

Definition at line 446 of file kdatetbl.cpp.

References result.

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

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

Definition at line 465 of file kdatetbl.cpp.

References activeCol, activeRow, KGlobal::locale(), and text.

void KDateInternalMonthPicker::setupPainter QPainter *  p  )  [protected]
 

Set up the painter.

Definition at line 452 of file kdatetbl.cpp.

QSize KDateInternalMonthPicker::sizeHint  )  const
 

The size hint.

Definition at line 439 of file kdatetbl.cpp.

References max.

Referenced by KDatePicker::selectMonthClicked().

void KDateInternalMonthPicker::viewportResizeEvent QResizeEvent *   )  [protected]
 

The resize event.

Definition at line 458 of file kdatetbl.cpp.

References height, and width.


Member Data Documentation

short int KDateInternalMonthPicker::activeCol [protected]
 

the cell under mouse cursor when LBM is pressed

Definition at line 45 of file kdatetbl.h.

Referenced by contentsMouseMoveEvent(), contentsMousePressEvent(), and paintCell().

short int KDateInternalMonthPicker::activeRow [protected]
 

Definition at line 46 of file kdatetbl.h.

Referenced by contentsMouseMoveEvent(), contentsMousePressEvent(), and paintCell().

KDateInternalMonthPrivate* KDateInternalMonthPicker::d [private]
 

Definition at line 94 of file kdatetbl.h.

QRect KDateInternalMonthPicker::max [protected]
 

Contains the largest rectangle needed by the month names.

Definition at line 50 of file kdatetbl.h.

Referenced by sizeHint().

int KDateInternalMonthPicker::result [protected]
 

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

Definition at line 36 of file kdatetbl.h.

Referenced by contentsMouseReleaseEvent(), and getResult().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:37:21 2005 for OPIE by  doxygen 1.4.2