KDE PIM / Developers / API Docs / korganizer

KOEventView Class Reference

KOEventView is the abstract base class from which all other calendar views for event data are derived.Abstract class from which all event views are derived. More...

#include <koeventview.h>

Inherits KOrg::BaseView.

Inherited by KOAgendaView, KOListView, KOMonthView, and KOTimeSpanView.

List of all members.

Public Slots

Signals

Public Member Functions

Protected Slots

Protected Attributes


Detailed Description

KOEventView is the abstract base class from which all other calendar views for event data are derived.Abstract class from which all event views are derived.

It provides methods for displaying appointments and events on one or more days. The actual number of days that a view actually supports is not defined by this abstract class; that is up to the classes that inherit from it. It also provides methods for updating the display, retrieving the currently selected event (or events), and the like.

Author:
Preston Brown <pbrown@kde.org>
See also:
KOListView, KOAgendaView, KOWeekView, KOMonthView


Constructor & Destructor Documentation

KOEventView::KOEventView Calendar *  cal,
QWidget *  parent = 0,
const char *  name = 0
 

Constructs a view.

Parameters:
cal is a pointer to the calendar object from which events will be retrieved for display.
parent is the parent QWidget.
name is the view name.

KOEventView::~KOEventView  )  [virtual]
 

Destructor.

Views will do view-specific cleanups here.


Member Function Documentation

virtual int KOEventView::maxDatesHint  )  [pure virtual]
 

provides a hint back to the caller on the maximum number of dates that the view supports.

A return value of 0 means no maximum.

Implemented in KOAgendaView, KOListView, and KOMonthView.

KOEventPopupMenu * KOEventView::eventPopup  ) 
 

Construct a standard context menu for an event.

QPopupMenu * KOEventView::newEventPopup  ) 
 

Construct a standard context that allows to create a new event.

bool KOEventView::isEventView  )  [inline, virtual]
 

This view is an view for displaying events.

Reimplemented from KOrg::BaseView.

void KOEventView::defaultAction Incidence *   )  [slot]
 

Perform the default action for an incidence, e.g.

open the event editor, when double-clicking an event in the agenda view.

void KOEventView::datesSelected const   DateList  )  [signal]
 

when the view changes the dates that are selected in one way or another, this signal is emitted.

It should be connected back to the

See also:
KDateNavigator object so that it changes appropriately, and any other objects that need to be aware that the list of selected dates has changed.

void KOEventView::shiftedEvent const QDate &  olddate,
const QDate &  newdate
[signal]
 

Emitted when an event is moved using the mouse in an agenda view (week / month).


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