• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

korganizer

KOEventView Class Reference

#include <koeventview.h>

Inheritance diagram for KOEventView:

Inheritance graph
[legend]

List of all members.


Detailed Description

KOEventView is the abstract base class from which all other calendar views for event data 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.

Abstract class from which all event views are derived.

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

Definition at line 56 of file koeventview.h.


Public Slots

void defaultAction (Incidence *)

Signals

void datesSelected (const DateList datelist)
void shiftedEvent (const QDate &olddate, const QDate &newdate)

Public Member Functions

KOEventPopupMenu * eventPopup ()
bool isEventView ()
 KOEventView (Calendar *cal, QWidget *parent=0)
virtual int maxDatesHint ()=0
QMenu * newEventPopup ()
virtual ~KOEventView ()

Protected Slots

void popupCopy ()
void popupCut ()
void popupDelete ()
void popupEdit ()
void popupShow ()
virtual void showNewEventPopup ()

Protected Attributes

Incidence * mCurrentIncidence

Constructor & Destructor Documentation

KOEventView::KOEventView ( Calendar *  cal,
QWidget *  parent = 0 
) [explicit]

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.

Definition at line 46 of file koeventview.cpp.

KOEventView::~KOEventView (  )  [virtual]

Destructor.

Views will do view-specific cleanups here.

Definition at line 53 of file koeventview.cpp.


Member Function Documentation

void KOEventView::datesSelected ( const DateList  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 KDateNavigator object so that it changes appropriately, and any other objects that need to be aware that the list of selected dates has changed.

Parameters:
datelist the new list of selected dates

void KOEventView::defaultAction ( Incidence *  incidence  )  [slot]

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

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

Definition at line 148 of file koeventview.cpp.

KOEventPopupMenu * KOEventView::eventPopup (  ) 

Construct a standard context menu for an event.

Definition at line 59 of file koeventview.cpp.

bool KOEventView::isEventView (  )  [inline]

This view is an view for displaying events.

Definition at line 90 of file koeventview.h.

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, KOTimelineView, and KOrg::MultiAgendaView.

QMenu * KOEventView::newEventPopup (  ) 

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

Definition at line 83 of file koeventview.cpp.

void KOEventView::popupCopy (  )  [protected, slot]

Definition at line 128 of file koeventview.cpp.

void KOEventView::popupCut (  )  [protected, slot]

Definition at line 121 of file koeventview.cpp.

void KOEventView::popupDelete (  )  [protected, slot]

Definition at line 114 of file koeventview.cpp.

void KOEventView::popupEdit (  )  [protected, slot]

Definition at line 107 of file koeventview.cpp.

void KOEventView::popupShow (  )  [protected, slot]

Definition at line 100 of file koeventview.cpp.

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).

void KOEventView::showNewEventPopup (  )  [protected, virtual, slot]

Definition at line 135 of file koeventview.cpp.


Member Data Documentation

Incidence* KOEventView::mCurrentIncidence [protected]

Definition at line 128 of file koeventview.h.


The documentation for this class was generated from the following files:
  • koeventview.h
  • koeventview.cpp

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal