summaryrefslogtreecommitdiff
path: root/core/pim/todo/mainwindow.h
Unidiff
Diffstat (limited to 'core/pim/todo/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h
new file mode 100644
index 0000000..f4fcd1b
--- a/dev/null
+++ b/core/pim/todo/mainwindow.h
@@ -0,0 +1,73 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qtopia Environment.
5**
6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15**
16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18**
19**********************************************************************/
20
21#ifndef MAINWINDOW_H
22#define MAINWINDOW_H
23
24#include <qmainwindow.h>
25
26class TodoTable;
27class QAction;
28class QPopupMenu;
29class Ir;
30
31class TodoWindow : public QMainWindow
32{
33 Q_OBJECT
34
35public:
36 TodoWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
37 ~TodoWindow();
38
39public slots:
40 void flush();
41 void reload();
42
43protected slots:
44 void slotNew();
45 void slotDelete();
46 void slotEdit();
47 void slotShowPopup( const QPoint & );
48 void showCompleted( bool );
49 void currentEntryChanged( int r, int c );
50 void setCategory( int );
51 void slotFind();
52 void setDocument( const QString & );
53 void slotBeam();
54 void beamDone( Ir * );
55
56protected:
57 void closeEvent( QCloseEvent *e );
58
59private:
60 void populateCategories();
61
62private:
63 TodoTable *table;
64 QAction *editAction,
65 *deleteAction,
66 *findAction,
67 * completedAction;
68 QPopupMenu *contextMenu, *catMenu;
69
70 bool syncing;
71};
72
73#endif