libkdepim Library API Documentation

KDatePickerPopup Class Reference

This menu helps the user to select a date quickly. More...

#include <kdatepickerpopup.h>

Inheritance diagram for KDatePickerPopup:

QPopupMenu List of all members.

Public Types

enum  { NoDate = 1, DatePicker = 2, Words = 4 }

Signals

void dateChanged (QDate)

Public Member Functions

 KDatePickerPopup (int items=1, const QDate &date=QDate::currentDate(), QWidget *parent=0, const char *name=0)
KDatePicker * datePicker () const
void setDate (const QDate &date)
int items () const

Protected Slots

void slotDateChanged (QDate)
void slotToday ()
void slotTomorrow ()
void slotFriday ()
void slotSunday ()
void slotNextWeek ()
void slotNextMonth ()
void slotNoDate ()

Detailed Description

This menu helps the user to select a date quickly.

This menu helps the user to select a date quicly. It offers various ways of selecting, e.g. with a KDatePicker or with words like "Tomorrow".

The available items are:

When supplying multiple items, separate each item with a bitwise OR.

Author:
Bram Schoenmakers <bram_s@softhome.net>

Definition at line 44 of file kdatepickerpopup.h.


Constructor & Destructor Documentation

KDatePickerPopup::KDatePickerPopup int  items = 1,
const QDate date = QDate::currentDate(),
QWidget parent = 0,
const char *  name = 0
 

A constructor for the KDatePickerPopup.

Parameters:
items List of all desirable items, separated with a bitwise OR.
date Initial date of datepicker-widget.
parent The object's parent.
name The object's name.

Definition at line 29 of file kdatepickerpopup.cpp.

References KDatePickerPopup().

Referenced by KDatePickerPopup().


Member Function Documentation

KDatePicker * KDatePickerPopup::datePicker  )  const
 

Returns:
A pointer to the private variable mDatePicker, an instance of KDatePicker.

Definition at line 81 of file kdatepickerpopup.cpp.

int KDatePickerPopup::items  )  const [inline]
 

Returns:
Returns the bitwise result of the active items in the popup.

Definition at line 78 of file kdatepickerpopup.h.

void KDatePickerPopup::dateChanged QDate   )  [signal]
 

This signal emits the new date (selected with datepicker or other menu-items).


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for libkdepim Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:46:29 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003