libtdepim

#include <kdatepickerpopup.h>

Inherits TQPopupMenu.

Public Types

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

Signals

void dateChanged (TQDate)
 

Public Member Functions

 KDatePickerPopup (int items=DatePicker, const TQDate &date=TQDate::currentDate(), TQWidget *parent=0, const char *name=0)
 
KDatePicker * datePicker () const
 
void setDate (const TQDate &date)
 
int items () const
 

Protected Slots

void slotDateChanged (TQDate)
 
void slotToday ()
 
void slotTomorrow ()
 
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:

  • NoDate: A menu-item with "No Date". If choosen, the datepicker will emit a null TQDate.
  • 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_.nosp@m.s@so.nosp@m.fthom.nosp@m.e.ne.nosp@m.t

Definition at line 45 of file kdatepickerpopup.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 50 of file kdatepickerpopup.h.

Constructor & Destructor Documentation

◆ KDatePickerPopup()

KDatePickerPopup::KDatePickerPopup ( int  items = DatePicker,
const TQDate &  date = TQDate::currentDate(),
TQWidget *  parent = 0,
const char *  name = 0 
)

A constructor for the KDatePickerPopup.

Parameters
itemsList of all desirable items, separated with a bitwise OR.
dateInitial date of datepicker-widget.
parentThe object's parent.
nameThe object's name.

Definition at line 29 of file kdatepickerpopup.cpp.

Member Function Documentation

◆ dateChanged

void KDatePickerPopup::dateChanged ( TQDate  )
signal

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

◆ datePicker()

KDatePicker * KDatePickerPopup::datePicker ( ) const
Returns
A pointer to the private variable mDatePicker, an instance of KDatePicker.

Definition at line 74 of file kdatepickerpopup.cpp.

◆ items()

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.

◆ setDate()

void KDatePickerPopup::setDate ( const TQDate &  date)

Definition at line 79 of file kdatepickerpopup.cpp.

◆ slotDateChanged

void KDatePickerPopup::slotDateChanged ( TQDate  date)
protectedslot

Definition at line 92 of file kdatepickerpopup.cpp.

◆ slotNextMonth

void KDatePickerPopup::slotNextMonth ( )
protectedslot

Definition at line 118 of file kdatepickerpopup.cpp.

◆ slotNextWeek

void KDatePickerPopup::slotNextWeek ( )
protectedslot

Definition at line 113 of file kdatepickerpopup.cpp.

◆ slotNoDate

void KDatePickerPopup::slotNoDate ( )
protectedslot

Definition at line 108 of file kdatepickerpopup.cpp.

◆ slotToday

void KDatePickerPopup::slotToday ( )
protectedslot

Definition at line 98 of file kdatepickerpopup.cpp.

◆ slotTomorrow

void KDatePickerPopup::slotTomorrow ( )
protectedslot

Definition at line 103 of file kdatepickerpopup.cpp.


The documentation for this class was generated from the following files: