kspread

KSpread::InsertCalendarDialog Class Reference

List of all members.

Detailed Description

Definition at line 38 of file kspread_insertcalendardialog.h.


Public Slots

void showStartDatePicker ()
void showEndDatePicker ()
void setStartDate (QDate)
void setEndDate (QDate)

Signals

void insertCalendar (const QDate &from, const QDate &to)

Public Member Functions

 InsertCalendarDialog (QWidget *parent=0, const char *name=0)
virtual ~InsertCalendarDialog ()
QDate startDate () const
QDate endDate () const

Protected Slots

void datePickerDeleted ()
virtual void accept ()
virtual void reject ()

Protected Member Functions

bool buildDatePickerFrame ()

Constructor & Destructor Documentation

KSpread::InsertCalendarDialog::InsertCalendarDialog ( QWidget *  parent = 0,
const char *  name = 0 
)

Constructor, initializes functionality.

The dates in the dialog initialize to a complete calendar for the current month.

Definition at line 36 of file kspread_insertcalendardialog.cc.

KSpread::InsertCalendarDialog::~InsertCalendarDialog (  )  [virtual]

Virtual destructor.

Definition at line 58 of file kspread_insertcalendardialog.cc.


Member Function Documentation

bool KSpread::InsertCalendarDialog::buildDatePickerFrame (  )  [protected]

Creates a KDatePicker frame that is not connected to any date widget.

Normally showStartDatePicker of showEndDatePicker use this method to build a generally usable date picker widget and connect it to the appropriate KDateWidget of the dialog.

DatePickerDeleted is already connected!

Definition at line 62 of file kspread_insertcalendardialog.cc.

void KSpread::InsertCalendarDialog::datePickerDeleted (  )  [protected, slot]

Sets the currently active KDatePicker frame to NULL.

It's expected that the date picker frame is deleted.

See also:
m_datePicker

Definition at line 85 of file kspread_insertcalendardialog.cc.

void KSpread::InsertCalendarDialog::accept (  )  [protected, virtual, slot]

This slot is reimplemented from QDialog and is connected to the insert button.

It also emits a insertCalendar signal.

The dialog is closed (not deleted) when this slot is called.

See also:
insertCalendar, reject, QDialog::done

Definition at line 91 of file kspread_insertcalendardialog.cc.

void KSpread::InsertCalendarDialog::reject (  )  [protected, virtual, slot]

This slot is reimplemented from QDialog and is connected to the cancel button.

The dialog is closed (not deleted) when this slot is called.

See also:
accept, QDialog::done

Definition at line 100 of file kspread_insertcalendardialog.cc.

void KSpread::InsertCalendarDialog::showStartDatePicker (  )  [slot]

Shows a KDatePicker widget to select the start date.

This slot is activated by the select date button.

Definition at line 108 of file kspread_insertcalendardialog.cc.

void KSpread::InsertCalendarDialog::showEndDatePicker (  )  [slot]

Shows a KDatePicker widget to select the end date.

This slot is activated by the select date button.

Definition at line 118 of file kspread_insertcalendardialog.cc.

void KSpread::InsertCalendarDialog::setStartDate ( QDate   )  [slot]

Slot for setting the start date in the KDateWidget.

Normally this slot is activated by a KDatePicker widget.

Definition at line 128 of file kspread_insertcalendardialog.cc.

void KSpread::InsertCalendarDialog::setEndDate ( QDate   )  [slot]

Slot for setting the end date in the KDateWidget.

Normally this slot is activated by a KDatePicker widget.

Definition at line 133 of file kspread_insertcalendardialog.cc.

QDate KSpread::InsertCalendarDialog::startDate (  )  const

Returns:
the selected start date.

Definition at line 138 of file kspread_insertcalendardialog.cc.

QDate KSpread::InsertCalendarDialog::endDate (  )  const

Returns:
the selected end date.

Definition at line 143 of file kspread_insertcalendardialog.cc.

void KSpread::InsertCalendarDialog::insertCalendar ( const QDate &  from,
const QDate &  to 
) [signal]

This signal is emitted when the dialog is accepted - that is, when the Insert button is clicked.

This signal is meant to tell the insert calendar plugin to actually insert the calendar with the selected dates.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys