• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kdeui

KDateInternalMonthPicker Class Reference

#include <kdatetbl.h>

Inheritance diagram for KDateInternalMonthPicker:

QGridView

List of all members.


Detailed Description

A table containing month names.

It is used to pick a month directly.

For internal use only.

Version:
$Id$
Author:
Tim Gilman, Mirko Boehm

Definition at line 67 of file kdatetbl.h.


Signals

void closeMe (int)

Public Member Functions

 KDateInternalMonthPicker (const QDate &date, QWidget *parent, const char *name=0)
 ~KDateInternalMonthPicker ()
QSize sizeHint () 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

KDateInternalMonthPicker::KDateInternalMonthPicker ( const QDate &  date,
QWidget *  parent,
const char *  name = 0 
)

The constructor.

Definition at line 680 of file kdatetbl.cpp.

KDateInternalMonthPicker::~KDateInternalMonthPicker (  ) 

The destructor.

Definition at line 675 of file kdatetbl.cpp.


Member Function Documentation

void KDateInternalMonthPicker::closeMe ( int   )  [signal]

This is send from the mouse click event handler.

QSize KDateInternalMonthPicker::sizeHint ( void   )  const

The size hint.

Definition at line 716 of file kdatetbl.cpp.

int KDateInternalMonthPicker::getResult (  )  const

Return the result.

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

Definition at line 723 of file kdatetbl.cpp.

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

Set up the painter.

Definition at line 729 of file kdatetbl.cpp.

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

The resize event.

Definition at line 735 of file kdatetbl.cpp.

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

Paint a cell.

This simply draws the month names in it.

Reimplemented from QGridView.

Definition at line 742 of file kdatetbl.cpp.

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

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

Definition at line 757 of file kdatetbl.cpp.

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

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

Definition at line 824 of file kdatetbl.cpp.


Member Data Documentation

int KDateInternalMonthPicker::result [protected]

Store the month that has been clicked [1.

.12].

Definition at line 74 of file kdatetbl.h.

short int KDateInternalMonthPicker::activeCol [protected]

the cell under mouse cursor when LBM is pressed

Definition at line 78 of file kdatetbl.h.

QRect KDateInternalMonthPicker::max [protected]

Contains the largest rectangle needed by the month names.

Definition at line 83 of file kdatetbl.h.


The documentation for this class was generated from the following files:
  • kdatetbl.h
  • kdatetbl.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal