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,565 +1,566 @@ | |||
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); |
96 | addItemBool("ShowIconNext",&mShowIconNext,true); | 97 | addItemBool("ShowIconNext",&mShowIconNext,true); |
97 | addItemBool("ShowIconJournal",&mShowIconJournal,true); | 98 | addItemBool("ShowIconJournal",&mShowIconJournal,true); |
98 | addItemBool("ShowIconStretch",&mShowIconStretch,true); | 99 | addItemBool("ShowIconStretch",&mShowIconStretch,true); |
99 | addItemBool("LanguageChanged",&mLanguageChanged,false); | 100 | addItemBool("LanguageChanged",&mLanguageChanged,false); |
100 | 101 | ||
101 | addItemBool("AskForQuit",&mAskForQuit,false); | 102 | addItemBool("AskForQuit",&mAskForQuit,false); |
102 | 103 | ||
103 | #ifndef DESKTOP_VERSION | 104 | #ifndef DESKTOP_VERSION |
104 | addItemBool("ShowFullMenu",&mShowFullMenu,false); | 105 | addItemBool("ShowFullMenu",&mShowFullMenu,false); |
105 | #else | 106 | #else |
106 | addItemBool("ShowFullMenu",&mShowFullMenu,true); | 107 | addItemBool("ShowFullMenu",&mShowFullMenu,true); |
107 | #endif | 108 | #endif |
108 | addItemBool("ToolBarHor",&mToolBarHor, true ); | 109 | addItemBool("ToolBarHor",&mToolBarHor, true ); |
109 | addItemBool("ToolBarUp",&mToolBarUp, false ); | 110 | addItemBool("ToolBarUp",&mToolBarUp, false ); |
110 | addItemBool("ToolBarMiniIcons",&mToolBarMiniIcons, false ); | 111 | addItemBool("ToolBarMiniIcons",&mToolBarMiniIcons, false ); |
111 | addItemInt("Whats Next Days",&mWhatsNextDays,3); | 112 | addItemInt("Whats Next Days",&mWhatsNextDays,3); |
112 | addItemInt("Whats Next Prios",&mWhatsNextPrios,1); | 113 | addItemInt("Whats Next Prios",&mWhatsNextPrios,1); |
113 | 114 | ||
114 | addItemBool("ShowTodoInAgenda",&mShowTodoInAgenda,true); | 115 | addItemBool("ShowTodoInAgenda",&mShowTodoInAgenda,true); |
115 | addItemBool("ShowCompletedTodo",&mShowCompletedTodo,true); | 116 | addItemBool("ShowCompletedTodo",&mShowCompletedTodo,true); |
116 | addItemInt("AllDay Size",&mAllDaySize,28); | 117 | addItemInt("AllDay Size",&mAllDaySize,28); |
117 | QString defAlarm = KGlobal::iconLoader()->iconPath()+"koalarm.wav"; | 118 | QString defAlarm = KGlobal::iconLoader()->iconPath()+"koalarm.wav"; |
118 | addItemString("DefaultAlarmFile",&mDefaultAlarmFile,defAlarm ); | 119 | addItemString("DefaultAlarmFile",&mDefaultAlarmFile,defAlarm ); |
119 | 120 | ||
120 | addItemStringList("LocationDefaults",&mLocationDefaults ); | 121 | addItemStringList("LocationDefaults",&mLocationDefaults ); |
121 | addItemStringList("EventSummary User",&mEventSummaryUser); | 122 | addItemStringList("EventSummary User",&mEventSummaryUser); |
122 | addItemStringList("TodoSummary User",&mTodoSummaryUser); | 123 | addItemStringList("TodoSummary User",&mTodoSummaryUser); |
123 | 124 | ||
124 | addItemBool("Enable Group Scheduling",&mEnableGroupScheduling,false); | 125 | addItemBool("Enable Group Scheduling",&mEnableGroupScheduling,false); |
125 | addItemBool("Enable Project View",&mEnableProjectView,false); | 126 | addItemBool("Enable Project View",&mEnableProjectView,false); |
126 | addItemBool("Auto Save",&mAutoSave,false); | 127 | addItemBool("Auto Save",&mAutoSave,false); |
127 | addItemInt("Auto Save Interval",&mAutoSaveInterval,3); | 128 | addItemInt("Auto Save Interval",&mAutoSaveInterval,3); |
128 | addItemBool("Confirm Deletes",&mConfirm,true); | 129 | addItemBool("Confirm Deletes",&mConfirm,true); |
129 | addItemString("Archive File",&mArchiveFile); | 130 | addItemString("Archive File",&mArchiveFile); |
130 | addItemString("Html Export File",&mHtmlExportFile, | 131 | addItemString("Html Export File",&mHtmlExportFile, |
131 | QDir::homeDirPath() + "/" + i18n("Default export file", "calendar.html")); | 132 | QDir::homeDirPath() + "/" + i18n("Default export file", "calendar.html")); |
132 | addItemBool("Html With Save",&mHtmlWithSave,false); | 133 | addItemBool("Html With Save",&mHtmlWithSave,false); |
133 | 134 | ||
134 | KPrefs::setCurrentGroup("Personal Settings"); | 135 | KPrefs::setCurrentGroup("Personal Settings"); |
135 | 136 | ||
136 | addItemInt("Mail Client",&mMailClient,MailClientKMail); | 137 | addItemInt("Mail Client",&mMailClient,MailClientKMail); |
137 | addItemBool("Use Control Center Email",&mEmailControlCenter,false); | 138 | addItemBool("Use Control Center Email",&mEmailControlCenter,false); |
138 | addItemBool("Bcc",&mBcc,false); | 139 | addItemBool("Bcc",&mBcc,false); |
139 | 140 | ||
140 | KPrefs::setCurrentGroup("Time & Date"); | 141 | KPrefs::setCurrentGroup("Time & Date"); |
141 | 142 | ||
142 | // addItemString("Time Zone",&mTimeZone,"+0100"); | 143 | // addItemString("Time Zone",&mTimeZone,"+0100"); |
143 | addItemString("TimeZoneName",&mTimeZoneId,i18n ("+01:00 Europe/Oslo(CET)") ); | 144 | addItemString("TimeZoneName",&mTimeZoneId,i18n ("+01:00 Europe/Oslo(CET)") ); |
144 | // addItemInt("TimeZoneOffset",&mTimeZoneOffset,60); | 145 | // addItemInt("TimeZoneOffset",&mTimeZoneOffset,60); |
145 | addItemBool("UseDaylightsaving",&mUseDaylightsaving,true); | 146 | addItemBool("UseDaylightsaving",&mUseDaylightsaving,true); |
146 | addItemInt("DaylightsavingStart",&mDaylightsavingStart,90); | 147 | addItemInt("DaylightsavingStart",&mDaylightsavingStart,90); |
147 | addItemInt("DaylightsavingEnd",&mDaylightsavingEnd,304); | 148 | addItemInt("DaylightsavingEnd",&mDaylightsavingEnd,304); |
148 | 149 | ||
149 | 150 | ||
150 | addItemInt("Default Start Time",&mStartTime,10); | 151 | addItemInt("Default Start Time",&mStartTime,10); |
151 | addItemInt("Default Duration",&mDefaultDuration,2); | 152 | addItemInt("Default Duration",&mDefaultDuration,2); |
152 | addItemInt("Default Alarm Time",&mAlarmTime,3); | 153 | addItemInt("Default Alarm Time",&mAlarmTime,3); |
153 | addItemInt("Daylight Savings",&mDaylightSavings,0); | 154 | addItemInt("Daylight Savings",&mDaylightSavings,0); |
154 | KPrefs::setCurrentGroup("AlarmSettings"); | 155 | KPrefs::setCurrentGroup("AlarmSettings"); |
155 | addItemInt("AlarmPlayBeeps",&mAlarmPlayBeeps,20); | 156 | addItemInt("AlarmPlayBeeps",&mAlarmPlayBeeps,20); |
156 | addItemInt("AlarmSuspendTime",&mAlarmSuspendTime,7); | 157 | addItemInt("AlarmSuspendTime",&mAlarmSuspendTime,7); |
157 | addItemInt("AlarmSuspendCount",&mAlarmSuspendCount,5); | 158 | addItemInt("AlarmSuspendCount",&mAlarmSuspendCount,5); |
158 | addItemInt("AlarmBeepInterval",&mAlarmBeepInterval,3); | 159 | addItemInt("AlarmBeepInterval",&mAlarmBeepInterval,3); |
159 | 160 | ||
160 | 161 | ||
161 | KPrefs::setCurrentGroup("Calendar"); | 162 | KPrefs::setCurrentGroup("Calendar"); |
162 | 163 | ||
163 | addItemInt("Default Calendar Format",&mDefaultFormat,FormatICalendar); | 164 | addItemInt("Default Calendar Format",&mDefaultFormat,FormatICalendar); |
164 | 165 | ||
165 | KPrefs::setCurrentGroup("Fonts"); | 166 | KPrefs::setCurrentGroup("Fonts"); |
166 | // qDebug(" KPrefs::setCurrentGroup(Fonts); "); | 167 | // qDebug(" KPrefs::setCurrentGroup(Fonts); "); |
167 | addItemFont("TimeBar Font",&mTimeBarFont); | 168 | addItemFont("TimeBar Font",&mTimeBarFont); |
168 | addItemFont("MonthView Font",&mMonthViewFont); | 169 | addItemFont("MonthView Font",&mMonthViewFont); |
169 | addItemFont("AgendaView Font",&mAgendaViewFont); | 170 | addItemFont("AgendaView Font",&mAgendaViewFont); |
170 | addItemFont("MarcusBains Font",&mMarcusBainsFont); | 171 | addItemFont("MarcusBains Font",&mMarcusBainsFont); |
171 | addItemFont("TimeLabels Font",&mTimeLabelsFont); | 172 | addItemFont("TimeLabels Font",&mTimeLabelsFont); |
172 | addItemFont("TodoView Font",&mTodoViewFont); | 173 | addItemFont("TodoView Font",&mTodoViewFont); |
173 | addItemFont("ListView Font",&mListViewFont); | 174 | addItemFont("ListView Font",&mListViewFont); |
174 | addItemFont("DateNavigator Font",&mDateNavigatorFont); | 175 | addItemFont("DateNavigator Font",&mDateNavigatorFont); |
175 | addItemFont("EditBox Font",&mEditBoxFont); | 176 | addItemFont("EditBox Font",&mEditBoxFont); |
176 | addItemFont("JournalView Font",&mJornalViewFont); | 177 | addItemFont("JournalView Font",&mJornalViewFont); |
177 | addItemFont("WhatsNextView Font",&mWhatsNextFont); | 178 | addItemFont("WhatsNextView Font",&mWhatsNextFont); |
178 | addItemFont("EventView Font",&mEventViewFont); | 179 | addItemFont("EventView Font",&mEventViewFont); |
179 | 180 | ||
180 | // KPrefs::setCurrentGroup("SyncProfiles"); | 181 | // KPrefs::setCurrentGroup("SyncProfiles"); |
181 | // addItemString("LocalMachineName",&mLocalMachineName, "undefined"); | 182 | // addItemString("LocalMachineName",&mLocalMachineName, "undefined"); |
182 | // addItemStringList("SyncProfileNames",&mSyncProfileNames); | 183 | // addItemStringList("SyncProfileNames",&mSyncProfileNames); |
183 | // addItemStringList("ExternSyncProfiles",&mExternSyncProfileNames); | 184 | // addItemStringList("ExternSyncProfiles",&mExternSyncProfileNames); |
184 | 185 | ||
185 | KPrefs::setCurrentGroup("RemoteSyncing"); | 186 | KPrefs::setCurrentGroup("RemoteSyncing"); |
186 | // addItemBool("UsePasswd",&mUsePassWd,false); | 187 | // addItemBool("UsePasswd",&mUsePassWd,false); |
187 | // addItemBool("WriteBackFile",&mWriteBackFile,true); | 188 | // addItemBool("WriteBackFile",&mWriteBackFile,true); |
188 | // addItemBool("WriteBackExistingOnly",&mWriteBackExistingOnly,false); | 189 | // addItemBool("WriteBackExistingOnly",&mWriteBackExistingOnly,false); |
189 | // addItemBool("AskForPreferences",&mAskForPreferences,true); | 190 | // addItemBool("AskForPreferences",&mAskForPreferences,true); |
190 | // addItemBool("ShowSyncSummary",&mShowSyncSummary,true); | 191 | // addItemBool("ShowSyncSummary",&mShowSyncSummary,true); |
191 | addItemBool("ShowSyncEvents",&mShowSyncEvents,false); | 192 | addItemBool("ShowSyncEvents",&mShowSyncEvents,false); |
192 | addItemInt("LastSyncTime",&mLastSyncTime,0); | 193 | addItemInt("LastSyncTime",&mLastSyncTime,0); |
193 | addItemInt("SyncAlgoPrefs",&mSyncAlgoPrefs,3); | 194 | addItemInt("SyncAlgoPrefs",&mSyncAlgoPrefs,3); |
194 | addItemInt("RingSyncAlgoPrefs",&mRingSyncAlgoPrefs,3); | 195 | addItemInt("RingSyncAlgoPrefs",&mRingSyncAlgoPrefs,3); |
195 | 196 | ||
196 | #ifdef _WIN32_ | 197 | #ifdef _WIN32_ |
197 | QString hdp= locateLocal("data","korganizer")+"\\\\"; | 198 | QString hdp= locateLocal("data","korganizer")+"\\\\"; |
198 | #else | 199 | #else |
199 | QString hdp= locateLocal("data","korganizer")+"/"; | 200 | QString hdp= locateLocal("data","korganizer")+"/"; |
200 | #endif | 201 | #endif |
201 | // addItemString("RemoteIP",&mRemoteIP, "192.168.0.65"); | 202 | // addItemString("RemoteIP",&mRemoteIP, "192.168.0.65"); |
202 | // addItemString("RemoteUser",&mRemoteUser, "zaurus"); | 203 | // addItemString("RemoteUser",&mRemoteUser, "zaurus"); |
203 | // addItemString("RemotePassWd",&mRemotePassWd, ""); | 204 | // addItemString("RemotePassWd",&mRemotePassWd, ""); |
204 | // addItemString("RemoteFile", &mRemoteFile, hdp+"mycalendar.ics"); | 205 | // addItemString("RemoteFile", &mRemoteFile, hdp+"mycalendar.ics"); |
205 | // addItemString("LocalTempFile",&mLocalTempFile, "/tmp/tempsyncfile.ics" ); | 206 | // addItemString("LocalTempFile",&mLocalTempFile, "/tmp/tempsyncfile.ics" ); |
206 | 207 | ||
207 | 208 | ||
208 | KPrefs::setCurrentGroup("LoadSaveFileNames"); | 209 | KPrefs::setCurrentGroup("LoadSaveFileNames"); |
209 | 210 | ||
210 | addItemString("LastImportFile", &mLastImportFile ,hdp +"import.ics" ); | 211 | addItemString("LastImportFile", &mLastImportFile ,hdp +"import.ics" ); |
211 | addItemString("LastVcalFile", &mLastVcalFile ,hdp +"export.vcs" ); | 212 | addItemString("LastVcalFile", &mLastVcalFile ,hdp +"export.vcs" ); |
212 | addItemString("LastSaveFile", &mLastSaveFile ,hdp +"mybackup.ics" ); | 213 | addItemString("LastSaveFile", &mLastSaveFile ,hdp +"mybackup.ics" ); |
213 | addItemString("LastLoadFile", &mLastLoadFile ,hdp +"mybackup.ics" ); | 214 | addItemString("LastLoadFile", &mLastLoadFile ,hdp +"mybackup.ics" ); |
214 | addItemString("LastSyncedLocalFile", &mLastSyncedLocalFile ,hdp +"lastsync.ics" ); | 215 | addItemString("LastSyncedLocalFile", &mLastSyncedLocalFile ,hdp +"lastsync.ics" ); |
215 | 216 | ||
216 | 217 | ||
217 | KPrefs::setCurrentGroup("Locale"); | 218 | KPrefs::setCurrentGroup("Locale"); |
218 | addItemInt("PreferredLanguage",&mPreferredLanguage,0); | 219 | addItemInt("PreferredLanguage",&mPreferredLanguage,0); |
219 | addItemInt("PreferredTime",&mPreferredTime,0); | 220 | addItemInt("PreferredTime",&mPreferredTime,0); |
220 | addItemInt("PreferredDate",&mPreferredDate,0); | 221 | addItemInt("PreferredDate",&mPreferredDate,0); |
221 | addItemBool("WeekStartsOnSunday",&mWeekStartsOnSunday,false); | 222 | addItemBool("WeekStartsOnSunday",&mWeekStartsOnSunday,false); |
222 | addItemBool("QuickSavingWOUnicode",&mUseQuicksave,false); | 223 | addItemBool("QuickSavingWOUnicode",&mUseQuicksave,false); |
223 | addItemBool("ShortDateInViewer",&mShortDateInViewer,false); | 224 | addItemBool("ShortDateInViewer",&mShortDateInViewer,false); |
224 | addItemString("UserDateFormatLong", &mUserDateFormatLong, "%A %d %b %y"); | 225 | addItemString("UserDateFormatLong", &mUserDateFormatLong, "%A %d %b %y"); |
225 | addItemString("UserDateFormatShort", &mUserDateFormatShort, "%aK %d.%m.%y"); | 226 | addItemString("UserDateFormatShort", &mUserDateFormatShort, "%aK %d.%m.%y"); |
226 | 227 | ||
227 | 228 | ||
228 | KPrefs::setCurrentGroup("Colors"); | 229 | KPrefs::setCurrentGroup("Colors"); |
229 | addItemColor("Holiday Color",&mHolidayColor,defaultHolidayColor); | 230 | addItemColor("Holiday Color",&mHolidayColor,defaultHolidayColor); |
230 | addItemColor("Highlight Color",&mHighlightColor,defaultHighlightColor); | 231 | addItemColor("Highlight Color",&mHighlightColor,defaultHighlightColor); |
231 | addItemColor("Event Color",&mEventColor,mDefaultCategoryColor); | 232 | addItemColor("Event Color",&mEventColor,mDefaultCategoryColor); |
232 | addItemColor("Agenda Background Color",&mAgendaBgColor,defaultAgendaBgColor); | 233 | addItemColor("Agenda Background Color",&mAgendaBgColor,defaultAgendaBgColor); |
233 | addItemColor("WorkingHours Color",&mWorkingHoursColor,defaultWorkingHoursColor); | 234 | addItemColor("WorkingHours Color",&mWorkingHoursColor,defaultWorkingHoursColor); |
234 | addItemColor("Todo due today Color",&mTodoDueTodayColor,defaultTodoDueTodayColor); | 235 | addItemColor("Todo due today Color",&mTodoDueTodayColor,defaultTodoDueTodayColor); |
235 | addItemColor("Todo overdue Color",&mTodoOverdueColor,defaultTodoOverdueColor); | 236 | addItemColor("Todo overdue Color",&mTodoOverdueColor,defaultTodoOverdueColor); |
236 | addItemColor("MonthViewEvenColor",&mMonthViewEvenColor,QColor( 160,160,255 )); | 237 | addItemColor("MonthViewEvenColor",&mMonthViewEvenColor,QColor( 160,160,255 )); |
237 | addItemColor("MonthViewOddColor",&mMonthViewOddColor,QColor( 160,255,160 )); | 238 | addItemColor("MonthViewOddColor",&mMonthViewOddColor,QColor( 160,255,160 )); |
238 | addItemColor("MonthViewHolidayColor",&mMonthViewHolidayColor,QColor( 255,160,160 )); | 239 | addItemColor("MonthViewHolidayColor",&mMonthViewHolidayColor,QColor( 255,160,160 )); |
239 | addItemBool("MonthViewUsesDayColors",&mMonthViewUsesDayColors,true); | 240 | addItemBool("MonthViewUsesDayColors",&mMonthViewUsesDayColors,true); |
240 | addItemBool("MonthViewSatSunTog",&mMonthViewSatSunTog,true); | 241 | addItemBool("MonthViewSatSunTog",&mMonthViewSatSunTog,true); |
241 | addItemBool("HightlightDateTimeEdit",&mHightlightDateTimeEdit,false); | 242 | addItemBool("HightlightDateTimeEdit",&mHightlightDateTimeEdit,false); |
242 | addItemColor("AppColor1",&mAppColor1,QColor( 130,170,255 )); | 243 | addItemColor("AppColor1",&mAppColor1,QColor( 130,170,255 )); |
243 | addItemColor("AppColor2",&mAppColor2,QColor( 174,216,255 )); | 244 | addItemColor("AppColor2",&mAppColor2,QColor( 174,216,255 )); |
244 | addItemBool("UseAppColors",&mUseAppColors,false); | 245 | addItemBool("UseAppColors",&mUseAppColors,false); |
245 | 246 | ||
246 | 247 | ||
247 | 248 | ||
248 | KPrefs::setCurrentGroup("Views"); | 249 | KPrefs::setCurrentGroup("Views"); |
249 | addItemInt("Hour Size",&mHourSize,8); | 250 | addItemInt("Hour Size",&mHourSize,8); |
250 | addItemBool("Show Daily Recurrences",&mDailyRecur,true); | 251 | addItemBool("Show Daily Recurrences",&mDailyRecur,true); |
251 | addItemBool("Show Weekly Recurrences",&mWeeklyRecur,true); | 252 | addItemBool("Show Weekly Recurrences",&mWeeklyRecur,true); |
252 | addItemBool("Show Month Daily Recurrences",&mMonthDailyRecur,true); | 253 | addItemBool("Show Month Daily Recurrences",&mMonthDailyRecur,true); |
253 | addItemBool("Show Month Weekly Recurrences",&mMonthWeeklyRecur,true); | 254 | addItemBool("Show Month Weekly Recurrences",&mMonthWeeklyRecur,true); |
254 | addItemBool("ShowShortMonthName",&mMonthShowShort,false); | 255 | addItemBool("ShowShortMonthName",&mMonthShowShort,false); |
255 | addItemBool("ShowIconsInMonthCell",&mMonthShowIcons,true); | 256 | addItemBool("ShowIconsInMonthCell",&mMonthShowIcons,true); |
256 | addItemBool("Enable ToolTips",&mEnableToolTips,false); | 257 | addItemBool("Enable ToolTips",&mEnableToolTips,false); |
257 | addItemBool("Enable MonthView ScrollBars",&mEnableMonthScroll,false); | 258 | addItemBool("Enable MonthView ScrollBars",&mEnableMonthScroll,false); |
258 | addItemBool("Marcus Bains shows seconds",&mMarcusBainsShowSeconds,false); | 259 | addItemBool("Marcus Bains shows seconds",&mMarcusBainsShowSeconds,false); |
259 | addItemBool("Show Marcus Bains",&mMarcusBainsEnabled,true); | 260 | addItemBool("Show Marcus Bains",&mMarcusBainsEnabled,true); |
260 | addItemBool("EditOnDoubleClick",&mEditOnDoubleClick,true); | 261 | addItemBool("EditOnDoubleClick",&mEditOnDoubleClick,true); |
261 | addItemBool("ViewChangeHoldFullscreen",&mViewChangeHoldFullscreen,false); | 262 | addItemBool("ViewChangeHoldFullscreen",&mViewChangeHoldFullscreen,false); |
262 | addItemBool("ViewChangeHoldNonFullscreen",&mViewChangeHoldNonFullscreen,false); | 263 | addItemBool("ViewChangeHoldNonFullscreen",&mViewChangeHoldNonFullscreen,false); |
263 | addItemBool("CenterOnCurrentTime",&mCenterOnCurrentTime,false); | 264 | addItemBool("CenterOnCurrentTime",&mCenterOnCurrentTime,false); |
264 | addItemBool("SetTimeToDayStartAt",&mSetTimeToDayStartAt,true); | 265 | addItemBool("SetTimeToDayStartAt",&mSetTimeToDayStartAt,true); |
265 | addItemBool("HighlightCurrentDay",&mHighlightCurrentDay,true); | 266 | addItemBool("HighlightCurrentDay",&mHighlightCurrentDay,true); |
266 | addItemBool("WNViewShowsParents",&mWNViewShowsParents,true); | 267 | addItemBool("WNViewShowsParents",&mWNViewShowsParents,true); |
267 | addItemBool("WNViewShowLocation",&mWNViewShowLocation,false); | 268 | addItemBool("WNViewShowLocation",&mWNViewShowLocation,false); |
268 | addItemBool("UseHighlightLightColor",&mUseHighlightLightColor,false); | 269 | addItemBool("UseHighlightLightColor",&mUseHighlightLightColor,false); |
269 | addItemBool("ListViewMonthTimespan",&mListViewMonthTimespan,true); | 270 | addItemBool("ListViewMonthTimespan",&mListViewMonthTimespan,true); |
270 | addItemBool("TodoViewUsesCatColors",&mTodoViewUsesCatColors,false); | 271 | addItemBool("TodoViewUsesCatColors",&mTodoViewUsesCatColors,false); |
271 | addItemBool("TodoViewShowsPercentage",&mTodoViewShowsPercentage,false); | 272 | addItemBool("TodoViewShowsPercentage",&mTodoViewShowsPercentage,false); |
272 | addItemBool("TodoViewUsesSmallFont",&mTodoViewUsesSmallFont,false); | 273 | addItemBool("TodoViewUsesSmallFont",&mTodoViewUsesSmallFont,false); |
273 | addItemBool("TodoViewUsesForegroundColor",&mTodoViewUsesForegroundColor,false); | 274 | addItemBool("TodoViewUsesForegroundColor",&mTodoViewUsesForegroundColor,false); |
274 | addItemBool("MonthViewUsesForegroundColor",&mMonthViewUsesForegroundColor,false); | 275 | addItemBool("MonthViewUsesForegroundColor",&mMonthViewUsesForegroundColor,false); |
275 | #ifdef DESKTOP_VERSION | 276 | #ifdef DESKTOP_VERSION |
276 | addItemBool("UseInternalAlarmNotification",&mUseInternalAlarmNotification,true); | 277 | addItemBool("UseInternalAlarmNotification",&mUseInternalAlarmNotification,true); |
277 | #else | 278 | #else |
278 | addItemBool("UseInternalAlarmNotification",&mUseInternalAlarmNotification,false); | 279 | addItemBool("UseInternalAlarmNotification",&mUseInternalAlarmNotification,false); |
279 | #endif | 280 | #endif |
280 | addItemInt("Day Begins",&mDayBegins,7); | 281 | addItemInt("Day Begins",&mDayBegins,7); |
281 | addItemInt("Working Hours Start",&mWorkingHoursStart,8); | 282 | addItemInt("Working Hours Start",&mWorkingHoursStart,8); |
282 | addItemInt("Working Hours End",&mWorkingHoursEnd,17); | 283 | addItemInt("Working Hours End",&mWorkingHoursEnd,17); |
283 | addItemBool("Exclude Holidays",&mExcludeHolidays,true); | 284 | addItemBool("Exclude Holidays",&mExcludeHolidays,true); |
284 | addItemBool("Exclude Saturdays",&mExcludeSaturdays,true); | 285 | addItemBool("Exclude Saturdays",&mExcludeSaturdays,true); |
285 | 286 | ||
286 | addItemBool("Month View Uses Category Color",&mMonthViewUsesCategoryColor,false); | 287 | addItemBool("Month View Uses Category Color",&mMonthViewUsesCategoryColor,false); |
287 | addItemBool("Full View Month",&mFullViewMonth,true); | 288 | addItemBool("Full View Month",&mFullViewMonth,true); |
288 | addItemBool("Full View Todo",&mFullViewTodo,true); | 289 | addItemBool("Full View Todo",&mFullViewTodo,true); |
289 | addItemBool("Quick Todo",&mEnableQuickTodo,false); | 290 | addItemBool("Quick Todo",&mEnableQuickTodo,false); |
290 | 291 | ||
291 | addItemInt("Next X Days",&mNextXDays,3); | 292 | addItemInt("Next X Days",&mNextXDays,3); |
292 | 293 | ||
293 | KPrefs::setCurrentGroup("Printer"); | 294 | KPrefs::setCurrentGroup("Printer"); |
294 | 295 | ||
295 | KPrefs::setCurrentGroup("Layout"); | 296 | KPrefs::setCurrentGroup("Layout"); |
296 | 297 | ||
297 | addItemBool("CompactDialogs",&mCompactDialogs,false); | 298 | addItemBool("CompactDialogs",&mCompactDialogs,false); |
298 | addItemBool("VerticalScreen",&mVerticalScreen,true); | 299 | addItemBool("VerticalScreen",&mVerticalScreen,true); |
299 | 300 | ||
300 | KPrefs::setCurrentGroup("KOrganizer Plugins"); | 301 | KPrefs::setCurrentGroup("KOrganizer Plugins"); |
301 | 302 | ||
302 | addItemStringList("SelectedPlugins",&mSelectedPlugins,"holidays"); | 303 | addItemStringList("SelectedPlugins",&mSelectedPlugins,"holidays"); |
303 | 304 | ||
304 | KPrefs::setCurrentGroup("Group Scheduling"); | 305 | KPrefs::setCurrentGroup("Group Scheduling"); |
305 | 306 | ||
306 | addItemInt("IMIPScheduler",&mIMIPScheduler,IMIPKMail); | 307 | addItemInt("IMIPScheduler",&mIMIPScheduler,IMIPKMail); |
307 | addItemInt("IMIPSend",&mIMIPSend,IMIPdirectsend); | 308 | addItemInt("IMIPSend",&mIMIPSend,IMIPdirectsend); |
308 | addItemStringList("AdditionalMails",&mAdditionalMails,""); | 309 | addItemStringList("AdditionalMails",&mAdditionalMails,""); |
309 | addItemInt("IMIP auto refresh",&mIMIPAutoRefresh,neverAuto); | 310 | addItemInt("IMIP auto refresh",&mIMIPAutoRefresh,neverAuto); |
310 | addItemInt("IMIP auto insert request",&mIMIPAutoInsertRequest,neverAuto); | 311 | addItemInt("IMIP auto insert request",&mIMIPAutoInsertRequest,neverAuto); |
311 | addItemInt("IMIP auto insert reply",&mIMIPAutoInsertReply,neverAuto); | 312 | addItemInt("IMIP auto insert reply",&mIMIPAutoInsertReply,neverAuto); |
312 | addItemInt("IMIP auto FreeBusy",&mIMIPAutoFreeBusy,neverAuto); | 313 | addItemInt("IMIP auto FreeBusy",&mIMIPAutoFreeBusy,neverAuto); |
313 | addItemInt("IMIP auto save FreeBusy",&mIMIPAutoFreeBusyReply,neverAuto); | 314 | addItemInt("IMIP auto save FreeBusy",&mIMIPAutoFreeBusyReply,neverAuto); |
314 | 315 | ||
315 | KPrefs::setCurrentGroup( "Editors" ); | 316 | KPrefs::setCurrentGroup( "Editors" ); |
316 | 317 | ||
317 | addItemStringList( "EventTemplates", &mEventTemplates ); | 318 | addItemStringList( "EventTemplates", &mEventTemplates ); |
318 | addItemStringList( "TodoTemplates", &mTodoTemplates ); | 319 | addItemStringList( "TodoTemplates", &mTodoTemplates ); |
319 | 320 | ||
320 | addItemInt("DestinationPolicy",&mDestination,standardDestination); | 321 | addItemInt("DestinationPolicy",&mDestination,standardDestination); |
321 | 322 | ||
322 | 323 | ||
323 | 324 | ||
324 | } | 325 | } |
325 | 326 | ||
326 | 327 | ||
327 | KOPrefs::~KOPrefs() | 328 | KOPrefs::~KOPrefs() |
328 | { | 329 | { |
329 | if (mInstance == this) | 330 | if (mInstance == this) |
330 | mInstance = insd.setObject(0); | 331 | mInstance = insd.setObject(0); |
331 | setLocaleDict( 0 ); | 332 | setLocaleDict( 0 ); |
332 | if ( mLocaleDict ) | 333 | if ( mLocaleDict ) |
333 | delete mLocaleDict; | 334 | delete mLocaleDict; |
334 | //qDebug("KOPrefs::~KOPrefs() "); | 335 | //qDebug("KOPrefs::~KOPrefs() "); |
335 | } | 336 | } |
336 | 337 | ||
337 | 338 | ||
338 | KOPrefs *KOPrefs::instance() | 339 | KOPrefs *KOPrefs::instance() |
339 | { | 340 | { |
340 | if (!mInstance) { | 341 | if (!mInstance) { |
341 | mInstance = insd.setObject(new KOPrefs()); | 342 | mInstance = insd.setObject(new KOPrefs()); |
342 | mInstance->readConfig(); | 343 | mInstance->readConfig(); |
343 | } | 344 | } |
344 | 345 | ||
345 | return mInstance; | 346 | return mInstance; |
346 | } | 347 | } |
347 | 348 | ||
348 | void KOPrefs::usrSetDefaults() | 349 | void KOPrefs::usrSetDefaults() |
349 | { | 350 | { |
350 | 351 | ||
351 | } | 352 | } |
352 | 353 | ||
353 | void KOPrefs::fillMailDefaults() | 354 | void KOPrefs::fillMailDefaults() |
354 | { | 355 | { |
355 | if (mName.isEmpty()) mName = i18n("Anonymous"); | 356 | if (mName.isEmpty()) mName = i18n("Anonymous"); |
356 | if (mEmail.isEmpty()) mEmail = i18n("nobody@nowhere"); | 357 | if (mEmail.isEmpty()) mEmail = i18n("nobody@nowhere"); |
357 | } | 358 | } |
358 | 359 | ||
359 | void KOPrefs::setTimeZoneIdDefault() | 360 | void KOPrefs::setTimeZoneIdDefault() |
360 | { | 361 | { |
361 | mTimeZoneId = i18n("+01:00 Europe/Oslo(CET)"); | 362 | mTimeZoneId = i18n("+01:00 Europe/Oslo(CET)"); |
362 | } | 363 | } |
363 | 364 | ||
364 | void KOPrefs::setCategoryDefaults() | 365 | void KOPrefs::setCategoryDefaults() |
365 | { | 366 | { |
366 | mCustomCategories.clear(); | 367 | mCustomCategories.clear(); |
367 | mCustomCategories = getDefaultList(); | 368 | mCustomCategories = getDefaultList(); |
368 | 369 | ||
369 | QStringList::Iterator it; | 370 | QStringList::Iterator it; |
370 | for (it = mCustomCategories.begin();it != mCustomCategories.end();++it ) { | 371 | for (it = mCustomCategories.begin();it != mCustomCategories.end();++it ) { |
371 | setCategoryColor(*it,mDefaultCategoryColor); | 372 | setCategoryColor(*it,mDefaultCategoryColor); |
372 | } | 373 | } |
373 | } | 374 | } |
374 | 375 | ||
375 | QStringList KOPrefs::getDefaultList() | 376 | QStringList KOPrefs::getDefaultList() |
376 | { | 377 | { |
377 | QStringList retval ; | 378 | QStringList retval ; |
378 | retval << i18n("Anniversary") << i18n("Appointment") << i18n("Birthday") << i18n("Business") << i18n("Business Travel") << i18n("Cinema") << i18n("Customer") | 379 | retval << i18n("Anniversary") << i18n("Appointment") << i18n("Birthday") << i18n("Business") << i18n("Business Travel") << i18n("Cinema") << i18n("Customer") |
379 | << i18n("Break")<< i18n("Breakfast")<< i18n("Competition")<< i18n("Dinner") | 380 | << i18n("Break")<< i18n("Breakfast")<< i18n("Competition")<< i18n("Dinner") |
380 | << i18n("Education")<< i18n("Family") << i18n("Favorites") << i18n("Festival")<< i18n("Fishing")<< i18n("Flight") << i18n("Gifts") | 381 | << i18n("Education")<< i18n("Family") << i18n("Favorites") << i18n("Festival")<< i18n("Fishing")<< i18n("Flight") << i18n("Gifts") |
381 | << i18n("Holiday") << i18n("Holiday Cards")<< i18n("Hot Contacts") << i18n("Hiking") << i18n("Hunting") << i18n("Key Customer") << i18n("Kids") | 382 | << i18n("Holiday") << i18n("Holiday Cards")<< i18n("Hot Contacts") << i18n("Hiking") << i18n("Hunting") << i18n("Key Customer") << i18n("Kids") |
382 | << i18n("Lunch") << i18n("Meeting") << i18n("Miscellaneous") << i18n("Partner")<< i18n("Party") << i18n("Personal") << i18n("Personal Travel") | 383 | << i18n("Lunch") << i18n("Meeting") << i18n("Miscellaneous") << i18n("Partner")<< i18n("Party") << i18n("Personal") << i18n("Personal Travel") |
383 | << i18n("PHB") << i18n("Phone Calls") << i18n("Projects") << i18n("Recurring") << i18n("School") << i18n("Shopping") | 384 | << i18n("PHB") << i18n("Phone Calls") << i18n("Projects") << i18n("Recurring") << i18n("School") << i18n("Shopping") |
384 | << i18n("Speach") << i18n("Special Occasion") << i18n("Sports") << i18n("Talk") << i18n("Travel") << i18n("TV")<< i18n("University") | 385 | << i18n("Speach") << i18n("Special Occasion") << i18n("Sports") << i18n("Talk") << i18n("Travel") << i18n("TV")<< i18n("University") |
385 | << i18n("Vacation") << i18n("VIP") << i18n("SyncEvent") ; | 386 | << i18n("Vacation") << i18n("VIP") << i18n("SyncEvent") ; |
386 | retval.sort(); | 387 | retval.sort(); |
387 | return retval; | 388 | return retval; |
388 | } | 389 | } |
389 | 390 | ||
390 | void KOPrefs::usrReadConfig() | 391 | void KOPrefs::usrReadConfig() |
391 | { | 392 | { |
392 | mLocaleDict = 0; | 393 | mLocaleDict = 0; |
393 | // pending LR fix translation | 394 | // pending LR fix translation |
394 | // qDebug("KOPrefs::usrReadConfig() fix translation "); | 395 | // qDebug("KOPrefs::usrReadConfig() fix translation "); |
395 | if ( mPreferredLanguage == 1 ) { | 396 | if ( mPreferredLanguage == 1 ) { |
396 | mLocaleDict = new QDict<QString>; | 397 | mLocaleDict = new QDict<QString>; |
397 | int i = 0; | 398 | int i = 0; |
398 | QString fw ( germanwords[i] [0]); | 399 | QString fw ( germanwords[i] [0]); |
399 | while ( !fw.isEmpty() ) { | 400 | while ( !fw.isEmpty() ) { |
400 | mLocaleDict->insert( fw, new QString (germanwords[i] [1] )); | 401 | mLocaleDict->insert( fw, new QString (germanwords[i] [1] )); |
401 | ++i; | 402 | ++i; |
402 | fw = germanwords[i] [0]; | 403 | fw = germanwords[i] [0]; |
403 | } | 404 | } |
404 | 405 | ||
405 | setLocaleDict( mLocaleDict ); | 406 | setLocaleDict( mLocaleDict ); |
406 | } else { | 407 | } else { |
407 | QString fileName ; | 408 | QString fileName ; |
408 | if ( mPreferredLanguage == 3 ) | 409 | if ( mPreferredLanguage == 3 ) |
409 | fileName = MainWindow::resourcePath()+"usertranslation.txt"; | 410 | fileName = MainWindow::resourcePath()+"usertranslation.txt"; |
410 | else if ( mPreferredLanguage == 2 ) | 411 | else if ( mPreferredLanguage == 2 ) |
411 | fileName = MainWindow::resourcePath()+"frenchtranslation.txt"; | 412 | fileName = MainWindow::resourcePath()+"frenchtranslation.txt"; |
412 | else return; | 413 | else return; |
413 | QFile file( fileName ); | 414 | QFile file( fileName ); |
414 | if (file.open( IO_ReadOnly ) ) { | 415 | if (file.open( IO_ReadOnly ) ) { |
415 | QTextStream ts( &file ); | 416 | QTextStream ts( &file ); |
416 | ts.setCodec( QTextCodec::codecForLocale() ); | 417 | ts.setCodec( QTextCodec::codecForLocale() ); |
417 | QString text = ts.read(); | 418 | QString text = ts.read(); |
418 | file.close(); | 419 | file.close(); |
419 | text.replace( QRegExp("\\\\n"), "\n" ); | 420 | text.replace( QRegExp("\\\\n"), "\n" ); |
420 | QString line; | 421 | QString line; |
421 | QString we; | 422 | QString we; |
422 | QString wt; | 423 | QString wt; |
423 | int br = 0; | 424 | int br = 0; |
424 | int nbr; | 425 | int nbr; |
425 | nbr = text.find ( "},", br ); | 426 | nbr = text.find ( "},", br ); |
426 | line = text.mid( br, nbr - br ); | 427 | line = text.mid( br, nbr - br ); |
427 | br = nbr+1; | 428 | br = nbr+1; |
428 | int se, ee, st, et; | 429 | int se, ee, st, et; |
429 | mLocaleDict = new QDict<QString>; | 430 | mLocaleDict = new QDict<QString>; |
430 | QString end = "{ \"\",\"\" }"; | 431 | QString end = "{ \"\",\"\" }"; |
431 | while ( (line != end) && (br > 1) ) { | 432 | while ( (line != end) && (br > 1) ) { |
432 | //qDebug("%d *%s* ", br, line.latin1()); | 433 | //qDebug("%d *%s* ", br, line.latin1()); |
433 | se = line.find("\"")+1; | 434 | se = line.find("\"")+1; |
434 | et = line.findRev("\"",-1); | 435 | et = line.findRev("\"",-1); |
435 | ee = line.find("\",\""); | 436 | ee = line.find("\",\""); |
436 | st = ee+3; | 437 | st = ee+3; |
437 | we = line.mid( se, ee-se ); | 438 | we = line.mid( se, ee-se ); |
438 | wt = line.mid( st, et-st ); | 439 | wt = line.mid( st, et-st ); |
439 | //qDebug("*%s* *%s* ", we.latin1(), wt.latin1()); | 440 | //qDebug("*%s* *%s* ", we.latin1(), wt.latin1()); |
440 | mLocaleDict->insert( we, new QString (wt) ); | 441 | mLocaleDict->insert( we, new QString (wt) ); |
441 | nbr = text.find ( "}", br ); | 442 | nbr = text.find ( "}", br ); |
442 | line = text.mid( br, nbr - br ); | 443 | line = text.mid( br, nbr - br ); |
443 | br = nbr+1; | 444 | br = nbr+1; |
444 | } | 445 | } |
445 | //qDebug("end *%s* ", end.latin1()); | 446 | //qDebug("end *%s* ", end.latin1()); |
446 | 447 | ||
447 | setLocaleDict( mLocaleDict ); | 448 | setLocaleDict( mLocaleDict ); |
448 | } else { | 449 | } else { |
449 | qDebug("KO: Cannot find translation file %s",fileName.latin1() ); | 450 | qDebug("KO: Cannot find translation file %s",fileName.latin1() ); |
450 | } | 451 | } |
451 | 452 | ||
452 | } | 453 | } |
453 | config()->setGroup("General"); | 454 | config()->setGroup("General"); |
454 | 455 | ||
455 | mCustomCategories = config()->readListEntry("Custom Categories"); | 456 | mCustomCategories = config()->readListEntry("Custom Categories"); |
456 | if ( KOPrefs::instance()->mLanguageChanged ) { | 457 | if ( KOPrefs::instance()->mLanguageChanged ) { |
457 | mLocationDefaults.clear(); | 458 | mLocationDefaults.clear(); |
458 | mEventSummaryUser.clear(); | 459 | mEventSummaryUser.clear(); |
459 | mTodoSummaryUser.clear(); | 460 | mTodoSummaryUser.clear(); |
460 | } | 461 | } |
461 | if (mLocationDefaults.isEmpty()) { | 462 | if (mLocationDefaults.isEmpty()) { |
462 | mLocationDefaults << i18n("Home") << i18n("Office") << i18n("Libary") << i18n("School") << i18n("Doctor") << i18n("Beach") | 463 | mLocationDefaults << i18n("Home") << i18n("Office") << i18n("Libary") << i18n("School") << i18n("Doctor") << i18n("Beach") |
463 | << i18n("University") << i18n("Restaurant") << i18n("Bar") << i18n("Conference room") << i18n("Cinema") << i18n("Lake") << i18n("Kindergarden") | 464 | << i18n("University") << i18n("Restaurant") << i18n("Bar") << i18n("Conference room") << i18n("Cinema") << i18n("Lake") << i18n("Kindergarden") |
464 | << i18n("Germany") << i18n("Sweden") << i18n("Forest") << i18n("Desert") << i18n("Kitchen") ; | 465 | << i18n("Germany") << i18n("Sweden") << i18n("Forest") << i18n("Desert") << i18n("Kitchen") ; |
465 | // << i18n("") << i18n("") << i18n("") << i18n("") << i18n("") << i18n("") << i18n("") << i18n("") | 466 | // << i18n("") << i18n("") << i18n("") << i18n("") << i18n("") << i18n("") << i18n("") << i18n("") |
466 | mLocationDefaults.sort(); | 467 | mLocationDefaults.sort(); |
467 | } | 468 | } |
468 | 469 | ||
469 | if (mEventSummaryUser.isEmpty()) { | 470 | if (mEventSummaryUser.isEmpty()) { |
470 | mEventSummaryUser = getDefaultList() ; | 471 | mEventSummaryUser = getDefaultList() ; |
471 | } | 472 | } |
472 | if (mTodoSummaryUser.isEmpty()) { | 473 | if (mTodoSummaryUser.isEmpty()) { |
473 | mTodoSummaryUser = getDefaultList() ; | 474 | mTodoSummaryUser = getDefaultList() ; |
474 | } | 475 | } |
475 | 476 | ||
476 | if (mCustomCategories.isEmpty()) setCategoryDefaults(); | 477 | if (mCustomCategories.isEmpty()) setCategoryDefaults(); |
477 | 478 | ||
478 | config()->setGroup("Personal Settings"); | 479 | config()->setGroup("Personal Settings"); |
479 | mName = config()->readEntry("user_name",""); | 480 | mName = config()->readEntry("user_name",""); |
480 | mEmail = config()->readEntry("user_email",""); | 481 | mEmail = config()->readEntry("user_email",""); |
481 | fillMailDefaults(); | 482 | fillMailDefaults(); |
482 | 483 | ||
483 | config()->setGroup("Category Colors"); | 484 | config()->setGroup("Category Colors"); |
484 | QStringList::Iterator it; | 485 | QStringList::Iterator it; |
485 | for (it = mCustomCategories.begin();it != mCustomCategories.end();++it ) { | 486 | for (it = mCustomCategories.begin();it != mCustomCategories.end();++it ) { |
486 | setCategoryColor(*it,config()->readColorEntry(*it,&mDefaultCategoryColor)); | 487 | setCategoryColor(*it,config()->readColorEntry(*it,&mDefaultCategoryColor)); |
487 | 488 | ||
488 | } | 489 | } |
489 | 490 | ||
490 | if (mTimeZoneId.isEmpty()) { | 491 | if (mTimeZoneId.isEmpty()) { |
491 | setTimeZoneIdDefault(); | 492 | setTimeZoneIdDefault(); |
492 | } | 493 | } |
493 | KPimPrefs::usrReadConfig(); | 494 | KPimPrefs::usrReadConfig(); |
494 | } | 495 | } |
495 | 496 | ||
496 | 497 | ||
497 | void KOPrefs::usrWriteConfig() | 498 | void KOPrefs::usrWriteConfig() |
498 | { | 499 | { |
499 | config()->setGroup("General"); | 500 | config()->setGroup("General"); |
500 | config()->writeEntry("Custom Categories",mCustomCategories); | 501 | config()->writeEntry("Custom Categories",mCustomCategories); |
501 | 502 | ||
502 | config()->setGroup("Personal Settings"); | 503 | config()->setGroup("Personal Settings"); |
503 | config()->writeEntry("user_name",mName); | 504 | config()->writeEntry("user_name",mName); |
504 | config()->writeEntry("user_email",mEmail); | 505 | config()->writeEntry("user_email",mEmail); |
505 | 506 | ||
506 | config()->setGroup("Category Colors"); | 507 | config()->setGroup("Category Colors"); |
507 | QDictIterator<QColor> it(mCategoryColors); | 508 | QDictIterator<QColor> it(mCategoryColors); |
508 | while (it.current()) { | 509 | while (it.current()) { |
509 | config()->writeEntry(it.currentKey(),*(it.current())); | 510 | config()->writeEntry(it.currentKey(),*(it.current())); |
510 | ++it; | 511 | ++it; |
511 | } | 512 | } |
512 | 513 | ||
513 | 514 | ||
514 | KPimPrefs::usrWriteConfig(); | 515 | KPimPrefs::usrWriteConfig(); |
515 | } | 516 | } |
516 | 517 | ||
517 | void KOPrefs::setCategoryColor(QString cat,const QColor & color) | 518 | void KOPrefs::setCategoryColor(QString cat,const QColor & color) |
518 | { | 519 | { |
519 | mCategoryColors.replace(cat,new QColor(color)); | 520 | mCategoryColors.replace(cat,new QColor(color)); |
520 | } | 521 | } |
521 | 522 | ||
522 | QColor *KOPrefs::categoryColor(QString cat) | 523 | QColor *KOPrefs::categoryColor(QString cat) |
523 | { | 524 | { |
524 | QColor *color = 0; | 525 | QColor *color = 0; |
525 | 526 | ||
526 | if (!cat.isEmpty()) color = mCategoryColors[cat]; | 527 | if (!cat.isEmpty()) color = mCategoryColors[cat]; |
527 | 528 | ||
528 | if (color) return color; | 529 | if (color) return color; |
529 | else return &mDefaultCategoryColor; | 530 | else return &mDefaultCategoryColor; |
530 | } | 531 | } |
531 | 532 | ||
532 | void KOPrefs::setFullName(const QString &name) | 533 | void KOPrefs::setFullName(const QString &name) |
533 | { | 534 | { |
534 | mName = name; | 535 | mName = name; |
535 | } | 536 | } |
536 | 537 | ||
537 | void KOPrefs::setEmail(const QString &email) | 538 | void KOPrefs::setEmail(const QString &email) |
538 | { | 539 | { |
539 | //qDebug(" KOPrefs::setEmai*********** %s",email.latin1() ); | 540 | //qDebug(" KOPrefs::setEmai*********** %s",email.latin1() ); |
540 | mEmail = email; | 541 | mEmail = email; |
541 | } | 542 | } |
542 | 543 | ||
543 | QString KOPrefs::fullName() | 544 | QString KOPrefs::fullName() |
544 | { | 545 | { |
545 | if (mEmailControlCenter) { | 546 | if (mEmailControlCenter) { |
546 | KEMailSettings settings; | 547 | KEMailSettings settings; |
547 | return settings.getSetting(KEMailSettings::RealName); | 548 | return settings.getSetting(KEMailSettings::RealName); |
548 | } else { | 549 | } else { |
549 | return mName; | 550 | return mName; |
550 | } | 551 | } |
551 | } | 552 | } |
552 | 553 | ||
553 | QString KOPrefs::email() | 554 | QString KOPrefs::email() |
554 | { | 555 | { |
555 | if (mEmailControlCenter) { | 556 | if (mEmailControlCenter) { |
556 | KEMailSettings settings; | 557 | KEMailSettings settings; |
557 | return settings.getSetting(KEMailSettings::EmailAddress); | 558 | return settings.getSetting(KEMailSettings::EmailAddress); |
558 | } else { | 559 | } else { |
559 | return mEmail; | 560 | return mEmail; |
560 | } | 561 | } |
561 | } | 562 | } |
562 | KConfig* KOPrefs::getConfig() | 563 | KConfig* KOPrefs::getConfig() |
563 | { | 564 | { |
564 | return config(); | 565 | return config(); |
565 | } | 566 | } |
diff --git a/korganizer/korganizer.pro b/korganizer/korganizer.pro index 02e608c..e501d88 100644 --- a/korganizer/korganizer.pro +++ b/korganizer/korganizer.pro | |||
@@ -1,189 +1,193 @@ | |||
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 \ |
86 | koprefs.h \ | 90 | koprefs.h \ |
87 | koprefsdialog.h \ | 91 | koprefsdialog.h \ |
88 | kotimespanview.h \ | 92 | kotimespanview.h \ |
89 | kotodoeditor.h \ | 93 | kotodoeditor.h \ |
90 | kotodoview.h \ | 94 | kotodoview.h \ |
91 | kotodoviewitem.h \ | 95 | kotodoviewitem.h \ |
92 | koviewmanager.h \ | 96 | koviewmanager.h \ |
93 | kowhatsnextview.h \ | 97 | kowhatsnextview.h \ |
94 | ktimeedit.h \ | 98 | ktimeedit.h \ |
95 | lineview.h \ | 99 | lineview.h \ |
96 | mainwindow.h \ | 100 | mainwindow.h \ |
97 | navigatorbar.h \ | 101 | navigatorbar.h \ |
98 | outgoingdialog.h \ | 102 | outgoingdialog.h \ |
99 | outgoingdialog_base.h \ | 103 | outgoingdialog_base.h \ |
100 | publishdialog.h \ | 104 | publishdialog.h \ |
101 | publishdialog_base.h \ | 105 | publishdialog_base.h \ |
102 | savetemplatedialog.h \ | 106 | savetemplatedialog.h \ |
103 | searchdialog.h \ | 107 | searchdialog.h \ |
104 | simplealarmclient.h \ | 108 | simplealarmclient.h \ |
105 | statusdialog.h \ | 109 | statusdialog.h \ |
106 | timeline.h \ | 110 | timeline.h \ |
107 | timespanview.h \ | 111 | timespanview.h \ |
108 | version.h \ | 112 | version.h \ |
109 | ../kalarmd/alarmdialog.h \ | 113 | ../kalarmd/alarmdialog.h \ |
110 | 114 | ||
111 | 115 | ||
112 | SOURCES = \ | 116 | SOURCES = \ |
113 | filteredit_base.cpp \ | 117 | filteredit_base.cpp \ |
114 | calendarview.cpp \ | 118 | calendarview.cpp \ |
115 | datenavigator.cpp \ | 119 | datenavigator.cpp \ |
116 | docprefs.cpp \ | 120 | docprefs.cpp \ |
117 | filtereditdialog.cpp \ | 121 | filtereditdialog.cpp \ |
118 | incomingdialog.cpp \ | 122 | incomingdialog.cpp \ |
119 | incomingdialog_base.cpp \ | 123 | incomingdialog_base.cpp \ |
120 | journalentry.cpp \ | 124 | journalentry.cpp \ |
121 | kdatenavigator.cpp \ | 125 | kdatenavigator.cpp \ |
122 | koagenda.cpp \ | 126 | koagenda.cpp \ |
123 | koagendaitem.cpp \ | 127 | koagendaitem.cpp \ |
124 | koagendaview.cpp \ | 128 | koagendaview.cpp \ |
125 | kocounterdialog.cpp \ | 129 | kocounterdialog.cpp \ |
126 | kodaymatrix.cpp \ | 130 | kodaymatrix.cpp \ |
127 | kodialogmanager.cpp \ | 131 | kodialogmanager.cpp \ |
128 | koeditordetails.cpp \ | 132 | koeditordetails.cpp \ |
129 | koeditorgeneral.cpp \ | 133 | koeditorgeneral.cpp \ |
130 | koeditorgeneralevent.cpp \ | 134 | koeditorgeneralevent.cpp \ |
131 | koeditorgeneraltodo.cpp \ | 135 | koeditorgeneraltodo.cpp \ |
132 | koeditorrecurrence.cpp \ | 136 | koeditorrecurrence.cpp \ |
133 | koeventeditor.cpp \ | 137 | koeventeditor.cpp \ |
134 | koeventpopupmenu.cpp \ | 138 | koeventpopupmenu.cpp \ |
135 | koeventview.cpp \ | 139 | koeventview.cpp \ |
136 | koeventviewer.cpp \ | 140 | koeventviewer.cpp \ |
137 | koeventviewerdialog.cpp \ | 141 | koeventviewerdialog.cpp \ |
138 | kofilterview.cpp \ | 142 | kofilterview.cpp \ |
139 | koglobals.cpp \ | 143 | koglobals.cpp \ |
140 | koincidenceeditor.cpp \ | 144 | koincidenceeditor.cpp \ |
141 | kojournalview.cpp \ | 145 | kojournalview.cpp \ |
142 | kolistview.cpp \ | 146 | kolistview.cpp \ |
143 | kolocationbox.cpp \ | 147 | kolocationbox.cpp \ |
144 | komonthview.cpp \ | 148 | komonthview.cpp \ |
145 | koprefs.cpp \ | 149 | koprefs.cpp \ |
146 | koprefsdialog.cpp \ | 150 | koprefsdialog.cpp \ |
147 | kotimespanview.cpp \ | 151 | kotimespanview.cpp \ |
148 | kotodoeditor.cpp \ | 152 | kotodoeditor.cpp \ |
149 | kotodoview.cpp \ | 153 | kotodoview.cpp \ |
150 | kotodoviewitem.cpp \ | 154 | kotodoviewitem.cpp \ |
151 | koviewmanager.cpp \ | 155 | koviewmanager.cpp \ |
152 | kowhatsnextview.cpp \ | 156 | kowhatsnextview.cpp \ |
153 | ktimeedit.cpp \ | 157 | ktimeedit.cpp \ |
154 | lineview.cpp \ | 158 | lineview.cpp \ |
155 | main.cpp \ | 159 | main.cpp \ |
156 | mainwindow.cpp \ | 160 | mainwindow.cpp \ |
157 | navigatorbar.cpp \ | 161 | navigatorbar.cpp \ |
158 | outgoingdialog.cpp \ | 162 | outgoingdialog.cpp \ |
159 | outgoingdialog_base.cpp \ | 163 | outgoingdialog_base.cpp \ |
160 | publishdialog.cpp \ | 164 | publishdialog.cpp \ |
161 | publishdialog_base.cpp \ | 165 | publishdialog_base.cpp \ |
162 | savetemplatedialog.cpp \ | 166 | savetemplatedialog.cpp \ |
163 | searchdialog.cpp \ | 167 | searchdialog.cpp \ |
164 | simplealarmclient.cpp \ | 168 | simplealarmclient.cpp \ |
165 | statusdialog.cpp \ | 169 | statusdialog.cpp \ |
166 | timeline.cpp \ | 170 | timeline.cpp \ |
167 | timespanview.cpp \ | 171 | timespanview.cpp \ |
168 | ../kalarmd/alarmdialog.cpp | 172 | ../kalarmd/alarmdialog.cpp |
169 | 173 | ||
170 | HEADERS += calprintbase.h calprinter.h calprintplugins.h cellitem.h | 174 | HEADERS += calprintbase.h calprinter.h calprintplugins.h cellitem.h |
171 | INTERFACES += calprintdayconfig_base.ui \ | 175 | INTERFACES += calprintdayconfig_base.ui \ |
172 | calprintmonthconfig_base.ui \ | 176 | calprintmonthconfig_base.ui \ |
173 | calprinttodoconfig_base.ui \ | 177 | calprinttodoconfig_base.ui \ |
174 | calprintweekconfig_base.ui | 178 | calprintweekconfig_base.ui |
175 | SOURCES += calprintbase.cpp calprinter.cpp calprintplugins.cpp cellitem.cpp | 179 | SOURCES += calprintbase.cpp calprinter.cpp calprintplugins.cpp cellitem.cpp |
176 | 180 | ||
177 | 181 | ||
178 | 182 | ||
179 | win32: { | 183 | win32: { |
180 | HEADERS += ../outport/msoutl9.h \ | 184 | HEADERS += ../outport/msoutl9.h \ |
181 | koimportoldialog.h | 185 | koimportoldialog.h |
182 | 186 | ||
183 | 187 | ||
184 | SOURCES += ../outport/msoutl9.cpp \ | 188 | SOURCES += ../outport/msoutl9.cpp \ |
185 | koimportoldialog.cpp | 189 | koimportoldialog.cpp |
186 | 190 | ||
187 | 191 | ||
188 | } | 192 | } |
189 | 193 | ||