author | treke <treke> | 2003-11-11 07:14:38 (UTC) |
---|---|---|
committer | treke <treke> | 2003-11-11 07:14:38 (UTC) |
commit | 1eb61020dcba9bafd2926ab701120f5ef94905f7 (patch) (unidiff) | |
tree | 10d128bbf5b5b597aaf9602cb372ccbe46c12558 /core/pim/datebook | |
parent | f3326a60ba002b420f33b6132dc1740c0fc4ffef (diff) | |
download | opie-1eb61020dcba9bafd2926ab701120f5ef94905f7.zip opie-1eb61020dcba9bafd2926ab701120f5ef94905f7.tar.gz opie-1eb61020dcba9bafd2926ab701120f5ef94905f7.tar.bz2 |
Updating apps to use quickexec. Ipks are now generated properly.
-rw-r--r-- | core/pim/datebook/datebook.h | 1 | ||||
-rw-r--r-- | core/pim/datebook/datebook.pro | 4 | ||||
-rw-r--r-- | core/pim/datebook/main.cpp | 19 |
3 files changed, 5 insertions, 19 deletions
diff --git a/core/pim/datebook/datebook.h b/core/pim/datebook/datebook.h index eeb8666..d7cfb33 100644 --- a/core/pim/datebook/datebook.h +++ b/core/pim/datebook/datebook.h | |||
@@ -26,48 +26,49 @@ | |||
26 | 26 | ||
27 | enum { DAY=1,WEEK,WEEKLST,MONTH };// defaultView values | 27 | enum { DAY=1,WEEK,WEEKLST,MONTH };// defaultView values |
28 | enum { NONE=0,NORMAL,EXTENDED };// WeekLstView's modes. | 28 | enum { NONE=0,NORMAL,EXTENDED };// WeekLstView's modes. |
29 | 29 | ||
30 | class QAction; | 30 | class QAction; |
31 | class QWidgetStack; | 31 | class QWidgetStack; |
32 | class DateBookDay; | 32 | class DateBookDay; |
33 | class DateBookWeek; | 33 | class DateBookWeek; |
34 | class DateBookWeekLst; | 34 | class DateBookWeekLst; |
35 | class DateBookMonth; | 35 | class DateBookMonth; |
36 | class Event; | 36 | class Event; |
37 | class QDate; | 37 | class QDate; |
38 | class Ir; | 38 | class Ir; |
39 | 39 | ||
40 | class DateBookDBHack : public DateBookDB { | 40 | class DateBookDBHack : public DateBookDB { |
41 | public: | 41 | public: |
42 | Event eventByUID(int id); | 42 | Event eventByUID(int id); |
43 | }; | 43 | }; |
44 | 44 | ||
45 | class DateBook : public QMainWindow | 45 | class DateBook : public QMainWindow |
46 | { | 46 | { |
47 | Q_OBJECT | 47 | Q_OBJECT |
48 | 48 | ||
49 | public: | 49 | public: |
50 | static QString appName() { return QString::fromLatin1("datebook"); } | ||
50 | DateBook( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 51 | DateBook( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
51 | ~DateBook(); | 52 | ~DateBook(); |
52 | 53 | ||
53 | signals: | 54 | signals: |
54 | void newEvent(); | 55 | void newEvent(); |
55 | void signalNotFound(); | 56 | void signalNotFound(); |
56 | void signalWrapAround(); | 57 | void signalWrapAround(); |
57 | 58 | ||
58 | protected: | 59 | protected: |
59 | QDate currentDate(); | 60 | QDate currentDate(); |
60 | void timerEvent( QTimerEvent *e ); | 61 | void timerEvent( QTimerEvent *e ); |
61 | void closeEvent( QCloseEvent *e ); | 62 | void closeEvent( QCloseEvent *e ); |
62 | 63 | ||
63 | void view(int v, const QDate &d); | 64 | void view(int v, const QDate &d); |
64 | 65 | ||
65 | public slots: | 66 | public slots: |
66 | void flush(); | 67 | void flush(); |
67 | void reload(); | 68 | void reload(); |
68 | 69 | ||
69 | private slots: | 70 | private slots: |
70 | void fileNew(); | 71 | void fileNew(); |
71 | void slotNewEntry(const QDateTime &start, const QDateTime &end, const QString &str, const QString &location=0); | 72 | void slotNewEntry(const QDateTime &start, const QDateTime &end, const QString &str, const QString &location=0); |
72 | void slotSettings(); | 73 | void slotSettings(); |
73 | void slotToday();// view today | 74 | void slotToday();// view today |
diff --git a/core/pim/datebook/datebook.pro b/core/pim/datebook/datebook.pro index ae30c8d..6f2d775 100644 --- a/core/pim/datebook/datebook.pro +++ b/core/pim/datebook/datebook.pro | |||
@@ -1,27 +1,25 @@ | |||
1 | TEMPLATE= app | 1 | CONFIG += qt warn_on release quick-app |
2 | CONFIG += qt warn_on release | ||
3 | DESTDIR = $(OPIEDIR)/bin | ||
4 | HEADERS= datebookday.h \ | 2 | HEADERS= datebookday.h \ |
5 | datebook.h \ | 3 | datebook.h \ |
6 | dateentryimpl.h \ | 4 | dateentryimpl.h \ |
7 | datebookdayheaderimpl.h \ | 5 | datebookdayheaderimpl.h \ |
8 | datebooksettings.h \ | 6 | datebooksettings.h \ |
9 | datebookweek.h \ | 7 | datebookweek.h \ |
10 | datebookweeklst.h \ | 8 | datebookweeklst.h \ |
11 | datebookweekheaderimpl.h \ | 9 | datebookweekheaderimpl.h \ |
12 | repeatentry.h \ | 10 | repeatentry.h \ |
13 | noteentryimpl.h \ | 11 | noteentryimpl.h \ |
14 | onoteedit.h \ | 12 | onoteedit.h \ |
15 | datebookdayallday.h | 13 | datebookdayallday.h |
16 | SOURCES= main.cpp \ | 14 | SOURCES= main.cpp \ |
17 | datebookday.cpp \ | 15 | datebookday.cpp \ |
18 | datebook.cpp \ | 16 | datebook.cpp \ |
19 | dateentryimpl.cpp \ | 17 | dateentryimpl.cpp \ |
20 | datebookdayheaderimpl.cpp \ | 18 | datebookdayheaderimpl.cpp \ |
21 | datebooksettings.cpp \ | 19 | datebooksettings.cpp \ |
22 | datebookweek.cpp \ | 20 | datebookweek.cpp \ |
23 | datebookweeklst.cpp \ | 21 | datebookweeklst.cpp \ |
24 | datebookweekheaderimpl.cpp \ | 22 | datebookweekheaderimpl.cpp \ |
25 | repeatentry.cpp \ | 23 | repeatentry.cpp \ |
26 | noteentryimpl.cpp \ | 24 | noteentryimpl.cpp \ |
27 | onoteedit.cpp \ | 25 | onoteedit.cpp \ |
diff --git a/core/pim/datebook/main.cpp b/core/pim/datebook/main.cpp index caa5fb6..8004690 100644 --- a/core/pim/datebook/main.cpp +++ b/core/pim/datebook/main.cpp | |||
@@ -1,38 +1,25 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 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 | 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 | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 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. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "datebook.h" | 21 | #include "datebook.h" |
22 | #include <qpe/qpeapplication.h> | 22 | #include <qpe/qpeapplication.h> |
23 | 23 | #include <opie/oapplicationfactory.h> | |
24 | 24 | ||
25 | int main( int argc, char **argv ) | 25 | OPIE_EXPORT_APP( OApplicationFactory<DateBook> ) |
26 | { | ||
27 | QPEApplication a( argc, argv ); | ||
28 | |||
29 | DateBook e; | ||
30 | QObject::connect( &a, SIGNAL( flush() ), &e, SLOT( flush() ) ); | ||
31 | QObject::connect( &a, SIGNAL( reload() ), &e, SLOT( reload() ) ); | ||
32 | |||
33 | |||
34 | e.setCaption( DateBook::tr("Calendar") ); | ||
35 | a.showMainWidget(&e); | ||
36 | |||
37 | return a.exec(); | ||
38 | } | ||