korganizer Library API Documentation

KOMonthView Class Reference

The class KOMonthView represents the monthly view in KOrganizer.KOMonthview represents the montly view in KOrganizer. More...

#include <komonthview.h>

Inheritance diagram for KOMonthView:

Inheritance graph
[legend]
Collaboration diagram for KOMonthView:

Collaboration graph
[legend]
List of all members.

Public Slots

virtual void updateView ()
virtual void updateConfig ()
virtual void showDates (const QDate &start, const QDate &end)
virtual void showIncidences (const Incidence::List &)
void changeIncidenceDisplay (Incidence *, int)
void changeIncidenceDisplayAdded (Incidence *)
void clearSelection ()
void showEventContextMenu (Incidence *, 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 selectedDates ()
virtual bool eventDurationHint (QDateTime &startDt, QDateTime &endDt, bool &allDay)
virtual void printPreview (CalPrinter *calPrinter, const QDate &, const QDate &)

Protected Slots

void processSelectionChange ()

Protected Member Functions

void resizeEvent (QResizeEvent *)
void viewChanged ()
void updateDayLabels ()
MonthViewCelllookupCellByDate (const QDate &date)

Detailed Description

The class KOMonthView represents the monthly view in KOrganizer.KOMonthview represents the montly view in KOrganizer.

It holds several instances of the class MonthViewCell.

See also:
KOBaseView, KODayListView, MonthViewCell

Definition at line 205 of file komonthview.h.


Member Function Documentation

int KOMonthView::maxDatesHint  )  [virtual]
 

Returns maximum number of days supported by the komonthview.

Implements KOEventView.

Definition at line 697 of file komonthview.cpp.

int KOMonthView::currentDateCount  )  [virtual]
 

Returns number of currently shown dates.

Implements KOrg::BaseView.

Definition at line 702 of file komonthview.cpp.

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

Returns the currently selected events.

Implements KOrg::BaseView.

Definition at line 707 of file komonthview.cpp.

References MonthViewCell::selectedIncidence().

DateList KOMonthView::selectedDates  )  [virtual]
 

Returns dates of the currently selected events.

Implements KOrg::BaseView.

Definition at line 719 of file komonthview.cpp.

References MonthViewCell::selectedIncidenceDate().

bool KOMonthView::eventDurationHint QDateTime startDt,
QDateTime endDt,
bool &  allDay
[virtual]
 

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

Return true if anything was changed

Reimplemented from KOrg::BaseView.

Definition at line 731 of file komonthview.cpp.

References MonthViewCell::date().

void KOMonthView::printPreview CalPrinter calPrinter,
const QDate fd,
const QDate td
[virtual]
 

Generate a print preview of this event view.

Parameters:
calPrinter Calendar printer object used for printing
fd from date
td to date

Reimplemented from KOrg::BaseView.

Definition at line 742 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 880 of file komonthview.cpp.

References KOrg::BaseView::calendar().

Referenced by showDates().

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 750 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 783 of file komonthview.cpp.

References updateView().

void KOMonthView::showIncidences const Incidence::List &   )  [virtual, slot]
 

Show given incidences.

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

Parameters:
eventList a list of events to show.

Implements KOrg::BaseView.

Definition at line 821 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 860 of file komonthview.cpp.

void KOMonthView::clearSelection  )  [virtual, slot]
 

Clear selection.

The incidenceSelected signal is not emitted.

Reimplemented from KOrg::BaseView.

Definition at line 956 of file komonthview.cpp.

MonthViewCell * KOMonthView::lookupCellByDate const QDate date  )  [protected]
 

Parameters:
date The date of the cell which should be returned.
Returns:
Pointer of monthcell with given date, otherwise 0

Definition at line 964 of file komonthview.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Dec 21 14:25:59 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003