-rw-r--r-- | core/pim/todo/mainwindow.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h index b9172e1..f62ec6e 100644 --- a/core/pim/todo/mainwindow.h +++ b/core/pim/todo/mainwindow.h | |||
@@ -1,14 +1,15 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | Copyright (C) 2002 Holger 'zecke' Freyther <freyther@kde.org> | 2 | ** Copyright (C) 2002 Holger 'zecke' Freyther <freyther@kde.org> |
3 | ** Copyright (C) 2002 by Stefan Eilers (se, eilers.stefan@epost.de) | ||
3 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 4 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
4 | ** | 5 | ** |
5 | ** This file is part of Qtopia and Opi Environment. | 6 | ** This file is part of Qtopia and Opi Environment. |
6 | ** | 7 | ** |
7 | ** This file may be distributed and/or modified under the terms of the | 8 | ** This file may be distributed and/or modified under the terms of the |
8 | ** GNU General Public License version 2 as published by the Free Software | 9 | ** GNU General Public License version 2 as published by the Free Software |
9 | ** Foundation and appearing in the file LICENSE.GPL included in the | 10 | ** Foundation and appearing in the file LICENSE.GPL included in the |
10 | ** packaging of this file. | 11 | ** packaging of this file. |
11 | ** | 12 | ** |
12 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 13 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
13 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 14 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
14 | ** | 15 | ** |
@@ -20,67 +21,76 @@ | |||
20 | **********************************************************************/ | 21 | **********************************************************************/ |
21 | 22 | ||
22 | #ifndef MAINWINDOW_H | 23 | #ifndef MAINWINDOW_H |
23 | #define MAINWINDOW_H | 24 | #define MAINWINDOW_H |
24 | 25 | ||
25 | #include <qmainwindow.h> | 26 | #include <qmainwindow.h> |
26 | 27 | ||
27 | class TodoTable; | 28 | class TodoTable; |
28 | class QAction; | 29 | class QAction; |
29 | class QPopupMenu; | 30 | class QPopupMenu; |
30 | class Ir; | 31 | class Ir; |
31 | class OFontMenu; | 32 | class OFontMenu; |
33 | class TodoLabel; | ||
34 | class ToDoDB; | ||
35 | class QWidgetStack; | ||
36 | class ToDoEvent; | ||
32 | 37 | ||
33 | class TodoWindow : public QMainWindow | 38 | class TodoWindow : public QMainWindow |
34 | { | 39 | { |
35 | Q_OBJECT | 40 | Q_OBJECT |
36 | 41 | ||
37 | public: | 42 | public: |
38 | TodoWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 43 | TodoWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
39 | ~TodoWindow(); | 44 | ~TodoWindow(); |
40 | 45 | ||
41 | public slots: | 46 | public slots: |
42 | void flush(); | 47 | void flush(); |
43 | void reload(); | 48 | void reload(); |
44 | 49 | ||
45 | protected slots: | 50 | protected slots: |
46 | void slotNew(); | 51 | void slotNew(); |
47 | void slotDelete(); | 52 | void slotDelete(); |
48 | void slotEdit(); | 53 | void slotEdit(); |
49 | void slotShowPopup( const QPoint & ); | 54 | void slotShowPopup( const QPoint & ); |
50 | void showCompleted( bool ); | 55 | void showCompleted( bool ); |
51 | 56 | ||
52 | /* added 20.01.2k2 by se */ | ||
53 | void showDeadline( bool ); | 57 | void showDeadline( bool ); |
54 | 58 | ||
59 | void slotShowDetails(const ToDoEvent &event ); | ||
60 | void slotShowDetails(); | ||
61 | |||
55 | void currentEntryChanged( int r, int c ); | 62 | void currentEntryChanged( int r, int c ); |
56 | void setCategory( int ); | 63 | void setCategory( int ); |
57 | void slotFind(); | 64 | void slotFind(); |
58 | void setDocument( const QString & ); | 65 | void setDocument( const QString & ); |
59 | void slotBeam(); | 66 | void slotBeam(); |
60 | void beamDone( Ir * ); | 67 | void beamDone( Ir * ); |
61 | void slotDeleteAll(); | 68 | void slotDeleteAll(); |
62 | void slotDuplicate(); | 69 | void slotDuplicate(); |
63 | 70 | ||
64 | protected: | 71 | protected: |
65 | void closeEvent( QCloseEvent *e ); | 72 | void closeEvent( QCloseEvent *e ); |
66 | 73 | ||
67 | private: | 74 | private: |
68 | void populateCategories(); | 75 | void populateCategories(); |
76 | //inline void switchToTable(); // move back to the normal view | ||
69 | 77 | ||
70 | private: | 78 | private: |
71 | TodoTable *table; | 79 | TodoTable *table; |
80 | TodoLabel *mView; | ||
72 | QAction *editAction, | 81 | QAction *editAction, |
73 | *deleteAction, | 82 | *deleteAction, |
74 | *findAction, | 83 | *findAction, |
75 | *completedAction, | 84 | *completedAction, |
76 | *showdeadlineAction, | 85 | *showdeadlineAction, |
77 | *deleteAllAction, | 86 | *deleteAllAction, |
78 | *duplicateAction; | 87 | *duplicateAction; |
79 | QPopupMenu *contextMenu, *catMenu; | 88 | QPopupMenu *contextMenu, *catMenu; |
89 | QWidgetStack *mStack; | ||
80 | 90 | ||
81 | bool syncing; | 91 | bool syncing; |
82 | }; | 92 | }; |
83 | 93 | ||
84 | #endif | 94 | #endif |
85 | 95 | ||
86 | 96 | ||