author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/kotodoview.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | korganizer/kotodoview.h | 58 |
1 files changed, 34 insertions, 24 deletions
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h index 0cbc087..a9e7f30 100644 --- a/korganizer/kotodoview.h +++ b/korganizer/kotodoview.h | |||
@@ -25,17 +25,27 @@ | |||
25 | 25 | ||
26 | #include <qfont.h> | 26 | #include <qfont.h> |
27 | #include <qfontmetrics.h> | 27 | #include <qfontmetrics.h> |
28 | #include <qlineedit.h> | 28 | #include <qlineedit.h> |
29 | #include <qptrlist.h> | 29 | #include <q3ptrlist.h> |
30 | #include <qstrlist.h> | 30 | #include <q3strlist.h> |
31 | #include <qlistbox.h> | 31 | #include <q3listbox.h> |
32 | #include <qpopupmenu.h> | 32 | #include <q3popupmenu.h> |
33 | #include <qlabel.h> | 33 | #include <qlabel.h> |
34 | #include <qmap.h> | 34 | #include <qmap.h> |
35 | #include <qdialog.h> | 35 | #include <qdialog.h> |
36 | #include <qlabel.h> | 36 | #include <qlabel.h> |
37 | #include <qlistview.h> | 37 | #include <q3listview.h> |
38 | //Added by qt3to4: | ||
39 | #include <QDragMoveEvent> | ||
40 | #include <QDropEvent> | ||
41 | #include <QDragLeaveEvent> | ||
42 | #include <QWheelEvent> | ||
43 | #include <QPaintEvent> | ||
44 | #include <QFocusEvent> | ||
45 | #include <QMouseEvent> | ||
46 | #include <QKeyEvent> | ||
47 | #include <QDragEnterEvent> | ||
38 | #include <klistview.h> | 48 | #include <klistview.h> |
39 | 49 | ||
40 | #include <libkcal/calendar.h> | 50 | #include <libkcal/calendar.h> |
41 | #include <libkcal/todo.h> | 51 | #include <libkcal/todo.h> |
@@ -100,9 +110,9 @@ class KOTodoListView : public KListView | |||
100 | 110 | ||
101 | signals: | 111 | signals: |
102 | void paintNeeded(); | 112 | void paintNeeded(); |
103 | void todoDropped(Todo *, int); | 113 | void todoDropped(Todo *, int); |
104 | void double_Clicked(QListViewItem *item); | 114 | void double_Clicked(Q3ListViewItem *item); |
105 | void reparentTodoSignal( Todo *,Todo * ); | 115 | void reparentTodoSignal( Todo *,Todo * ); |
106 | void unparentTodoSignal(Todo *); | 116 | void unparentTodoSignal(Todo *); |
107 | void deleteTodo( Todo * ); | 117 | void deleteTodo( Todo * ); |
108 | protected: | 118 | protected: |
@@ -123,9 +133,9 @@ class KOTodoListView : public KListView | |||
123 | QString mName; | 133 | QString mName; |
124 | Calendar *mCalendar; | 134 | Calendar *mCalendar; |
125 | QPoint mPressPos; | 135 | QPoint mPressPos; |
126 | bool mMousePressed; | 136 | bool mMousePressed; |
127 | QListViewItem *mOldCurrent; | 137 | Q3ListViewItem *mOldCurrent; |
128 | bool mFlagKeyPressed; | 138 | bool mFlagKeyPressed; |
129 | void keyPressEvent ( QKeyEvent * ) ; | 139 | void keyPressEvent ( QKeyEvent * ) ; |
130 | void keyReleaseEvent ( QKeyEvent * ) ; | 140 | void keyReleaseEvent ( QKeyEvent * ) ; |
131 | }; | 141 | }; |
@@ -156,10 +166,10 @@ class KOTodoView : public KOrg::BaseView | |||
156 | public: | 166 | public: |
157 | KOTodoView(Calendar *, QWidget* parent=0, const char* name=0 ); | 167 | KOTodoView(Calendar *, QWidget* parent=0, const char* name=0 ); |
158 | ~KOTodoView(); | 168 | ~KOTodoView(); |
159 | 169 | ||
160 | QPtrList<Incidence> selectedIncidences(); | 170 | Q3PtrList<Incidence> selectedIncidences(); |
161 | QPtrList<Todo> selectedTodos(); | 171 | Q3PtrList<Todo> selectedTodos(); |
162 | 172 | ||
163 | DateList selectedDates() | 173 | DateList selectedDates() |
164 | {DateList q; | 174 | {DateList q; |
165 | return q;} | 175 | return q;} |
@@ -183,16 +193,16 @@ class KOTodoView : public KOrg::BaseView | |||
183 | 193 | ||
184 | void changeEventDisplay(Event *, int); | 194 | void changeEventDisplay(Event *, int); |
185 | 195 | ||
186 | void showDates(const QDate &start, const QDate &end); | 196 | void showDates(const QDate &start, const QDate &end); |
187 | void showEvents(QPtrList<Event> eventList); | 197 | void showEvents(Q3PtrList<Event> eventList); |
188 | 198 | ||
189 | void clearSelection(); | 199 | void clearSelection(); |
190 | void jumpToDate (); | 200 | void jumpToDate (); |
191 | 201 | ||
192 | void editItem(QListViewItem *item); | 202 | void editItem(Q3ListViewItem *item); |
193 | void showItem(QListViewItem *item,const QPoint &,int); | 203 | void showItem(Q3ListViewItem *item,const QPoint &,int); |
194 | void popupMenu(QListViewItem *item,const QPoint &,int); | 204 | void popupMenu(Q3ListViewItem *item,const QPoint &,int); |
195 | void newTodo(); | 205 | void newTodo(); |
196 | void newSubTodo(); | 206 | void newSubTodo(); |
197 | void unparentTodo(); | 207 | void unparentTodo(); |
198 | void reparentTodo(); | 208 | void reparentTodo(); |
@@ -218,12 +228,12 @@ class KOTodoView : public KOrg::BaseView | |||
218 | void toggleRunning(); | 228 | void toggleRunning(); |
219 | void toggleQuickTodo(); | 229 | void toggleQuickTodo(); |
220 | void updateTodo( Todo *, int ); | 230 | void updateTodo( Todo *, int ); |
221 | 231 | ||
222 | void itemClicked(QListViewItem *); | 232 | void itemClicked(Q3ListViewItem *); |
223 | void itemStateChanged(QListViewItem *); | 233 | void itemStateChanged(Q3ListViewItem *); |
224 | void modified(bool); | 234 | void modified(bool); |
225 | void itemDoubleClicked(QListViewItem *item); | 235 | void itemDoubleClicked(Q3ListViewItem *item); |
226 | void resetFocusToList(); | 236 | void resetFocusToList(); |
227 | void fillCategories (); | 237 | void fillCategories (); |
228 | void fillCal (); | 238 | void fillCal (); |
229 | void changedCal (int); | 239 | void changedCal (int); |
@@ -272,20 +282,20 @@ class KOTodoView : public KOrg::BaseView | |||
272 | void paintEvent(QPaintEvent * pevent); | 282 | void paintEvent(QPaintEvent * pevent); |
273 | bool mPendingUpdateBeforeRepaint; | 283 | bool mPendingUpdateBeforeRepaint; |
274 | friend class KOTodoViewItem; | 284 | friend class KOTodoViewItem; |
275 | QMap<Todo *,KOTodoViewItem *>::ConstIterator insertTodoItem(Todo *todo); | 285 | QMap<Todo *,KOTodoViewItem *>::ConstIterator insertTodoItem(Todo *todo); |
276 | void restoreItemState( QListViewItem * ); | 286 | void restoreItemState( Q3ListViewItem * ); |
277 | 287 | ||
278 | bool checkTodo( Todo * ); | 288 | bool checkTodo( Todo * ); |
279 | bool isFlatDisplay; | 289 | bool isFlatDisplay; |
280 | void setOpen( QListViewItem*, bool setOpen); | 290 | void setOpen( Q3ListViewItem*, bool setOpen); |
281 | KOTodoListView *mTodoListView; | 291 | KOTodoListView *mTodoListView; |
282 | QPopupMenu *mItemPopupMenu; | 292 | Q3PopupMenu *mItemPopupMenu; |
283 | QPopupMenu *mPopupMenu; | 293 | Q3PopupMenu *mPopupMenu; |
284 | QPopupMenu *mPriorityPopupMenu; | 294 | Q3PopupMenu *mPriorityPopupMenu; |
285 | QPopupMenu *mPercentageCompletedPopupMenu; | 295 | Q3PopupMenu *mPercentageCompletedPopupMenu; |
286 | QPopupMenu *mCategoryPopupMenu; | 296 | Q3PopupMenu *mCategoryPopupMenu; |
287 | QPopupMenu *mCalPopupMenu; | 297 | Q3PopupMenu *mCalPopupMenu; |
288 | 298 | ||
289 | QMap<int, int> mPercentage; | 299 | QMap<int, int> mPercentage; |
290 | QMap<int, int> mPriority; | 300 | QMap<int, int> mPriority; |
291 | QMap<int, QString> mCategory; | 301 | QMap<int, QString> mCategory; |