-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 4 | ||||
-rw-r--r-- | korganizer/koprefsdialog.cpp | 179 |
2 files changed, 102 insertions, 81 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index e8ac960..b976f1b 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1175,135 +1175,135 @@ | |||
1175 | { "Exclude","Exclusive" }, | 1175 | { "Exclude","Exclusive" }, |
1176 | { "Edit Selection...","Editiere Auswahl" }, | 1176 | { "Edit Selection...","Editiere Auswahl" }, |
1177 | { "recurring events","wiederholende Termine" }, | 1177 | { "recurring events","wiederholende Termine" }, |
1178 | { "recurr. events","wiederh.Termine" }, | 1178 | { "recurr. events","wiederh.Termine" }, |
1179 | { "completed to-dos","erledigte Todos" }, | 1179 | { "completed to-dos","erledigte Todos" }, |
1180 | { "events","Termine" }, | 1180 | { "events","Termine" }, |
1181 | { "todos","Todos" }, | 1181 | { "todos","Todos" }, |
1182 | { "journals","Journale" }, | 1182 | { "journals","Journale" }, |
1183 | { "public","öffentl." }, | 1183 | { "public","öffentl." }, |
1184 | { "private","privat" }, | 1184 | { "private","privat" }, |
1185 | { "confidential","vertraul." }, | 1185 | { "confidential","vertraul." }, |
1186 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, | 1186 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, |
1187 | { "Yesterday","Gestern" }, | 1187 | { "Yesterday","Gestern" }, |
1188 | { "Day after tomorrow","Übermorgen" }, | 1188 | { "Day after tomorrow","Übermorgen" }, |
1189 | { "Tomorrow","Morgen" }, | 1189 | { "Tomorrow","Morgen" }, |
1190 | { "Day before yesterday","Vorgestern" }, | 1190 | { "Day before yesterday","Vorgestern" }, |
1191 | { "Size %1","Größe %1" }, | 1191 | { "Size %1","Größe %1" }, |
1192 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1192 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1193 | { " (%1 y.)"," (%1 J.)" }, | 1193 | { " (%1 y.)"," (%1 J.)" }, |
1194 | { "Allday:","Ganztägig:" }, | 1194 | { "Allday:","Ganztägig:" }, |
1195 | { "compl.todos","erled.Todos" }, | 1195 | { "compl.todos","erled.Todos" }, |
1196 | { "Day view","Tagesansicht" }, | 1196 | { "Day view","Tagesansicht" }, |
1197 | { "Next days","Nächste Tage" }, | 1197 | { "Next days","Nächste Tage" }, |
1198 | { "Next week","Nächste Woche" }, | 1198 | { "Next week","Nächste Woche" }, |
1199 | { "Next two weeks","Nächste zwei Wochen" }, | 1199 | { "Next two weeks","Nächste zwei Wochen" }, |
1200 | { "Next month","Nächster Monat" }, | 1200 | { "Next month","Nächster Monat" }, |
1201 | { "Journal view","Journal" }, | 1201 | { "Journal view","Journal" }, |
1202 | { "Display all opened","Zeige alle geöffnet" }, | 1202 | { "Display all opened","Zeige alle geöffnet" }, |
1203 | { "Display all closed","Zeige alle geschlossen" }, | 1203 | { "Display all closed","Zeige alle geschlossen" }, |
1204 | { "Display all flat","Zeige alle flach" }, | 1204 | { "Display all flat","Zeige alle flach" }, |
1205 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1205 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1206 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1206 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1207 | { "Select week %1-%2","Wähle Woche %1-%2" }, | 1207 | { "Select week %1-%2","Wähle Woche %1-%2" }, |
1208 | { "Select Week","Wähle Woche" }, | 1208 | { "Select Week","Wähle Woche" }, |
1209 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, | 1209 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, |
1210 | { "Set Alarm!","Setze Alarm!" }, | 1210 | { "Set Alarm!","Setze Alarm!" }, |
1211 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, | 1211 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, |
1212 | { " and "," und " }, | 1212 | { " and "," und " }, |
1213 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, | 1213 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, |
1214 | { "Mail to selected","Mail an Ausgewählte" }, | 1214 | { "Mail to selected","Mail an Ausgewählte" }, |
1215 | { "Mail to all","Mail an Alle" }, | 1215 | { "Mail to all","Mail an Alle" }, |
1216 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, | 1216 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, |
1217 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, | 1217 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, |
1218 | { " on"," am" }, | 1218 | { " on"," am" }, |
1219 | { " completed on "," erledigt am " }, | 1219 | { " completed on "," erledigt am " }, |
1220 | { "Save as Event template","Speichere als Vorlage" }, | 1220 | { "Save as Event template","Speichere als Vorlage" }, |
1221 | { "Load Event template","Lade Termin Vorlage" }, | 1221 | { "Load Event template","Lade Termin Vorlage" }, |
1222 | { "Save as Journal template","Speichere als Journal Vorlage" }, | 1222 | { "Save as Journal template","Speichere als Journal Vorlage" }, |
1223 | { "Insert Journal template","Füge Journal Vorlage ein" }, | 1223 | { "Insert Journal template","Füge Journal Vorlage ein" }, |
1224 | { "Sub todos:<br>","Unter Todos:<br>" }, | 1224 | { "Sub todos:<br>","Unter Todos:<br>" }, |
1225 | { "Parent todo:<br>","Über Todo:<br>" }, | 1225 | { "Parent todo:<br>","Über Todo:<br>" }, |
1226 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, | 1226 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, |
1227 | { " completed"," erledigt" }, | 1227 | { " completed"," erledigt" }, |
1228 | { "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.info --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, | 1228 | { "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.info --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, |
1229 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, | 1229 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, |
1230 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, | 1230 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, |
1231 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, | 1231 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, |
1232 | { "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" }, | 1232 | { "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" }, |
1233 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, | 1233 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, |
1234 | { "Error","Fehler" }, | 1234 | { "Error","Fehler" }, |
1235 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, | 1235 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, |
1236 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, | 1236 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, |
1237 | { "Warning","Warnung" }, | 1237 | { "Warning","Warnung" }, |
1238 | { "Select week number","Wähle Wochen Nummer" }, | 1238 | { "Select week number","Wähle Wochen Nummer" }, |
1239 | { "Februar","Februar" }, | 1239 | { "Februar","Februar" }, |
1240 | { "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, | 1240 | { "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, |
1241 | { "W","W" }, | 1241 | { "W","W" }, |
1242 | { "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, | 1242 | { "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, |
1243 | { "T: %1","T: %1" }, | 1243 | { "T: %1","T: %1" }, |
1244 | { "Start: ","Start: " }, | 1244 | { "Start: ","Start: " }, |
1245 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, | 1245 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, |
1246 | { "Password for remote access:","Passwort für fernen Zugriff:" }, | 1246 | { "Password for remote access:","Passwort für fernen Zugriff:" }, |
1247 | { "Remote IP address:","Ferne IP Adresse:" }, | 1247 | { "Remote IP address:","Ferne IP Adresse:" }, |
1248 | { "Remote port number:","Ferne Port Nummer:" }, | 1248 | { "Remote port number:","Ferne Port Nummer:" }, |
1249 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, | 1249 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, |
1250 | { "Remote from: ","Fern von: " }, | 1250 | { "Remote from: ","Fern von: " }, |
1251 | { "Local from: ","Lokal von: " }, | 1251 | { "Local from: ","Lokal von: " }, |
1252 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out\n","Synchronisationsübersicht:\n\n %d lokal hinzugefügt\n %d fern hinzugefügt\n %d lokal geändert\n %d fern geändert\n %d lokal gelöscht\n %d fern gelöscht\n %d eingehende ausgefiltert\n %d ausgehende ausgefiltert\n" }, | 1252 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out\n","Synchronisationsübersicht:\n\n %d lokal hinzugefügt\n %d fern hinzugefügt\n %d lokal geändert\n %d fern geändert\n %d lokal gelöscht\n %d fern gelöscht\n %d eingehende ausgefiltert\n %d ausgehende ausgefiltert\n" }, |
1253 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, | 1253 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, |
1254 | { "Write back","Schreibe zurück" }, | 1254 | { "Write back","Schreibe zurück" }, |
1255 | { "KO/Pi Synchronization","KO/Pi Synchronisation" }, | 1255 | { "KO/Pi Synchronization","KO/Pi Synchronisation" }, |
1256 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, | 1256 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, |
1257 | { "Received sync request","Sync Anfrage erhalten" }, | 1257 | { "Received sync request","Sync Anfrage erhalten" }, |
1258 | { "Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog.","Ferne Synchronisation ...\n\nBenutze diese Anwendung nicht!\n\nWenn das Syncen fehlschlägt kann\ndieser Dialog geschlossen werden." }, | 1258 | { "Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog.","Ferne Synchronisation ...\n\nBenutze diese Anwendung nicht!\n\nWenn das Syncen fehlschlägt kann\ndieser Dialog geschlossen werden." }, |
1259 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, | 1259 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, |
1260 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, | 1260 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, |
1261 | { "Sending file...","Sende Datei..." }, | 1261 | { "Sending file...","Sende Datei..." }, |
1262 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, | 1262 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, |
1263 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, | 1263 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, |
1264 | { "Received %1 bytes","%1 Bytes erhalten" }, | 1264 | { "Received %1 bytes","%1 Bytes erhalten" }, |
1265 | { "Writing file to disk...","Speichere Datei..." }, | 1265 | { "Writing file to disk...","Speichere Datei..." }, |
1266 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, | 1266 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, |
1267 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, | 1267 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, |
1268 | { "Synchronize!","Synchronisiere!" }, | 1268 | { "Synchronize!","Synchronisiere!" }, |
1269 | { "High clock skew!","Großer Uhrzeitunterschied!" }, | 1269 | { "High clock skew!","Großer Uhrzeitunterschied!" }, |
1270 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, | 1270 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, |
1271 | { "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" }, | 1271 | { "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" }, |
1272 | { "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, | 1272 | { "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, |
1273 | { "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, | 1273 | { "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, |
1274 | { "List week view","Listenwochenansicht" }, | 1274 | { "List week view","Listenwochenansicht" }, |
1275 | { "List week","Listenwochenansicht" }, | 1275 | { "List week","Listenwochenansicht" }, |
1276 | { "Next Week","Nächste Woche" }, | 1276 | { "Next Week","Nächste Woche" }, |
1277 | { "Previous Week","Vorherige Woche" }, | 1277 | { "Previous Week","Vorherige Woche" }, |
1278 | { "No items were found matching\nyour search expression.\nUse the wildcard characters\n'*' and '?' where needed.","Keine Einträge gefunden die\ndem Suchausdruck entsprechen.\nBenutze Platzhalter Zeichen\n'*' und '?' wo benötigt." }, | 1278 | { "No items were found matching\nyour search expression.\nUse the wildcard characters\n'*' and '?' where needed.","Keine Einträge gefunden die\ndem Suchausdruck entsprechen.\nBenutze Platzhalter Zeichen\n'*' und '?' wo benötigt." }, |
1279 | { "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, | 1279 | { "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, |
1280 | { "Details","Details" }, | 1280 | { "Details","Details" }, |
1281 | { "Created time","Erstellt Zeit" }, | 1281 | { "Created time","Erstellt Zeit" }, |
1282 | { "Last modified time","Geändert Zeit" }, | 1282 | { "Last modified time","Geändert Zeit" }, |
1283 | { "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, | 1283 | { "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, |
1284 | { "View Options","Anzeige Optionen" }, | 1284 | { "View Options","Anzeige Optionen" }, |
1285 | { "<b>Created: ","<b>Erstellt am: " }, | 1285 | { "<b>Created: ","<b>Erstellt am: " }, |
1286 | { "<b>Last modified: ","<b>Zuletzt geändert am: " }, | 1286 | { "<b>Last modified: ","<b>Zuletzt geändert am: " }, |
1287 | { "Journal: ","Journal: " }, | 1287 | { "Journal: ","Journal: " }, |
1288 | { "yearly","jährlich" }, | 1288 | { "yearly","jährlich" }, |
1289 | { "(%1) ","%1-" }, | 1289 | { "(%1) ","%1-" }, |
1290 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, | 1290 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, |
1291 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, | 1291 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, |
1292 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, | 1292 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, |
1293 | { "Summary/Loc.","Titel/Ort" }, | 1293 | { "Summary/Loc.","Titel/Ort" }, |
1294 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, | 1294 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, |
1295 | { "Week Number","Wochennummer" }, | 1295 | { "Week Number","Wochennummer" }, |
1296 | { "Import","Importiere" }, | 1296 | { "Import","Importiere" }, |
1297 | { "Export","Exportiere" }, | 1297 | { "Export","Exportiere" }, |
1298 | { "Beam","Beame" }, | 1298 | { "Beam","Beame" }, |
1299 | { "Export selected","Exportiere Selektierte" }, | 1299 | { "Export selected","Exportiere Selektierte" }, |
1300 | { "As iCal (ics) file...","Als iCal (ics) Datei..." }, | 1300 | { "As iCal (ics) file...","Als iCal (ics) Datei..." }, |
1301 | { "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, | 1301 | { "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, |
1302 | { "Journal/Details...","Journale/Details..." }, | 1302 | { "Journal/Details...","Journale/Details..." }, |
1303 | { "","" }, | 1303 | { "Agenda View","Agenda Ansicht" }, |
1304 | { "","" }, | 1304 | { "Show current time","Zeige aktuelle Zeit" }, |
1305 | { "","" }, | 1305 | { "","" }, |
1306 | { "","" }, | 1306 | { "","" }, |
1307 | { "","" }, | 1307 | { "","" }, |
1308 | { "","" }, | 1308 | { "","" }, |
1309 | { "","" }, | 1309 | { "","" }, |
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 443508d..40e8a99 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -211,728 +211,749 @@ void KOPrefsDialog::setupLocaleTab() | |||
211 | } | 211 | } |
212 | else { | 212 | else { |
213 | QWidget * hb = new QWidget( topFrame ); | 213 | QWidget * hb = new QWidget( topFrame ); |
214 | QHBoxLayout *hbLayout = new QHBoxLayout(hb); | 214 | QHBoxLayout *hbLayout = new QHBoxLayout(hb); |
215 | sb = | 215 | sb = |
216 | addWidBool(i18n("Week starts on Sunday"), | 216 | addWidBool(i18n("Week starts on Sunday"), |
217 | &(KOPrefs::instance()->mWeekStartsOnSunday),hb); | 217 | &(KOPrefs::instance()->mWeekStartsOnSunday),hb); |
218 | hbLayout->addWidget(sb->checkBox() ); | 218 | hbLayout->addWidget(sb->checkBox() ); |
219 | sb = | 219 | sb = |
220 | addWidBool(i18n("Use short date in (WN/E) view"), | 220 | addWidBool(i18n("Use short date in (WN/E) view"), |
221 | &(KOPrefs::instance()->mShortDateInViewer),hb); | 221 | &(KOPrefs::instance()->mShortDateInViewer),hb); |
222 | hbLayout->addWidget(sb->checkBox() ); | 222 | hbLayout->addWidget(sb->checkBox() ); |
223 | topLayout->addMultiCellWidget(hb, iii,iii,0,1); | 223 | topLayout->addMultiCellWidget(hb, iii,iii,0,1); |
224 | 224 | ||
225 | } | 225 | } |
226 | // KPrefsDialogWidBool *sb; //#ifndef DESKTOP_VERSION | 226 | // KPrefsDialogWidBool *sb; //#ifndef DESKTOP_VERSION |
227 | #if 0 | 227 | #if 0 |
228 | ++iii; | 228 | ++iii; |
229 | sb = | 229 | sb = |
230 | addWidBool(i18n("Quick load/save (w/o Unicode)"), | 230 | addWidBool(i18n("Quick load/save (w/o Unicode)"), |
231 | &(KOPrefs::instance()->mUseQuicksave),topFrame); | 231 | &(KOPrefs::instance()->mUseQuicksave),topFrame); |
232 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 232 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
233 | #endif | 233 | #endif |
234 | #endif | 234 | #endif |
235 | } | 235 | } |
236 | void KOPrefsDialog::showSyncPage() | 236 | void KOPrefsDialog::showSyncPage() |
237 | { | 237 | { |
238 | showPage ( 0 ) ; | 238 | showPage ( 0 ) ; |
239 | kdelibcfg->showTimeZoneTab() ; | 239 | kdelibcfg->showTimeZoneTab() ; |
240 | 240 | ||
241 | } | 241 | } |
242 | void KOPrefsDialog::setupSyncAlgTab() | 242 | void KOPrefsDialog::setupSyncAlgTab() |
243 | { | 243 | { |
244 | #if 0 | 244 | #if 0 |
245 | QLabel * lab; | 245 | QLabel * lab; |
246 | QFrame *topFrame = addPage(i18n("Sync Prefs"),0,0); | 246 | QFrame *topFrame = addPage(i18n("Sync Prefs"),0,0); |
247 | mSetupSyncAlgTab = topFrame; | 247 | mSetupSyncAlgTab = topFrame; |
248 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); | 248 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); |
249 | topLayout->setSpacing(spacingHint()); | 249 | topLayout->setSpacing(spacingHint()); |
250 | topLayout->setMargin(marginHint()); | 250 | topLayout->setMargin(marginHint()); |
251 | int iii = 0; | 251 | int iii = 0; |
252 | 252 | ||
253 | KPrefsDialogWidBool *sb = | 253 | KPrefsDialogWidBool *sb = |
254 | addWidBool(i18n("Ask for preferences before syncing"), | 254 | addWidBool(i18n("Ask for preferences before syncing"), |
255 | &(KOPrefs::instance()->mAskForPreferences),topFrame); | 255 | &(KOPrefs::instance()->mAskForPreferences),topFrame); |
256 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 256 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
257 | 257 | ||
258 | ++iii; | 258 | ++iii; |
259 | 259 | ||
260 | KPrefsDialogWidRadios *syncPrefsGroup = | 260 | KPrefsDialogWidRadios *syncPrefsGroup = |
261 | addWidRadios(i18n("Sync preferences:"),&(KOPrefs::instance()->mSyncAlgoPrefs), | 261 | addWidRadios(i18n("Sync preferences:"),&(KOPrefs::instance()->mSyncAlgoPrefs), |
262 | topFrame); | 262 | topFrame); |
263 | syncPrefsGroup->addRadio(i18n("Take local entry on conflict")); | 263 | syncPrefsGroup->addRadio(i18n("Take local entry on conflict")); |
264 | syncPrefsGroup->addRadio(i18n("Take remote entry on conflict")); | 264 | syncPrefsGroup->addRadio(i18n("Take remote entry on conflict")); |
265 | syncPrefsGroup->addRadio(i18n("Take newest entry on conflict")); | 265 | syncPrefsGroup->addRadio(i18n("Take newest entry on conflict")); |
266 | syncPrefsGroup->addRadio(i18n("Ask for every entry on conflict")); | 266 | syncPrefsGroup->addRadio(i18n("Ask for every entry on conflict")); |
267 | syncPrefsGroup->addRadio(i18n("Force take local entry always")); | 267 | syncPrefsGroup->addRadio(i18n("Force take local entry always")); |
268 | syncPrefsGroup->addRadio(i18n("Force take remote entry always")); | 268 | syncPrefsGroup->addRadio(i18n("Force take remote entry always")); |
269 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); | 269 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); |
270 | ++iii; | 270 | ++iii; |
271 | sb = | 271 | sb = |
272 | addWidBool(i18n("Show summary after syncing"), | 272 | addWidBool(i18n("Show summary after syncing"), |
273 | &(KOPrefs::instance()->mShowSyncSummary),topFrame); | 273 | &(KOPrefs::instance()->mShowSyncSummary),topFrame); |
274 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 274 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
275 | 275 | ||
276 | ++iii; | 276 | ++iii; |
277 | #endif | 277 | #endif |
278 | 278 | ||
279 | 279 | ||
280 | 280 | ||
281 | } | 281 | } |
282 | 282 | ||
283 | 283 | ||
284 | void KOPrefsDialog::setupSyncTab() | 284 | void KOPrefsDialog::setupSyncTab() |
285 | { | 285 | { |
286 | #if 0 | 286 | #if 0 |
287 | QLabel * lab; | 287 | QLabel * lab; |
288 | QFrame *topFrame = addPage(i18n("Sync Network"),0,0); | 288 | QFrame *topFrame = addPage(i18n("Sync Network"),0,0); |
289 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); | 289 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); |
290 | topLayout->setSpacing(spacingHint()); | 290 | topLayout->setSpacing(spacingHint()); |
291 | topLayout->setMargin(marginHint()); | 291 | topLayout->setMargin(marginHint()); |
292 | lab = new QLabel(i18n("Remote syncing (via ssh/scp)\nnetwork settings "), topFrame); | 292 | lab = new QLabel(i18n("Remote syncing (via ssh/scp)\nnetwork settings "), topFrame); |
293 | int iii = 0; | 293 | int iii = 0; |
294 | topLayout->addMultiCellWidget(lab , iii,iii,0,1); | 294 | topLayout->addMultiCellWidget(lab , iii,iii,0,1); |
295 | ++iii; | 295 | ++iii; |
296 | 296 | ||
297 | mRemoteIPEdit = new QLineEdit(topFrame); | 297 | mRemoteIPEdit = new QLineEdit(topFrame); |
298 | lab = new QLabel(mRemoteIPEdit, i18n("Remote IP:"), topFrame); | 298 | lab = new QLabel(mRemoteIPEdit, i18n("Remote IP:"), topFrame); |
299 | topLayout->addWidget(lab ,iii,0); | 299 | topLayout->addWidget(lab ,iii,0); |
300 | topLayout->addWidget(mRemoteIPEdit,iii,1); | 300 | topLayout->addWidget(mRemoteIPEdit,iii,1); |
301 | ++iii; | 301 | ++iii; |
302 | mRemoteUser = new QLineEdit(topFrame); | 302 | mRemoteUser = new QLineEdit(topFrame); |
303 | lab = new QLabel(mRemoteUser, i18n("Remote user:"), topFrame); | 303 | lab = new QLabel(mRemoteUser, i18n("Remote user:"), topFrame); |
304 | topLayout->addWidget(lab ,iii,0); | 304 | topLayout->addWidget(lab ,iii,0); |
305 | topLayout->addWidget(mRemoteUser, iii,1); | 305 | topLayout->addWidget(mRemoteUser, iii,1); |
306 | ++iii; | 306 | ++iii; |
307 | 307 | ||
308 | mRemoteFile = new QLineEdit(topFrame); | 308 | mRemoteFile = new QLineEdit(topFrame); |
309 | lab = new QLabel(mRemoteFile, i18n("Remote file:"), topFrame); | 309 | lab = new QLabel(mRemoteFile, i18n("Remote file:"), topFrame); |
310 | topLayout->addWidget(lab ,iii,0); | 310 | topLayout->addWidget(lab ,iii,0); |
311 | topLayout->addWidget(mRemoteFile,iii,1); | 311 | topLayout->addWidget(mRemoteFile,iii,1); |
312 | ++iii; | 312 | ++iii; |
313 | 313 | ||
314 | mLocalTempFile = new QLineEdit(topFrame); | 314 | mLocalTempFile = new QLineEdit(topFrame); |
315 | lab = new QLabel(mLocalTempFile, i18n("Local temp file:"), topFrame); | 315 | lab = new QLabel(mLocalTempFile, i18n("Local temp file:"), topFrame); |
316 | topLayout->addWidget(lab ,iii,0); | 316 | topLayout->addWidget(lab ,iii,0); |
317 | topLayout->addWidget(mLocalTempFile,iii,1); | 317 | topLayout->addWidget(mLocalTempFile,iii,1); |
318 | ++iii; | 318 | ++iii; |
319 | 319 | ||
320 | KPrefsDialogWidBool *wb = | 320 | KPrefsDialogWidBool *wb = |
321 | addWidBool(i18n("Write back synced file"), | 321 | addWidBool(i18n("Write back synced file"), |
322 | &(KOPrefs::instance()->mWriteBackFile),topFrame); | 322 | &(KOPrefs::instance()->mWriteBackFile),topFrame); |
323 | topLayout->addMultiCellWidget(wb->checkBox(), iii,iii,0,1); | 323 | topLayout->addMultiCellWidget(wb->checkBox(), iii,iii,0,1); |
324 | ++iii; | 324 | ++iii; |
325 | wb = | 325 | wb = |
326 | addWidBool(i18n("Write back existing entries only"), | 326 | addWidBool(i18n("Write back existing entries only"), |
327 | &(KOPrefs::instance()->mWriteBackExistingOnly),topFrame); | 327 | &(KOPrefs::instance()->mWriteBackExistingOnly),topFrame); |
328 | topLayout->addMultiCellWidget(wb->checkBox(), iii,iii,0,1); | 328 | topLayout->addMultiCellWidget(wb->checkBox(), iii,iii,0,1); |
329 | ++iii; | 329 | ++iii; |
330 | 330 | ||
331 | #endif | 331 | #endif |
332 | } | 332 | } |
333 | 333 | ||
334 | void KOPrefsDialog::setupMainTab() | 334 | void KOPrefsDialog::setupMainTab() |
335 | { | 335 | { |
336 | QFrame *topFrame = addPage(i18n("General"),0,0); | 336 | QFrame *topFrame = addPage(i18n("General"),0,0); |
337 | // DesktopIcon("identity",KIcon::SizeMedium)); | 337 | // DesktopIcon("identity",KIcon::SizeMedium)); |
338 | 338 | ||
339 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); | 339 | QGridLayout *topLayout = new QGridLayout(topFrame,5,2); |
340 | topLayout->setSpacing(spacingHint()); | 340 | topLayout->setSpacing(spacingHint()); |
341 | topLayout->setMargin(marginHint()); | 341 | topLayout->setMargin(marginHint()); |
342 | 342 | ||
343 | // KPrefsDialogWidBool *emailControlCenter = | 343 | // KPrefsDialogWidBool *emailControlCenter = |
344 | // addWidBool(i18n("&Use email settings from Control Center"), | 344 | // addWidBool(i18n("&Use email settings from Control Center"), |
345 | // &(KOPrefs::instance()->mEmailControlCenter),topFrame); | 345 | // &(KOPrefs::instance()->mEmailControlCenter),topFrame); |
346 | // topLayout->addMultiCellWidget(emailControlCenter->checkBox(),0,0,0,1); | 346 | // topLayout->addMultiCellWidget(emailControlCenter->checkBox(),0,0,0,1); |
347 | // connect(emailControlCenter->checkBox(),SIGNAL(toggled(bool)), | 347 | // connect(emailControlCenter->checkBox(),SIGNAL(toggled(bool)), |
348 | // SLOT(toggleEmailSettings(bool))); | 348 | // SLOT(toggleEmailSettings(bool))); |
349 | 349 | ||
350 | mNameEdit = new QLineEdit(topFrame); | 350 | mNameEdit = new QLineEdit(topFrame); |
351 | mNameLabel = new QLabel(mNameEdit, i18n("Full &name:"), topFrame); | 351 | mNameLabel = new QLabel(mNameEdit, i18n("Full &name:"), topFrame); |
352 | topLayout->addWidget(mNameLabel,0,0); | 352 | topLayout->addWidget(mNameLabel,0,0); |
353 | topLayout->addWidget(mNameEdit,0,1); | 353 | topLayout->addWidget(mNameEdit,0,1); |
354 | 354 | ||
355 | mEmailEdit = new QLineEdit(topFrame); | 355 | mEmailEdit = new QLineEdit(topFrame); |
356 | mEmailLabel = new QLabel(mEmailEdit, i18n("E&mail address:"),topFrame); | 356 | mEmailLabel = new QLabel(mEmailEdit, i18n("E&mail address:"),topFrame); |
357 | topLayout->addWidget(mEmailLabel,1,0); | 357 | topLayout->addWidget(mEmailLabel,1,0); |
358 | topLayout->addWidget(mEmailEdit,1,1); | 358 | topLayout->addWidget(mEmailEdit,1,1); |
359 | KPrefsDialogWidBool *wb; | 359 | KPrefsDialogWidBool *wb; |
360 | QHBox *dummy; | 360 | |
361 | if ( QApplication::desktop()->width() > 480 ) { | ||
362 | dummy = new QHBox(topFrame); | ||
363 | } else { | ||
364 | dummy = new QVBox(topFrame); | ||
365 | } | ||
366 | 361 | ||
367 | topLayout->addMultiCellWidget(dummy, 2,2,0,1); | ||
368 | addWidBool(i18n("Full menu bar(nr)"), | ||
369 | &(KOPrefs::instance()->mShowFullMenu),dummy); | ||
370 | 362 | ||
363 | KPrefsDialogWidBool *widbool = addWidBool(i18n("Full menu bar(nr)"), | ||
364 | &(KOPrefs::instance()->mShowFullMenu),topFrame); | ||
365 | topLayout->addMultiCellWidget( widbool->checkBox(), 2,2,0,1); | ||
371 | 366 | ||
372 | addWidBool(i18n("Mini icons in toolbar(nr)"), | 367 | |
373 | &(KOPrefs::instance()->mToolBarMiniIcons),dummy); | 368 | widbool = addWidBool(i18n("Mini icons in toolbar(nr)"), |
374 | 369 | &(KOPrefs::instance()->mToolBarMiniIcons),topFrame); | |
370 | topLayout->addMultiCellWidget( widbool->checkBox(), 3,3,0,1); | ||
375 | 371 | ||
376 | dummy = new QHBox(topFrame); | ||
377 | new QLabel(i18n("Days in What's Next:"),dummy); | ||
378 | mWhatsNextSpin = new QSpinBox(1,14,1,dummy); | ||
379 | |||
380 | topLayout->addMultiCellWidget(dummy,3,3,0,1); | ||
381 | 372 | ||
373 | KPrefsDialogWidBool *verticalScreen = | ||
374 | addWidBool(i18n("Show vertical screen (Needs restart)"), | ||
375 | &(KOPrefs::instance()->mVerticalScreen),topFrame); | ||
376 | //topLayout->addWidget(verticalScreen->checkBox(),ii++,0); | ||
377 | topLayout->addMultiCellWidget(verticalScreen->checkBox(),4,4,0,1); | ||
382 | 378 | ||
383 | 379 | ||
384 | dummy = new QHBox(topFrame); | 380 | QHBox *dummy = new QHBox(topFrame); |
385 | new QLabel(i18n("Days in Next-X-Days:"),dummy); | 381 | new QLabel(i18n("Days in Next-X-Days:"),dummy); |
386 | mNextXDaysSpin = new QSpinBox(2,14,1,dummy); | 382 | mNextXDaysSpin = new QSpinBox(2,14,1,dummy); |
387 | 383 | ||
388 | topLayout->addMultiCellWidget(dummy,4,4,0,1); | 384 | topLayout->addMultiCellWidget(dummy,5,5,0,1); |
389 | 385 | ||
390 | QHBox *prioBox = new QHBox(topFrame); | 386 | |
391 | // intervalBox->setSpacing(spacingHint()); | ||
392 | topLayout->addMultiCellWidget(prioBox,5,5,0,1); | ||
393 | QString messa = i18n("Show topmost todo prios in What's Next:"); | ||
394 | |||
395 | if ( QApplication::desktop()->width() < 300 ) | ||
396 | messa = i18n("Show topmost todo prios in What's N.:"); | ||
397 | QLabel *prioLabel = new QLabel(messa, prioBox); | ||
398 | mPrioSpin = new QSpinBox(0,5,1,prioBox); | ||
399 | if ( QApplication::desktop()->width() < 300 ) | ||
400 | mPrioSpin->setFixedWidth( 40 ); | ||
401 | 387 | ||
402 | // KPrefsDialogWidBool *bcc = | 388 | // KPrefsDialogWidBool *bcc = |
403 | // addWidBool(i18n("Send copy to owner when mailing events"), | 389 | // addWidBool(i18n("Send copy to owner when mailing events"), |
404 | // &(KOPrefs::instance()->mBcc),topFrame); | 390 | // &(KOPrefs::instance()->mBcc),topFrame); |
405 | // topLayout->addMultiCellWidget(bcc->checkBox(),4,4,0,1); | 391 | // topLayout->addMultiCellWidget(bcc->checkBox(),4,4,0,1); |
406 | 392 | ||
407 | 393 | ||
408 | // QGroupBox *autoSaveGroup = new QGroupBox(1,Horizontal,i18n("Auto-Save"), topFrame); | 394 | // QGroupBox *autoSaveGroup = new QGroupBox(1,Horizontal,i18n("Auto-Save"), topFrame); |
409 | //topLayout->addMultiCellWidget(autoSaveGroup,6,6,0,1); | 395 | //topLayout->addMultiCellWidget(autoSaveGroup,6,6,0,1); |
410 | 396 | ||
411 | // addWidBool(i18n("Enable automatic saving of calendar"), | 397 | // addWidBool(i18n("Enable automatic saving of calendar"), |
412 | // &(KOPrefs::instance()->mAutoSave),autoSaveGroup); | 398 | // &(KOPrefs::instance()->mAutoSave),autoSaveGroup); |
413 | 399 | ||
414 | QHBox *intervalBox = new QHBox(topFrame); | 400 | QHBox *intervalBox = new QHBox(topFrame); |
415 | // intervalBox->setSpacing(spacingHint()); | 401 | // intervalBox->setSpacing(spacingHint()); |
416 | topLayout->addMultiCellWidget(intervalBox,6,6,0,1); | 402 | topLayout->addMultiCellWidget(intervalBox,6,6,0,1); |
417 | QLabel *autoSaveIntervalLabel = new QLabel(i18n("Auto save delay in minutes:"),intervalBox); | 403 | QLabel *autoSaveIntervalLabel = new QLabel(i18n("Auto save delay in minutes:"),intervalBox); |
418 | mAutoSaveIntervalSpin = new QSpinBox(0,500,1,intervalBox); | 404 | mAutoSaveIntervalSpin = new QSpinBox(0,500,1,intervalBox); |
419 | autoSaveIntervalLabel->setBuddy(mAutoSaveIntervalSpin); | 405 | autoSaveIntervalLabel->setBuddy(mAutoSaveIntervalSpin); |
420 | /* | 406 | /* |
421 | QHBox * agendasize = new QHBox ( topFrame ); | 407 | QHBox * agendasize = new QHBox ( topFrame ); |
422 | 408 | ||
423 | new QLabel (i18n("AllDayAgenda Height:"), agendasize ); | 409 | new QLabel (i18n("AllDayAgenda Height:"), agendasize ); |
424 | 410 | ||
425 | 411 | ||
426 | mHourSizeSlider = new QSlider(24,47,1,24,Horizontal,agendasize); | 412 | mHourSizeSlider = new QSlider(24,47,1,24,Horizontal,agendasize); |
427 | topLayout->addMultiCellWidget(agendasize,7,7,0,1); | 413 | topLayout->addMultiCellWidget(agendasize,7,7,0,1); |
428 | */ | 414 | */ |
429 | KPrefsDialogWidBool *verticalScreen = | 415 | |
430 | addWidBool(i18n("Show vertical screen (Needs restart)"), | ||
431 | &(KOPrefs::instance()->mVerticalScreen),topFrame); | ||
432 | //topLayout->addWidget(verticalScreen->checkBox(),ii++,0); | ||
433 | topLayout->addMultiCellWidget(verticalScreen->checkBox(),7,7,0,1); | ||
434 | 416 | ||
435 | KPrefsDialogWidBool *ask = | 417 | KPrefsDialogWidBool *ask = |
436 | addWidBool(i18n("Ask for quit when closing KO/Pi"), | 418 | addWidBool(i18n("Ask for quit when closing KO/Pi"), |
437 | &(KOPrefs::instance()->mAskForQuit),topFrame); | 419 | &(KOPrefs::instance()->mAskForQuit),topFrame); |
438 | topLayout->addMultiCellWidget(ask->checkBox(),8,8,0,1); | 420 | topLayout->addMultiCellWidget(ask->checkBox(),7,7,0,1); |
439 | 421 | ||
440 | 422 | ||
441 | /* | 423 | /* |
442 | KPrefsDialogWidBool *confirmCheck = | 424 | KPrefsDialogWidBool *confirmCheck = |
443 | addWidBool(i18n("Confirm &deletes"),&(KOPrefs::instance()->mConfirm), | 425 | addWidBool(i18n("Confirm &deletes"),&(KOPrefs::instance()->mConfirm), |
444 | topFrame); | 426 | topFrame); |
445 | topLayout->addMultiCellWidget(confirmCheck->checkBox(),7,7,0,1); | 427 | topLayout->addMultiCellWidget(confirmCheck->checkBox(),7,7,0,1); |
446 | 428 | ||
447 | 429 | ||
448 | mEnableGroupScheduling = | 430 | mEnableGroupScheduling = |
449 | addWidBool(i18n("Enable group scheduling"), | 431 | addWidBool(i18n("Enable group scheduling"), |
450 | &(KOPrefs::instance()->mEnableGroupScheduling),topFrame); | 432 | &(KOPrefs::instance()->mEnableGroupScheduling),topFrame); |
451 | topLayout->addWidget(mEnableGroupScheduling->checkBox(),8,0); | 433 | topLayout->addWidget(mEnableGroupScheduling->checkBox(),8,0); |
452 | connect(mEnableGroupScheduling->checkBox(),SIGNAL(clicked()), | 434 | connect(mEnableGroupScheduling->checkBox(),SIGNAL(clicked()), |
453 | SLOT(warningGroupScheduling())); | 435 | SLOT(warningGroupScheduling())); |
454 | 436 | ||
455 | mEnableProjectView = | 437 | mEnableProjectView = |
456 | addWidBool(i18n("Enable project view"), | 438 | addWidBool(i18n("Enable project view"), |
457 | &(KOPrefs::instance()->mEnableProjectView),topFrame); | 439 | &(KOPrefs::instance()->mEnableProjectView),topFrame); |
458 | topLayout->addWidget(mEnableProjectView->checkBox(),9,0); | 440 | topLayout->addWidget(mEnableProjectView->checkBox(),9,0); |
459 | connect(mEnableProjectView->checkBox(),SIGNAL(clicked()), | 441 | connect(mEnableProjectView->checkBox(),SIGNAL(clicked()), |
460 | SLOT(warningProjectView())); | 442 | SLOT(warningProjectView())); |
461 | 443 | ||
462 | // Can't be disabled anymore | 444 | // Can't be disabled anymore |
463 | mEnableGroupScheduling->checkBox()->hide(); | 445 | mEnableGroupScheduling->checkBox()->hide(); |
464 | 446 | ||
465 | // Disable setting, because this feature now becomes stable | 447 | // Disable setting, because this feature now becomes stable |
466 | mEnableProjectView->checkBox()->hide(); | 448 | mEnableProjectView->checkBox()->hide(); |
467 | 449 | ||
468 | KPrefsDialogWidRadios *defaultFormatGroup = | 450 | KPrefsDialogWidRadios *defaultFormatGroup = |
469 | addWidRadios(i18n("Default Calendar Format"), | 451 | addWidRadios(i18n("Default Calendar Format"), |
470 | &(KOPrefs::instance()->mDefaultFormat),topFrame); | 452 | &(KOPrefs::instance()->mDefaultFormat),topFrame); |
471 | defaultFormatGroup->addRadio(i18n("vCalendar")); | 453 | defaultFormatGroup->addRadio(i18n("vCalendar")); |
472 | defaultFormatGroup->addRadio(i18n("iCalendar")); | 454 | defaultFormatGroup->addRadio(i18n("iCalendar")); |
473 | 455 | ||
474 | topLayout->addMultiCellWidget(defaultFormatGroup->groupBox(),10,10,0,1); | 456 | topLayout->addMultiCellWidget(defaultFormatGroup->groupBox(),10,10,0,1); |
475 | 457 | ||
476 | // Default format unconditionally is iCalendar | 458 | // Default format unconditionally is iCalendar |
477 | defaultFormatGroup->groupBox()->hide(); | 459 | defaultFormatGroup->groupBox()->hide(); |
478 | 460 | ||
479 | KPrefsDialogWidRadios *mailClientGroup = | 461 | KPrefsDialogWidRadios *mailClientGroup = |
480 | addWidRadios(i18n("Mail Client"),&(KOPrefs::instance()->mMailClient), | 462 | addWidRadios(i18n("Mail Client"),&(KOPrefs::instance()->mMailClient), |
481 | topFrame); | 463 | topFrame); |
482 | mailClientGroup->addRadio(i18n("KMail")); | 464 | mailClientGroup->addRadio(i18n("KMail")); |
483 | mailClientGroup->addRadio(i18n("Sendmail")); | 465 | mailClientGroup->addRadio(i18n("Sendmail")); |
484 | topLayout->addMultiCellWidget(mailClientGroup->groupBox(),11,11,0,1); | 466 | topLayout->addMultiCellWidget(mailClientGroup->groupBox(),11,11,0,1); |
485 | 467 | ||
486 | KPrefsDialogWidBool *htmlsave = | 468 | KPrefsDialogWidBool *htmlsave = |
487 | addWidBool(i18n("Export to HTML with every save"),&(KOPrefs::instance()->mHtmlWithSave), | 469 | addWidBool(i18n("Export to HTML with every save"),&(KOPrefs::instance()->mHtmlWithSave), |
488 | topFrame); | 470 | topFrame); |
489 | topLayout->addMultiCellWidget(htmlsave->checkBox(),12,12,0,1); | 471 | topLayout->addMultiCellWidget(htmlsave->checkBox(),12,12,0,1); |
490 | 472 | ||
491 | KPrefsDialogWidRadios *destinationGroup = | 473 | KPrefsDialogWidRadios *destinationGroup = |
492 | addWidRadios(i18n("New Events/Todos should"),&(KOPrefs::instance()->mDestination), | 474 | addWidRadios(i18n("New Events/Todos should"),&(KOPrefs::instance()->mDestination), |
493 | topFrame); | 475 | topFrame); |
494 | destinationGroup->addRadio(i18n("be added to the standard resource")); | 476 | destinationGroup->addRadio(i18n("be added to the standard resource")); |
495 | destinationGroup->addRadio(i18n("be asked which resource to use")); | 477 | destinationGroup->addRadio(i18n("be asked which resource to use")); |
496 | topLayout->addMultiCellWidget(destinationGroup->groupBox(),13,13,0,1); | 478 | topLayout->addMultiCellWidget(destinationGroup->groupBox(),13,13,0,1); |
497 | 479 | ||
498 | topLayout->setRowStretch(14,1); | 480 | topLayout->setRowStretch(14,1); |
499 | */ | 481 | */ |
500 | } | 482 | } |
501 | 483 | ||
502 | 484 | ||
503 | void KOPrefsDialog::setupTimeTab() | 485 | void KOPrefsDialog::setupTimeTab() |
504 | { | 486 | { |
505 | QFrame *topFrame = addPage(i18n("Time"),0,0); | 487 | QFrame *topFrame = addPage(i18n("Time"),0,0); |
506 | // DesktopIcon("clock",KIcon::SizeMedium)); | 488 | // DesktopIcon("clock",KIcon::SizeMedium)); |
507 | 489 | ||
508 | QGridLayout *topLayout = new QGridLayout(topFrame,4,2); | 490 | QGridLayout *topLayout = new QGridLayout(topFrame,4,2); |
509 | topLayout->setSpacing(spacingHint()); | 491 | topLayout->setSpacing(spacingHint()); |
510 | topLayout->setMargin(marginHint()); | 492 | topLayout->setMargin(marginHint()); |
511 | 493 | ||
512 | QHBox *dummy = new QHBox(topFrame); | 494 | QHBox *dummy = new QHBox(topFrame); |
513 | KPrefsDialogWidTime *dayBegins = | 495 | KPrefsDialogWidTime *dayBegins = |
514 | addWidTime(i18n("Day begins at:"),&(KOPrefs::instance()->mDayBegins), | 496 | addWidTime(i18n("Day begins at:"),&(KOPrefs::instance()->mDayBegins), |
515 | dummy); | 497 | dummy); |
516 | //topLayout->addWidget(dayBegins->label(),2,0); | 498 | //topLayout->addWidget(dayBegins->label(),2,0); |
517 | 499 | ||
518 | //topLayout->addWidget(dayBegins->spinBox(),2,1); | 500 | //topLayout->addWidget(dayBegins->spinBox(),2,1); |
519 | topLayout->addMultiCellWidget(dummy,0,0,0,1); | 501 | topLayout->addMultiCellWidget(dummy,0,0,0,1); |
520 | 502 | ||
521 | topLayout->addWidget(new QLabel(i18n("Default appointment time:"), | 503 | topLayout->addWidget(new QLabel(i18n("Default appointment time:"), |
522 | topFrame),1,0); | 504 | topFrame),1,0); |
523 | mStartTimeSpin = new QSpinBox(0,23,1,topFrame); | 505 | mStartTimeSpin = new QSpinBox(0,23,1,topFrame); |
524 | mStartTimeSpin->setSuffix(":00"); | 506 | mStartTimeSpin->setSuffix(":00"); |
525 | topLayout->addWidget(mStartTimeSpin,1,1); | 507 | topLayout->addWidget(mStartTimeSpin,1,1); |
526 | 508 | ||
527 | topLayout->addWidget(new QLabel(i18n("Def. duration of new app.:"), | 509 | topLayout->addWidget(new QLabel(i18n("Def. duration of new app.:"), |
528 | topFrame),2,0); | 510 | topFrame),2,0); |
529 | mDefaultDurationSpin = new QSpinBox(0,23,1,topFrame); | 511 | mDefaultDurationSpin = new QSpinBox(0,23,1,topFrame); |
530 | mDefaultDurationSpin->setSuffix(":00"); | 512 | mDefaultDurationSpin->setSuffix(":00"); |
531 | topLayout->addWidget(mDefaultDurationSpin,2,1); | 513 | topLayout->addWidget(mDefaultDurationSpin,2,1); |
532 | 514 | ||
533 | QStringList alarmList; | 515 | QStringList alarmList; |
534 | alarmList << i18n("1 minute") << i18n("5 minutes") << i18n("10 minutes") | 516 | alarmList << i18n("1 minute") << i18n("5 minutes") << i18n("10 minutes") |
535 | << i18n("15 minutes") << i18n("30 minutes")<< i18n("1 hour")<< i18n("3 hours") << i18n("24 hours") ; | 517 | << i18n("15 minutes") << i18n("30 minutes")<< i18n("1 hour")<< i18n("3 hours") << i18n("24 hours") ; |
536 | topLayout->addWidget(new QLabel(i18n("Default alarm time:"),topFrame), | 518 | topLayout->addWidget(new QLabel(i18n("Default alarm time:"),topFrame), |
537 | 3,0); | 519 | 3,0); |
538 | mAlarmTimeCombo = new QComboBox(topFrame); | 520 | mAlarmTimeCombo = new QComboBox(topFrame); |
539 | mAlarmTimeCombo->insertStringList(alarmList); | 521 | mAlarmTimeCombo->insertStringList(alarmList); |
540 | topLayout->addWidget(mAlarmTimeCombo,3,1); | 522 | topLayout->addWidget(mAlarmTimeCombo,3,1); |
541 | 523 | ||
542 | 524 | ||
543 | QGroupBox *workingHoursGroup = new QGroupBox(1,Horizontal, | 525 | QGroupBox *workingHoursGroup = new QGroupBox(1,Horizontal, |
544 | i18n("Working Hours"), | 526 | i18n("Working Hours"), |
545 | topFrame); | 527 | topFrame); |
546 | topLayout->addMultiCellWidget(workingHoursGroup,4,4,0,1); | 528 | topLayout->addMultiCellWidget(workingHoursGroup,4,4,0,1); |
547 | workingHoursGroup->layout()->setSpacing( 0 ); | 529 | workingHoursGroup->layout()->setSpacing( 0 ); |
548 | workingHoursGroup->layout()->setMargin( 4 ); | 530 | workingHoursGroup->layout()->setMargin( 4 ); |
549 | QHBox *workStartBox = new QHBox(workingHoursGroup); | 531 | QHBox *workStartBox = new QHBox(workingHoursGroup); |
550 | // workStartBox->setMargin( 0 ); | 532 | // workStartBox->setMargin( 0 ); |
551 | addWidTime(i18n("Daily starting hour:"), | 533 | addWidTime(i18n("Daily starting hour:"), |
552 | &(KOPrefs::instance()->mWorkingHoursStart),workStartBox); | 534 | &(KOPrefs::instance()->mWorkingHoursStart),workStartBox); |
553 | 535 | ||
554 | QHBox *workEndBox = new QHBox(workingHoursGroup); | 536 | QHBox *workEndBox = new QHBox(workingHoursGroup); |
555 | //workEndBox->setMargin( 0 ); | 537 | //workEndBox->setMargin( 0 ); |
556 | addWidTime(i18n("Daily ending hour:"), | 538 | addWidTime(i18n("Daily ending hour:"), |
557 | &(KOPrefs::instance()->mWorkingHoursEnd),workEndBox); | 539 | &(KOPrefs::instance()->mWorkingHoursEnd),workEndBox); |
558 | QVBox *excludeBox = new QVBox(workingHoursGroup); | 540 | QVBox *excludeBox = new QVBox(workingHoursGroup); |
559 | //excludeBox->setMargin( 0 ); | 541 | //excludeBox->setMargin( 0 ); |
560 | addWidBool(i18n("Exclude holidays"), | 542 | addWidBool(i18n("Exclude holidays"), |
561 | &(KOPrefs::instance()->mExcludeHolidays),excludeBox); | 543 | &(KOPrefs::instance()->mExcludeHolidays),excludeBox); |
562 | 544 | ||
563 | addWidBool(i18n("Exclude Saturdays"), | 545 | addWidBool(i18n("Exclude Saturdays"), |
564 | &(KOPrefs::instance()->mExcludeSaturdays),excludeBox); | 546 | &(KOPrefs::instance()->mExcludeSaturdays),excludeBox); |
565 | 547 | ||
566 | // KPrefsDialogWidBool *marcusBainsShowSeconds = addWidBool(i18n("Show seconds on Marcus Bains line"), | 548 | // KPrefsDialogWidBool *marcusBainsShowSeconds = addWidBool(i18n("Show seconds on Marcus Bains line"), |
567 | // &(KOPrefs::instance()->mMarcusBainsShowSeconds), | 549 | // &(KOPrefs::instance()->mMarcusBainsShowSeconds), |
568 | // topFrame); | 550 | // topFrame); |
569 | // topLayout->addWidget(marcusBainsShowSeconds->checkBox(),5,0); | 551 | // topLayout->addWidget(marcusBainsShowSeconds->checkBox(),5,0); |
570 | 552 | ||
571 | // topLayout->setRowStretch(6,1); | 553 | // topLayout->setRowStretch(6,1); |
572 | } | 554 | } |
573 | 555 | ||
574 | 556 | ||
575 | void KOPrefsDialog::setupViewsTab() | 557 | void KOPrefsDialog::setupViewsTab() |
576 | { | 558 | { |
577 | 559 | ||
578 | QFrame *topFrame = addPage(i18n("Views"),0,0); | 560 | QFrame *topFrame = addPage(i18n("Views"),0,0); |
579 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 561 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
580 | 562 | ||
581 | QGridLayout *topLayout = new QGridLayout(topFrame,6,1); | 563 | QGridLayout *topLayout = new QGridLayout(topFrame,6,1); |
582 | topLayout->setSpacing(spacingHint()); | 564 | topLayout->setSpacing(spacingHint()); |
583 | topLayout->setMargin(marginHint()); | 565 | topLayout->setMargin(marginHint()); |
584 | 566 | ||
585 | // QBoxLayout *dayBeginsLayout = new QHBoxLayout; | 567 | // QBoxLayout *dayBeginsLayout = new QHBoxLayout; |
586 | // topLayout->addLayout(dayBeginsLayout,0,0); | 568 | // topLayout->addLayout(dayBeginsLayout,0,0); |
587 | 569 | ||
588 | // KPrefsDialogWidTime *dayBegins = | 570 | // KPrefsDialogWidTime *dayBegins = |
589 | // addWidTime(i18n("Day begins at:"),&(KOPrefs::instance()->mDayBegins), | 571 | // addWidTime(i18n("Day begins at:"),&(KOPrefs::instance()->mDayBegins), |
590 | // topFrame); | 572 | // topFrame); |
591 | // dayBeginsLayout->addWidget(dayBegins->label()); | 573 | // dayBeginsLayout->addWidget(dayBegins->label()); |
592 | // dayBeginsLayout->addStretch(1); | 574 | // dayBeginsLayout->addStretch(1); |
593 | // dayBeginsLayout->addWidget(dayBegins->spinBox()); | 575 | // dayBeginsLayout->addWidget(dayBegins->spinBox()); |
594 | 576 | ||
595 | // QBoxLayout *nextDaysLayout = new QHBoxLayout; | 577 | // QBoxLayout *nextDaysLayout = new QHBoxLayout; |
596 | // topLayout->addLayout(nextDaysLayout,1,0); | 578 | // topLayout->addLayout(nextDaysLayout,1,0); |
597 | // nextDaysLayout->addWidget(new QLabel(i18n("Days to show in Next-X-Days view:"),topFrame)); | 579 | // nextDaysLayout->addWidget(new QLabel(i18n("Days to show in Next-X-Days view:"),topFrame)); |
598 | // mNextXDaysSpin = new QSpinBox(2,14,1,topFrame); | 580 | // mNextXDaysSpin = new QSpinBox(2,14,1,topFrame); |
599 | // nextDaysLayout->addStretch(1); | 581 | // nextDaysLayout->addStretch(1); |
600 | // nextDaysLayout->addWidget(mNextXDaysSpin); | 582 | // nextDaysLayout->addWidget(mNextXDaysSpin); |
601 | 583 | ||
602 | 584 | ||
603 | int ii = 0; | 585 | int ii = 0; |
604 | KPrefsDialogWidBool *dummy = | 586 | KPrefsDialogWidBool *dummy = |
605 | addWidBool(i18n("Edit item on doubleclick (if not, show)"), | 587 | addWidBool(i18n("Edit item on doubleclick (if not, show)"), |
606 | &(KOPrefs::instance()->mEditOnDoubleClick),topFrame); | 588 | &(KOPrefs::instance()->mEditOnDoubleClick),topFrame); |
607 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 589 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
608 | 590 | ||
609 | dummy = | 591 | |
610 | addWidBool(i18n("Show time in agenda items"), | ||
611 | &(KOPrefs::instance()->mShowTimeInAgenda),topFrame); | ||
612 | topLayout->addWidget(dummy->checkBox(),ii++,0); | ||
613 | |||
614 | dummy = | ||
615 | addWidBool(i18n("Highlight current day in agenda"), | ||
616 | &(KOPrefs::instance()->mHighlightCurrentDay),topFrame); | ||
617 | topLayout->addWidget(dummy->checkBox(),ii++,0); | ||
618 | |||
619 | dummy = | ||
620 | addWidBool(i18n("Use light color for highlight current day"), | ||
621 | &(KOPrefs::instance()->mUseHighlightLightColor),topFrame); | ||
622 | topLayout->addWidget(dummy->checkBox(),ii++,0); | ||
623 | |||
624 | KPrefsDialogWidBool *dailyRecur = | ||
625 | addWidBool(i18n("Show events that recur daily in date nav."), | ||
626 | &(KOPrefs::instance()->mDailyRecur),topFrame); | ||
627 | topLayout->addWidget(dailyRecur->checkBox(),ii++,0); | ||
628 | 592 | ||
629 | KPrefsDialogWidBool *weeklyRecur = | ||
630 | addWidBool(i18n("Show ev. that recur weekly in date nav."), | ||
631 | &(KOPrefs::instance()->mWeeklyRecur),topFrame); | ||
632 | topLayout->addWidget(weeklyRecur->checkBox(),ii++,0); | ||
633 | if ( QApplication::desktop()->width() > 640 ) { | 593 | if ( QApplication::desktop()->width() > 640 ) { |
634 | 594 | ||
635 | KPrefsDialogWidBool *enableToolTips = | 595 | KPrefsDialogWidBool *enableToolTips = |
636 | addWidBool(i18n("Enable tooltips displaying summary of ev."), | 596 | addWidBool(i18n("Enable tooltips displaying summary of ev."), |
637 | &(KOPrefs::instance()->mEnableToolTips),topFrame); | 597 | &(KOPrefs::instance()->mEnableToolTips),topFrame); |
638 | topLayout->addWidget(enableToolTips->checkBox(),ii++,0); | 598 | topLayout->addWidget(enableToolTips->checkBox(),ii++,0); |
639 | 599 | ||
640 | } | 600 | } |
641 | 601 | ||
642 | KPrefsDialogWidBool *marcusBainsEnabled = | 602 | |
643 | addWidBool(i18n("Show Marcus Bains line"), | ||
644 | &(KOPrefs::instance()->mMarcusBainsEnabled),topFrame); | ||
645 | topLayout->addWidget(marcusBainsEnabled->checkBox(),ii++,0); | ||
646 | |||
647 | 603 | ||
648 | // topLayout->addWidget(hourSizeGroup,ii++,0); | 604 | // topLayout->addWidget(hourSizeGroup,ii++,0); |
649 | // topLayout->addMultiCellWidget(hourSizeGroup,ii,ii,0,0); | 605 | // topLayout->addMultiCellWidget(hourSizeGroup,ii,ii,0,0); |
650 | //topLayout->setRowStretch(11,1); | 606 | //topLayout->setRowStretch(11,1); |
651 | 607 | ||
652 | 608 | ||
653 | 609 | ||
654 | 610 | ||
655 | 611 | #if 0 | |
656 | 612 | ||
657 | topFrame = addPage(i18n("ViewChange"),0,0); | 613 | topFrame = addPage(i18n("ViewChange"),0,0); |
658 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 614 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
659 | 615 | ||
660 | topLayout = new QGridLayout(topFrame,6,1); | 616 | topLayout = new QGridLayout(topFrame,6,1); |
661 | topLayout->setSpacing(spacingHint()); | 617 | topLayout->setSpacing(spacingHint()); |
662 | topLayout->setMargin(marginHint()); | 618 | topLayout->setMargin(marginHint()); |
663 | ii = 0; | 619 | ii = 0; |
664 | 620 | ||
621 | #endif | ||
665 | 622 | ||
666 | dummy = | 623 | dummy = |
667 | addWidBool(i18n("Hold fullscreen on view change"), | 624 | addWidBool(i18n("Hold fullscreen on view change"), |
668 | &(KOPrefs::instance()->mViewChangeHoldFullscreen),topFrame); | 625 | &(KOPrefs::instance()->mViewChangeHoldFullscreen),topFrame); |
669 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 626 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
670 | 627 | ||
671 | dummy = | 628 | dummy = |
672 | addWidBool(i18n("Hold non-fullscreen on view change"), | 629 | addWidBool(i18n("Hold non-fullscreen on view change"), |
673 | &(KOPrefs::instance()->mViewChangeHoldNonFullscreen),topFrame); | 630 | &(KOPrefs::instance()->mViewChangeHoldNonFullscreen),topFrame); |
674 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 631 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
675 | 632 | ||
676 | 633 | ||
677 | KPrefsDialogWidBool *fullViewTodo = | ||
678 | addWidBool(i18n("Event list view uses full window"), | ||
679 | &(KOPrefs::instance()->mFullViewTodo),topFrame); | ||
680 | topLayout->addWidget(fullViewTodo->checkBox(),ii++,0); | ||
681 | 634 | ||
682 | KPrefsDialogWidBool *fullViewMonth = | 635 | KPrefsDialogWidBool *fullViewMonth = |
683 | addWidBool(i18n("Next days view uses full window"), | 636 | addWidBool(i18n("Next days view uses full window"), |
684 | &(KOPrefs::instance()->mFullViewMonth),topFrame); | 637 | &(KOPrefs::instance()->mFullViewMonth),topFrame); |
685 | topLayout->addWidget(fullViewMonth->checkBox(),ii++,0); | 638 | topLayout->addWidget(fullViewMonth->checkBox(),ii++,0); |
686 | 639 | ||
640 | |||
641 | KPrefsDialogWidBool *fullViewTodo = | ||
642 | addWidBool(i18n("Event list view uses full window"), | ||
643 | &(KOPrefs::instance()->mFullViewTodo),topFrame); | ||
644 | topLayout->addWidget(fullViewTodo->checkBox(),ii++,0); | ||
645 | dummy = | ||
646 | addWidBool(i18n("Listview uses monthly timespan"), | ||
647 | &(KOPrefs::instance()->mListViewMonthTimespan),topFrame); | ||
648 | topLayout->addWidget(dummy->checkBox(),ii++,0); | ||
649 | dummy = | ||
650 | addWidBool(i18n("Highlight selection in Time Edit"), | ||
651 | &(KOPrefs::instance()->mHightlightDateTimeEdit),topFrame); | ||
652 | topLayout->addWidget( dummy->checkBox(), ii++,0); | ||
653 | |||
654 | KPrefsDialogWidBool *dailyRecur = | ||
655 | addWidBool(i18n("Show events that recur daily in date nav."), | ||
656 | &(KOPrefs::instance()->mDailyRecur),topFrame); | ||
657 | topLayout->addWidget(dailyRecur->checkBox(),ii++,0); | ||
658 | |||
659 | KPrefsDialogWidBool *weeklyRecur = | ||
660 | addWidBool(i18n("Show ev. that recur weekly in date nav."), | ||
661 | &(KOPrefs::instance()->mWeeklyRecur),topFrame); | ||
662 | topLayout->addWidget(weeklyRecur->checkBox(),ii++,0); | ||
663 | |||
664 | topFrame = addPage(i18n("Agenda View"),0,0); | ||
665 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | ||
666 | |||
667 | topLayout = new QGridLayout(topFrame,5,1); | ||
668 | topLayout->setSpacing(spacingHint()); | ||
669 | topLayout->setMargin(marginHint()); | ||
670 | ii = 0; | ||
671 | |||
672 | |||
673 | dummy = | ||
674 | addWidBool(i18n("Show time in agenda items"), | ||
675 | &(KOPrefs::instance()->mShowTimeInAgenda),topFrame); | ||
676 | topLayout->addWidget(dummy->checkBox(),ii++,0); | ||
677 | |||
678 | dummy = | ||
679 | addWidBool(i18n("Highlight current day in agenda"), | ||
680 | &(KOPrefs::instance()->mHighlightCurrentDay),topFrame); | ||
681 | topLayout->addWidget(dummy->checkBox(),ii++,0); | ||
682 | |||
683 | dummy = | ||
684 | addWidBool(i18n("Use light color for highlight current day"), | ||
685 | &(KOPrefs::instance()->mUseHighlightLightColor),topFrame); | ||
686 | topLayout->addWidget(dummy->checkBox(),ii++,0); | ||
687 | |||
688 | |||
689 | KPrefsDialogWidBool *marcusBainsEnabled = | ||
690 | addWidBool(i18n("Show current time"), | ||
691 | &(KOPrefs::instance()->mMarcusBainsEnabled),topFrame); | ||
692 | topLayout->addWidget(marcusBainsEnabled->checkBox(),ii++,0); | ||
693 | |||
694 | |||
687 | dummy = | 695 | dummy = |
688 | addWidBool(i18n("Set agenda to DayBeginsAt on change"), | 696 | addWidBool(i18n("Set agenda to DayBeginsAt on change"), |
689 | &(KOPrefs::instance()->mSetTimeToDayStartAt),topFrame); | 697 | &(KOPrefs::instance()->mSetTimeToDayStartAt),topFrame); |
690 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 698 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
691 | 699 | ||
692 | dummy = | 700 | dummy = |
693 | addWidBool(i18n("Set agenda to current time on change"), | 701 | addWidBool(i18n("Set agenda to current time on change"), |
694 | &(KOPrefs::instance()->mCenterOnCurrentTime),topFrame); | 702 | &(KOPrefs::instance()->mCenterOnCurrentTime),topFrame); |
695 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 703 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
696 | 704 | ||
697 | dummy = | 705 | |
698 | addWidBool(i18n("Listview uses monthly timespan"), | ||
699 | &(KOPrefs::instance()->mListViewMonthTimespan),topFrame); | ||
700 | topLayout->addWidget(dummy->checkBox(),ii++,0); | ||
701 | dummy = | ||
702 | addWidBool(i18n("Highlight selection in Time Edit"), | ||
703 | &(KOPrefs::instance()->mHightlightDateTimeEdit),topFrame); | ||
704 | topLayout->addWidget( dummy->checkBox(), ii++,0); | ||
705 | 706 | ||
706 | 707 | ||
707 | 708 | ||
708 | 709 | ||
709 | 710 | ||
710 | topFrame = addPage(i18n("Month View"),0,0); | 711 | topFrame = addPage(i18n("Month View"),0,0); |
711 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 712 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
712 | 713 | ||
713 | topLayout = new QGridLayout(topFrame,5,1); | 714 | topLayout = new QGridLayout(topFrame,5,1); |
714 | topLayout->setSpacing(spacingHint()); | 715 | topLayout->setSpacing(spacingHint()); |
715 | topLayout->setMargin(marginHint()); | 716 | topLayout->setMargin(marginHint()); |
716 | ii = 0; | 717 | ii = 0; |
717 | QLabel *lab; | 718 | QLabel *lab; |
718 | QHBox *habo = new QHBox( topFrame ); | 719 | QHBox *habo = new QHBox( topFrame ); |
719 | if ( QApplication::desktop()->width() <= 480 ) { | 720 | if ( QApplication::desktop()->width() <= 480 ) { |
720 | lab = new QLabel ( i18n("Show events that recur "), topFrame ); | 721 | lab = new QLabel ( i18n("Show events that recur "), topFrame ); |
721 | topLayout->addMultiCellWidget(lab,ii, ii,0,1); | 722 | topLayout->addMultiCellWidget(lab,ii, ii,0,1); |
722 | ii++; | 723 | ii++; |
723 | } else { | 724 | } else { |
724 | new QLabel ( i18n("Show events that recur "), habo ); | 725 | new QLabel ( i18n("Show events that recur "), habo ); |
725 | } | 726 | } |
726 | dailyRecur = | 727 | dailyRecur = |
727 | addWidBool(i18n("daily"), | 728 | addWidBool(i18n("daily"), |
728 | &(KOPrefs::instance()->mMonthDailyRecur),habo); | 729 | &(KOPrefs::instance()->mMonthDailyRecur),habo); |
729 | // topLayout->addWidget(dailyRecur->checkBox(),ii++,0); | 730 | // topLayout->addWidget(dailyRecur->checkBox(),ii++,0); |
730 | 731 | ||
731 | weeklyRecur = | 732 | weeklyRecur = |
732 | addWidBool(i18n("weekly"), | 733 | addWidBool(i18n("weekly"), |
733 | &(KOPrefs::instance()->mMonthWeeklyRecur),habo); | 734 | &(KOPrefs::instance()->mMonthWeeklyRecur),habo); |
734 | topLayout->addMultiCellWidget(habo,ii, ii,0,1); | 735 | topLayout->addMultiCellWidget(habo,ii, ii,0,1); |
735 | ii++; | 736 | ii++; |
736 | 737 | ||
737 | 738 | ||
738 | habo = new QHBox( topFrame ); | 739 | habo = new QHBox( topFrame ); |
739 | if ( QApplication::desktop()->width() <= 480 ) { | 740 | if ( QApplication::desktop()->width() <= 480 ) { |
740 | lab = new QLabel (i18n("Show in every cell ") , topFrame ); | 741 | lab = new QLabel (i18n("Show in every cell ") , topFrame ); |
741 | topLayout->addMultiCellWidget(lab,ii, ii,0,1); | 742 | topLayout->addMultiCellWidget(lab,ii, ii,0,1); |
742 | ii++; | 743 | ii++; |
743 | 744 | ||
744 | } else { | 745 | } else { |
745 | new QLabel ( i18n("Show in every cell "), habo ); | 746 | new QLabel ( i18n("Show in every cell "), habo ); |
746 | } | 747 | } |
747 | weeklyRecur = | 748 | weeklyRecur = |
748 | addWidBool(i18n("short month"), | 749 | addWidBool(i18n("short month"), |
749 | &(KOPrefs::instance()->mMonthShowShort),habo); | 750 | &(KOPrefs::instance()->mMonthShowShort),habo); |
750 | weeklyRecur = | 751 | weeklyRecur = |
751 | addWidBool(i18n("icons"), | 752 | addWidBool(i18n("icons"), |
752 | &(KOPrefs::instance()->mMonthShowIcons),habo); | 753 | &(KOPrefs::instance()->mMonthShowIcons),habo); |
753 | 754 | ||
754 | topLayout->addMultiCellWidget(habo,ii, ii,0,1); | 755 | topLayout->addMultiCellWidget(habo,ii, ii,0,1); |
755 | ii++; | 756 | ii++; |
756 | #ifdef DESKTOP_VERSION | 757 | #ifdef DESKTOP_VERSION |
757 | KPrefsDialogWidBool *enableMonthScroll = | 758 | KPrefsDialogWidBool *enableMonthScroll = |
758 | addWidBool(i18n("Enable scrollbars in month view cells"), | 759 | addWidBool(i18n("Enable scrollbars in month view cells"), |
759 | &(KOPrefs::instance()->mEnableMonthScroll),topFrame); | 760 | &(KOPrefs::instance()->mEnableMonthScroll),topFrame); |
760 | topLayout->addWidget(enableMonthScroll->checkBox(),ii++,0); | 761 | topLayout->addWidget(enableMonthScroll->checkBox(),ii++,0); |
761 | #endif | 762 | #endif |
762 | dummy = | 763 | dummy = |
763 | addWidBool(i18n("Week view mode uses bigger font"), | 764 | addWidBool(i18n("Week view mode uses bigger font"), |
764 | &(KOPrefs::instance()->mMonthViewUsesBigFont),topFrame); | 765 | &(KOPrefs::instance()->mMonthViewUsesBigFont),topFrame); |
765 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 766 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
766 | dummy = | 767 | dummy = |
767 | addWidBool(i18n("Show Sat/Sun together"), | 768 | addWidBool(i18n("Show Sat/Sun together"), |
768 | &(KOPrefs::instance()->mMonthViewSatSunTog),topFrame); | 769 | &(KOPrefs::instance()->mMonthViewSatSunTog),topFrame); |
769 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 770 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
770 | 771 | ||
771 | KPrefsDialogWidBool *coloredCategoriesInMonthView = | 772 | KPrefsDialogWidBool *coloredCategoriesInMonthView = |
772 | addWidBool(i18n("Month view uses category colors"), | 773 | addWidBool(i18n("Month view uses category colors"), |
773 | &(KOPrefs::instance()->mMonthViewUsesCategoryColor),topFrame); | 774 | &(KOPrefs::instance()->mMonthViewUsesCategoryColor),topFrame); |
774 | topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); | 775 | topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); |
775 | 776 | ||
776 | dummy = | 777 | dummy = |
777 | addWidBool(i18n("Categorie colors are applied to text"), | 778 | addWidBool(i18n("Categorie colors are applied to text"), |
778 | &(KOPrefs::instance()->mMonthViewUsesForegroundColor),topFrame); | 779 | &(KOPrefs::instance()->mMonthViewUsesForegroundColor),topFrame); |
779 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 780 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
780 | coloredCategoriesInMonthView = | 781 | coloredCategoriesInMonthView = |
781 | addWidBool(i18n("Month view uses day colors"), | 782 | addWidBool(i18n("Month view uses day colors"), |
782 | &(KOPrefs::instance()->mMonthViewUsesDayColors),topFrame); | 783 | &(KOPrefs::instance()->mMonthViewUsesDayColors),topFrame); |
783 | topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); | 784 | topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); |
784 | 785 | ||
785 | KPrefsDialogWidColor *holidayColor = | 786 | KPrefsDialogWidColor *holidayColor = |
786 | addWidColor(i18n("Day color odd months"), | 787 | addWidColor(i18n("Day color odd months"), |
787 | &(KOPrefs::instance()->mMonthViewOddColor),topFrame); | 788 | &(KOPrefs::instance()->mMonthViewOddColor),topFrame); |
788 | topLayout->addWidget(holidayColor->label(),ii,0); | 789 | topLayout->addWidget(holidayColor->label(),ii,0); |
789 | topLayout->addWidget(holidayColor->button(),ii++,1); | 790 | topLayout->addWidget(holidayColor->button(),ii++,1); |
790 | 791 | ||
791 | holidayColor = | 792 | holidayColor = |
792 | addWidColor(i18n("Day color even months"), | 793 | addWidColor(i18n("Day color even months"), |
793 | &(KOPrefs::instance()->mMonthViewEvenColor),topFrame); | 794 | &(KOPrefs::instance()->mMonthViewEvenColor),topFrame); |
794 | topLayout->addWidget(holidayColor->label(),ii,0); | 795 | topLayout->addWidget(holidayColor->label(),ii,0); |
795 | topLayout->addWidget(holidayColor->button(),ii++,1); | 796 | topLayout->addWidget(holidayColor->button(),ii++,1); |
796 | 797 | ||
797 | 798 | ||
798 | holidayColor = | 799 | holidayColor = |
799 | addWidColor(i18n("Color for Sundays + category \"Holiday\""), | 800 | addWidColor(i18n("Color for Sundays + category \"Holiday\""), |
800 | &(KOPrefs::instance()->mMonthViewHolidayColor),topFrame); | 801 | &(KOPrefs::instance()->mMonthViewHolidayColor),topFrame); |
801 | topLayout->addWidget(holidayColor->label(),ii,0); | 802 | topLayout->addWidget(holidayColor->label(),ii,0); |
802 | topLayout->addWidget(holidayColor->button(),ii++,1); | 803 | topLayout->addWidget(holidayColor->button(),ii++,1); |
803 | // *********************** What'sNext View | 804 | // *********************** What'sNext View |
804 | topFrame = addPage(i18n("What's Next View"),0,0); | 805 | topFrame = addPage(i18n("What's Next View"),0,0); |
805 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 806 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
806 | 807 | ||
807 | topLayout = new QGridLayout(topFrame,4,1); | 808 | topLayout = new QGridLayout(topFrame,4,1); |
808 | topLayout->setSpacing(spacingHint()); | 809 | topLayout->setSpacing(spacingHint()); |
809 | topLayout->setMargin(marginHint()); | 810 | topLayout->setMargin(marginHint()); |
810 | ii = 0; | 811 | ii = 0; |
812 | |||
813 | |||
814 | QHBox* hdummy = new QHBox(topFrame); | ||
815 | new QLabel(i18n("Days in What's Next:"),hdummy); | ||
816 | mWhatsNextSpin = new QSpinBox(1,14,1,hdummy); | ||
817 | |||
818 | topLayout->addWidget(hdummy,ii++,0); | ||
819 | |||
820 | QHBox *prioBox = new QHBox(topFrame); | ||
821 | // intervalBox->setSpacing(spacingHint()); | ||
822 | topLayout->addWidget(prioBox,ii++,0); | ||
823 | QString messa = i18n("Show topmost todo prios in What's Next:"); | ||
824 | |||
825 | if ( QApplication::desktop()->width() < 300 ) | ||
826 | messa = i18n("Show topmost todo prios in What's N.:"); | ||
827 | QLabel *prioLabel = new QLabel(messa, prioBox); | ||
828 | mPrioSpin = new QSpinBox(0,5,1,prioBox); | ||
829 | if ( QApplication::desktop()->width() < 300 ) | ||
830 | mPrioSpin->setFixedWidth( 40 ); | ||
831 | |||
811 | KPrefsDialogWidBool *passwdk = | 832 | KPrefsDialogWidBool *passwdk = |
812 | 833 | ||
813 | addWidBool(i18n("Show events, that are done in \nWhat's Next view"), | 834 | addWidBool(i18n("Show events, that are done in \nWhat's Next view"), |
814 | &(KOPrefs::instance()->mWNViewShowsPast),topFrame); | 835 | &(KOPrefs::instance()->mWNViewShowsPast),topFrame); |
815 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 836 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
816 | passwdk = | 837 | passwdk = |
817 | addWidBool(i18n("Show parent To-Do's in What's Next view"), | 838 | addWidBool(i18n("Show parent To-Do's in What's Next view"), |
818 | &(KOPrefs::instance()->mWNViewShowsParents),topFrame); | 839 | &(KOPrefs::instance()->mWNViewShowsParents),topFrame); |
819 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 840 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
820 | 841 | ||
821 | passwdk = | 842 | passwdk = |
822 | addWidBool(i18n("Show location in What's Next view"), | 843 | addWidBool(i18n("Show location in What's Next view"), |
823 | &(KOPrefs::instance()->mWNViewShowLocation),topFrame); | 844 | &(KOPrefs::instance()->mWNViewShowLocation),topFrame); |
824 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 845 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
825 | 846 | ||
826 | passwdk = | 847 | passwdk = |
827 | addWidBool(i18n("Show Sync Events in \nWhat's Next/Agenda view"), | 848 | addWidBool(i18n("Show Sync Events in \nWhat's Next/Agenda view"), |
828 | &(KOPrefs::instance()->mShowSyncEvents),topFrame); | 849 | &(KOPrefs::instance()->mShowSyncEvents),topFrame); |
829 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 850 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
830 | passwdk = | 851 | passwdk = |
831 | addWidBool(i18n("Use short date in \nWhat's Next/Event view"), | 852 | addWidBool(i18n("Use short date in \nWhat's Next/Event view"), |
832 | &(KOPrefs::instance()->mShortDateInViewer),topFrame); | 853 | &(KOPrefs::instance()->mShortDateInViewer),topFrame); |
833 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 854 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
834 | 855 | ||
835 | 856 | ||
836 | 857 | ||
837 | 858 | ||
838 | // *********************** Todo View | 859 | // *********************** Todo View |
839 | 860 | ||
840 | topFrame = addPage(i18n("Todo View"),0,0); | 861 | topFrame = addPage(i18n("Todo View"),0,0); |
841 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 862 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
842 | 863 | ||
843 | topLayout = new QGridLayout(topFrame,4,1); | 864 | topLayout = new QGridLayout(topFrame,4,1); |
844 | topLayout->setSpacing(spacingHint()); | 865 | topLayout->setSpacing(spacingHint()); |
845 | topLayout->setMargin(marginHint()); | 866 | topLayout->setMargin(marginHint()); |
846 | ii = 0; | 867 | ii = 0; |
847 | dummy = | 868 | dummy = |
848 | addWidBool(i18n("Hide not running Todos in To-do view"), | 869 | addWidBool(i18n("Hide not running Todos in To-do view"), |
849 | &(KOPrefs::instance()->mHideNonStartedTodos),topFrame); | 870 | &(KOPrefs::instance()->mHideNonStartedTodos),topFrame); |
850 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 871 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
851 | 872 | ||
852 | 873 | ||
853 | KPrefsDialogWidBool *showCompletedTodo = | 874 | KPrefsDialogWidBool *showCompletedTodo = |
854 | addWidBool(i18n("To-do view shows completed Todos"), | 875 | addWidBool(i18n("To-do view shows completed Todos"), |
855 | &(KOPrefs::instance()->mShowCompletedTodo),topFrame); | 876 | &(KOPrefs::instance()->mShowCompletedTodo),topFrame); |
856 | topLayout->addWidget(showCompletedTodo->checkBox(),ii++,0); | 877 | topLayout->addWidget(showCompletedTodo->checkBox(),ii++,0); |
857 | dummy = | 878 | dummy = |
858 | addWidBool(i18n("To-do view shows complete as 'xx %'"), | 879 | addWidBool(i18n("To-do view shows complete as 'xx %'"), |
859 | &(KOPrefs::instance()->mTodoViewShowsPercentage),topFrame); | 880 | &(KOPrefs::instance()->mTodoViewShowsPercentage),topFrame); |
860 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 881 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
861 | 882 | ||
862 | dummy = | 883 | dummy = |
863 | addWidBool(i18n("Small To-do view uses smaller font"), | 884 | addWidBool(i18n("Small To-do view uses smaller font"), |
864 | &(KOPrefs::instance()->mTodoViewUsesSmallFont),topFrame); | 885 | &(KOPrefs::instance()->mTodoViewUsesSmallFont),topFrame); |
865 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 886 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
866 | 887 | ||
867 | 888 | ||
868 | 889 | ||
869 | dummy = | 890 | dummy = |
870 | addWidBool(i18n("Todo view uses category colors"), | 891 | addWidBool(i18n("Todo view uses category colors"), |
871 | &(KOPrefs::instance()->mTodoViewUsesCatColors),topFrame); | 892 | &(KOPrefs::instance()->mTodoViewUsesCatColors),topFrame); |
872 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 893 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
873 | 894 | ||
874 | 895 | ||
875 | QWidget* wid = new QWidget( topFrame ); | 896 | QWidget* wid = new QWidget( topFrame ); |
876 | // Todo due today color | 897 | // Todo due today color |
877 | KPrefsDialogWidColor *todoDueTodayColor = | 898 | KPrefsDialogWidColor *todoDueTodayColor = |
878 | addWidColor(i18n("Todo due today color:"), | 899 | addWidColor(i18n("Todo due today color:"), |
879 | &(KOPrefs::instance()->mTodoDueTodayColor),wid); | 900 | &(KOPrefs::instance()->mTodoDueTodayColor),wid); |
880 | QHBoxLayout *widLayout = new QHBoxLayout(wid); | 901 | QHBoxLayout *widLayout = new QHBoxLayout(wid); |
881 | widLayout->addWidget( todoDueTodayColor->label() ); | 902 | widLayout->addWidget( todoDueTodayColor->label() ); |
882 | widLayout->addWidget( todoDueTodayColor->button() ); | 903 | widLayout->addWidget( todoDueTodayColor->button() ); |
883 | topLayout->addWidget(wid,ii++,0); | 904 | topLayout->addWidget(wid,ii++,0); |
884 | //topLayout->addWidget(todoDueTodayColor->button(),ii++,1); | 905 | //topLayout->addWidget(todoDueTodayColor->button(),ii++,1); |
885 | 906 | ||
886 | // Todo overdue color | 907 | // Todo overdue color |
887 | wid = new QWidget( topFrame ); | 908 | wid = new QWidget( topFrame ); |
888 | widLayout = new QHBoxLayout(wid); | 909 | widLayout = new QHBoxLayout(wid); |
889 | KPrefsDialogWidColor *todoOverdueColor = | 910 | KPrefsDialogWidColor *todoOverdueColor = |
890 | addWidColor(i18n("Todo overdue color:"), | 911 | addWidColor(i18n("Todo overdue color:"), |
891 | &(KOPrefs::instance()->mTodoOverdueColor),wid); | 912 | &(KOPrefs::instance()->mTodoOverdueColor),wid); |
892 | widLayout->addWidget(todoOverdueColor->label()); | 913 | widLayout->addWidget(todoOverdueColor->label()); |
893 | widLayout->addWidget(todoOverdueColor->button()); | 914 | widLayout->addWidget(todoOverdueColor->button()); |
894 | topLayout->addWidget(wid,ii++,0); | 915 | topLayout->addWidget(wid,ii++,0); |
895 | 916 | ||
896 | dummy = | 917 | dummy = |
897 | addWidBool(i18n("Colors are applied to text"), | 918 | addWidBool(i18n("Colors are applied to text"), |
898 | &(KOPrefs::instance()->mTodoViewUsesForegroundColor),topFrame); | 919 | &(KOPrefs::instance()->mTodoViewUsesForegroundColor),topFrame); |
899 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 920 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
900 | 921 | ||
901 | dummy = | 922 | dummy = |
902 | addWidBool(i18n("Allday Agenda view shows todos"), | 923 | addWidBool(i18n("Allday Agenda view shows todos"), |
903 | &(KOPrefs::instance()->mShowTodoInAgenda),topFrame); | 924 | &(KOPrefs::instance()->mShowTodoInAgenda),topFrame); |
904 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 925 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
905 | 926 | ||
906 | 927 | ||
907 | topFrame = addPage(i18n("View Options"),0,0); | 928 | topFrame = addPage(i18n("View Options"),0,0); |
908 | 929 | ||
909 | topLayout = new QGridLayout(topFrame,4,1); | 930 | topLayout = new QGridLayout(topFrame,4,1); |
910 | topLayout->setSpacing(spacingHint()); | 931 | topLayout->setSpacing(spacingHint()); |
911 | topLayout->setMargin(marginHint()); | 932 | topLayout->setMargin(marginHint()); |
912 | ii = 0; | 933 | ii = 0; |
913 | lab = new QLabel( i18n("Show in todo/event viewer:"), topFrame); | 934 | lab = new QLabel( i18n("Show in todo/event viewer:"), topFrame); |
914 | topLayout->addWidget(lab ,ii++,0); | 935 | topLayout->addWidget(lab ,ii++,0); |
915 | 936 | ||
916 | dummy = addWidBool(i18n("Details"), | 937 | dummy = addWidBool(i18n("Details"), |
917 | &(KOPrefs::instance()->mEVshowDetails),topFrame); | 938 | &(KOPrefs::instance()->mEVshowDetails),topFrame); |
918 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 939 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
919 | dummy = addWidBool(i18n("Created time"), | 940 | dummy = addWidBool(i18n("Created time"), |
920 | &(KOPrefs::instance()->mEVshowCreated),topFrame); | 941 | &(KOPrefs::instance()->mEVshowCreated),topFrame); |
921 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 942 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
922 | dummy = addWidBool(i18n("Last modified time"), | 943 | dummy = addWidBool(i18n("Last modified time"), |
923 | &(KOPrefs::instance()->mEVshowChanged),topFrame); | 944 | &(KOPrefs::instance()->mEVshowChanged),topFrame); |
924 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 945 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
925 | 946 | ||
926 | 947 | ||
927 | lab = new QLabel( i18n("Show in What'sThis quick overview:"), topFrame); | 948 | lab = new QLabel( i18n("Show in What'sThis quick overview:"), topFrame); |
928 | topLayout->addWidget(lab ,ii++,0); | 949 | topLayout->addWidget(lab ,ii++,0); |
929 | 950 | ||
930 | dummy = addWidBool(i18n("Details"), | 951 | dummy = addWidBool(i18n("Details"), |
931 | &(KOPrefs::instance()->mWTshowDetails),topFrame); | 952 | &(KOPrefs::instance()->mWTshowDetails),topFrame); |
932 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 953 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
933 | dummy = addWidBool(i18n("Created time"), | 954 | dummy = addWidBool(i18n("Created time"), |
934 | &(KOPrefs::instance()->mWTshowCreated),topFrame); | 955 | &(KOPrefs::instance()->mWTshowCreated),topFrame); |
935 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 956 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
936 | dummy = addWidBool(i18n("Last modified time"), | 957 | dummy = addWidBool(i18n("Last modified time"), |
937 | &(KOPrefs::instance()->mWTshowChanged),topFrame); | 958 | &(KOPrefs::instance()->mWTshowChanged),topFrame); |
938 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 959 | topLayout->addWidget(dummy->checkBox(),ii++,0); |