• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

libkdepim

KPIM::KDatePickerPopup

KPIM::KDatePickerPopup Class Reference

#include <kdatepickerpopup.h>

Inheritance diagram for KPIM::KDatePickerPopup:

Inheritance graph
[legend]

List of all members.


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:

  • NoDate: A menu-item with "No Date". If chosen, the datepicker will emit a null QDate.
  • DatePicker: Show a KDatePicker-widget.
  • Words: Show items like "Today", "Tomorrow" or "Next Week".
When supplying multiple items, separate each item with a bitwise OR.

Author:
Bram Schoenmakers <bram_s@softhome.net>

Definition at line 50 of file kdatepickerpopup.h.


Public Types

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

Signals

void dateChanged (const QDate &date)

Public Member Functions

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

Protected Slots

void slotDateChanged (const QDate &date)
void slotNextMonth ()
void slotNextWeek ()
void slotNoDate ()
void slotToday ()
void slotTomorrow ()

Member Enumeration Documentation

enum KPIM::KDatePickerPopup::ItemFlag

Enumerator:
NoDate 
DatePicker 
Words 

Definition at line 55 of file kdatepickerpopup.h.


Constructor & Destructor Documentation

KDatePickerPopup::KDatePickerPopup ( Items  items = DatePicker,
const QDate &  date = QDate::currentDate(),
QWidget *  parent = 0 
) [explicit]

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 62 of file kdatepickerpopup.cpp.


Member Function Documentation

void KPIM::KDatePickerPopup::dateChanged ( const QDate &  date  )  [signal]

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

KDatePicker * KDatePickerPopup::datePicker (  )  const

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

Definition at line 111 of file kdatepickerpopup.cpp.

int KPIM::KDatePickerPopup::items (  )  const [inline]

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

Definition at line 91 of file kdatepickerpopup.h.

void KDatePickerPopup::setDate ( const QDate &  date  ) 

Definition at line 116 of file kdatepickerpopup.cpp.

void KDatePickerPopup::slotDateChanged ( const QDate &  date  )  [protected, slot]

Definition at line 129 of file kdatepickerpopup.cpp.

void KDatePickerPopup::slotNextMonth (  )  [protected, slot]

Definition at line 155 of file kdatepickerpopup.cpp.

void KDatePickerPopup::slotNextWeek (  )  [protected, slot]

Definition at line 150 of file kdatepickerpopup.cpp.

void KDatePickerPopup::slotNoDate (  )  [protected, slot]

Definition at line 145 of file kdatepickerpopup.cpp.

void KDatePickerPopup::slotToday (  )  [protected, slot]

Definition at line 135 of file kdatepickerpopup.cpp.

void KDatePickerPopup::slotTomorrow (  )  [protected, slot]

Definition at line 140 of file kdatepickerpopup.cpp.


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

libkdepim

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
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