-rw-r--r-- | bin/kdepim/WhatsNew.txt | 5 | ||||
-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 2 | ||||
-rw-r--r-- | korganizer/koprefs.cpp | 1 | ||||
-rw-r--r-- | korganizer/koprefs.h | 1 | ||||
-rw-r--r-- | korganizer/koprefsdialog.cpp | 6 | ||||
-rw-r--r-- | korganizer/kowhatsnextview.cpp | 16 |
6 files changed, 27 insertions, 4 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 368f379..2032420 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,53 +1,56 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 2.1.17 ************ | 3 | ********** VERSION 2.1.17 ************ |
4 | 4 | ||
5 | 5 | KO/Pi: | |
6 | Added option to display times in What's Next View on two lines. | ||
7 | Removed "Allday" for allday events of one day duration in What's Next View. | ||
8 | Added date range for allday events of more than one day duration in What's Next View. | ||
6 | 9 | ||
7 | ********** VERSION 2.1.16 ************ | 10 | ********** VERSION 2.1.16 ************ |
8 | 11 | ||
9 | Fixed a problem with the menu bar in KO/Pi and using the "Menu" hardware key on the Zaurus. | 12 | Fixed a problem with the menu bar in KO/Pi and using the "Menu" hardware key on the Zaurus. |
10 | Added columns for datetime in todo view: Last modified, created and last modified subtodo | 13 | Added columns for datetime in todo view: Last modified, created and last modified subtodo |
11 | Fixed a bug in agenda view displaying recurring multiday events which are longer than two days. | 14 | Fixed a bug in agenda view displaying recurring multiday events which are longer than two days. |
12 | Made conflict detection up to 4 times faster. | 15 | Made conflict detection up to 4 times faster. |
13 | 16 | ||
14 | ********** VERSION 2.1.15 ************ | 17 | ********** VERSION 2.1.15 ************ |
15 | 18 | ||
16 | Fixed two layout problems on the Z: | 19 | Fixed two layout problems on the Z: |
17 | Made the with of the newly added buttons on the Quick-Todo smaller. | 20 | Made the with of the newly added buttons on the Quick-Todo smaller. |
18 | Made listweek layout in 2 columns on the Z760 in portait screen and full menubar visible. | 21 | Made listweek layout in 2 columns on the Z760 in portait screen and full menubar visible. |
19 | 22 | ||
20 | 23 | ||
21 | ********** VERSION 2.1.14 ************ | 24 | ********** VERSION 2.1.14 ************ |
22 | 25 | ||
23 | Added some buttons to the KO/Pi Quick-todo line to make it possible to quickly access some todo view layout settings like display all flat/open/close and hide/show running/done. | 26 | Added some buttons to the KO/Pi Quick-todo line to make it possible to quickly access some todo view layout settings like display all flat/open/close and hide/show running/done. |
24 | Added a button to add a subtodo quickly. | 27 | Added a button to add a subtodo quickly. |
25 | 28 | ||
26 | Added a possibility to search for conflicting events. (In the Action menu. Keyboard shortcut "q", shift+q or ctrl +q ). | 29 | Added a possibility to search for conflicting events. (In the Action menu. Keyboard shortcut "q", shift+q or ctrl +q ). |
27 | Added an option to change the layout of the list week to column mode. | 30 | Added an option to change the layout of the list week to column mode. |
28 | 31 | ||
29 | Fixed some usability problems in pi-sync mode by adding some progress information about file transfer. | 32 | Fixed some usability problems in pi-sync mode by adding some progress information about file transfer. |
30 | 33 | ||
31 | Fixed pi-sync problems with the new multi calendar feature. | 34 | Fixed pi-sync problems with the new multi calendar feature. |
32 | Now pi-sync behaviour should be: | 35 | Now pi-sync behaviour should be: |
33 | 1) Local sends file request ( as usual ) | 36 | 1) Local sends file request ( as usual ) |
34 | 2) Remote sends file which contains data of all enabled ( the calendar where the "eye" column is checked ) calendars. | 37 | 2) Remote sends file which contains data of all enabled ( the calendar where the "eye" column is checked ) calendars. |
35 | 3) Local syncs with data, adds new entries to default calendar and sends file back ( as usual ). | 38 | 3) Local syncs with data, adds new entries to default calendar and sends file back ( as usual ). |
36 | If the data which local receives contains entries which are on disabled calendars on local this entries are updated and not added as duplicates to the default calendar. | 39 | If the data which local receives contains entries which are on disabled calendars on local this entries are updated and not added as duplicates to the default calendar. |
37 | 4) Remote updates the data and adds new entries to default calendar. Readonly entries are not changed on remote. | 40 | 4) Remote updates the data and adds new entries to default calendar. Readonly entries are not changed on remote. |
38 | If the data which remote receives contains entries which are on disabled calendars on remote this entries are updated and not added as duplicates to the default calendar. | 41 | If the data which remote receives contains entries which are on disabled calendars on remote this entries are updated and not added as duplicates to the default calendar. |
39 | 42 | ||
40 | Summary: | 43 | Summary: |
41 | No new item ( new created after the last sync ) in a disabled calendar is propagated to the sync partner. Readonly items are synced and added/changed on the sync partner if it is not readonly on the sync partner. | 44 | No new item ( new created after the last sync ) in a disabled calendar is propagated to the sync partner. Readonly items are synced and added/changed on the sync partner if it is not readonly on the sync partner. |
42 | If you have different calendars on remote and local and some of them disabled you may get some "strange" bahaviour. | 45 | If you have different calendars on remote and local and some of them disabled you may get some "strange" bahaviour. |
43 | Well, the syncing has become quite complicated ... you should have no problems if you enable all calendars. | 46 | Well, the syncing has become quite complicated ... you should have no problems if you enable all calendars. |
44 | 47 | ||
45 | ********** VERSION 2.1.13 ************ | 48 | ********** VERSION 2.1.13 ************ |
46 | 49 | ||
47 | Fixed a problem in KA/Pi search. | 50 | Fixed a problem in KA/Pi search. |
48 | Fixed some minor problems in KO/Pi. | 51 | Fixed some minor problems in KO/Pi. |
49 | Added calendar selection possibility to the todo view popup and to the event/todo/journal editor. | 52 | Added calendar selection possibility to the todo view popup and to the event/todo/journal editor. |
50 | 53 | ||
51 | Fixed memory usage problems in KA/Pi: | 54 | Fixed memory usage problems in KA/Pi: |
52 | When loading data KA/Pi did load the file data twice. | 55 | When loading data KA/Pi did load the file data twice. |
53 | Example: | 56 | Example: |
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 0b928ef..e699fe9 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1484,60 +1484,60 @@ | |||
1484 | { "The file\n%1\ndoes not exist!\nShall I create it for you?","Die Datei\n%1\nexistiert nicht!\nSoll sie neu angelegt werden?" }, | 1484 | { "The file\n%1\ndoes not exist!\nShall I create it for you?","Die Datei\n%1\nexistiert nicht!\nSoll sie neu angelegt werden?" }, |
1485 | { "Sorry, cannot create the file\n%1!\nNo calendar added!","Kann leider die Datei\n%1\nnicht anlegen!\nKein Kalender hinzugefügt!" }, | 1485 | { "Sorry, cannot create the file\n%1!\nNo calendar added!","Kann leider die Datei\n%1\nnicht anlegen!\nKein Kalender hinzugefügt!" }, |
1486 | { "\nNO\n WRITEABLE\n CALENDAR\n FOUND!\n\nPlease fix your calendar settings!\n","\nKEIN\n SCHREIBBARER\n KALENDER\n GEFUNDEN!\n\nBitte korrigieren Sie\nihre Kalendereinstellungen!\n" }, | 1486 | { "\nNO\n WRITEABLE\n CALENDAR\n FOUND!\n\nPlease fix your calendar settings!\n","\nKEIN\n SCHREIBBARER\n KALENDER\n GEFUNDEN!\n\nBitte korrigieren Sie\nihre Kalendereinstellungen!\n" }, |
1487 | { "\nThe file\n%1\non disk has changed!\nFile size: %2 bytes.\nLast modified: %3\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie Datei\n%1\nwurde verändert!\nDatei Grösse: %2 Bytes.\nZuletzt geändert: %3\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, | 1487 | { "\nThe file\n%1\non disk has changed!\nFile size: %2 bytes.\nLast modified: %3\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie Datei\n%1\nwurde verändert!\nDatei Grösse: %2 Bytes.\nZuletzt geändert: %3\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, |
1488 | { "Edit","Edit" }, | 1488 | { "Edit","Edit" }, |
1489 | { "Last Modified","Zuletzt geändert" }, | 1489 | { "Last Modified","Zuletzt geändert" }, |
1490 | { "Journal viewer","Journal Anzeige" }, | 1490 | { "Journal viewer","Journal Anzeige" }, |
1491 | { "Configure Calendar Files...","Konfiguriere Kalenderdateien..." }, | 1491 | { "Configure Calendar Files...","Konfiguriere Kalenderdateien..." }, |
1492 | { "You can use and display <b>more than one</b> calendar file in KO/Pi. A calendar file is called a <b>resource</b>. To add a calendar or change calendar settings please use menu: <b>View -> Toggle Resource View</b>.","Sie können <b>mehr als eine</b> Kalenderdatei in KO/Pi darstellen und benutzen. Eine Kalenderdatei wird <b>Resource</b> genannt. Um einen Kalender hinzuzufügen oder die Kalendereinstellungen zu ändern benutzen Sie bitte das Menu: <b>Ansicht -> Resourcenansicht umschalten</b>." }, | 1492 | { "You can use and display <b>more than one</b> calendar file in KO/Pi. A calendar file is called a <b>resource</b>. To add a calendar or change calendar settings please use menu: <b>View -> Toggle Resource View</b>.","Sie können <b>mehr als eine</b> Kalenderdatei in KO/Pi darstellen und benutzen. Eine Kalenderdatei wird <b>Resource</b> genannt. Um einen Kalender hinzuzufügen oder die Kalendereinstellungen zu ändern benutzen Sie bitte das Menu: <b>Ansicht -> Resourcenansicht umschalten</b>." }, |
1493 | { "Hide Completed","Verstecke erledigte Todos" }, | 1493 | { "Hide Completed","Verstecke erledigte Todos" }, |
1494 | { "Show not Running","Zeige nicht Laufende" }, | 1494 | { "Show not Running","Zeige nicht Laufende" }, |
1495 | { "Click to add new Todo","Klick für neues Todo!" }, | 1495 | { "Click to add new Todo","Klick für neues Todo!" }, |
1496 | { "Show next conflict for","Zeige nächsten Konflikt für" }, | 1496 | { "Show next conflict for","Zeige nächsten Konflikt für" }, |
1497 | { "All events","Alle Termine" }, | 1497 | { "All events","Alle Termine" }, |
1498 | { "Allday events","Ganztagestermine" }, | 1498 | { "Allday events","Ganztagestermine" }, |
1499 | { "Events with time","Termine mit Zeit" }, | 1499 | { "Events with time","Termine mit Zeit" }, |
1500 | { "No conflict found","Kein Konflikt gefunden" }, | 1500 | { "No conflict found","Kein Konflikt gefunden" }, |
1501 | { "Conflict %1 <-> %2","Konflikt %1 <-> %2" }, | 1501 | { "Conflict %1 <-> %2","Konflikt %1 <-> %2" }, |
1502 | { "<p><b>Q</b>: Show next date with conflicting events\n ","<p><b>Q</b>: Zeige nächstes Datum mit Terminen im Konflikt\n " }, | 1502 | { "<p><b>Q</b>: Show next date with conflicting events\n ","<p><b>Q</b>: Zeige nächstes Datum mit Terminen im Konflikt\n " }, |
1503 | { "Week view mode uses row layout","Wochenansicht Modus nutzt Reihenlayout" }, | 1503 | { "Week view mode uses row layout","Wochenansicht Modus nutzt Reihenlayout" }, |
1504 | { "The event\n%1\nconflicts with event\n%2\nat date\n%3.\n","Der Termin\n%1\nist im Konflikt mit Termin\n%2\nam Datum\n%3.\n" }, | 1504 | { "The event\n%1\nconflicts with event\n%2\nat date\n%3.\n","Der Termin\n%1\nist im Konflikt mit Termin\n%2\nam Datum\n%3.\n" }, |
1505 | { "KO/Pi Conflict delected","KO/Pi Konflikt erkannt" }, | 1505 | { "KO/Pi Conflict delected","KO/Pi Konflikt erkannt" }, |
1506 | { "Show date","Zeige Datum" }, | 1506 | { "Show date","Zeige Datum" }, |
1507 | { "No problem!","Null Problemo!" }, | 1507 | { "No problem!","Null Problemo!" }, |
1508 | { "Automatically sync with KDE-Desktop\nwhen receiving sync request","Synce automatisch mit KDE-Desktop\nwenn eine Sync-Anforderung kommt" }, | 1508 | { "Automatically sync with KDE-Desktop\nwhen receiving sync request","Synce automatisch mit KDE-Desktop\nwenn eine Sync-Anforderung kommt" }, |
1509 | { "Pi-Sync Port Error","Pi-Sync Port Fehler" }, | 1509 | { "Pi-Sync Port Error","Pi-Sync Port Fehler" }, |
1510 | { "<b>Enabling Pi-Sync failed!</b> Failed to bind or listen to the port %1! Is another instance already listening to that port?","<b>Anschalten von Pi-Sync fehlgeschlagen!</b> Fehler beim Ansprechen des Ports %1! Ist bereits eine andere Anwendung dabei diesen Port zu nutzen?" }, | 1510 | { "<b>Enabling Pi-Sync failed!</b> Failed to bind or listen to the port %1! Is another instance already listening to that port?","<b>Anschalten von Pi-Sync fehlgeschlagen!</b> Fehler beim Ansprechen des Ports %1! Ist bereits eine andere Anwendung dabei diesen Port zu nutzen?" }, |
1511 | { "No valid port number:\n%1","Keine gültige Port Nummer:\n%1" }, | 1511 | { "No valid port number:\n%1","Keine gültige Port Nummer:\n%1" }, |
1512 | { "Port number (Default: %1)\nValid range from 1 to 65535","Port Nummer (Standard: %1)\nGültiger Bereich von 1 bis 65535" }, | 1512 | { "Port number (Default: %1)\nValid range from 1 to 65535","Port Nummer (Standard: %1)\nGültiger Bereich von 1 bis 65535" }, |
1513 | { "Pi-Sync Error","Pi-Sync Fehler" }, | 1513 | { "Pi-Sync Error","Pi-Sync Fehler" }, |
1514 | { "Got send file request\nwith invalid password","Erhielt "sende Datei" Anfrage\nmit ungültigem Passwort" }, | 1514 | { "Got send file request\nwith invalid password","Erhielt "sende Datei" Anfrage\nmit ungültigem Passwort" }, |
1515 | { "Got receive file request\nwith invalid password","Erhielt "empfange Datei" Anfrage\nmit ungültigem Passwort" }, | 1515 | { "Got receive file request\nwith invalid password","Erhielt "empfange Datei" Anfrage\nmit ungültigem Passwort" }, |
1516 | { "Wrong password: Receiving remote file failed.","Falsches Passwort: Empfangen von entfernter Datei fehlgeschlagen." }, | 1516 | { "Wrong password: Receiving remote file failed.","Falsches Passwort: Empfangen von entfernter Datei fehlgeschlagen." }, |
1517 | { "Please close error dialog on remote.","Bitte schließe Fehler-Dialog am entfernten Rechner" }, | 1517 | { "Please close error dialog on remote.","Bitte schließe Fehler-Dialog am entfernten Rechner" }, |
1518 | { "Unknown error on remote.","Unbekannter Fehler am entfernten Rechner" }, | 1518 | { "Unknown error on remote.","Unbekannter Fehler am entfernten Rechner" }, |
1519 | { "Pi-Sync: Connected!","Pi-Sync: Verbunden!" }, | 1519 | { "Pi-Sync: Connected!","Pi-Sync: Verbunden!" }, |
1520 | { "Receiving file from remote...","Empfange entfernte Datei..." }, | 1520 | { "Receiving file from remote...","Empfange entfernte Datei..." }, |
1521 | { "Sending back synced file...","Sende synchronisierte Datei zurück..." }, | 1521 | { "Sending back synced file...","Sende synchronisierte Datei zurück..." }, |
1522 | { "Do you want to\nclear all sync info\nof all profiles?","Möchten Sie wirklich\ndie Sync-Info\nfür alle Profile\nlöschen?" }, | 1522 | { "Do you want to\nclear all sync info\nof all profiles?","Möchten Sie wirklich\ndie Sync-Info\nfür alle Profile\nlöschen?" }, |
1523 | { "Do you want to\nclear the sync\ninfo of profile\n%1?\n","Möchten Sie wirklich\ndie Sync-Info für Profil\n%1?\nlöschen" }, | 1523 | { "Do you want to\nclear the sync\ninfo of profile\n%1?\n","Möchten Sie wirklich\ndie Sync-Info für Profil\n%1?\nlöschen" }, |
1524 | { "Sorry, no valid port.Syncing cancelled.","Sorry, kein gültiger Port. Syncing abgebrochen." }, | 1524 | { "Sorry, no valid port.Syncing cancelled.","Sorry, kein gültiger Port. Syncing abgebrochen." }, |
1525 | { "Remote port number:\n(May be: 1 - 65535)","Ferne Port Nummer:\n(Darf sein: 1 - 65535)" }, | 1525 | { "Remote port number:\n(May be: 1 - 65535)","Ferne Port Nummer:\n(Darf sein: 1 - 65535)" }, |
1526 | { "Writing back file ...","Schreibe Datei zurück..." }, | 1526 | { "Writing back file ...","Schreibe Datei zurück..." }, |
1527 | { "Sending back file ...","Sende Datei zurück..." }, | 1527 | { "Sending back file ...","Sende Datei zurück..." }, |
1528 | { "Eeek, there I am ticklish!","Hihi, da bin ich kitzlig!" }, | 1528 | { "Eeek, there I am ticklish!","Hihi, da bin ich kitzlig!" }, |
1529 | { "Created","Angelegt" }, | 1529 | { "Created","Angelegt" }, |
1530 | { "Last Modified Sub","Zuletzt geändertes Sub" }, | 1530 | { "Last Modified Sub","Zuletzt geändertes Sub" }, |
1531 | { "Checking conflicts ... please wait","Überprüfe Konflikte ... bitte warten" }, | 1531 | { "Checking conflicts ... please wait","Überprüfe Konflikte ... bitte warten" }, |
1532 | { "","" }, | 1532 | { "Show times on two lines","Zeige Zeiten auf zwei Zeilen" }, |
1533 | { "","" }, | 1533 | { "","" }, |
1534 | { "","" }, | 1534 | { "","" }, |
1535 | { "","" }, | 1535 | { "","" }, |
1536 | { "","" }, | 1536 | { "","" }, |
1537 | { "","" }, | 1537 | { "","" }, |
1538 | { "","" }, | 1538 | { "","" }, |
1539 | { "","" }, | 1539 | { "","" }, |
1540 | { "","" }, | 1540 | { "","" }, |
1541 | { "","" }, | 1541 | { "","" }, |
1542 | { "","" }, | 1542 | { "","" }, |
1543 | { "","" }, | 1543 | { "","" }, |
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index 6560877..eb997f5 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -72,96 +72,97 @@ KOPrefs::KOPrefs() : | |||
72 | addItemBool("ShowIconList",&mShowIconList,true); | 72 | addItemBool("ShowIconList",&mShowIconList,true); |
73 | addItemBool("ShowIconDay1",&mShowIconDay1,true); | 73 | addItemBool("ShowIconDay1",&mShowIconDay1,true); |
74 | addItemBool("ShowIconDay5",&mShowIconDay5,true); | 74 | addItemBool("ShowIconDay5",&mShowIconDay5,true); |
75 | addItemBool("ShowIconDay6",&mShowIconDay6,true); | 75 | addItemBool("ShowIconDay6",&mShowIconDay6,true); |
76 | addItemBool("ShowIconDay7",&mShowIconDay7,true); | 76 | addItemBool("ShowIconDay7",&mShowIconDay7,true); |
77 | addItemBool("ShowIconMonth",&mShowIconMonth,true); | 77 | addItemBool("ShowIconMonth",&mShowIconMonth,true); |
78 | addItemBool("ShowIconTodoview",&mShowIconTodoview,true); | 78 | addItemBool("ShowIconTodoview",&mShowIconTodoview,true); |
79 | addItemBool("ShowIconBackFast",&mShowIconBackFast,true); | 79 | addItemBool("ShowIconBackFast",&mShowIconBackFast,true); |
80 | addItemBool("ShowIconBack",&mShowIconBack,true); | 80 | addItemBool("ShowIconBack",&mShowIconBack,true); |
81 | addItemBool("ShowIconToday",&mShowIconToday,true); | 81 | addItemBool("ShowIconToday",&mShowIconToday,true); |
82 | addItemBool("ShowIconForward",&mShowIconForward,true); | 82 | addItemBool("ShowIconForward",&mShowIconForward,true); |
83 | addItemBool("ShowIconForwardFast",&mShowIconForwardFast,true); | 83 | addItemBool("ShowIconForwardFast",&mShowIconForwardFast,true); |
84 | addItemBool("ShowIconWhatsThis",&mShowIconWhatsThis,true); | 84 | addItemBool("ShowIconWhatsThis",&mShowIconWhatsThis,true); |
85 | addItemBool("ShowIconWeekNum",&mShowIconWeekNum,true); | 85 | addItemBool("ShowIconWeekNum",&mShowIconWeekNum,true); |
86 | addItemBool("ShowIconNextDays",&mShowIconNextDays,true); | 86 | addItemBool("ShowIconNextDays",&mShowIconNextDays,true); |
87 | addItemBool("ShowIconNext",&mShowIconNext,true); | 87 | addItemBool("ShowIconNext",&mShowIconNext,true); |
88 | addItemBool("ShowIconJournal",&mShowIconJournal,true); | 88 | addItemBool("ShowIconJournal",&mShowIconJournal,true); |
89 | addItemBool("ShowIconStretch",&mShowIconStretch,true); | 89 | addItemBool("ShowIconStretch",&mShowIconStretch,true); |
90 | addItemBool("ShowIconFilter",&mShowIconFilter,false); | 90 | addItemBool("ShowIconFilter",&mShowIconFilter,false); |
91 | addItemBool("ShowIconOnetoolbar",&mShowIconOnetoolbar,true); | 91 | addItemBool("ShowIconOnetoolbar",&mShowIconOnetoolbar,true); |
92 | 92 | ||
93 | bool addIcons = false; | 93 | bool addIcons = false; |
94 | #ifdef DESKTOP_VERSION | 94 | #ifdef DESKTOP_VERSION |
95 | addIcons = true; | 95 | addIcons = true; |
96 | #endif | 96 | #endif |
97 | addItemBool("ShowIconNavigator",&mShowIconNavigator,addIcons); | 97 | addItemBool("ShowIconNavigator",&mShowIconNavigator,addIcons); |
98 | addItemBool("ShowIconAllday",&mShowIconAllday,addIcons); | 98 | addItemBool("ShowIconAllday",&mShowIconAllday,addIcons); |
99 | addItemBool("ShowIconFilterview",&mShowIconFilterview,addIcons); | 99 | addItemBool("ShowIconFilterview",&mShowIconFilterview,addIcons); |
100 | addItemBool("ShowIconToggleFull",&mShowIconToggleFull,addIcons); | 100 | addItemBool("ShowIconToggleFull",&mShowIconToggleFull,addIcons); |
101 | 101 | ||
102 | addItemInt("LastLoadedLanguage",&mOldLanguage,0); | 102 | addItemInt("LastLoadedLanguage",&mOldLanguage,0); |
103 | 103 | ||
104 | addItemBool("AskForQuit",&mAskForQuit,false); | 104 | addItemBool("AskForQuit",&mAskForQuit,false); |
105 | 105 | ||
106 | #ifndef DESKTOP_VERSION | 106 | #ifndef DESKTOP_VERSION |
107 | addItemBool("ShowFullMenu",&mShowFullMenu,false); | 107 | addItemBool("ShowFullMenu",&mShowFullMenu,false); |
108 | #else | 108 | #else |
109 | addItemBool("ShowFullMenu",&mShowFullMenu,true); | 109 | addItemBool("ShowFullMenu",&mShowFullMenu,true); |
110 | #endif | 110 | #endif |
111 | addItemBool("ToolBarHor",&mToolBarHor, true ); | 111 | addItemBool("ToolBarHor",&mToolBarHor, true ); |
112 | addItemBool("ToolBarUp",&mToolBarUp, false ); | 112 | addItemBool("ToolBarUp",&mToolBarUp, false ); |
113 | addItemBool("ToolBarHorV",&mToolBarHorV, true ); | 113 | addItemBool("ToolBarHorV",&mToolBarHorV, true ); |
114 | addItemBool("ToolBarUpV",&mToolBarUpV, false ); | 114 | addItemBool("ToolBarUpV",&mToolBarUpV, false ); |
115 | addItemBool("ToolBarHorN",&mToolBarHorN, true ); | 115 | addItemBool("ToolBarHorN",&mToolBarHorN, true ); |
116 | addItemBool("ToolBarUpN",&mToolBarUpN, false ); | 116 | addItemBool("ToolBarUpN",&mToolBarUpN, false ); |
117 | addItemBool("ToolBarHorF",&mToolBarHorF, true ); | 117 | addItemBool("ToolBarHorF",&mToolBarHorF, true ); |
118 | addItemBool("ToolBarUpF",&mToolBarUpF, false ); | 118 | addItemBool("ToolBarUpF",&mToolBarUpF, false ); |
119 | addItemBool("ToolBarMiniIcons",&mToolBarMiniIcons, false ); | 119 | addItemBool("ToolBarMiniIcons",&mToolBarMiniIcons, false ); |
120 | addItemBool("WhatsNextTime2Lines",&mWhatsNextTime2Lines, false ); | ||
120 | addItemInt("Whats Next Days",&mWhatsNextDays,3); | 121 | addItemInt("Whats Next Days",&mWhatsNextDays,3); |
121 | addItemInt("Whats Next Prios",&mWhatsNextPrios,1); | 122 | addItemInt("Whats Next Prios",&mWhatsNextPrios,1); |
122 | 123 | ||
123 | addItemBool("ShowTodoInAgenda",&mShowTodoInAgenda,true); | 124 | addItemBool("ShowTodoInAgenda",&mShowTodoInAgenda,true); |
124 | addItemBool("ShowCompletedTodoInAgenda",&mShowCompletedTodoInAgenda,true); | 125 | addItemBool("ShowCompletedTodoInAgenda",&mShowCompletedTodoInAgenda,true); |
125 | addItemBool("ShowTimeInAgenda",&mShowTimeInAgenda,true); | 126 | addItemBool("ShowTimeInAgenda",&mShowTimeInAgenda,true); |
126 | addItemBool("HideNonStartedTodos",&mHideNonStartedTodos,false); | 127 | addItemBool("HideNonStartedTodos",&mHideNonStartedTodos,false); |
127 | addItemBool("ShowCompletedTodo",&mShowCompletedTodo,true); | 128 | addItemBool("ShowCompletedTodo",&mShowCompletedTodo,true); |
128 | addItemInt("AllDay Size",&mAllDaySize,28); | 129 | addItemInt("AllDay Size",&mAllDaySize,28); |
129 | QString defAlarm = KGlobal::iconLoader()->iconPath()+"koalarm.wav"; | 130 | QString defAlarm = KGlobal::iconLoader()->iconPath()+"koalarm.wav"; |
130 | addItemString("DefaultAlarmFile",&mDefaultAlarmFile,defAlarm ); | 131 | addItemString("DefaultAlarmFile",&mDefaultAlarmFile,defAlarm ); |
131 | 132 | ||
132 | addItemStringList("LocationDefaults",&mLocationDefaults ); | 133 | addItemStringList("LocationDefaults",&mLocationDefaults ); |
133 | addItemStringList("EventSummary User",&mEventSummaryUser); | 134 | addItemStringList("EventSummary User",&mEventSummaryUser); |
134 | addItemStringList("TodoSummary User",&mTodoSummaryUser); | 135 | addItemStringList("TodoSummary User",&mTodoSummaryUser); |
135 | addItemStringList("JournalSummary User",&mJournalSummaryUser); | 136 | addItemStringList("JournalSummary User",&mJournalSummaryUser); |
136 | 137 | ||
137 | addItemBool("Enable Group Scheduling",&mEnableGroupScheduling,false); | 138 | addItemBool("Enable Group Scheduling",&mEnableGroupScheduling,false); |
138 | addItemBool("Enable Project View",&mEnableProjectView,false); | 139 | addItemBool("Enable Project View",&mEnableProjectView,false); |
139 | addItemBool("Auto Save",&mAutoSave,false); | 140 | addItemBool("Auto Save",&mAutoSave,false); |
140 | addItemInt("Auto Save Interval",&mAutoSaveInterval,3); | 141 | addItemInt("Auto Save Interval",&mAutoSaveInterval,3); |
141 | addItemBool("Confirm Deletes",&mConfirm,true); | 142 | addItemBool("Confirm Deletes",&mConfirm,true); |
142 | addItemString("Archive File",&mArchiveFile); | 143 | addItemString("Archive File",&mArchiveFile); |
143 | addItemString("Html Export File",&mHtmlExportFile, | 144 | addItemString("Html Export File",&mHtmlExportFile, |
144 | QDir::homeDirPath() + "/" + i18n("Default export file", "calendar.html")); | 145 | QDir::homeDirPath() + "/" + i18n("Default export file", "calendar.html")); |
145 | addItemBool("Html With Save",&mHtmlWithSave,false); | 146 | addItemBool("Html With Save",&mHtmlWithSave,false); |
146 | 147 | ||
147 | KPrefs::setCurrentGroup("Personal Settings"); | 148 | KPrefs::setCurrentGroup("Personal Settings"); |
148 | 149 | ||
149 | addItemInt("Mail Client",&mMailClient,MailClientKMail); | 150 | addItemInt("Mail Client",&mMailClient,MailClientKMail); |
150 | addItemBool("Use Control Center Email",&mEmailControlCenter,false); | 151 | addItemBool("Use Control Center Email",&mEmailControlCenter,false); |
151 | addItemBool("Bcc",&mBcc,false); | 152 | addItemBool("Bcc",&mBcc,false); |
152 | 153 | ||
153 | KPrefs::setCurrentGroup("Time & Date"); | 154 | KPrefs::setCurrentGroup("Time & Date"); |
154 | 155 | ||
155 | 156 | ||
156 | addItemInt("Default Start Time",&mStartTime,10); | 157 | addItemInt("Default Start Time",&mStartTime,10); |
157 | addItemInt("Default Duration",&mDefaultDuration,2); | 158 | addItemInt("Default Duration",&mDefaultDuration,2); |
158 | addItemInt("Default Alarm Time",&mAlarmTime,3); | 159 | addItemInt("Default Alarm Time",&mAlarmTime,3); |
159 | KPrefs::setCurrentGroup("AlarmSettings"); | 160 | KPrefs::setCurrentGroup("AlarmSettings"); |
160 | addItemInt("AlarmPlayBeeps",&mAlarmPlayBeeps,20); | 161 | addItemInt("AlarmPlayBeeps",&mAlarmPlayBeeps,20); |
161 | addItemInt("AlarmSuspendTime",&mAlarmSuspendTime,7); | 162 | addItemInt("AlarmSuspendTime",&mAlarmSuspendTime,7); |
162 | addItemInt("AlarmSuspendCount",&mAlarmSuspendCount,5); | 163 | addItemInt("AlarmSuspendCount",&mAlarmSuspendCount,5); |
163 | addItemInt("AlarmBeepInterval",&mAlarmBeepInterval,3); | 164 | addItemInt("AlarmBeepInterval",&mAlarmBeepInterval,3); |
164 | 165 | ||
165 | 166 | ||
166 | KPrefs::setCurrentGroup("Calendar"); | 167 | KPrefs::setCurrentGroup("Calendar"); |
167 | 168 | ||
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h index 2ff03fa..9749ba3 100644 --- a/korganizer/koprefs.h +++ b/korganizer/koprefs.h | |||
@@ -163,96 +163,97 @@ class KOPrefs : public KPimPrefs | |||
163 | QFont mEditBoxFont; | 163 | QFont mEditBoxFont; |
164 | QFont mJornalViewFont; | 164 | QFont mJornalViewFont; |
165 | QFont mWhatsNextFont; | 165 | QFont mWhatsNextFont; |
166 | QFont mEventViewFont; | 166 | QFont mEventViewFont; |
167 | 167 | ||
168 | 168 | ||
169 | 169 | ||
170 | 170 | ||
171 | QColor mHolidayColor; | 171 | QColor mHolidayColor; |
172 | QColor mHighlightColor; | 172 | QColor mHighlightColor; |
173 | QColor mEventColor; | 173 | QColor mEventColor; |
174 | QColor mTodoDoneColor; | 174 | QColor mTodoDoneColor; |
175 | QColor mAgendaBgColor; | 175 | QColor mAgendaBgColor; |
176 | QColor mWorkingHoursColor; | 176 | QColor mWorkingHoursColor; |
177 | QColor mTodoDueTodayColor; | 177 | QColor mTodoDueTodayColor; |
178 | QColor mTodoOverdueColor; | 178 | QColor mTodoOverdueColor; |
179 | QColor mTodoRunColor; | 179 | QColor mTodoRunColor; |
180 | QColor mMonthViewEvenColor; | 180 | QColor mMonthViewEvenColor; |
181 | QColor mMonthViewOddColor; | 181 | QColor mMonthViewOddColor; |
182 | QColor mMonthViewHolidayColor; | 182 | QColor mMonthViewHolidayColor; |
183 | bool mMonthViewUsesDayColors; | 183 | bool mMonthViewUsesDayColors; |
184 | bool mMonthViewSatSunTog; | 184 | bool mMonthViewSatSunTog; |
185 | bool mMonthViewWeek; | 185 | bool mMonthViewWeek; |
186 | bool mMonthViewWeekRowlayout; | 186 | bool mMonthViewWeekRowlayout; |
187 | QColor mAppColor1; | 187 | QColor mAppColor1; |
188 | QColor mAppColor2; | 188 | QColor mAppColor2; |
189 | bool mUseAppColors; | 189 | bool mUseAppColors; |
190 | 190 | ||
191 | int mDayBegins; | 191 | int mDayBegins; |
192 | int mHourSize; | 192 | int mHourSize; |
193 | int mAllDaySize; | 193 | int mAllDaySize; |
194 | bool mShowFullMenu; | 194 | bool mShowFullMenu; |
195 | bool mDailyRecur; | 195 | bool mDailyRecur; |
196 | bool mWeeklyRecur; | 196 | bool mWeeklyRecur; |
197 | bool mMonthDailyRecur; | 197 | bool mMonthDailyRecur; |
198 | bool mMonthWeeklyRecur; | 198 | bool mMonthWeeklyRecur; |
199 | bool mMonthShowIcons; | 199 | bool mMonthShowIcons; |
200 | bool mMonthShowTimes; | 200 | bool mMonthShowTimes; |
201 | bool mMonthShowShort; | 201 | bool mMonthShowShort; |
202 | bool mEnableToolTips; | 202 | bool mEnableToolTips; |
203 | bool mEnableMonthScroll; | 203 | bool mEnableMonthScroll; |
204 | bool mFullViewMonth; | 204 | bool mFullViewMonth; |
205 | bool mMonthViewUsesCategoryColor; | 205 | bool mMonthViewUsesCategoryColor; |
206 | bool mFullViewTodo; | 206 | bool mFullViewTodo; |
207 | bool mShowCompletedTodo; | 207 | bool mShowCompletedTodo; |
208 | bool mMarcusBainsEnabled; | 208 | bool mMarcusBainsEnabled; |
209 | int mNextXDays; | 209 | int mNextXDays; |
210 | int mWhatsNextDays; | 210 | int mWhatsNextDays; |
211 | bool mWhatsNextTime2Lines; | ||
211 | int mWhatsNextPrios; | 212 | int mWhatsNextPrios; |
212 | bool mEnableQuickTodo; | 213 | bool mEnableQuickTodo; |
213 | 214 | ||
214 | bool mCompactDialogs; | 215 | bool mCompactDialogs; |
215 | bool mVerticalScreen; | 216 | bool mVerticalScreen; |
216 | 217 | ||
217 | bool mShowIconNewTodo; | 218 | bool mShowIconNewTodo; |
218 | bool mShowIconNewEvent; | 219 | bool mShowIconNewEvent; |
219 | bool mShowIconSearch; | 220 | bool mShowIconSearch; |
220 | bool mShowIconList; | 221 | bool mShowIconList; |
221 | bool mShowIconDay1; | 222 | bool mShowIconDay1; |
222 | bool mShowIconDay5; | 223 | bool mShowIconDay5; |
223 | bool mShowIconDay6; | 224 | bool mShowIconDay6; |
224 | bool mShowIconDay7; | 225 | bool mShowIconDay7; |
225 | bool mShowIconMonth; | 226 | bool mShowIconMonth; |
226 | bool mShowIconTodoview; | 227 | bool mShowIconTodoview; |
227 | bool mShowIconBackFast; | 228 | bool mShowIconBackFast; |
228 | bool mShowIconBack; | 229 | bool mShowIconBack; |
229 | bool mShowIconToday; | 230 | bool mShowIconToday; |
230 | bool mShowIconForward; | 231 | bool mShowIconForward; |
231 | bool mShowIconForwardFast; | 232 | bool mShowIconForwardFast; |
232 | bool mShowIconWhatsThis; | 233 | bool mShowIconWhatsThis; |
233 | bool mShowIconWeekNum; | 234 | bool mShowIconWeekNum; |
234 | bool mShowIconNextDays; | 235 | bool mShowIconNextDays; |
235 | bool mShowIconNext; | 236 | bool mShowIconNext; |
236 | bool mShowIconJournal; | 237 | bool mShowIconJournal; |
237 | bool mShowIconFilter; | 238 | bool mShowIconFilter; |
238 | bool mShowIconOnetoolbar; | 239 | bool mShowIconOnetoolbar; |
239 | bool mShowIconNavigator; | 240 | bool mShowIconNavigator; |
240 | bool mShowIconAllday; | 241 | bool mShowIconAllday; |
241 | bool mShowIconFilterview; | 242 | bool mShowIconFilterview; |
242 | bool mShowIconToggleFull; | 243 | bool mShowIconToggleFull; |
243 | 244 | ||
244 | bool mShowIconStretch; | 245 | bool mShowIconStretch; |
245 | 246 | ||
246 | bool mToolBarHor; | 247 | bool mToolBarHor; |
247 | bool mToolBarUp; | 248 | bool mToolBarUp; |
248 | bool mToolBarHorV; | 249 | bool mToolBarHorV; |
249 | bool mToolBarUpV; | 250 | bool mToolBarUpV; |
250 | bool mToolBarHorN; | 251 | bool mToolBarHorN; |
251 | bool mToolBarUpN; | 252 | bool mToolBarUpN; |
252 | bool mToolBarHorF; | 253 | bool mToolBarHorF; |
253 | bool mToolBarUpF; | 254 | bool mToolBarUpF; |
254 | bool mToolBarMiniIcons; | 255 | bool mToolBarMiniIcons; |
255 | 256 | ||
256 | bool mAskForQuit; | 257 | bool mAskForQuit; |
257 | bool mUsePassWd; | 258 | bool mUsePassWd; |
258 | bool mShowSyncEvents; | 259 | bool mShowSyncEvents; |
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 05bd73f..9e2378a 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -734,99 +734,103 @@ void KOPrefsDialog::setupViewsTab() | |||
734 | 734 | ||
735 | coloredCategoriesInMonthView = | 735 | coloredCategoriesInMonthView = |
736 | addWidBool(i18n("Month view uses day colors"), | 736 | addWidBool(i18n("Month view uses day colors"), |
737 | &(KOPrefs::instance()->mMonthViewUsesDayColors),topFrame); | 737 | &(KOPrefs::instance()->mMonthViewUsesDayColors),topFrame); |
738 | topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); | 738 | topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); |
739 | 739 | ||
740 | KPrefsDialogWidColor *holidayColor = | 740 | KPrefsDialogWidColor *holidayColor = |
741 | addWidColor(i18n("Day color odd months"), | 741 | addWidColor(i18n("Day color odd months"), |
742 | &(KOPrefs::instance()->mMonthViewOddColor),topFrame); | 742 | &(KOPrefs::instance()->mMonthViewOddColor),topFrame); |
743 | topLayout->addWidget(holidayColor->label(),ii,0); | 743 | topLayout->addWidget(holidayColor->label(),ii,0); |
744 | topLayout->addWidget(holidayColor->button(),ii++,1); | 744 | topLayout->addWidget(holidayColor->button(),ii++,1); |
745 | 745 | ||
746 | holidayColor = | 746 | holidayColor = |
747 | addWidColor(i18n("Day color even months"), | 747 | addWidColor(i18n("Day color even months"), |
748 | &(KOPrefs::instance()->mMonthViewEvenColor),topFrame); | 748 | &(KOPrefs::instance()->mMonthViewEvenColor),topFrame); |
749 | topLayout->addWidget(holidayColor->label(),ii,0); | 749 | topLayout->addWidget(holidayColor->label(),ii,0); |
750 | topLayout->addWidget(holidayColor->button(),ii++,1); | 750 | topLayout->addWidget(holidayColor->button(),ii++,1); |
751 | 751 | ||
752 | 752 | ||
753 | holidayColor = | 753 | holidayColor = |
754 | addWidColor(i18n("Color for Sundays + category \"Holiday\""), | 754 | addWidColor(i18n("Color for Sundays + category \"Holiday\""), |
755 | &(KOPrefs::instance()->mMonthViewHolidayColor),topFrame); | 755 | &(KOPrefs::instance()->mMonthViewHolidayColor),topFrame); |
756 | topLayout->addWidget(holidayColor->label(),ii,0); | 756 | topLayout->addWidget(holidayColor->label(),ii,0); |
757 | topLayout->addWidget(holidayColor->button(),ii++,1); | 757 | topLayout->addWidget(holidayColor->button(),ii++,1); |
758 | // *********************** What'sNext View | 758 | // *********************** What'sNext View |
759 | topFrame = addPage(i18n("What's Next View"),0,0); | 759 | topFrame = addPage(i18n("What's Next View"),0,0); |
760 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 760 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
761 | 761 | ||
762 | topLayout = new QGridLayout(topFrame,4,1); | 762 | topLayout = new QGridLayout(topFrame,4,1); |
763 | topLayout->setSpacing(mSpacingHint); | 763 | topLayout->setSpacing(mSpacingHint); |
764 | topLayout->setMargin(mMarginHint); | 764 | topLayout->setMargin(mMarginHint); |
765 | ii = 0; | 765 | ii = 0; |
766 | 766 | ||
767 | 767 | ||
768 | QHBox* hdummy = new QHBox(topFrame); | 768 | QHBox* hdummy = new QHBox(topFrame); |
769 | new QLabel(i18n("Days in What's Next:"),hdummy); | 769 | new QLabel(i18n("Days in What's Next:"),hdummy); |
770 | mWhatsNextSpin = new QSpinBox(1,14,1,hdummy); | 770 | mWhatsNextSpin = new QSpinBox(1,14,1,hdummy); |
771 | 771 | ||
772 | topLayout->addWidget(hdummy,ii++,0); | 772 | topLayout->addWidget(hdummy,ii++,0); |
773 | 773 | ||
774 | QHBox *prioBox = new QHBox(topFrame); | 774 | QHBox *prioBox = new QHBox(topFrame); |
775 | // intervalBox->setSpacing(mSpacingHint); | 775 | // intervalBox->setSpacing(mSpacingHint); |
776 | topLayout->addWidget(prioBox,ii++,0); | 776 | topLayout->addWidget(prioBox,ii++,0); |
777 | 777 | ||
778 | QLabel *prioLabel = new QLabel(i18n("Number of max.displayed todo prios:"), prioBox); | 778 | QLabel *prioLabel = new QLabel(i18n("Number of max.displayed todo prios:"), prioBox); |
779 | mPrioSpin = new QSpinBox(0,5,1,prioBox); | 779 | mPrioSpin = new QSpinBox(0,5,1,prioBox); |
780 | if ( QApplication::desktop()->width() < 300 ) | 780 | if ( QApplication::desktop()->width() < 300 ) |
781 | mPrioSpin->setFixedWidth( 40 ); | 781 | mPrioSpin->setFixedWidth( 40 ); |
782 | |||
783 | KPrefsDialogWidBool *passwdk = | 782 | KPrefsDialogWidBool *passwdk = |
784 | 783 | ||
784 | addWidBool(i18n("Show times on two lines"), | ||
785 | &(KOPrefs::instance()->mWhatsNextTime2Lines),topFrame); | ||
786 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | ||
787 | passwdk = | ||
788 | |||
785 | addWidBool(i18n("Show events that are done"), | 789 | addWidBool(i18n("Show events that are done"), |
786 | &(KOPrefs::instance()->mWNViewShowsPast),topFrame); | 790 | &(KOPrefs::instance()->mWNViewShowsPast),topFrame); |
787 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 791 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
788 | passwdk = | 792 | passwdk = |
789 | addWidBool(i18n("Show parent To-Do's"), | 793 | addWidBool(i18n("Show parent To-Do's"), |
790 | &(KOPrefs::instance()->mWNViewShowsParents),topFrame); | 794 | &(KOPrefs::instance()->mWNViewShowsParents),topFrame); |
791 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 795 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
792 | 796 | ||
793 | passwdk = | 797 | passwdk = |
794 | addWidBool(i18n("Show location"), | 798 | addWidBool(i18n("Show location"), |
795 | &(KOPrefs::instance()->mWNViewShowLocation),topFrame); | 799 | &(KOPrefs::instance()->mWNViewShowLocation),topFrame); |
796 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 800 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
797 | 801 | ||
798 | 802 | ||
799 | passwdk = | 803 | passwdk = |
800 | addWidBool(i18n("Use short date in WN+Event view"), | 804 | addWidBool(i18n("Use short date in WN+Event view"), |
801 | &(KOPrefs::instance()->mShortDateInViewer),topFrame); | 805 | &(KOPrefs::instance()->mShortDateInViewer),topFrame); |
802 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 806 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
803 | 807 | ||
804 | 808 | ||
805 | 809 | ||
806 | 810 | ||
807 | // *********************** Todo View | 811 | // *********************** Todo View |
808 | 812 | ||
809 | topFrame = addPage(i18n("Todo View"),0,0); | 813 | topFrame = addPage(i18n("Todo View"),0,0); |
810 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 814 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
811 | 815 | ||
812 | topLayout = new QGridLayout(topFrame,4,1); | 816 | topLayout = new QGridLayout(topFrame,4,1); |
813 | topLayout->setSpacing(mSpacingHint); | 817 | topLayout->setSpacing(mSpacingHint); |
814 | topLayout->setMargin(mMarginHint); | 818 | topLayout->setMargin(mMarginHint); |
815 | ii = 0; | 819 | ii = 0; |
816 | dummy = | 820 | dummy = |
817 | addWidBool(i18n("Hide not running Todos in To-do view"), | 821 | addWidBool(i18n("Hide not running Todos in To-do view"), |
818 | &(KOPrefs::instance()->mHideNonStartedTodos),topFrame); | 822 | &(KOPrefs::instance()->mHideNonStartedTodos),topFrame); |
819 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 823 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
820 | 824 | ||
821 | 825 | ||
822 | KPrefsDialogWidBool *showCompletedTodo = | 826 | KPrefsDialogWidBool *showCompletedTodo = |
823 | addWidBool(i18n("To-do view shows completed Todos"), | 827 | addWidBool(i18n("To-do view shows completed Todos"), |
824 | &(KOPrefs::instance()->mShowCompletedTodo),topFrame); | 828 | &(KOPrefs::instance()->mShowCompletedTodo),topFrame); |
825 | topLayout->addWidget(showCompletedTodo->checkBox(),ii++,0); | 829 | topLayout->addWidget(showCompletedTodo->checkBox(),ii++,0); |
826 | dummy = | 830 | dummy = |
827 | addWidBool(i18n("To-do view shows complete as 'xx %'"), | 831 | addWidBool(i18n("To-do view shows complete as 'xx %'"), |
828 | &(KOPrefs::instance()->mTodoViewShowsPercentage),topFrame); | 832 | &(KOPrefs::instance()->mTodoViewShowsPercentage),topFrame); |
829 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 833 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
830 | 834 | ||
831 | dummy = | 835 | dummy = |
832 | addWidBool(i18n("Small To-do view uses smaller font"), | 836 | addWidBool(i18n("Small To-do view uses smaller font"), |
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp index 221debc..fafcb58 100644 --- a/korganizer/kowhatsnextview.cpp +++ b/korganizer/kowhatsnextview.cpp | |||
@@ -484,131 +484,145 @@ bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool a | |||
484 | QDateTime noc; | 484 | QDateTime noc; |
485 | QString tempText; | 485 | QString tempText; |
486 | if ( appendTable && !notRed ) { | 486 | if ( appendTable && !notRed ) { |
487 | tempText = "<table>"; | 487 | tempText = "<table>"; |
488 | } | 488 | } |
489 | bool ok = true; | 489 | bool ok = true; |
490 | if ( reply ) { | 490 | if ( reply ) { |
491 | noc = ev->getNextOccurence( cdt, &ok ); | 491 | noc = ev->getNextOccurence( cdt, &ok ); |
492 | if (! ok && ev->typeID() == eventID) | 492 | if (! ok && ev->typeID() == eventID) |
493 | return false; | 493 | return false; |
494 | } | 494 | } |
495 | bool bDay = false; | 495 | bool bDay = false; |
496 | if ( ev->isBirthday() || ev->isAnniversary() ) | 496 | if ( ev->isBirthday() || ev->isAnniversary() ) |
497 | bDay = true; | 497 | bDay = true; |
498 | tempText += "<tr><td><b>"; | 498 | tempText += "<tr><td><b>"; |
499 | if (ev->typeID() == eventID ) { | 499 | if (ev->typeID() == eventID ) { |
500 | if (reply) { | 500 | if (reply) { |
501 | if (!ev->doesFloat()) | 501 | if (!ev->doesFloat()) |
502 | tempText += KGlobal::locale()->formatDateTime( noc , KOPrefs::instance()->mShortDateInViewer) +": "; | 502 | tempText += KGlobal::locale()->formatDateTime( noc , KOPrefs::instance()->mShortDateInViewer) +": "; |
503 | else | 503 | else |
504 | tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; | 504 | tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; |
505 | 505 | ||
506 | } else { | 506 | } else { |
507 | if (!ev->doesFloat()) { | 507 | if (!ev->doesFloat()) { |
508 | Event *event = static_cast<Event *>(ev); | 508 | Event *event = static_cast<Event *>(ev); |
509 | QDateTime st,end; | 509 | QDateTime st,end; |
510 | if ( event->recurrence()->doesRecur() ) { | 510 | if ( event->recurrence()->doesRecur() ) { |
511 | QDate recDate= mEventDate; | 511 | QDate recDate= mEventDate; |
512 | int days = event->dtStart().date().daysTo (event->dtEnd().date() ); | 512 | int days = event->dtStart().date().daysTo (event->dtEnd().date() ); |
513 | while ( ! event->recursOn( recDate ) ) { | 513 | while ( ! event->recursOn( recDate ) ) { |
514 | recDate = recDate.addDays( -1 ); | 514 | recDate = recDate.addDays( -1 ); |
515 | 515 | ||
516 | } | 516 | } |
517 | st = QDateTime ( recDate, event->dtStart().time() ); | 517 | st = QDateTime ( recDate, event->dtStart().time() ); |
518 | end = QDateTime ( recDate.addDays( days ), event->dtEnd().time() ); | 518 | end = QDateTime ( recDate.addDays( days ), event->dtEnd().time() ); |
519 | } | 519 | } |
520 | else { | 520 | else { |
521 | st = event->dtStart(); | 521 | st = event->dtStart(); |
522 | end = event->dtEnd(); | 522 | end = event->dtEnd(); |
523 | } | 523 | } |
524 | 524 | ||
525 | 525 | ||
526 | QString dateText; | 526 | QString dateText; |
527 | // qDebug("%s %s %s %s ", mEventDate.toString().latin1(),event->summary().latin1(), st .toString().latin1(),end.toString().latin1() ); | 527 | // qDebug("%s %s %s %s ", mEventDate.toString().latin1(),event->summary().latin1(), st .toString().latin1(),end.toString().latin1() ); |
528 | if ( st.date() < mEventDate ) | 528 | if ( st.date() < mEventDate ) |
529 | dateText = "++:++-"; | 529 | dateText = "++:++-"; |
530 | else | 530 | else |
531 | dateText = event->dtStartTimeStr() + "-"; | 531 | dateText = event->dtStartTimeStr() + "-"; |
532 | if ( KOPrefs::instance()->mWhatsNextTime2Lines ) | ||
533 | dateText += " "; | ||
532 | if ( end.date() > mEventDate ) | 534 | if ( end.date() > mEventDate ) |
533 | dateText += "++:++"; | 535 | dateText += "++:++"; |
534 | else | 536 | else |
535 | dateText += event->dtEndTimeStr(); | 537 | dateText += event->dtEndTimeStr(); |
536 | if ( notRed ) | 538 | if ( notRed ) |
537 | tempText += dateText; | 539 | tempText += dateText; |
538 | else { | 540 | else { |
539 | if ( end < cdt ) { | 541 | if ( end < cdt ) { |
540 | if ( !KOPrefs::instance()->mWNViewShowsPast ) | 542 | if ( !KOPrefs::instance()->mWNViewShowsPast ) |
541 | return false; | 543 | return false; |
542 | tempText += "<font color=\"#F00000\">" + dateText + "</font>"; | 544 | tempText += "<font color=\"#F00000\">" + dateText + "</font>"; |
543 | } | 545 | } |
544 | else if ( st < cdt ) | 546 | else if ( st < cdt ) |
545 | tempText += "<font color=\"#008000\">" + dateText + "</font>"; | 547 | tempText += "<font color=\"#008000\">" + dateText + "</font>"; |
546 | else | 548 | else |
547 | tempText += dateText; | 549 | tempText += dateText; |
548 | 550 | ||
549 | } | 551 | } |
550 | 552 | ||
551 | } else { | 553 | } else { |
552 | if ( bDay ) { | 554 | if ( bDay ) { |
553 | 555 | ||
554 | if ( ev->isBirthday()) | 556 | if ( ev->isBirthday()) |
555 | tempText += "<font color=\"#00B000\">" + i18n("Birthday") +":</font>"; | 557 | tempText += "<font color=\"#00B000\">" + i18n("Birthday") +":</font>"; |
556 | else | 558 | else |
557 | tempText += "<font color=\"#00B0000\">" + i18n("Anniversary")+":</font>"; | 559 | tempText += "<font color=\"#00B0000\">" + i18n("Anniversary")+":</font>"; |
558 | } else { | 560 | } else { |
559 | tempText += i18n("Allday:"); | 561 | if ( ((Event*)ev)->isMultiDay() ) { |
562 | QString dfs = KGlobal::locale()->dateFormatShort(); | ||
563 | KGlobal::locale()->setDateFormatShort("%d.%b"); | ||
564 | tempText +=KGlobal::locale()->formatDate(((Event*)ev)->dtStart().date(), true, KLocale::Userdefined) + "-"; | ||
565 | if ( KOPrefs::instance()->mWhatsNextTime2Lines ) | ||
566 | tempText += " "; | ||
567 | tempText +=KGlobal::locale()->formatDate(((Event*)ev)->dtEnd().date(), true, KLocale::Userdefined); | ||
568 | KGlobal::locale()->setDateFormatShort(dfs); | ||
569 | } else { | ||
570 | tempText += " " ;//i18n("Allday:"); | ||
571 | } | ||
560 | } | 572 | } |
561 | 573 | ||
562 | } | 574 | } |
563 | } | 575 | } |
564 | } else { | 576 | } else { |
565 | mTodos.append( ev ); | 577 | mTodos.append( ev ); |
566 | tempText += i18n("ToDo:"); | 578 | tempText += i18n("ToDo:"); |
579 | if ( KOPrefs::instance()->mWhatsNextTime2Lines ) | ||
580 | tempText += " "; | ||
567 | if (reply) { | 581 | if (reply) { |
568 | tempText += " "; | 582 | tempText += " "; |
569 | if ( noc != cdt ) { | 583 | if ( noc != cdt ) { |
570 | tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; | 584 | tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; |
571 | } | 585 | } |
572 | } else { | 586 | } else { |
573 | if ( ((Todo*)ev)->dtDue().date() < QDate::currentDate() ) { | 587 | if ( ((Todo*)ev)->dtDue().date() < QDate::currentDate() ) { |
574 | // tempText +="<font color=\"#F00000\">" + i18n("O-due!") + "</font>"; | 588 | // tempText +="<font color=\"#F00000\">" + i18n("O-due!") + "</font>"; |
575 | QString dfs = KGlobal::locale()->dateFormatShort(); | 589 | QString dfs = KGlobal::locale()->dateFormatShort(); |
576 | KGlobal::locale()->setDateFormatShort("%d.%b"); | 590 | KGlobal::locale()->setDateFormatShort("%d.%b"); |
577 | tempText +="<font color=\"#F00000\">" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "</font>"; | 591 | tempText +="<font color=\"#F00000\">" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "</font>"; |
578 | KGlobal::locale()->setDateFormatShort(dfs); | 592 | KGlobal::locale()->setDateFormatShort(dfs); |
579 | } else { | 593 | } else { |
580 | if (!ev->doesFloat() ) | 594 | if (!ev->doesFloat() ) |
581 | if( ( (Todo*)ev)->dtDue() < cdt ) { | 595 | if( ( (Todo*)ev)->dtDue() < cdt ) { |
582 | tempText +="<font color=\"#F00000\">" + ((Todo*)ev)->dtDueTimeStr() + "</font>"; | 596 | tempText +="<font color=\"#F00000\">" + ((Todo*)ev)->dtDueTimeStr() + "</font>"; |
583 | 597 | ||
584 | 598 | ||
585 | } else | 599 | } else |
586 | tempText +=((Todo*)ev)->dtDueTimeStr(); | 600 | tempText +=((Todo*)ev)->dtDueTimeStr(); |
587 | mTodos.append( ev ); | 601 | mTodos.append( ev ); |
588 | } | 602 | } |
589 | } | 603 | } |
590 | } | 604 | } |
591 | tempText += "</b></td><td>"; | 605 | tempText += "</b></td><td>"; |
592 | bool needClose = false; | 606 | bool needClose = false; |
593 | if ( ev->cancelled() ) { | 607 | if ( ev->cancelled() ) { |
594 | tempText += "<font color=\"#F00000\">[c"; | 608 | tempText += "<font color=\"#F00000\">[c"; |
595 | needClose =true; | 609 | needClose =true; |
596 | 610 | ||
597 | } | 611 | } |
598 | if ( ev->isAlarmEnabled() && ev->alarmEnabled()) { | 612 | if ( ev->isAlarmEnabled() && ev->alarmEnabled()) { |
599 | if ( !needClose) | 613 | if ( !needClose) |
600 | tempText +="["; | 614 | tempText +="["; |
601 | tempText += "a"; | 615 | tempText += "a"; |
602 | needClose =true; | 616 | needClose =true; |
603 | 617 | ||
604 | } | 618 | } |
605 | if ( ev->description().length() > 0 ) { | 619 | if ( ev->description().length() > 0 ) { |
606 | if ( !needClose) | 620 | if ( !needClose) |
607 | tempText +="["; | 621 | tempText +="["; |
608 | tempText += "i"; | 622 | tempText += "i"; |
609 | needClose =true; | 623 | needClose =true; |
610 | } | 624 | } |
611 | if ( ev->recurrence()->doesRecur() ) { | 625 | if ( ev->recurrence()->doesRecur() ) { |
612 | if ( !needClose) | 626 | if ( !needClose) |
613 | tempText +="["; | 627 | tempText +="["; |
614 | tempText += "r"; | 628 | tempText += "r"; |