author | zautrix <zautrix> | 2004-08-08 11:01:52 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-08 11:01:52 (UTC) |
commit | 7c4e0075810cf95ab2b1ecda2d971264e9a9b60c (patch) (unidiff) | |
tree | 2900efa863dd70b7131b3c07ef7f522ac7da845f /korganizer | |
parent | 71eba6589af91448b84bfd409439115972203e9e (diff) | |
download | kdepimpi-7c4e0075810cf95ab2b1ecda2d971264e9a9b60c.zip kdepimpi-7c4e0075810cf95ab2b1ecda2d971264e9a9b60c.tar.gz kdepimpi-7c4e0075810cf95ab2b1ecda2d971264e9a9b60c.tar.bz2 |
Made it compileable on desktop
-rw-r--r-- | korganizer/koprefs.cpp | 1 | ||||
-rw-r--r-- | korganizer/korganizer.pro | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index 042046e..0db8e6d 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -1,95 +1,96 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <time.h> | 24 | #include <time.h> |
25 | #ifndef _WIN32_ | 25 | #ifndef _WIN32_ |
26 | #include <unistd.h> | 26 | #include <unistd.h> |
27 | #endif | 27 | #endif |
28 | #include <qdir.h> | 28 | #include <qdir.h> |
29 | #include <qtextstream.h> | 29 | #include <qtextstream.h> |
30 | #include <qtextcodec.h> | 30 | #include <qtextcodec.h> |
31 | #include <qstring.h> | 31 | #include <qstring.h> |
32 | #include <qregexp.h> | ||
32 | #include <qfont.h> | 33 | #include <qfont.h> |
33 | #include <qcolor.h> | 34 | #include <qcolor.h> |
34 | #include <qstringlist.h> | 35 | #include <qstringlist.h> |
35 | #include <stdlib.h> | 36 | #include <stdlib.h> |
36 | 37 | ||
37 | #include <kglobal.h> | 38 | #include <kglobal.h> |
38 | #include <kconfig.h> | 39 | #include <kconfig.h> |
39 | #include <klocale.h> | 40 | #include <klocale.h> |
40 | #include <kdebug.h> | 41 | #include <kdebug.h> |
41 | #include <kemailsettings.h> | 42 | #include <kemailsettings.h> |
42 | #include <kstaticdeleter.h> | 43 | #include <kstaticdeleter.h> |
43 | 44 | ||
44 | #include "koprefs.h" | 45 | #include "koprefs.h" |
45 | #include "mainwindow.h" | 46 | #include "mainwindow.h" |
46 | 47 | ||
47 | const char *germanwords[][2] = { | 48 | const char *germanwords[][2] = { |
48 | #include "wordsgerman.h" | 49 | #include "wordsgerman.h" |
49 | "", "" | 50 | "", "" |
50 | }; | 51 | }; |
51 | 52 | ||
52 | KOPrefs *KOPrefs::mInstance = 0; | 53 | KOPrefs *KOPrefs::mInstance = 0; |
53 | static KStaticDeleter<KOPrefs> insd; | 54 | static KStaticDeleter<KOPrefs> insd; |
54 | 55 | ||
55 | KOPrefs::KOPrefs() : | 56 | KOPrefs::KOPrefs() : |
56 | KPimPrefs("korganizerrc") | 57 | KPimPrefs("korganizerrc") |
57 | { | 58 | { |
58 | mCategoryColors.setAutoDelete(true); | 59 | mCategoryColors.setAutoDelete(true); |
59 | mLocaleDict = 0; | 60 | mLocaleDict = 0; |
60 | fillMailDefaults(); | 61 | fillMailDefaults(); |
61 | mDefaultCategoryColor = QColor(175,210,255);//196,196,196); | 62 | mDefaultCategoryColor = QColor(175,210,255);//196,196,196); |
62 | QColor defaultHolidayColor = QColor(255,0,0); | 63 | QColor defaultHolidayColor = QColor(255,0,0); |
63 | QColor defaultHighlightColor = QColor(129,112,255);//64,64,255); | 64 | QColor defaultHighlightColor = QColor(129,112,255);//64,64,255); |
64 | QColor defaultAgendaBgColor = QColor(239,241,169);//128,128,128); | 65 | QColor defaultAgendaBgColor = QColor(239,241,169);//128,128,128); |
65 | QColor defaultWorkingHoursColor = QColor(170,223,150);//160,160,160); | 66 | QColor defaultWorkingHoursColor = QColor(170,223,150);//160,160,160); |
66 | QColor defaultTodoDueTodayColor = QColor(255,220,100); | 67 | QColor defaultTodoDueTodayColor = QColor(255,220,100); |
67 | QColor defaultTodoOverdueColor = QColor(255,153,125); | 68 | QColor defaultTodoOverdueColor = QColor(255,153,125); |
68 | 69 | ||
69 | mTimeBarFont = QFont("helvetica",10);//,QFont::Bold); | 70 | mTimeBarFont = QFont("helvetica",10);//,QFont::Bold); |
70 | mDefaultViewFont = QFont("helvetica",10); | 71 | mDefaultViewFont = QFont("helvetica",10); |
71 | mDefaultMonthViewFont = QFont("helvetica",8); | 72 | mDefaultMonthViewFont = QFont("helvetica",8); |
72 | mMarcusBainsFont= QFont("helvetica",10); | 73 | mMarcusBainsFont= QFont("helvetica",10); |
73 | mDateNavigatorFont= QFont("helvetica",10, QFont::Bold); | 74 | mDateNavigatorFont= QFont("helvetica",10, QFont::Bold); |
74 | mEditBoxFont = QFont("helvetica",12); | 75 | mEditBoxFont = QFont("helvetica",12); |
75 | mJornalViewFont = QFont("helvetica",12); | 76 | mJornalViewFont = QFont("helvetica",12); |
76 | 77 | ||
77 | KPrefs::setCurrentGroup("General"); | 78 | KPrefs::setCurrentGroup("General"); |
78 | addItemBool("Enable Group Scheduling",&mEnableGroupScheduling,false); | 79 | addItemBool("Enable Group Scheduling",&mEnableGroupScheduling,false); |
79 | 80 | ||
80 | addItemBool("ShowIconNewTodo",&mShowIconNewTodo,true); | 81 | addItemBool("ShowIconNewTodo",&mShowIconNewTodo,true); |
81 | addItemBool("ShowIconNewEvent",&mShowIconNewEvent,true); | 82 | addItemBool("ShowIconNewEvent",&mShowIconNewEvent,true); |
82 | addItemBool("ShowIconSearch",&mShowIconSearch,true); | 83 | addItemBool("ShowIconSearch",&mShowIconSearch,true); |
83 | addItemBool("ShowIconList",&mShowIconList,true); | 84 | addItemBool("ShowIconList",&mShowIconList,true); |
84 | addItemBool("ShowIconDay1",&mShowIconDay1,true); | 85 | addItemBool("ShowIconDay1",&mShowIconDay1,true); |
85 | addItemBool("ShowIconDay5",&mShowIconDay5,true); | 86 | addItemBool("ShowIconDay5",&mShowIconDay5,true); |
86 | addItemBool("ShowIconDay7",&mShowIconDay7,true); | 87 | addItemBool("ShowIconDay7",&mShowIconDay7,true); |
87 | addItemBool("ShowIconMonth",&mShowIconMonth,true); | 88 | addItemBool("ShowIconMonth",&mShowIconMonth,true); |
88 | addItemBool("ShowIconTodoview",&mShowIconTodoview,true); | 89 | addItemBool("ShowIconTodoview",&mShowIconTodoview,true); |
89 | addItemBool("ShowIconBackFast",&mShowIconBackFast,true); | 90 | addItemBool("ShowIconBackFast",&mShowIconBackFast,true); |
90 | addItemBool("ShowIconBack",&mShowIconBack,true); | 91 | addItemBool("ShowIconBack",&mShowIconBack,true); |
91 | addItemBool("ShowIconToday",&mShowIconToday,true); | 92 | addItemBool("ShowIconToday",&mShowIconToday,true); |
92 | addItemBool("ShowIconForward",&mShowIconForward,true); | 93 | addItemBool("ShowIconForward",&mShowIconForward,true); |
93 | addItemBool("ShowIconForwardFast",&mShowIconForwardFast,true); | 94 | addItemBool("ShowIconForwardFast",&mShowIconForwardFast,true); |
94 | addItemBool("ShowIconWhatsThis",&mShowIconWhatsThis,false); | 95 | addItemBool("ShowIconWhatsThis",&mShowIconWhatsThis,false); |
95 | addItemBool("ShowIconNextDays",&mShowIconNextDays,true); | 96 | addItemBool("ShowIconNextDays",&mShowIconNextDays,true); |
diff --git a/korganizer/korganizer.pro b/korganizer/korganizer.pro index 02e608c..e501d88 100644 --- a/korganizer/korganizer.pro +++ b/korganizer/korganizer.pro | |||
@@ -1,85 +1,89 @@ | |||
1 | TEMPLATE= app | 1 | TEMPLATE= app |
2 | CONFIG = qt warn_on | 2 | CONFIG = qt warn_on |
3 | TARGET = kopi | 3 | TARGET = kopi |
4 | OBJECTS_DIR = _obj/ | 4 | OBJECTS_DIR = _obj/ |
5 | MOC_DIR = _moc | 5 | MOC_DIR = _moc |
6 | DESTDIR= ../bin | 6 | DESTDIR= ../bin |
7 | 7 | ||
8 | include( ../variables.pri ) | 8 | include( ../variables.pri ) |
9 | 9 | ||
10 | INCLUDEPATH += ../microkde ../ interfaces ../microkde/kdecore ../microkde/kdeui ../microkde/kio/kfile ../microkde/kio/kio | 10 | INCLUDEPATH += ../microkde ../ interfaces ../microkde/kdecore ../microkde/kdeui ../microkde/kio/kfile ../microkde/kio/kio |
11 | #../qtcompat | 11 | #../qtcompat |
12 | DEFINES += KORG_NODND KORG_NOPLUGINS KORG_NOARCHIVE KORG_NOMAIL | 12 | DEFINES += KORG_NODND KORG_NOPLUGINS KORG_NOARCHIVE KORG_NOMAIL |
13 | DEFINES += KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER | 13 | DEFINES += KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER |
14 | #KORG_NOPRINTER KORG_NOKABC | 14 | #KORG_NOPRINTER KORG_NOKABC |
15 | DEFINES += KORG_NOLVALTERNATION | 15 | DEFINES += KORG_NOLVALTERNATION |
16 | DEFINES += DESKTOP_VERSION | 16 | DEFINES += DESKTOP_VERSION |
17 | unix : { | 17 | unix : { |
18 | LIBS += ../bin/libmicrokdepim.so | 18 | LIBS += ../bin/libmicrokdepim.so |
19 | LIBS += ../bin/libmicrokcal.so | 19 | LIBS += ../bin/libmicrokcal.so |
20 | LIBS += ../bin/libmicrokde.so | 20 | LIBS += ../bin/libmicrokde.so |
21 | LIBS += ../bin/libmicrokabc.so | 21 | LIBS += ../bin/libmicrokabc.so |
22 | LIBS += ../bin/libmicrogammu.so | ||
23 | LIBS += -lbluetooth | ||
24 | LIBS += -lsdp | ||
25 | |||
22 | LIBS += -lldap | 26 | LIBS += -lldap |
23 | OBJECTS_DIR = obj/unix | 27 | OBJECTS_DIR = obj/unix |
24 | MOC_DIR = moc/unix | 28 | MOC_DIR = moc/unix |
25 | } | 29 | } |
26 | win32: { | 30 | win32: { |
27 | DEFINES += _WIN32_ | 31 | DEFINES += _WIN32_ |
28 | LIBS += ../bin/microkdepim.lib | 32 | LIBS += ../bin/microkdepim.lib |
29 | LIBS += ../bin/microkcal.lib | 33 | LIBS += ../bin/microkcal.lib |
30 | LIBS += ../bin/microkde.lib | 34 | LIBS += ../bin/microkde.lib |
31 | LIBS += ../bin/microkabc.lib | 35 | LIBS += ../bin/microkabc.lib |
32 | LIBS += ../libical/lib/ical.lib | 36 | LIBS += ../libical/lib/ical.lib |
33 | LIBS += ../libical/lib/icalss.lib | 37 | LIBS += ../libical/lib/icalss.lib |
34 | #LIBS += atls.lib | 38 | #LIBS += atls.lib |
35 | LIBS += mfc71u.lib | 39 | LIBS += mfc71u.lib |
36 | QMAKE_LINK += /NODEFAULTLIB:LIBC | 40 | QMAKE_LINK += /NODEFAULTLIB:LIBC |
37 | #QMAKE_LINK += /NODEFAULTLIB:MSVCRT | 41 | #QMAKE_LINK += /NODEFAULTLIB:MSVCRT |
38 | #QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib | 42 | #QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib |
39 | OBJECTS_DIR = obj/win | 43 | OBJECTS_DIR = obj/win |
40 | MOC_DIR = moc/win | 44 | MOC_DIR = moc/win |
41 | } | 45 | } |
42 | 46 | ||
43 | 47 | ||
44 | INTERFACES = kofilterview_base.ui | 48 | INTERFACES = kofilterview_base.ui |
45 | # filteredit_base.ui | 49 | # filteredit_base.ui |
46 | 50 | ||
47 | # kdateedit.h \ | 51 | # kdateedit.h \ |
48 | 52 | ||
49 | HEADERS = \ | 53 | HEADERS = \ |
50 | filteredit_base.h \ | 54 | filteredit_base.h \ |
51 | alarmclient.h \ | 55 | alarmclient.h \ |
52 | calendarview.h \ | 56 | calendarview.h \ |
53 | customlistviewitem.h \ | 57 | customlistviewitem.h \ |
54 | datenavigator.h \ | 58 | datenavigator.h \ |
55 | docprefs.h \ | 59 | docprefs.h \ |
56 | filtereditdialog.h \ | 60 | filtereditdialog.h \ |
57 | incomingdialog.h \ | 61 | incomingdialog.h \ |
58 | incomingdialog_base.h \ | 62 | incomingdialog_base.h \ |
59 | interfaces/korganizer/baseview.h \ | 63 | interfaces/korganizer/baseview.h \ |
60 | interfaces/korganizer/calendarviewbase.h \ | 64 | interfaces/korganizer/calendarviewbase.h \ |
61 | journalentry.h \ | 65 | journalentry.h \ |
62 | kdatenavigator.h \ | 66 | kdatenavigator.h \ |
63 | koagenda.h \ | 67 | koagenda.h \ |
64 | koagendaitem.h \ | 68 | koagendaitem.h \ |
65 | koagendaview.h \ | 69 | koagendaview.h \ |
66 | kocounterdialog.h \ | 70 | kocounterdialog.h \ |
67 | kodaymatrix.h \ | 71 | kodaymatrix.h \ |
68 | kodialogmanager.h \ | 72 | kodialogmanager.h \ |
69 | koeditordetails.h \ | 73 | koeditordetails.h \ |
70 | koeditorgeneral.h \ | 74 | koeditorgeneral.h \ |
71 | koeditorgeneralevent.h \ | 75 | koeditorgeneralevent.h \ |
72 | koeditorgeneraltodo.h \ | 76 | koeditorgeneraltodo.h \ |
73 | koeditorrecurrence.h \ | 77 | koeditorrecurrence.h \ |
74 | koeventeditor.h \ | 78 | koeventeditor.h \ |
75 | koeventpopupmenu.h \ | 79 | koeventpopupmenu.h \ |
76 | koeventview.h \ | 80 | koeventview.h \ |
77 | koeventviewer.h \ | 81 | koeventviewer.h \ |
78 | koeventviewerdialog.h \ | 82 | koeventviewerdialog.h \ |
79 | kofilterview.h \ | 83 | kofilterview.h \ |
80 | koglobals.h \ | 84 | koglobals.h \ |
81 | koincidenceeditor.h \ | 85 | koincidenceeditor.h \ |
82 | kojournalview.h \ | 86 | kojournalview.h \ |
83 | kolistview.h \ | 87 | kolistview.h \ |
84 | kolocationbox.h \ | 88 | kolocationbox.h \ |
85 | komonthview.h \ | 89 | komonthview.h \ |