korganizer

KOMonthView Class Reference

#include <komonthview.h>

Inheritance diagram for KOMonthView:

KOEventView KOrg::BaseView

List of all members.


Detailed Description

The class KOMonthView represents the monthly view in KOrganizer.

It holds several instances of the class MonthViewCell.

KOMonthview represents the montly view in KOrganizer.

See also:
KOBaseView, KODayListView, MonthViewCell

Definition at line 244 of file komonthview.h.


Public Slots

virtual void updateView ()
virtual void updateConfig ()
virtual void showDates (const QDate &start, const QDate &end)
virtual void showIncidences (const Incidence::List &incidenceList, const QDate &date)
void changeIncidenceDisplay (Incidence *, int)
void changeIncidenceDisplayAdded (Incidence *, MonthViewCell::CreateItemVisitor &)
void clearSelection ()
void showEventContextMenu (Calendar *, Incidence *, const QDate &)
void showGeneralContextMenu ()
void setSelectedCell (MonthViewCell *)

Public Member Functions

 KOMonthView (Calendar *cal, QWidget *parent=0, const char *name=0)
virtual int maxDatesHint ()
virtual int currentDateCount ()
virtual Incidence::List selectedIncidences ()
virtual DateList selectedIncidenceDates ()
virtual QDateTime selectionStart ()
virtual QDateTime selectionEnd ()
virtual bool eventDurationHint (QDateTime &startDt, QDateTime &endDt, bool &allDay)

Protected Slots

void processSelectionChange ()

Protected Member Functions

void resizeEvent (QResizeEvent *)
void viewChanged ()
void updateDayLabels ()

Member Function Documentation

int KOMonthView::maxDatesHint (  )  [virtual]

Returns maximum number of days supported by the komonthview.

Implements KOEventView.

Definition at line 929 of file komonthview.cpp.

int KOMonthView::currentDateCount (  )  [virtual]

Returns number of currently shown dates.

Implements KOrg::BaseView.

Definition at line 934 of file komonthview.cpp.

Incidence::List KOMonthView::selectedIncidences (  )  [virtual]

Returns the currently selected events.

Implements KOrg::BaseView.

Definition at line 939 of file komonthview.cpp.

DateList KOMonthView::selectedIncidenceDates (  )  [virtual]

Returns dates of the currently selected events.

Implements KOrg::BaseView.

Definition at line 951 of file komonthview.cpp.

QDateTime KOMonthView::selectionStart (  )  [virtual]

Returns the start of the selection, or an invalid QDateTime if there is no selection or the view doesn't support selecting cells.

Reimplemented from KOrg::BaseView.

Definition at line 1057 of file komonthview.cpp.

QDateTime KOMonthView::selectionEnd (  )  [virtual]

Returns the end of the selection, or an invalid QDateTime if there is no selection or the view doesn't support selecting cells.

Reimplemented from KOrg::BaseView.

Definition at line 1066 of file komonthview.cpp.

bool KOMonthView::eventDurationHint ( QDateTime &  ,
QDateTime &  ,
bool &   
) [virtual]

Set the default start/end date/time for new events.

Return true if anything was changed

Reimplemented from KOrg::BaseView.

Definition at line 963 of file komonthview.cpp.

void KOMonthView::updateView (  )  [virtual, slot]

Updates the current display to reflect changes that may have happened in the calendar since the last display refresh.

Implements KOrg::BaseView.

Definition at line 1185 of file komonthview.cpp.

void KOMonthView::updateConfig (  )  [virtual, slot]

Re-reads the KOrganizer configuration and picks up relevant changes which are applicable to the view.

Reimplemented from KOrg::BaseView.

Definition at line 974 of file komonthview.cpp.

void KOMonthView::showDates ( const QDate &  start,
const QDate &  end 
) [virtual, slot]

Show incidences for the given date range.

The date range actually shown may be different from the requested range, depending on the particular requirements of the view.

Parameters:
start Start of date range.
end End of date range.

Implements KOrg::BaseView.

Definition at line 1009 of file komonthview.cpp.

void KOMonthView::showIncidences ( const Incidence::List incidenceList,
const QDate &  date 
) [virtual, slot]

Show given incidences.

Depending on the actual view it might not be possible to show all given events.

Parameters:
incidenceList a list of incidences to show.
date is the QDate on which the incidences are being shown.

Implements KOrg::BaseView.

Definition at line 1072 of file komonthview.cpp.

void KOMonthView::changeIncidenceDisplay ( Incidence ,
int   
) [virtual, slot]

Updates the current display to reflect the changes to one particular incidence.

Implements KOrg::BaseView.

Definition at line 1164 of file komonthview.cpp.

void KOMonthView::clearSelection (  )  [virtual, slot]

Clear selection.

The incidenceSelected signal is not emitted.

Reimplemented from KOrg::BaseView.

Definition at line 1262 of file komonthview.cpp.


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