korganizer Library API Documentation

KOTodoView Class Reference

This class provides a multi-column list view of todo events. multi-column list view of todo events. More...

#include <kotodoview.h>

Inheritance diagram for KOTodoView:

KOrg::BaseView QWidget List of all members.

Public Slots

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

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

void changeEventDisplay (Event *, int)
 Updates the current display to reflect the changes to one particular event.

void showDates (const QDate &start, const QDate &end)
 Show incidences for the given date range.

void showEvents (QPtrList< Event > eventList)
 Show given events.

void clearSelection ()
 Clear selection.

void editItem (QListViewItem *item, const QPoint &, int)
void showItem (QListViewItem *item, const QPoint &, int)
void popupMenu (QListViewItem *item, const QPoint &, int)
void newTodo ()
void newSubTodo ()
void showTodo ()
void editTodo ()
void deleteTodo ()
void setNewPriority (int)
void setNewPercentage (int)
void changedCategories (int)
void purgeCompleted ()
void itemClicked (QListViewItem *)
void itemStateChanged (QListViewItem *)
void modified (bool)

Signals

void newTodoSignal ()
void newSubTodoSignal (Todo *)
void showTodoSignal (Todo *)
void editTodoSignal (Todo *)
void deleteTodoSignal (Todo *)
void todoModifiedSignal (Todo *, int)
void isModified (bool)
void purgeCompletedSignal ()

Public Member Functions

 KOTodoView (Calendar *, QWidget *parent=0, const char *name=0)
QPtrList< Incidence > selectedIncidences ()
QPtrList< Todo > selectedTodos ()
DateList selectedDates ()
int currentDateCount ()
 Return number of shown dates.

void printPreview (CalPrinter *calPrinter, const QDate &fd, const QDate &td)
 Generate a print preview of this event view.

void setDocumentId (const QString &)
void saveLayout (KConfig *config, const QString &group) const
void restoreLayout (KConfig *config, const QString &group)
QPopupMenugetCategoryPopupMenu (KOTodoViewItem *todoItem)
 Create a popup menu to set categories.


Protected Slots

void processSelectionChange ()
void setTodoModified ()

Friends

class KOTodoViewItem

Detailed Description

This class provides a multi-column list view of todo events. multi-column list view of todo events.

Author:
Cornelius Schumacher <schumacher@kde.org>

Definition at line 91 of file kotodoview.h.


Member Function Documentation

QPtrList< Incidence > KOTodoView::selectedIncidences  )  [virtual]
 

Returns:
a list of selected events. Most views can probably only select a single event at a time, but some may be able to select more than one.

Implements KOrg::BaseView.

Definition at line 454 of file kotodoview.cpp.

References QPtrList::append(), and KOTodoViewItem::todo().

DateList KOTodoView::selectedDates  )  [inline, virtual]
 

Returns:
a list of the dates of selected events. Most views can probably only select a single event at a time, but some may be able to select more than one.

Implements KOrg::BaseView.

Definition at line 101 of file kotodoview.h.

int KOTodoView::currentDateCount  )  [inline, virtual]
 

Return number of shown dates.

TodoView does not show dates,

Implements KOrg::BaseView.

Definition at line 106 of file kotodoview.h.

void KOTodoView::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 490 of file kotodoview.cpp.

References CalPrinter::preview().

QPopupMenu * KOTodoView::getCategoryPopupMenu KOTodoViewItem todoItem  ) 
 

Create a popup menu to set categories.

Definition at line 587 of file kotodoview.cpp.

References QPopupMenu::insertItem(), QPopupMenu::setCheckable(), QPopupMenu::setItemChecked(), and KOTodoViewItem::todo().

void KOTodoView::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 364 of file kotodoview.cpp.

References KOrg::BaseView::calendar(), QMap< Todo *, KOTodoViewItem * >::clear(), QMap< Todo *, KOTodoViewItem * >::contains(), QPtrList::first(), and QPtrList::next().

Referenced by changeEventDisplay(), CalendarView::changeEventDisplay(), and CalendarView::updateTodoViews().

void KOTodoView::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 449 of file kotodoview.cpp.

void KOTodoView::changeEventDisplay Event *  ,
int 
[virtual, slot]
 

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

Implements KOrg::BaseView.

Definition at line 476 of file kotodoview.cpp.

References updateView().

void KOTodoView::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 481 of file kotodoview.cpp.

void KOTodoView::showEvents QPtrList< Event >  eventList  )  [virtual, slot]
 

Show given events.

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 485 of file kotodoview.cpp.

void KOTodoView::clearSelection  )  [virtual, slot]
 

Clear selection.

The incidenceSelected signal is not emitted.

Reimplemented from KOrg::BaseView.

Definition at line 697 of file kotodoview.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:32 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001