29 #include <tqtooltip.h>
31 #include <tdelistview.h>
33 #include <libkcal/todo.h>
34 #include <korganizer/baseview.h>
36 class TQDragEnterEvent;
37 class TQDragMoveEvent;
38 class TQDragLeaveEvent;
44 class KDatePickerPopup;
58 class KOTodoListViewToolTip :
public TQToolTip
61 KOTodoListViewToolTip( TQWidget *parent,
Calendar *calendar, KOTodoListView *lv );
64 void maybeTip(
const TQPoint &pos );
68 KOTodoListView *todolist;
72 class KOTodoListView :
public TDEListView
77 KOTodoListView( TQWidget *parent = 0,
const char *name = 0 );
82 void setIncidenceChanger( IncidenceChangerBase *changer ) { mChanger = changer; }
85 virtual bool event( TQEvent * );
87 void contentsDragEnterEvent( TQDragEnterEvent * );
88 void contentsDragMoveEvent( TQDragMoveEvent * );
89 void contentsDragLeaveEvent( TQDragLeaveEvent * );
90 void contentsDropEvent( TQDropEvent * );
92 void contentsMousePressEvent( TQMouseEvent * );
93 void contentsMouseMoveEvent( TQMouseEvent * );
94 void contentsMouseReleaseEvent( TQMouseEvent * );
95 void contentsMouseDoubleClickEvent( TQMouseEvent * );
99 KOrg::IncidenceChangerBase *mChanger;
103 TQListViewItem *mOldCurrent;
123 Incidence::List selectedIncidences();
124 Todo::List selectedTodos();
131 CalPrinterBase::PrintType printType();
133 void setDocumentId(
const TQString & );
135 void saveLayout( TDEConfig *config,
const TQString &group )
const;
136 void restoreLayout( TDEConfig *config,
const TQString &group );
139 void setIncidenceChanger( IncidenceChangerBase *changer );
145 void changeIncidenceDisplay(
Incidence *,
int );
147 void showDates(
const TQDate &start,
const TQDate &end );
148 void showIncidences(
const Incidence::List &incidenceList,
const TQDate &date );
150 void clearSelection();
152 void editItem( TQListViewItem *item,
const TQPoint &,
int );
153 void editItem( TQListViewItem *item );
154 void showItem( TQListViewItem *item,
const TQPoint &,
int );
155 void showItem( TQListViewItem *item );
156 void popupMenu( TQListViewItem *item,
const TQPoint &,
int );
166 void setNewPriority(
int );
167 void setNewPercentage(
int );
168 void setNewDate( TQDate );
169 void copyTodoToDate( TQDate );
170 void changedCategories(
int );
172 void purgeCompleted();
174 void itemStateChanged( TQListViewItem * );
176 void setNewPercentageDelayed(
KOTodoViewItem *item,
int percentage );
177 void processDelayedNewPercentage();
180 void unSubTodoSignal();
181 void unAllSubTodoSignal();
182 void purgeCompletedSignal();
183 void configChanged();
186 void processSelectionChange();
188 void removeTodoItems();
202 TQMap<Todo *,KOTodoViewItem *>::ConstIterator insertTodoItem(
Todo *todo );
204 void restoreItemState( TQListViewItem * );
206 KOTodoListView *mTodoListView;
207 TQPopupMenu *mItemPopupMenu;
208 TQPopupMenu *mPopupMenu;
209 TQPopupMenu *mPriorityPopupMenu;
210 TQPopupMenu *mPercentageCompletedPopupMenu;
211 TQPopupMenu *mCategoryPopupMenu;
212 KDatePickerPopup *mMovePopupMenu;
213 KDatePickerPopup *mCopyPopupMenu;
215 TQMap<int, int> mPercentage;
216 TQMap<int, int> mPriority;
217 TQMap<int, TQString> mCategory;
221 TQMap<Todo *,KOTodoViewItem *> mTodoMap;
222 TQPtrList<KOTodoViewItem> mItemsToDelete;
223 TQValueList< TQPair<KOTodoViewItem *, int> > mPercentChangedMap;
226 TQString mCurrentDoc;
227 KPIM::ClickLineEdit *mQuickAdd;
236 eCategoriesColumn = 5,
244 ePopupUnSubTodo = 1304,
245 ePopupUnAllSubTodo = 1305
This class provides a way of displaying a single Event of Todo-Type in a KTodoView.
This class provides a multi-column list view of todo events.
DateList selectedIncidenceDates()
int currentDateCount()
Return number of shown dates.
This class provides an interface for all views being displayed within the main calendar view.