korganizer
KOEventView Class Reference
KOEventView is the abstract base class from which all other calendar views for event data are derived. More...
#include <koeventview.h>

Public Slots | |
| void | defaultAction (const Akonadi::Item &incidence) |
| void | focusChanged (QWidget *, QWidget *) |
Signals | |
| void | datesSelected (const DateList datelist) |
| void | shiftedEvent (const QDate &olddate, const QDate &ewdate) |
Public Member Functions | |
| KOEventView (QWidget *parent=0) | |
| virtual | ~KOEventView () |
| KOEventPopupMenu * | eventPopup () |
| bool | isEventView () |
| virtual int | maxDatesHint ()=0 |
| QMenu * | newEventPopup () |
| bool | processKeyEvent (QKeyEvent *) |
| void | setTypeAheadReceiver (QObject *o) |
| int | showMoveRecurDialog (const Akonadi::Item &inc, const QDate &date) |
| bool | supportsDateNavigation () const |
Static Public Member Functions | |
| static bool | usesCompletedTodoPixmap (const Akonadi::Item &todo, const QDate &date) |
Protected Slots | |
| void | popupCopy () |
| void | popupCut () |
| void | popupDelete () |
| void | popupEdit () |
| void | popupShow () |
| virtual void | showNewEventPopup () |
Protected Attributes | |
| Akonadi::Item | mCurrentIncidence |
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.
- See also:
- KOListView, KOAgendaView, KOMonthView
Definition at line 57 of file koeventview.h.
Constructor & Destructor Documentation
| KOEventView::KOEventView | ( | 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 50 of file koeventview.cpp.
| KOEventView::~KOEventView | ( | ) | [virtual] |
Destructor.
Views will do view-specific cleanups here.
Definition at line 65 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 | ( | const Akonadi::Item & | incidence | ) | [slot] |
Perform the default action for an incidence, e.g.
open the event editor, when double-clicking an event in the agenda view.
| KOEventPopupMenu * KOEventView::eventPopup | ( | ) |
Construct a standard context menu for an event.
Definition at line 71 of file koeventview.cpp.
Definition at line 306 of file koeventview.cpp.
| bool KOEventView::isEventView | ( | ) | [inline] |
This view is a view for displaying events.
Definition at line 91 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.
| QMenu * KOEventView::newEventPopup | ( | ) |
Construct a standard context that allows to create a new event.
Definition at line 101 of file koeventview.cpp.
| void KOEventView::popupCopy | ( | ) | [protected, slot] |
Definition at line 146 of file koeventview.cpp.
| void KOEventView::popupCut | ( | ) | [protected, slot] |
Definition at line 139 of file koeventview.cpp.
| void KOEventView::popupDelete | ( | ) | [protected, slot] |
Definition at line 132 of file koeventview.cpp.
| void KOEventView::popupEdit | ( | ) | [protected, slot] |
Definition at line 125 of file koeventview.cpp.
| void KOEventView::popupShow | ( | ) | [protected, slot] |
Definition at line 118 of file koeventview.cpp.
| bool KOEventView::processKeyEvent | ( | QKeyEvent * | ke | ) |
Handles key events, opens the new event dialog when enter is pressed, activates type ahead.
Definition at line 222 of file koeventview.cpp.
| void KOEventView::setTypeAheadReceiver | ( | QObject * | o | ) |
Definition at line 301 of file koeventview.cpp.
Emitted when an event is moved using the mouse in an agenda view (week / month).
| int KOEventView::showMoveRecurDialog | ( | const Akonadi::Item & | inc, | |
| const QDate & | date | |||
| ) |
| void KOEventView::showNewEventPopup | ( | ) | [protected, virtual, slot] |
Definition at line 153 of file koeventview.cpp.
| bool KOEventView::supportsDateNavigation | ( | ) | const [inline] |
Definition at line 119 of file koeventview.h.
| static bool KOEventView::usesCompletedTodoPixmap | ( | const Akonadi::Item & | todo, | |
| const QDate & | date | |||
| ) | [static] |
Member Data Documentation
Akonadi::Item KOEventView::mCurrentIncidence [protected] |
Definition at line 156 of file koeventview.h.
The documentation for this class was generated from the following files:
KDE 4.5 API Reference