-rw-r--r-- | core/pim/todo/mainwindow.cpp | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index 9013522..b6ee16f 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp | |||
@@ -1,88 +1,89 @@ | |||
1 | /* | 1 | /* |
2 | =. This file is part of the OPIE Project | 2 | This file is part of the Opie Project |
3 | .=l. Copyright (c) 2002 <> | 3 | |
4 | .>+-= | 4 | Copyright (C) Opie Team <opie-devel@handhelds.org> |
5 | _;:, .> :=|. This program is free software; you can | 5 | =. |
6 | .> <`_, > . <= redistribute it and/or modify it under | 6 | .=l. |
7 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 7 | .>+-= |
8 | .="- .-=="i, .._ License as published by the Free Software | 8 | _;:, .> :=|. This program is free software; you can |
9 | - . .-<_> .<> Foundation; either version 2 of the License, | 9 | .> <`_, > . <= redistribute it and/or modify it under |
10 | ._= =} : or (at your option) any later version. | 10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
11 | .%`+i> _;_. | 11 | .="- .-=="i, .._ License as published by the Free Software |
12 | .i_,=:_. -<s. This program is distributed in the hope that | 12 | - . .-<_> .<> Foundation; either version 2 of the License, |
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 13 | ._= =} : or (at your option) any later version. |
14 | : .. .:, . . . without even the implied warranty of | 14 | .%`+i> _;_. |
15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 15 | .i_,=:_. -<s. This program is distributed in the hope that |
16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
17 | ..}^=.= = ; Library General Public License for more | 17 | : .. .:, . . . without even the implied warranty of |
18 | ++= -. .` .: details. | 18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
19 | : = ...= . :.=- | 19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
20 | -. .:....=;==+<; You should have received a copy of the GNU | 20 | ..}^=.= = ; Library General Public License for more |
21 | -_. . . )=. = General Public License along with | 21 | ++= -. .` .: details. |
22 | -- :-=` this library; see the file COPYING.LIB. | 22 | : = ...= . :.=- |
23 | -. .:....=;==+<; You should have received a copy of the GNU | ||
24 | -_. . . )=. = Library General Public License along with | ||
25 | -- :-=` this library; see the file COPYING.LIB. | ||
23 | If not, write to the Free Software Foundation, | 26 | If not, write to the Free Software Foundation, |
24 | Inc., 59 Temple Place - Suite 330, | 27 | Inc., 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 28 | Boston, MA 02111-1307, USA. |
26 | |||
27 | */ | 29 | */ |
28 | 30 | ||
29 | #include <unistd.h> | 31 | #include <unistd.h> |
30 | 32 | ||
31 | #include <opie2/odebug.h> | 33 | #include <opie2/odebug.h> |
32 | #include <opie2/opimrecurrence.h> | 34 | #include <opie2/opimrecurrence.h> |
33 | #include <opie2/opimnotifymanager.h> | 35 | #include <opie2/opimnotifymanager.h> |
34 | #include <opie2/otodoaccessvcal.h> | 36 | #include <opie2/otodoaccessvcal.h> |
35 | #include <opie2/oapplicationfactory.h> | 37 | #include <opie2/oapplicationfactory.h> |
36 | 38 | ||
37 | #include <qpe/applnk.h> | 39 | #include <qpe/applnk.h> |
38 | #include <qpe/config.h> | 40 | #include <qpe/config.h> |
39 | #include <qpe/ir.h> | 41 | #include <qpe/ir.h> |
40 | #include <qpe/resource.h> | ||
41 | #include <qpe/qpemessagebox.h> | 42 | #include <qpe/qpemessagebox.h> |
42 | #include <qpe/alarmserver.h> | 43 | #include <qpe/alarmserver.h> |
43 | #include <qpe/qpeapplication.h> | 44 | #include <qpe/qpeapplication.h> |
44 | 45 | ||
45 | #include <qaction.h> | 46 | #include <qaction.h> |
46 | #include <qlayout.h> | 47 | #include <qlayout.h> |
47 | #include <qmenubar.h> | 48 | #include <qmenubar.h> |
48 | #include <qmessagebox.h> | 49 | #include <qmessagebox.h> |
49 | #include <qpushbutton.h> | 50 | #include <qpushbutton.h> |
50 | #include <qstringlist.h> | 51 | #include <qstringlist.h> |
51 | #include <qtimer.h> | 52 | #include <qtimer.h> |
52 | #include <qwhatsthis.h> | 53 | #include <qwhatsthis.h> |
53 | 54 | ||
54 | #include "quickeditimpl.h" | 55 | #include "quickeditimpl.h" |
55 | #include "todotemplatemanager.h" | 56 | #include "todotemplatemanager.h" |
56 | #include "templatedialogimpl.h" | 57 | #include "templatedialogimpl.h" |
57 | #include "tableview.h" | 58 | #include "tableview.h" |
58 | 59 | ||
59 | #include "textviewshow.h" | 60 | #include "textviewshow.h" |
60 | #include "todoeditor.h" | 61 | #include "todoeditor.h" |
61 | #include "newtaskdlg.h" | 62 | #include "newtaskdlg.h" |
62 | #include "mainwindow.h" | 63 | #include "mainwindow.h" |
63 | 64 | ||
64 | using Opie::Core::OApplicationFactory; | 65 | using Opie::Core::OApplicationFactory; |
65 | OPIE_EXPORT_APP( OApplicationFactory<Todo::MainWindow> ) | 66 | OPIE_EXPORT_APP( OApplicationFactory<Todo::MainWindow> ) |
66 | 67 | ||
67 | using namespace Opie; | 68 | using namespace Opie; |
68 | using namespace Todo; | 69 | using namespace Todo; |
69 | 70 | ||
70 | MainWindow::MainWindow( QWidget* parent, | 71 | MainWindow::MainWindow( QWidget* parent, |
71 | const char* name, WFlags ) | 72 | const char* name, WFlags ) |
72 | : Opie::OPimMainWindow( "Todolist", "Todo List", tr( "Task" ), "todo", | 73 | : Opie::OPimMainWindow( "Todolist", "Todo List", tr( "Task" ), "todo", |
73 | parent, name, WType_TopLevel | WStyle_ContextHelp ) | 74 | parent, name, WType_TopLevel | WStyle_ContextHelp ) |
74 | { | 75 | { |
75 | setCaption( tr( "Todo List" ) ); | 76 | setCaption( tr( "Todo List" ) ); |
76 | if (!name) | 77 | if (!name) |
77 | setName("todo window"); | 78 | setName("todo window"); |
78 | 79 | ||
79 | m_syncing = false; | 80 | m_syncing = false; |
80 | m_showing = false; | 81 | m_showing = false; |
81 | m_counter = 0; | 82 | m_counter = 0; |
82 | m_tempManager = new TemplateManager(); | 83 | m_tempManager = new TemplateManager(); |
83 | m_tempManager->load(); | 84 | m_tempManager->load(); |
84 | 85 | ||
85 | initConfig(); | 86 | initConfig(); |
86 | initUI(); | 87 | initUI(); |
87 | initViews(); | 88 | initViews(); |
88 | initActions(); | 89 | initActions(); |