• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KDateInternalMonthPicker Class Reference

#include <kdatetbl.h>

Inherits TQGridView.

Signals

void closeMe (int)
 

Public Member Functions

 KDateInternalMonthPicker (const TQDate &date, TQWidget *parent, const char *name=0)
 
 ~KDateInternalMonthPicker ()
 
TQSize sizeHint () const
 
int getResult () const
 

Protected Member Functions

void setupPainter (TQPainter *p)
 
virtual void viewportResizeEvent (TQResizeEvent *)
 
virtual void paintCell (TQPainter *painter, int row, int col)
 
virtual void contentsMousePressEvent (TQMouseEvent *e)
 
virtual void contentsMouseMoveEvent (TQMouseEvent *e)
 
virtual void contentsMouseReleaseEvent (TQMouseEvent *e)
 

Protected Attributes

int result
 
short int activeCol
 
short int activeRow
 
TQRect max
 

Detailed Description

A table containing month names.

It is used to pick a month directly.

Version
$Id$
Author
Tim Gilman, Mirko Boehm

Definition at line 67 of file kdatetbl.h.

Constructor & Destructor Documentation

◆ KDateInternalMonthPicker()

KDateInternalMonthPicker::KDateInternalMonthPicker ( const TQDate &  date,
TQWidget *  parent,
const char *  name = 0 
)

The constructor.

Definition at line 679 of file kdatetbl.cpp.

◆ ~KDateInternalMonthPicker()

KDateInternalMonthPicker::~KDateInternalMonthPicker ( )

The destructor.

Definition at line 675 of file kdatetbl.cpp.

Member Function Documentation

◆ closeMe

void KDateInternalMonthPicker::closeMe ( int  )
signal

This is send from the mouse click event handler.

◆ contentsMouseMoveEvent()

void KDateInternalMonthPicker::contentsMouseMoveEvent ( TQMouseEvent *  e)
protectedvirtual

Definition at line 784 of file kdatetbl.cpp.

◆ contentsMousePressEvent()

void KDateInternalMonthPicker::contentsMousePressEvent ( TQMouseEvent *  e)
protectedvirtual

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

Definition at line 757 of file kdatetbl.cpp.

◆ contentsMouseReleaseEvent()

void KDateInternalMonthPicker::contentsMouseReleaseEvent ( TQMouseEvent *  e)
protectedvirtual

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

Definition at line 824 of file kdatetbl.cpp.

◆ getResult()

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.

◆ paintCell()

void KDateInternalMonthPicker::paintCell ( TQPainter *  painter,
int  row,
int  col 
)
protectedvirtual

Paint a cell.

This simply draws the month names in it.

Definition at line 742 of file kdatetbl.cpp.

◆ setupPainter()

void KDateInternalMonthPicker::setupPainter ( TQPainter *  p)
protected

Set up the painter.

Definition at line 729 of file kdatetbl.cpp.

◆ sizeHint()

TQSize KDateInternalMonthPicker::sizeHint ( void  ) const

The size hint.

Definition at line 716 of file kdatetbl.cpp.

◆ viewportResizeEvent()

void KDateInternalMonthPicker::viewportResizeEvent ( TQResizeEvent *  )
protectedvirtual

The resize event.

Definition at line 735 of file kdatetbl.cpp.

Member Data Documentation

◆ activeCol

short int KDateInternalMonthPicker::activeCol
protected

the cell under mouse cursor when LBM is pressed

Definition at line 78 of file kdatetbl.h.

◆ activeRow

short int KDateInternalMonthPicker::activeRow
protected

Definition at line 79 of file kdatetbl.h.

◆ max

TQRect KDateInternalMonthPicker::max
protected

Contains the largest rectangle needed by the month names.

Definition at line 83 of file kdatetbl.h.

◆ result

int KDateInternalMonthPicker::result
protected

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

Definition at line 74 of file kdatetbl.h.


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

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.