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 ()
void updateConfig ()
void changeEventDisplay (Event *, int)
void showDates (const QDate &start, const QDate &end)
void showEvents (const Event::List &)
void clearSelection ()
void editItem (QListViewItem *item, const QPoint &, int)
void editItem (QListViewItem *item)
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)
void setTodoModified (Todo *oldTodo, Todo *todo)

Signals

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

Public Methods

 KOTodoView (Calendar *cal, QWidget *parent=0, const char *name=0)
 ~KOTodoView ()
void setCalendar (Calendar *)
Incidence::List selectedIncidences ()
Todo::List selectedTodos ()
DateList selectedDates ()
int currentDateCount ()
void printPreview (CalPrinter *calPrinter, const QDate &fd, const QDate &td)
CalPrinter::PrintType printType ()
void setDocumentId (const QString &)
void saveLayout (KConfig *config, const QString &group) const
void restoreLayout (KConfig *config, const QString &group)
QPopupMenugetCategoryPopupMenu (KOTodoViewItem *todoItem)

Protected Slots

void processSelectionChange ()
void addQuickTodo ()

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 134 of file kotodoview.h.


Member Function Documentation

Incidence::List 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 588 of file kotodoview.cpp.

References KOTodoViewItem::todo().

Referenced by CalendarView::selectedIncidence().

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 146 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 149 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 624 of file kotodoview.cpp.

References CalPrinter::preview().

QPopupMenu * KOTodoView::getCategoryPopupMenu KOTodoViewItem   todoItem
 

Create a popup menu to set categories.

Definition at line 744 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 498 of file kotodoview.cpp.

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

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 583 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 610 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 615 of file kotodoview.cpp.

void KOTodoView::showEvents const Event::List &    [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 619 of file kotodoview.cpp.

void KOTodoView::clearSelection   [virtual, slot]
 

Clear selection.

The incidenceSelected signal is not emitted.

Reimplemented from KOrg::BaseView.

Definition at line 848 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 korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:33 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003