korganizer

#include <kotodoview.h>

Inheritance diagram for KOTodoView:
KOrg::BaseView

Public Types

enum  {
  eSummaryColumn = 0 , eRecurColumn = 1 , ePriorityColumn = 2 , ePercentColumn = 3 ,
  eDueDateColumn = 4 , eCategoriesColumn = 5 , eFolderColumn = 6
}
 
enum  {
  ePopupEdit = 1300 , ePopupDelete = 1301 , ePopupMoveTo = 1302 , ePopupCopyTo = 1303 ,
  ePopupUnSubTodo = 1304 , ePopupUnAllSubTodo = 1305
}
 

Public Slots

void updateView ()
 
void updateConfig ()
 
void changeIncidenceDisplay (Incidence *, int)
 
void showDates (const TQDate &start, const TQDate &end)
 
void showIncidences (const Incidence::List &incidenceList, const TQDate &date)
 
void clearSelection ()
 
void editItem (TQListViewItem *item, const TQPoint &, int)
 
void editItem (TQListViewItem *item)
 
void showItem (TQListViewItem *item, const TQPoint &, int)
 
void showItem (TQListViewItem *item)
 
void popupMenu (TQListViewItem *item, const TQPoint &, int)
 
void newTodo ()
 
void newSubTodo ()
 
void showTodo ()
 
void editTodo ()
 
void printTodo ()
 
void deleteTodo ()
 
void setNewPercentage (KOTodoViewItem *item, int percentage)
 
void setNewPriority (int)
 
void setNewPercentage (int)
 
void setNewDate (TQDate)
 
void copyTodoToDate (TQDate)
 
void changedCategories (int)
 
void purgeCompleted ()
 
void itemStateChanged (TQListViewItem *)
 
void setNewPercentageDelayed (KOTodoViewItem *item, int percentage)
 
void processDelayedNewPercentage ()
 
- Public Slots inherited from KOrg::BaseView
virtual void showDates (const TQDate &start, const TQDate &end)=0
 
virtual void showIncidences (const Incidence::List &incidenceList, const TQDate &date)=0
 
virtual void updateView ()=0
 
virtual void dayPassed (const TQDate &)
 
virtual void flushView ()
 
virtual void changeIncidenceDisplay (Incidence *, int)=0
 
virtual void updateConfig ()
 
virtual void clearSelection ()
 
virtual bool eventDurationHint (TQDateTime &, TQDateTime &, bool &)
 

Signals

void unSubTodoSignal ()
 
void unAllSubTodoSignal ()
 
void purgeCompletedSignal ()
 
void configChanged ()
 
- Signals inherited from KOrg::BaseView
void incidenceSelected (Incidence *, const TQDate &)
 
void showIncidenceSignal (Incidence *, const TQDate &)
 
void editIncidenceSignal (Incidence *, const TQDate &)
 
void deleteIncidenceSignal (Incidence *)
 
void cutIncidenceSignal (Incidence *)
 
void copyIncidenceSignal (Incidence *)
 
void pasteIncidenceSignal ()
 
void toggleAlarmSignal (Incidence *)
 
void dissociateOccurrenceSignal (Incidence *, const TQDate &)
 
void dissociateFutureOccurrenceSignal (Incidence *, const TQDate &)
 
void startMultiModify (const TQString &)
 
void endMultiModify ()
 
void newEventSignal (ResourceCalendar *res, const TQString &subResource)
 
void newEventSignal (ResourceCalendar *res, const TQString &subResource, const TQDate &)
 
void newEventSignal (ResourceCalendar *res, const TQString &subResource, const TQDateTime &)
 
void newEventSignal (ResourceCalendar *res, const TQString &subResource, const TQDateTime &, const TQDateTime &)
 
void newTodoSignal (ResourceCalendar *res, const TQString &subResource, const TQDate &)
 
void newSubTodoSignal (Todo *)
 
void newJournalSignal (ResourceCalendar *res, const TQString &subResource, const TQDate &)
 

Public Member Functions

 KOTodoView (Calendar *cal, TQWidget *parent=0, const char *name=0)
 
void setCalendar (Calendar *)
 
Incidence::List selectedIncidences ()
 
Todo::List selectedTodos ()
 
DateList selectedIncidenceDates ()
 
int currentDateCount ()
 
CalPrinterBase::PrintType printType ()
 
void setDocumentId (const TQString &)
 
void saveLayout (TDEConfig *config, const TQString &group) const
 
void restoreLayout (TDEConfig *config, const TQString &group)
 
TQPopupMenu * getCategoryPopupMenu (KOTodoViewItem *todoItem)
 
void setIncidenceChanger (IncidenceChangerBase *changer)
 
- Public Member Functions inherited from KOrg::BaseView
 BaseView (Calendar *cal, TQWidget *parent=0, const char *name=0)
 
virtual ~BaseView ()
 
void setReadOnly (bool readonly)
 
bool readOnly ()
 
virtual Calendarcalendar ()
 
virtual void setResource (ResourceCalendar *res, const TQString &subResource)
 
ResourceCalendarresourceCalendar ()
 
TQString subResourceCalendar () const
 
virtual TQDateTime selectionStart ()
 
virtual TQDateTime selectionEnd ()
 
virtual bool isEventView ()
 
virtual bool supportsDateNavigation () const
 

Protected Slots

void processSelectionChange ()
 
void addQuickTodo ()
 
void removeTodoItems ()
 

Friends

class KOTodoViewItem
 

Additional Inherited Members

- Protected Attributes inherited from KOrg::BaseView
IncidenceChangerBase * mChanger
 

Detailed Description

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

multi-column list view of todo events.

Author
Cornelius Schumacher schum.nosp@m.ache.nosp@m.r@kde.nosp@m..org

Definition at line 113 of file kotodoview.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 230 of file kotodoview.h.

◆ anonymous enum

anonymous enum

Definition at line 239 of file kotodoview.h.

Constructor & Destructor Documentation

◆ KOTodoView()

KOTodoView::KOTodoView ( Calendar cal,
TQWidget *  parent = 0,
const char *  name = 0 
)

Definition at line 363 of file kotodoview.cpp.

◆ ~KOTodoView()

KOTodoView::~KOTodoView ( )

Definition at line 522 of file kotodoview.cpp.

Member Function Documentation

◆ addQuickTodo

void KOTodoView::addQuickTodo ( )
protectedslot

Definition at line 1120 of file kotodoview.cpp.

◆ changedCategories

void KOTodoView::changedCategories ( int  index)
slot

Definition at line 1023 of file kotodoview.cpp.

◆ changeIncidenceDisplay

void KOTodoView::changeIncidenceDisplay ( Incidence incidence,
int  action 
)
slot

Definition at line 684 of file kotodoview.cpp.

◆ clearSelection

void KOTodoView::clearSelection ( )
slot

Definition at line 1110 of file kotodoview.cpp.

◆ copyTodoToDate

void KOTodoView::copyTodoToDate ( TQDate  date)
slot

Definition at line 977 of file kotodoview.cpp.

◆ currentDateCount()

int KOTodoView::currentDateCount ( )
inlinevirtual

Return number of shown dates.

TodoView does not show dates,

Implements KOrg::BaseView.

Definition at line 129 of file kotodoview.h.

◆ deleteTodo

void KOTodoView::deleteTodo ( )
slot

Definition at line 877 of file kotodoview.cpp.

◆ editItem [1/2]

void KOTodoView::editItem ( TQListViewItem *  item)
slot

Definition at line 758 of file kotodoview.cpp.

◆ editItem [2/2]

void KOTodoView::editItem ( TQListViewItem *  item,
const TQPoint &  ,
int   
)
slot

Definition at line 765 of file kotodoview.cpp.

◆ editTodo

void KOTodoView::editTodo ( )
slot

Definition at line 845 of file kotodoview.cpp.

◆ getCategoryPopupMenu()

TQPopupMenu * KOTodoView::getCategoryPopupMenu ( KOTodoViewItem todoItem)

Create a popup menu to set categories.

Definition at line 1002 of file kotodoview.cpp.

◆ itemStateChanged

void KOTodoView::itemStateChanged ( TQListViewItem *  item)
slot

Definition at line 1055 of file kotodoview.cpp.

◆ newSubTodo

void KOTodoView::newSubTodo ( )
slot

Definition at line 838 of file kotodoview.cpp.

◆ newTodo

void KOTodoView::newTodo ( )
slot

Definition at line 831 of file kotodoview.cpp.

◆ popupMenu

void KOTodoView::popupMenu ( TQListViewItem *  item,
const TQPoint &  ,
int  column 
)
slot

Definition at line 782 of file kotodoview.cpp.

◆ printTodo

void KOTodoView::printTodo ( )
slot

Definition at line 855 of file kotodoview.cpp.

◆ printType()

CalPrinterBase::PrintType KOTodoView::printType ( )
virtual

Reimplemented from KOrg::BaseView.

Definition at line 753 of file kotodoview.cpp.

◆ processDelayedNewPercentage

void KOTodoView::processDelayedNewPercentage ( )
slot

Definition at line 1073 of file kotodoview.cpp.

◆ processSelectionChange

void KOTodoView::processSelectionChange ( )
protectedslot

Definition at line 1092 of file kotodoview.cpp.

◆ purgeCompleted

void KOTodoView::purgeCompleted ( )
slot

Definition at line 1115 of file kotodoview.cpp.

◆ removeTodoItems

void KOTodoView::removeTodoItems ( )
protectedslot

Definition at line 633 of file kotodoview.cpp.

◆ restoreLayout()

void KOTodoView::restoreLayout ( TDEConfig *  config,
const TQString &  group 
)

Definition at line 1087 of file kotodoview.cpp.

◆ saveLayout()

void KOTodoView::saveLayout ( TDEConfig *  config,
const TQString &  group 
) const

Definition at line 1082 of file kotodoview.cpp.

◆ selectedIncidenceDates()

DateList KOTodoView::selectedIncidenceDates ( )
inlinevirtual
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 126 of file kotodoview.h.

◆ selectedIncidences()

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

◆ selectedTodos()

Todo::List KOTodoView::selectedTodos ( )

Definition at line 673 of file kotodoview.cpp.

◆ setCalendar()

void KOTodoView::setCalendar ( Calendar cal)
virtual

Reimplemented from KOrg::BaseView.

Definition at line 527 of file kotodoview.cpp.

◆ setDocumentId()

void KOTodoView::setDocumentId ( const TQString &  id)

Definition at line 1048 of file kotodoview.cpp.

◆ setIncidenceChanger()

void KOTodoView::setIncidenceChanger ( IncidenceChangerBase *  changer)
virtual

Assign a new incidence change helper object.

Reimplemented from KOrg::BaseView.

Definition at line 1135 of file kotodoview.cpp.

◆ setNewDate

void KOTodoView::setNewDate ( TQDate  date)
slot

Definition at line 949 of file kotodoview.cpp.

◆ setNewPercentage [1/2]

void KOTodoView::setNewPercentage ( int  index)
slot

Definition at line 944 of file kotodoview.cpp.

◆ setNewPercentage [2/2]

void KOTodoView::setNewPercentage ( KOTodoViewItem item,
int  percentage 
)
slot

Definition at line 900 of file kotodoview.cpp.

◆ setNewPercentageDelayed

void KOTodoView::setNewPercentageDelayed ( KOTodoViewItem item,
int  percentage 
)
slot

Definition at line 1066 of file kotodoview.cpp.

◆ setNewPriority

void KOTodoView::setNewPriority ( int  index)
slot

Definition at line 884 of file kotodoview.cpp.

◆ showDates

void KOTodoView::showDates ( const TQDate &  start,
const TQDate &  end 
)
slot

Definition at line 744 of file kotodoview.cpp.

◆ showIncidences

void KOTodoView::showIncidences ( const Incidence::List &  incidenceList,
const TQDate &  date 
)
slot

Definition at line 748 of file kotodoview.cpp.

◆ showItem [1/2]

void KOTodoView::showItem ( TQListViewItem *  item)
slot

Definition at line 770 of file kotodoview.cpp.

◆ showItem [2/2]

void KOTodoView::showItem ( TQListViewItem *  item,
const TQPoint &  ,
int   
)
slot

Definition at line 777 of file kotodoview.cpp.

◆ showTodo

void KOTodoView::showTodo ( )
slot

Definition at line 850 of file kotodoview.cpp.

◆ updateConfig

void KOTodoView::updateConfig ( )
slot

Definition at line 657 of file kotodoview.cpp.

◆ updateView

void KOTodoView::updateView ( )
slot

Definition at line 533 of file kotodoview.cpp.

Friends And Related Symbol Documentation

◆ KOTodoViewItem

friend class KOTodoViewItem
friend

Definition at line 200 of file kotodoview.h.


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