kspread

KSpread::CalendarToolWidget Class Reference

The CalendarToolWidget class implements a dialog window that allows to define how details about the calendar that should be inserted. More...

#include <CalendarToolWidget.h>

Inheritance diagram for KSpread::CalendarToolWidget:

List of all members.

Public Slots

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

Signals

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

Public Member Functions

 CalendarToolWidget (QWidget *parent=0)
virtual ~CalendarToolWidget ()
QDate endDate () const
QDate startDate () const

Protected Slots

void datePickerDeleted ()
void emitInsertCalendar ()

Protected Member Functions

bool buildDatePickerFrame ()

Detailed Description

The CalendarToolWidget class implements a dialog window that allows to define how details about the calendar that should be inserted.

Definition at line 39 of file CalendarToolWidget.h.


Constructor & Destructor Documentation

KSpread::CalendarToolWidget::CalendarToolWidget ( QWidget parent = 0  ) 

Constructor, initializes functionality.

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

Definition at line 35 of file CalendarToolWidget.cpp.

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

Virtual destructor.

Definition at line 60 of file CalendarToolWidget.cpp.


Member Function Documentation

bool KSpread::CalendarToolWidget::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 64 of file CalendarToolWidget.cpp.

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

Sets the currently active KDatePicker frame to 0.

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

See also:
m_datePicker

Definition at line 87 of file CalendarToolWidget.cpp.

void KSpread::CalendarToolWidget::emitInsertCalendar (  )  [protected, slot]

Emits the insertCalendar() signal with the chosen start and end date.

Definition at line 93 of file CalendarToolWidget.cpp.

QDate KSpread::CalendarToolWidget::endDate (  )  const
Returns:
the selected end date.

Definition at line 135 of file CalendarToolWidget.cpp.

void KSpread::CalendarToolWidget::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.

void KSpread::CalendarToolWidget::setEndDate ( const QDate date  )  [slot]

Slot for setting the end date in the KDateWidget.

Normally this slot is activated by a KDatePicker widget.

Definition at line 125 of file CalendarToolWidget.cpp.

void KSpread::CalendarToolWidget::setStartDate ( const QDate date  )  [slot]

Slot for setting the start date in the KDateWidget.

Normally this slot is activated by a KDatePicker widget.

Definition at line 120 of file CalendarToolWidget.cpp.

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

Shows a KDatePicker widget to select the end date.

This slot is activated by the select date button.

Definition at line 110 of file CalendarToolWidget.cpp.

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

Shows a KDatePicker widget to select the start date.

This slot is activated by the select date button.

Definition at line 100 of file CalendarToolWidget.cpp.

QDate KSpread::CalendarToolWidget::startDate (  )  const
Returns:
the selected start date.

Definition at line 130 of file CalendarToolWidget.cpp.


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