summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/korganizer/germantranslation.txt4
-rw-r--r--korganizer/koagendaview.cpp27
-rw-r--r--korganizer/navigatorbar.cpp22
3 files changed, 35 insertions, 18 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt
index 00f5c28..ec08321 100644
--- a/bin/kdepim/korganizer/germantranslation.txt
+++ b/bin/kdepim/korganizer/germantranslation.txt
@@ -952,261 +952,261 @@
952{ "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, 952{ "Mobile device (cell phone)","Mobiles Gerät (Handy)" },
953{ "Help...","Hilfe..." }, 953{ "Help...","Hilfe..." },
954{ "Local file Cal:","Lokale Datei Kal:" }, 954{ "Local file Cal:","Lokale Datei Kal:" },
955{ "Local file ABook:","Lokale Datei ABuch:" }, 955{ "Local file ABook:","Lokale Datei ABuch:" },
956{ "Local file PWMgr:","Lokale Datei PWMgr:" }, 956{ "Local file PWMgr:","Lokale Datei PWMgr:" },
957{ "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, 957{ "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" },
958{ "Calendar:","Kalender:" }, 958{ "Calendar:","Kalender:" },
959{ "AddressBook:","AdressBuch:" }, 959{ "AddressBook:","AdressBuch:" },
960{ "PWManager:","PWManager:" }, 960{ "PWManager:","PWManager:" },
961{ "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, 961{ "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" },
962{ "ssh/scp","ssh/scp" }, 962{ "ssh/scp","ssh/scp" },
963{ "ftp","ftp" }, 963{ "ftp","ftp" },
964{ "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, 964{ "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" },
965{ "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, 965{ "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" },
966{ "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, 966{ "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" },
967{ "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, 967{ "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" },
968{ "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, 968{ "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" },
969{ "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, 969{ "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" },
970{ "KDE-Pim sync config","KDE-Pim sync Konfig" }, 970{ "KDE-Pim sync config","KDE-Pim sync Konfig" },
971{ "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, 971{ "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" },
972{ "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Model\nautomatisch erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, 972{ "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Model\nautomatisch erkannt\nwerden kann)\nOder füge Model Name ein:\n" },
973{ "Port number (Default: %1)","Port Nummer (Default: %1)" }, 973{ "Port number (Default: %1)","Port Nummer (Default: %1)" },
974{ "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, 974{ "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" },
975{ "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, 975{ "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" },
976{ "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, 976{ "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" },
977{ "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, 977{ "Enter port for Pi-Sync","Port Nummer für Pi-Sync" },
978{ "Disable Pi-Sync","Schalte Pi-Sync aus" }, 978{ "Disable Pi-Sync","Schalte Pi-Sync aus" },
979{ "Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!","Wollen Sie wirklich\nmit allen selektierten\nProfilen \"Multi-Syncen\"?\nDas Syncen dauert einige Zeit -\nalle Profile werden zweimal gesynct!" }, 979{ "Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!","Wollen Sie wirklich\nmit allen selektierten\nProfilen \"Multi-Syncen\"?\nDas Syncen dauert einige Zeit -\nalle Profile werden zweimal gesynct!" },
980{ "KDE-Pim Sync","KDE-Pim Sync" }, 980{ "KDE-Pim Sync","KDE-Pim Sync" },
981{ "Multiple profiles","Multi-Sync Profile" }, 981{ "Multiple profiles","Multi-Sync Profile" },
982{ "Device: ","Gerät: " }, 982{ "Device: ","Gerät: " },
983{ "Multiple sync started.","Multi-Sync gestartet." }, 983{ "Multiple sync started.","Multi-Sync gestartet." },
984{ "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, 984{ "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" },
985{ "Turn filter on","Schalte Filter an" }, 985{ "Turn filter on","Schalte Filter an" },
986{ "Turn filter off","Schalte Filter aus" }, 986{ "Turn filter off","Schalte Filter aus" },
987{ "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, 987{ "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" },
988{ "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, 988{ "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" },
989{ "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, 989{ "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" },
990{ "<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n","<p><b>Schwarz</b>: Termin/Todo mit Teilnehmern. Sie sind der Organisator!</p>\n" }, 990{ "<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n","<p><b>Schwarz</b>: Termin/Todo mit Teilnehmern. Sie sind der Organisator!</p>\n" },
991{ "<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n","<p><b>Dunkelgrün</b>: Information(Beschreibung) verfügbar.([i] in WN Ansicht)</p>\n" }, 991{ "<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n","<p><b>Dunkelgrün</b>: Information(Beschreibung) verfügbar.([i] in WN Ansicht)</p>\n" },
992{ "<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n","<p><b>Blau</b>: Wiederholender Termin.([r] in Whats'Next Ansicht)</p>\n" }, 992{ "<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n","<p><b>Blau</b>: Wiederholender Termin.([r] in Whats'Next Ansicht)</p>\n" },
993{ "<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n","<p><b>Rot</b>: Alarm gesetzt.([a] in Whats'Next Ansicht)</p>\n" }, 993{ "<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n","<p><b>Rot</b>: Alarm gesetzt.([a] in Whats'Next Ansicht)</p>\n" },
994{ "<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n","<p><b>Kreuz</b>: Eintrag gecancelt.([c] in Whats'Next Ansicht)</p>\n" }, 994{ "<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n","<p><b>Kreuz</b>: Eintrag gecancelt.([c] in Whats'Next Ansicht)</p>\n" },
995{ "<p><b>(for square icons in agenda and month view)</b></p>\n","<p><b>(für quadratische Icons in Agenda und Monats Ansicht)</b></p>\n" }, 995{ "<p><b>(for square icons in agenda and month view)</b></p>\n","<p><b>(für quadratische Icons in Agenda und Monats Ansicht)</b></p>\n" },
996{ "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, 996{ "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" },
997{ "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, 997{ "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" },
998{ "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, 998{ "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" },
999{ "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, 999{ "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" },
1000{ "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, 1000{ "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" },
1001{ "<p><b>shift+up/down</b>: Goto first/last item</p>\n","<p><b>shift+up/down</b>: Gehe zum ersten/letzten Eintrag</p>\n" }, 1001{ "<p><b>shift+up/down</b>: Goto first/last item</p>\n","<p><b>shift+up/down</b>: Gehe zum ersten/letzten Eintrag</p>\n" },
1002{ "<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n","<p><b>ctrl+up/down</b>: Gehe hoch/runter 20% aller Einträge</p>\n" }, 1002{ "<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n","<p><b>ctrl+up/down</b>: Gehe hoch/runter 20% aller Einträge</p>\n" },
1003{ "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, 1003{ "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" },
1004{ "<p><b>return+shift</b>: Deselect item+one step down</p>\n","<p><b>return+shift</b>: Deselektiere Item+Cursor einen Eintrag runter</p>\n" }, 1004{ "<p><b>return+shift</b>: Deselect item+one step down</p>\n","<p><b>return+shift</b>: Deselektiere Item+Cursor einen Eintrag runter</p>\n" },
1005{ "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, 1005{ "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" },
1006{ "<p><b>I</b>: Show info of current item+one step down.</p>\n","<p><b>I</b>: Zeige Detail-Ansicht vom sel.Eintrag+Cursor einen Eintrag runter.</p>\n" }, 1006{ "<p><b>I</b>: Show info of current item+one step down.</p>\n","<p><b>I</b>: Zeige Detail-Ansicht vom sel.Eintrag+Cursor einen Eintrag runter.</p>\n" },
1007{ "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, 1007{ "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" },
1008{ "<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n","<p><b>return+shift</b>: Markiere Todo als nicht erledigt+Cursor einen Eintrag runter</p>\n" }, 1008{ "<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n","<p><b>return+shift</b>: Markiere Todo als nicht erledigt+Cursor einen Eintrag runter</p>\n" },
1009{ "<p><b>return</b>: Mark item as completed+one step down.</p>\n","<p><b>return</b>: Markiere Todo als erledigt+Cursor einen Eintrag runter.</p>\n" }, 1009{ "<p><b>return</b>: Mark item as completed+one step down.</p>\n","<p><b>return</b>: Markiere Todo als erledigt+Cursor einen Eintrag runter.</p>\n" },
1010{ "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, 1010{ "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" },
1011{ "<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n","<p><b>shift+P</b>: Mache Todo zum neuen <b>P</b>arent Todo für das Todo, welches mit shift+Sselektiert wurde.</p>\n" }, 1011{ "<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n","<p><b>shift+P</b>: Mache Todo zum neuen <b>P</b>arent Todo für das Todo, welches mit shift+Sselektiert wurde.</p>\n" },
1012{ "<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n","<p><b>shift+S</b>: Mache Todo zum <b>S</b>ubtodo</p>\n" }, 1012{ "<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n","<p><b>shift+S</b>: Mache Todo zum <b>S</b>ubtodo</p>\n" },
1013{ "<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n","<p><b>shift+U</b>: <b>U</b>nparent Todo (Mache Sub-Todo zum Toplevel Todo)</p>\n" }, 1013{ "<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n","<p><b>shift+U</b>: <b>U</b>nparent Todo (Mache Sub-Todo zum Toplevel Todo)</p>\n" },
1014{ "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, 1014{ "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" },
1015{ "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, 1015{ "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" },
1016{ "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, 1016{ "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" },
1017{ "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, 1017{ "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" },
1018{ "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, 1018{ "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" },
1019{ "<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n","<p><b>left</b>: Vorh. Woche | <b>left+ctrl</b>: Vorh. Monat</p>\n" }, 1019{ "<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n","<p><b>left</b>: Vorh. Woche | <b>left+ctrl</b>: Vorh. Monat</p>\n" },
1020{ "<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n","<p><b>right</b>: Nächste Woche | <b>right+ctrl</b>: Nächste Woche</p>\n" }, 1020{ "<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n","<p><b>right</b>: Nächste Woche | <b>right+ctrl</b>: Nächste Woche</p>\n" },
1021{ "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, 1021{ "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" },
1022{ "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, 1022{ "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" },
1023{ "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" }, 1023{ "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" },
1024{ "<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X</b>: Zeige/verstecke Datenavigator</p>\n" }, 1024{ "<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X</b>: Zeige/verstecke Datenavigator</p>\n" },
1025{ "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" }, 1025{ "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" },
1026{ "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" }, 1026{ "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" },
1027{ "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monats Ansicht</p>\n" }, 1027{ "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monats Ansicht</p>\n" },
1028{ "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochen Ansicht | <b>U</b>: Wochen Ansicht</p>\n" }, 1028{ "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochen Ansicht | <b>U</b>: Wochen Ansicht</p>\n" },
1029{ "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" }, 1029{ "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" },
1030{ "<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ","<p><b>N</b>: Nächste-Tage Ansicht days view| <b>W</b>: What's next Ansicht\n " }, 1030{ "<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ","<p><b>N</b>: Nächste-Tage Ansicht days view| <b>W</b>: What's next Ansicht\n " },
1031{ "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, 1031{ "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" },
1032{ "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, 1032{ "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" },
1033{ "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" }, 1033{ "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" },
1034{ "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" }, 1034{ "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" },
1035{ "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" }, 1035{ "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" },
1036{ "<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n","<p><b>H</b>: Dieser Hilfe Dialog | <b>S</b>: Such Dialog</p>\n" }, 1036{ "<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n","<p><b>H</b>: Dieser Hilfe Dialog | <b>S</b>: Such Dialog</p>\n" },
1037{ "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, 1037{ "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" },
1038{ "After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n","Nachdem etwas geändert wurde, werden die\nDaten automatisch in die Datei abgespeichert\n~/kdepim/apps/korganizer/mycalendar.ics\nnach (konfigurierbar) drei Minuten.\nAus Sicherheitsgründen wird noch einmal\nnach 10 Min. abgespeichert, wenn keine\nÄnderungen vorgenommen wurden. Die \nDaten werden automatisch gespeichert,\nwenn KO/Pi beendet wird.\nSie können eine Backup-Datei erstellen im\nMenu: Datei - Speichere Kalender Backup\n" }, 1038{ "After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n","Nachdem etwas geändert wurde, werden die\nDaten automatisch in die Datei abgespeichert\n~/kdepim/apps/korganizer/mycalendar.ics\nnach (konfigurierbar) drei Minuten.\nAus Sicherheitsgründen wird noch einmal\nnach 10 Min. abgespeichert, wenn keine\nÄnderungen vorgenommen wurden. Die \nDaten werden automatisch gespeichert,\nwenn KO/Pi beendet wird.\nSie können eine Backup-Datei erstellen im\nMenu: Datei - Speichere Kalender Backup\n" },
1039{ "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, 1039{ "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" },
1040{ "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, 1040{ "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" },
1041{ "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, 1041{ "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" },
1042{ "\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.net\n" }, 1042{ "\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.net\n" },
1043{ "2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n","2) Ein Audio Alarm Daemon\nfür den Zaurus ist verfügbar\nals zusätzliche Anwendung\n" }, 1043{ "2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n","2) Ein Audio Alarm Daemon\nfür den Zaurus ist verfügbar\nals zusätzliche Anwendung\n" },
1044{ "1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n","1) Importieren von *.vcs oder *.ics Dateien von\nanderen Anwendungen kann möglicherweise\n nicht richtig funktionieren,\nwenn die Termine Eigenschaften haben,\ndie KO/Pi nicht unterstützt.\n" }, 1044{ "1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n","1) Importieren von *.vcs oder *.ics Dateien von\nanderen Anwendungen kann möglicherweise\n nicht richtig funktionieren,\nwenn die Termine Eigenschaften haben,\ndie KO/Pi nicht unterstützt.\n" },
1045{ "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, 1045{ "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" },
1046{ "KO/Pi FAQ","KO/Pi FAQ" }, 1046{ "KO/Pi FAQ","KO/Pi FAQ" },
1047{ "(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi is based on KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi is licensed\nunder the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.korganizer.org\nwww.pi-sync.net\n","(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi basiert auf KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.korganizer.org\nwww.pi-sync.net\n" }, 1047{ "(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi is based on KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi is licensed\nunder the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.korganizer.org\nwww.pi-sync.net\n","(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi basiert auf KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.korganizer.org\nwww.pi-sync.net\n" },
1048{ "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n","PDA-Edition\nfür: Zaurus 5x00 / 7x0 / 8x0\n" }, 1048{ "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n","PDA-Edition\nfür: Zaurus 5x00 / 7x0 / 8x0\n" },
1049{ "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, 1049{ "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" },
1050{ "About KOrganizer/Pi","Über KOrganizer/Pi" }, 1050{ "About KOrganizer/Pi","Über KOrganizer/Pi" },
1051{ "From: ","Von: " }, 1051{ "From: ","Von: " },
1052{ "Remove sync info","Entferne Sync Info" }, 1052{ "Remove sync info","Entferne Sync Info" },
1053{ "For all profiles","Für alle Profile" }, 1053{ "For all profiles","Für alle Profile" },
1054{ "Hide not Running","Verstecke nicht Laufende" }, 1054{ "Hide not Running","Verstecke nicht Laufende" },
1055{ "ME","ME" }, 1055{ "ME","ME" },
1056{ "Toolbar","Toolbar" }, 1056{ "Toolbar","Toolbar" },
1057{ "Undo Delete...","Löschen rückgängig machen..." }, 1057{ "Undo Delete...","Löschen rückgängig machen..." },
1058{ "Undo Delete","Löschen rückgängig machen" }, 1058{ "Undo Delete","Löschen rückgängig machen" },
1059{ "KDE Sync HowTo...","KDE Sync HowTo..." }, 1059{ "KDE Sync HowTo...","KDE Sync HowTo..." },
1060{ "Multi Sync HowTo...","Multi Sync HowTo..." }, 1060{ "Multi Sync HowTo...","Multi Sync HowTo..." },
1061{ "Januar","Januar" }, 1061{ "Januar","Januar" },
1062{ "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, 1062{ "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" },
1063{ "No Filter","Kein Filter" }, 1063{ "No Filter","Kein Filter" },
1064{ "Multiple Sync options","Multi Sync Optionen" }, 1064{ "Multiple Sync options","Multi Sync Optionen" },
1065{ "Sync algo options","Sync Ablauf Optionen" }, 1065{ "Sync algo options","Sync Ablauf Optionen" },
1066{ "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, 1066{ "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" },
1067{ "Incoming calendar filter:","Eingehender Kalender Filter:" }, 1067{ "Incoming calendar filter:","Eingehender Kalender Filter:" },
1068{ "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, 1068{ "Incoming addressbook filter:","Eingehender Adressbuch Filter:" },
1069{ "Write back options","Optionen zum Zurückschreiben" }, 1069{ "Write back options","Optionen zum Zurückschreiben" },
1070{ "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, 1070{ "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" },
1071{ "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, 1071{ "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" },
1072{ "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, 1072{ "Outgoing calendar filter:","Ausgehender Kalender Filter:" },
1073{ "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, 1073{ "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" },
1074{ "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, 1074{ "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" },
1075{ "Time period","Zeitspanne" }, 1075{ "Time period","Zeitspanne" },
1076{ "From ","Von " }, 1076{ "From ","Von " },
1077{ " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, 1077{ " weeks in the past to "," Wochen in der Vergangenheit bis zu " },
1078{ " weeks in the future "," Wochen in der Zukunft " }, 1078{ " weeks in the future "," Wochen in der Zukunft " },
1079{ "Profile kind specific settings","Profil Art abhängige Einstellungen" }, 1079{ "Profile kind specific settings","Profil Art abhängige Einstellungen" },
1080{ "Local temp file:","Lokale temp Datei:" }, 1080{ "Local temp file:","Lokale temp Datei:" },
1081{ "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, 1081{ "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" },
1082{ "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, 1082{ "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" },
1083{ "Language","Sprache" }, 1083{ "Language","Sprache" },
1084{ "Time Format","Zeit Format" }, 1084{ "Time Format","Zeit Format" },
1085{ "Time Zone","Zeit Zone" }, 1085{ "Time Zone","Zeit Zone" },
1086{ "%1 groups subscribed","%1 Guppen abboniert" }, 1086{ "%1 groups subscribed","%1 Guppen abboniert" },
1087{ "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" }, 1087{ "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" },
1088{ "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, 1088{ "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" },
1089{ "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, 1089{ "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" },
1090{ "Save settings","Speichere Einstellungen" }, 1090{ "Save settings","Speichere Einstellungen" },
1091{ "Save standard","Speichere Standard" }, 1091{ "Save standard","Speichere Standard" },
1092{ "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, 1092{ "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" },
1093{ "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, 1093{ "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" },
1094{ "Data storage path","Daten Speicherpfad" }, 1094{ "Data storage path","Daten Speicherpfad" },
1095{ "Language","Sprache" }, 1095{ "Language","Sprache" },
1096{ "Show time in agenda items","Zeige Zeit in Agenda Items" }, 1096{ "Show time in agenda items","Zeige Zeit in Agenda Items" },
1097{ "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, 1097{ "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" },
1098{ "Show events, that are done in \nWhat's Next view","Zeige abgelaufene Termine in\nWhat's Next Ansicht" }, 1098{ "Show events, that are done in \nWhat's Next view","Zeige abgelaufene Termine in\nWhat's Next Ansicht" },
1099{ "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, 1099{ "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" },
1100{ "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, 1100{ "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" },
1101{ "KO/Pi","KO/Pi" }, 1101{ "KO/Pi","KO/Pi" },
1102{ "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, 1102{ "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" },
1103{ "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, 1103{ "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." },
1104{ "Sound.Al.: ","Sound.Al.: " }, 1104{ "Sound.Al.: ","Sound.Al.: " },
1105{ "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, 1105{ "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" },
1106{ "Restore","Wiederherstellen" }, 1106{ "Restore","Wiederherstellen" },
1107{ "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, 1107{ "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" },
1108{ "% completed","% komplett" }, 1108{ "% completed","% komplett" },
1109{ "%d item(s) found.","%d Item(s) gefunden." }, 1109{ "%d item(s) found.","%d Item(s) gefunden." },
1110{ "Set complete","Setze auf erledigt" }, 1110{ "Set complete","Setze auf erledigt" },
1111{ "(cancelled)","(gecancelt)" }, 1111{ "(cancelled)","(gecancelt)" },
1112{ "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, 1112{ "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" },
1113{ " Local time "," Locale Zeit " }, 1113{ " Local time "," Locale Zeit " },
1114{ "Form2","Form2" }, 1114{ "Form2","Form2" },
1115{ "Filter enabled","Filter angeschaltet" }, 1115{ "Filter enabled","Filter angeschaltet" },
1116{ "Edit Filters","Ändere Filter" }, 1116{ "Edit Filters","Ändere Filter" },
1117{ "Print What's Next View...","Drucke What's Next Ansicht..." }, 1117{ "Print What's Next View...","Drucke What's Next Ansicht..." },
1118{ "Agenda","Agenda" }, 1118{ "Agenda","Agenda" },
1119{ " ("," (" }, 1119{ " ("," (" },
1120{ "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, 1120{ "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" },
1121{ "Print","Print" }, 1121{ "Print","Print" },
1122{ "&Setup Printer...","Drucker &Setup..." }, 1122{ "&Setup Printer...","Drucker &Setup..." },
1123{ "View Type","Zeige Typ" }, 1123{ "View Type","Zeige Typ" },
1124{ "Page &orientation:","Seiten Ausrichtung:" }, 1124{ "Page &orientation:","Seiten Ausrichtung:" },
1125{ "Use Default of Selected Style","Default des selektierten Stils" }, 1125{ "Use Default of Selected Style","Default des selektierten Stils" },
1126{ "Use Default Setting of Printer","Default Einstellung des Druckers" }, 1126{ "Use Default Setting of Printer","Default Einstellung des Druckers" },
1127{ "Portrait","Portrait" }, 1127{ "Portrait","Portrait" },
1128{ "Landscape","Landschaft" }, 1128{ "Landscape","Landschaft" },
1129{ "Print day","Drucke Tag" }, 1129{ "Print day","Drucke Tag" },
1130{ "CalPrintDay_Base","CalPrintDay_Base" }, 1130{ "CalPrintDay_Base","CalPrintDay_Base" },
1131{ "Date && Time Range","Datum && Zeitspanne" }, 1131{ "Date && Time Range","Datum && Zeitspanne" },
1132{ "&End date:","&Enddatum:" }, 1132{ "&End date:","&Enddatum:" },
1133{ "&Start date:","&Startdatum:" }, 1133{ "&Start date:","&Startdatum:" },
1134{ "Start &time:","Startzeit:" }, 1134{ "Start &time:","Startzeit:" },
1135{ "End ti&me:","Endzeit:" }, 1135{ "End ti&me:","Endzeit:" },
1136{ "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, 1136{ "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" },
1137{ "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, 1137{ "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" },
1138{ "Alt+D","Alt+D" }, 1138{ "Alt+D","Alt+D" },
1139{ "&Use colors","Nutze Farben" }, 1139{ "&Use colors","Nutze Farben" },
1140{ "Alt+U","Alt+U" }, 1140{ "Alt+U","Alt+U" },
1141{ "Print week","Drucke Woche" }, 1141{ "Print week","Drucke Woche" },
1142{ "CalPrintWeek_Base","CalPrintWeek_Base" }, 1142{ "CalPrintWeek_Base","CalPrintWeek_Base" },
1143{ "Use &colors","Nutze Farben" }, 1143{ "Use &colors","Nutze Farben" },
1144{ "Type of View","Typ der Ansicht" }, 1144{ "Type of View","Typ der Ansicht" },
1145{ "Print as &Filofax page","Drucke als &Filofax Seite" }, 1145{ "Print as &Filofax page","Drucke als &Filofax Seite" },
1146{ "Alt+F","Alt+F" }, 1146{ "Alt+F","Alt+F" },
1147{ "Print as &timetable view:","Drucke als Zeittabelle:" }, 1147{ "Print as &timetable view:","Drucke als Zeittabelle:" },
1148{ "Alt+T","Alt+T" }, 1148{ "Alt+T","Alt+T" },
1149{ "Print as split week view","Drucke als gesplittete Wochenansicht" }, 1149{ "Print as split week view","Drucke als gesplittete Wochenansicht" },
1150{ "Print month","Drucke Monat" }, 1150{ "Print month","Drucke Monat" },
1151{ "CalPrintMonth_Base","CalPrintMonth_Base" }, 1151{ "CalPrintMonth_Base","CalPrintMonth_Base" },
1152{ "&Start month:","&Startmonat:" }, 1152{ "&Start month:","&Startmonat:" },
1153{ "&End month:","&Endmonat:" }, 1153{ "&End month:","&Endmonat:" },
1154{ "Print week &numbers","Drucke Wochen Nummer(n)" }, 1154{ "Print week &numbers","Drucke Wochen Nummer(n)" },
1155{ "Print todos","Drucke Todos" }, 1155{ "Print todos","Drucke Todos" },
1156{ "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, 1156{ "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" },
1157{ "Include &description of the item","Inclusive Itembeschreibung" }, 1157{ "Include &description of the item","Inclusive Itembeschreibung" },
1158{ "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, 1158{ "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" },
1159{ "Include &priority of the item","Inclusive Priorität des Items" }, 1159{ "Include &priority of the item","Inclusive Priorität des Items" },
1160{ "Items to Print","Zu druckende Items" }, 1160{ "Items to Print","Zu druckende Items" },
1161{ "&From:","Von:" }, 1161{ "&From:","Von:" },
1162{ "&To:","Bis:" }, 1162{ "&To:","Bis:" },
1163{ "Print &all todo items","Drucke alle Todo Items" }, 1163{ "Print &all todo items","Drucke alle Todo Items" },
1164{ "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, 1164{ "Print only &uncompleted items","Drucke nur nicht erledigte Todos" },
1165{ "Only items due in the &range:","Nur Items in dem Zeitraum:" }, 1165{ "Only items due in the &range:","Nur Items in dem Zeitraum:" },
1166{ "Todo List","Todo Liste" }, 1166{ "Todo List","Todo Liste" },
1167{ "&Title:","&Titel:" }, 1167{ "&Title:","&Titel:" },
1168{ "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, 1168{ "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" },
1169{ "Todo list","Todo Liste" }, 1169{ "Todo list","Todo Liste" },
1170{ "&Print...","Drucke..." }, 1170{ "&Print...","Drucke..." },
1171{ "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, 1171{ "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" },
1172{ "[Unconfigured]","[Unkonfiguriert]" }, 1172{ "[Unconfigured]","[Unkonfiguriert]" },
1173{ "OK","OK" }, 1173{ "OK","OK" },
1174{ "FilterEditor","FilterEditor" }, 1174{ "FilterEditor","FilterEditor" },
1175{ "Include","Inclusive" }, 1175{ "Include","Inclusive" },
1176{ "Exclude","Exclusive" }, 1176{ "Exclude","Exclusive" },
1177{ "Edit Selection...","Editiere Auswahl" }, 1177{ "Edit Selection...","Editiere Auswahl" },
1178{ "recurring events","wiederholende Termine" }, 1178{ "recurring events","wiederholende Termine" },
1179{ "recurr. events","wiederh.Termine" }, 1179{ "recurr. events","wiederh.Termine" },
1180{ "completed to-dos","erledigte Todos" }, 1180{ "completed to-dos","erledigte Todos" },
1181{ "events","Termine" }, 1181{ "events","Termine" },
1182{ "todos","Todos" }, 1182{ "todos","Todos" },
1183{ "journals","Journale" }, 1183{ "journals","Journale" },
1184{ "public","öffentl." }, 1184{ "public","öffentl." },
1185{ "private","privat" }, 1185{ "private","privat" },
1186{ "confidential","vertraul." }, 1186{ "confidential","vertraul." },
1187{ "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, 1187{ "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" },
1188{ "Yesterday","Gestern" }, 1188{ "Yesterday","Gestern" },
1189{ "Day after tomorrow","Übermorgen" }, 1189{ "Day after tomorrow","Übermorgen" },
1190{ "Tomorrow","Morgen" }, 1190{ "Tomorrow","Morgen" },
1191{ "Day before yesterday","Vorgestern" }, 1191{ "Day before yesterday","Vorgestern" },
1192{ "Size %1","Größe %1" }, 1192{ "Size %1","Größe %1" },
1193{ "New Agendasize: %1","Neue Agendagröße: %1" }, 1193{ "New Agendasize: %1","Neue Agendagröße: %1" },
1194{ " (%1 y.)"," (%1 J.)" }, 1194{ " (%1 y.)"," (%1 J.)" },
1195{ "Allday:","Ganztägig:" }, 1195{ "Allday:","Ganztägig:" },
1196{ "compl.todos","erled.Todos" }, 1196{ "compl.todos","erled.Todos" },
1197{ "Day view","Tagesansicht" }, 1197{ "Day view","Tagesansicht" },
1198{ "Next days","Nächste Tage" }, 1198{ "Next days","Nächste Tage" },
1199{ "Next week","Nächste Woche" }, 1199{ "Next week","Nächste Woche" },
1200{ "Next two weeks","Nächste zwei Wochen" }, 1200{ "Next two weeks","Nächste zwei Wochen" },
1201{ "Next month","Nächster Monat" }, 1201{ "Next month","Nächster Monat" },
1202{ "Journal view","Journal" }, 1202{ "Journal view","Journal" },
1203{ "Display all opened","Zeige alle geöffnet" }, 1203{ "Display all opened","Zeige alle geöffnet" },
1204{ "Display all closed","Zeige alle geschlossen" }, 1204{ "Display all closed","Zeige alle geschlossen" },
1205{ "Display all flat","Zeige alle flach" }, 1205{ "Display all flat","Zeige alle flach" },
1206{ "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, 1206{ "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" },
1207{ "Default todo done color:","Standard Todo erledigt Farbe" }, 1207{ "Default todo done color:","Standard Todo erledigt Farbe" },
1208{ "","" }, 1208{ "Select week %1-%2","Selektiere Woche %1-%2" },
1209{ "","" }, 1209{ "Select Week","Selektiere Woche" },
1210{ "","" }, 1210{ "","" },
1211{ "","" }, 1211{ "","" },
1212{ "","" }, 1212{ "","" },
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp
index 918931a..1908b1c 100644
--- a/korganizer/koagendaview.cpp
+++ b/korganizer/koagendaview.cpp
@@ -180,661 +180,670 @@ void TimeLabels::updateConfig()
180{ 180{
181 // set the font 181 // set the font
182 // config->setGroup("Fonts"); 182 // config->setGroup("Fonts");
183 // QFont font = config->readFontEntry("TimeBar Font"); 183 // QFont font = config->readFontEntry("TimeBar Font");
184 setFont(KOPrefs::instance()->mTimeBarFont); 184 setFont(KOPrefs::instance()->mTimeBarFont);
185 185
186 // update geometry restrictions based on new settings 186 // update geometry restrictions based on new settings
187 setFixedWidth(minimumWidth()); 187 setFixedWidth(minimumWidth());
188 188
189 // update HourSize 189 // update HourSize
190 mCellHeight = KOPrefs::instance()->mHourSize*4; 190 mCellHeight = KOPrefs::instance()->mHourSize*4;
191 resizeContents(50,mRows * mCellHeight); 191 resizeContents(50,mRows * mCellHeight);
192} 192}
193 193
194/** update time label positions */ 194/** update time label positions */
195void TimeLabels::positionChanged() 195void TimeLabels::positionChanged()
196{ 196{
197 int adjustment = mAgenda->contentsY(); 197 int adjustment = mAgenda->contentsY();
198 setContentsPos(0, adjustment); 198 setContentsPos(0, adjustment);
199} 199}
200 200
201/** */ 201/** */
202void TimeLabels::setAgenda(KOAgenda* agenda) 202void TimeLabels::setAgenda(KOAgenda* agenda)
203{ 203{
204 mAgenda = agenda; 204 mAgenda = agenda;
205} 205}
206 206
207void TimeLabels::contentsMousePressEvent ( QMouseEvent * e) 207void TimeLabels::contentsMousePressEvent ( QMouseEvent * e)
208{ 208{
209 mMouseDownY = e->pos().y(); 209 mMouseDownY = e->pos().y();
210 mOrgCap = topLevelWidget()->caption(); 210 mOrgCap = topLevelWidget()->caption();
211} 211}
212 212
213void TimeLabels::contentsMouseMoveEvent ( QMouseEvent * e ) 213void TimeLabels::contentsMouseMoveEvent ( QMouseEvent * e )
214{ 214{
215 int diff = mMouseDownY - e->pos().y(); 215 int diff = mMouseDownY - e->pos().y();
216 if ( diff < 10 && diff > -10 ) 216 if ( diff < 10 && diff > -10 )
217 return; 217 return;
218 int tSize = KOPrefs::instance()->mHourSize + (diff/10) ; 218 int tSize = KOPrefs::instance()->mHourSize + (diff/10) ;
219 if ( tSize < 4 ) 219 if ( tSize < 4 )
220 tSize = 4; 220 tSize = 4;
221 if ( tSize > 22 ) 221 if ( tSize > 22 )
222 tSize = 22; 222 tSize = 22;
223 tSize = (tSize-2)/2; 223 tSize = (tSize-2)/2;
224 topLevelWidget()->setCaption(i18n("New Agendasize: %1").arg(tSize)); 224 topLevelWidget()->setCaption(i18n("New Agendasize: %1").arg(tSize));
225 225
226} 226}
227void TimeLabels::contentsMouseReleaseEvent ( QMouseEvent * e ) 227void TimeLabels::contentsMouseReleaseEvent ( QMouseEvent * e )
228{ 228{
229 topLevelWidget()->setCaption( mOrgCap ); 229 topLevelWidget()->setCaption( mOrgCap );
230 int diff = mMouseDownY - e->pos().y(); 230 int diff = mMouseDownY - e->pos().y();
231 if ( diff < 10 && diff > -10 ) 231 if ( diff < 10 && diff > -10 )
232 return; 232 return;
233 int tSize = KOPrefs::instance()->mHourSize + (diff/10); 233 int tSize = KOPrefs::instance()->mHourSize + (diff/10);
234 if ( tSize < 4 ) 234 if ( tSize < 4 )
235 tSize = 4; 235 tSize = 4;
236 if ( tSize > 22 ) 236 if ( tSize > 22 )
237 tSize = 22; 237 tSize = 22;
238 tSize = (tSize/2)*2; 238 tSize = (tSize/2)*2;
239 if ( tSize == KOPrefs::instance()->mHourSize ) 239 if ( tSize == KOPrefs::instance()->mHourSize )
240 return; 240 return;
241 KOPrefs::instance()->mHourSize = tSize; 241 KOPrefs::instance()->mHourSize = tSize;
242 emit scaleChanged(); 242 emit scaleChanged();
243} 243}
244 244
245/** This is called in response to repaint() */ 245/** This is called in response to repaint() */
246void TimeLabels::paintEvent(QPaintEvent*) 246void TimeLabels::paintEvent(QPaintEvent*)
247{ 247{
248 248
249 // kdDebug() << "paintevent..." << endl; 249 // kdDebug() << "paintevent..." << endl;
250 // this is another hack! 250 // this is another hack!
251 // QPainter painter(this); 251 // QPainter painter(this);
252 //QString c 252 //QString c
253 repaintContents(contentsX(), contentsY(), visibleWidth(), visibleHeight()); 253 repaintContents(contentsX(), contentsY(), visibleWidth(), visibleHeight());
254} 254}
255 255
256//////////////////////////////////////////////////////////////////////////// 256////////////////////////////////////////////////////////////////////////////
257 257
258EventIndicator::EventIndicator(Location loc,QWidget *parent,const char *name) 258EventIndicator::EventIndicator(Location loc,QWidget *parent,const char *name)
259 : QFrame(parent,name) 259 : QFrame(parent,name)
260{ 260{
261 mColumns = 1; 261 mColumns = 1;
262 mTopBox = 0; 262 mTopBox = 0;
263 mLocation = loc; 263 mLocation = loc;
264 mTopLayout = 0; 264 mTopLayout = 0;
265 mPaintWidget = 0; 265 mPaintWidget = 0;
266 mXOffset = 0; 266 mXOffset = 0;
267 if (mLocation == Top) mPixmap = SmallIcon("1uparrow"); 267 if (mLocation == Top) mPixmap = SmallIcon("1uparrow");
268 else mPixmap = SmallIcon("1downarrow"); 268 else mPixmap = SmallIcon("1downarrow");
269 mEnabled.resize(mColumns); 269 mEnabled.resize(mColumns);
270 if (mLocation == Top) 270 if (mLocation == Top)
271 setMaximumHeight(0); 271 setMaximumHeight(0);
272 else 272 else
273 setMinimumHeight(mPixmap.height()); 273 setMinimumHeight(mPixmap.height());
274} 274}
275 275
276EventIndicator::~EventIndicator() 276EventIndicator::~EventIndicator()
277{ 277{
278} 278}
279 279
280void EventIndicator::drawContents(QPainter *p) 280void EventIndicator::drawContents(QPainter *p)
281{ 281{
282 282
283 // kdDebug() << "======== top: " << contentsRect().top() << " bottom " << // contentsRect().bottom() << " left " << contentsRect().left() << " right " << contentsRect().right() << endl; 283 // kdDebug() << "======== top: " << contentsRect().top() << " bottom " << // contentsRect().bottom() << " left " << contentsRect().left() << " right " << contentsRect().right() << endl;
284 KDGanttSplitterHandle* han = 0; 284 KDGanttSplitterHandle* han = 0;
285 if ( mPaintWidget ) 285 if ( mPaintWidget )
286 han = mPaintWidget->firstHandle(); 286 han = mPaintWidget->firstHandle();
287 if ( ! han ) { 287 if ( ! han ) {
288 int i; 288 int i;
289 for(i=0;i<mColumns;++i) { 289 for(i=0;i<mColumns;++i) {
290 if (mEnabled[i]) { 290 if (mEnabled[i]) {
291 int cellWidth = contentsRect().right()/mColumns; 291 int cellWidth = contentsRect().right()/mColumns;
292 int xOffset = KOGlobals::self()->reverseLayout() ? 292 int xOffset = KOGlobals::self()->reverseLayout() ?
293 (mColumns - 1 - i)*cellWidth + cellWidth/2 -mPixmap.width()/2 : 293 (mColumns - 1 - i)*cellWidth + cellWidth/2 -mPixmap.width()/2 :
294 i*cellWidth + cellWidth/2 -mPixmap.width()/2; 294 i*cellWidth + cellWidth/2 -mPixmap.width()/2;
295 p->drawPixmap(QPoint(xOffset,0),mPixmap); 295 p->drawPixmap(QPoint(xOffset,0),mPixmap);
296 } 296 }
297 } 297 }
298 } else { 298 } else {
299 han->repaint(); 299 han->repaint();
300 //mPaintWidget->setBackgroundColor( red ); 300 //mPaintWidget->setBackgroundColor( red );
301 301
302 QPainter pa( han ); 302 QPainter pa( han );
303 int i; 303 int i;
304 bool setColor = false; 304 bool setColor = false;
305 for(i=0;i<mColumns;++i) { 305 for(i=0;i<mColumns;++i) {
306 if (mEnabled[i]) { 306 if (mEnabled[i]) {
307 setColor = true; 307 setColor = true;
308 308
309 int cellWidth = contentsRect().right()/mColumns; 309 int cellWidth = contentsRect().right()/mColumns;
310 int xOffset = KOGlobals::self()->reverseLayout() ? 310 int xOffset = KOGlobals::self()->reverseLayout() ?
311 (mColumns - 1 - i)*cellWidth + cellWidth/2 -mPixmap.width()/2 : 311 (mColumns - 1 - i)*cellWidth + cellWidth/2 -mPixmap.width()/2 :
312 i*cellWidth + cellWidth/2 -mPixmap.width()/2; 312 i*cellWidth + cellWidth/2 -mPixmap.width()/2;
313 pa.drawPixmap(QPoint(mXOffset + xOffset,0),mPixmap); 313 pa.drawPixmap(QPoint(mXOffset + xOffset,0),mPixmap);
314 //qDebug("222draw pix %d ",xOffset ); 314 //qDebug("222draw pix %d ",xOffset );
315 315
316 } 316 }
317 317
318 } 318 }
319 pa.end(); 319 pa.end();
320 320
321 } 321 }
322} 322}
323 323
324void EventIndicator::setXOffset( int x ) 324void EventIndicator::setXOffset( int x )
325{ 325{
326 mXOffset = x; 326 mXOffset = x;
327} 327}
328void EventIndicator::setPaintWidget( KDGanttMinimizeSplitter * w ) 328void EventIndicator::setPaintWidget( KDGanttMinimizeSplitter * w )
329{ 329{
330 mPaintWidget = w; 330 mPaintWidget = w;
331} 331}
332void EventIndicator::changeColumns(int columns) 332void EventIndicator::changeColumns(int columns)
333{ 333{
334 mColumns = columns; 334 mColumns = columns;
335 mEnabled.resize(mColumns); 335 mEnabled.resize(mColumns);
336 336
337 update(); 337 update();
338} 338}
339 339
340void EventIndicator::enableColumn(int column, bool enable) 340void EventIndicator::enableColumn(int column, bool enable)
341{ 341{
342 mEnabled[column] = enable; 342 mEnabled[column] = enable;
343} 343}
344 344
345 345
346//////////////////////////////////////////////////////////////////////////// 346////////////////////////////////////////////////////////////////////////////
347//////////////////////////////////////////////////////////////////////////// 347////////////////////////////////////////////////////////////////////////////
348//////////////////////////////////////////////////////////////////////////// 348////////////////////////////////////////////////////////////////////////////
349 349
350KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : 350KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) :
351 KOEventView (cal,parent,name) 351 KOEventView (cal,parent,name)
352{ 352{
353 mBlockUpdating = true; 353 mBlockUpdating = true;
354 mStartHour = 8; 354 mStartHour = 8;
355 mSelectedDates.append(QDate::currentDate()); 355 mSelectedDates.append(QDate::currentDate());
356 356
357 mLayoutDayLabels = 0; 357 mLayoutDayLabels = 0;
358 mDayLabelsFrame = 0; 358 mDayLabelsFrame = 0;
359 mDayLabels = 0; 359 mDayLabels = 0;
360 bool isRTL = KOGlobals::self()->reverseLayout(); 360 bool isRTL = KOGlobals::self()->reverseLayout();
361 361
362 if ( KOPrefs::instance()->mVerticalScreen ) { 362 if ( KOPrefs::instance()->mVerticalScreen ) {
363 mExpandedPixmap = SmallIcon( "1downarrow" ); 363 mExpandedPixmap = SmallIcon( "1downarrow" );
364 mNotExpandedPixmap = SmallIcon( "1uparrow" ); 364 mNotExpandedPixmap = SmallIcon( "1uparrow" );
365 } else { 365 } else {
366 mExpandedPixmap = SmallIcon( isRTL ? "1leftarrow" : "1rightarrow" ); 366 mExpandedPixmap = SmallIcon( isRTL ? "1leftarrow" : "1rightarrow" );
367 mNotExpandedPixmap = SmallIcon( isRTL ? "1rightarrow" : "1leftarrow" ); 367 mNotExpandedPixmap = SmallIcon( isRTL ? "1rightarrow" : "1leftarrow" );
368 } 368 }
369 369
370 QBoxLayout *topLayout = new QVBoxLayout(this); 370 QBoxLayout *topLayout = new QVBoxLayout(this);
371 371
372 // Create day name labels for agenda columns 372 // Create day name labels for agenda columns
373 mDayLabelsFrame = new QHBox(this); 373 mDayLabelsFrame = new QHBox(this);
374 topLayout->addWidget(mDayLabelsFrame); 374 topLayout->addWidget(mDayLabelsFrame);
375 mDayLabels = new QFrame (mDayLabelsFrame); 375 mDayLabels = new QFrame (mDayLabelsFrame);
376 mLayoutDayLabels = new QHBoxLayout(mDayLabels); 376 mLayoutDayLabels = new QHBoxLayout(mDayLabels);
377 // Create agenda splitter 377 // Create agenda splitter
378#ifndef KORG_NOSPLITTER 378#ifndef KORG_NOSPLITTER
379 mSplitterAgenda = new QSplitter(Vertical,this); 379 mSplitterAgenda = new QSplitter(Vertical,this);
380 topLayout->addWidget(mSplitterAgenda); 380 topLayout->addWidget(mSplitterAgenda);
381 mSplitterAgenda->setOpaqueResize(); 381 mSplitterAgenda->setOpaqueResize();
382 382
383 mAllDayFrame = new QHBox(mSplitterAgenda); 383 mAllDayFrame = new QHBox(mSplitterAgenda);
384 384
385 QWidget *agendaFrame = new QWidget(mSplitterAgenda); 385 QWidget *agendaFrame = new QWidget(mSplitterAgenda);
386#else 386#else
387#if 0 387#if 0
388 QWidget *mainBox = new QWidget( this ); 388 QWidget *mainBox = new QWidget( this );
389 topLayout->addWidget( mainBox ); 389 topLayout->addWidget( mainBox );
390 QBoxLayout *mainLayout = new QVBoxLayout(mainBox); 390 QBoxLayout *mainLayout = new QVBoxLayout(mainBox);
391 mAllDayFrame = new QHBox(mainBox); 391 mAllDayFrame = new QHBox(mainBox);
392 mainLayout->addWidget(mAllDayFrame); 392 mainLayout->addWidget(mAllDayFrame);
393 mainLayout->setStretchFactor( mAllDayFrame, 0 ); 393 mainLayout->setStretchFactor( mAllDayFrame, 0 );
394 mAllDayFrame->setFocusPolicy(NoFocus); 394 mAllDayFrame->setFocusPolicy(NoFocus);
395 QWidget *agendaFrame = new QWidget(mainBox); 395 QWidget *agendaFrame = new QWidget(mainBox);
396 mainLayout->addWidget(agendaFrame); 396 mainLayout->addWidget(agendaFrame);
397 mainLayout->setStretchFactor( agendaFrame, 10 ); 397 mainLayout->setStretchFactor( agendaFrame, 10 );
398 398
399 agendaFrame->setFocusPolicy(NoFocus); 399 agendaFrame->setFocusPolicy(NoFocus);
400#endif 400#endif
401 mSplitterAgenda = new KDGanttMinimizeSplitter( Qt::Vertical, this); 401 mSplitterAgenda = new KDGanttMinimizeSplitter( Qt::Vertical, this);
402 mSplitterAgenda->setMinimizeDirection ( KDGanttMinimizeSplitter::Up ); 402 mSplitterAgenda->setMinimizeDirection ( KDGanttMinimizeSplitter::Up );
403 topLayout->addWidget( mSplitterAgenda ); 403 topLayout->addWidget( mSplitterAgenda );
404 mAllDayFrame = new QHBox(mSplitterAgenda); 404 mAllDayFrame = new QHBox(mSplitterAgenda);
405 mAllDayFrame->setFocusPolicy(NoFocus); 405 mAllDayFrame->setFocusPolicy(NoFocus);
406 QWidget *agendaFrame = new QWidget(mSplitterAgenda); 406 QWidget *agendaFrame = new QWidget(mSplitterAgenda);
407 agendaFrame->setFocusPolicy(NoFocus); 407 agendaFrame->setFocusPolicy(NoFocus);
408 408
409#endif 409#endif
410 410
411 // Create all-day agenda widget 411 // Create all-day agenda widget
412 mDummyAllDayLeft = new QVBox( mAllDayFrame ); 412 mDummyAllDayLeft = new QVBox( mAllDayFrame );
413 413
414 mExpandButton = new QPushButton(mDummyAllDayLeft); 414 mExpandButton = new QPushButton(mDummyAllDayLeft);
415 mExpandButton->setPixmap( mNotExpandedPixmap ); 415 mExpandButton->setPixmap( mNotExpandedPixmap );
416 int widebut = mExpandButton->sizeHint().width(); 416 int widebut = mExpandButton->sizeHint().width();
417 if ( QApplication::desktop()->width() < 480 ) 417 if ( QApplication::desktop()->width() < 480 )
418 widebut = widebut*2; 418 widebut = widebut*2;
419 else 419 else
420 widebut = (widebut*3) / 2; 420 widebut = (widebut*3) / 2;
421 //mExpandButton->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, 421 //mExpandButton->setSizePolicy( QSizePolicy( QSizePolicy::Fixed,
422 // QSizePolicy::Fixed ) ); 422 // QSizePolicy::Fixed ) );
423 mExpandButton->setFixedSize( widebut, widebut); 423 mExpandButton->setFixedSize( widebut, widebut);
424 connect( mExpandButton, SIGNAL( clicked() ), SIGNAL( toggleExpand() ) ); 424 connect( mExpandButton, SIGNAL( clicked() ), SIGNAL( toggleExpand() ) );
425 mExpandButton->setFocusPolicy(NoFocus); 425 mExpandButton->setFocusPolicy(NoFocus);
426 mAllDayAgenda = new KOAgenda(1,mAllDayFrame); 426 mAllDayAgenda = new KOAgenda(1,mAllDayFrame);
427 mAllDayAgenda->setFocusPolicy(NoFocus); 427 mAllDayAgenda->setFocusPolicy(NoFocus);
428 QVBox *dummyAllDayRight = new QVBox(mAllDayFrame); 428 QVBox *dummyAllDayRight = new QVBox(mAllDayFrame);
429 429
430 QPushButton *dummyAllDayRightB = new QPushButton(dummyAllDayRight); 430 QPushButton *dummyAllDayRightB = new QPushButton(dummyAllDayRight);
431 mDummyAllDayRightL = new QLabel ( dummyAllDayRight ); 431 mDummyAllDayRightL = new QLabel ( dummyAllDayRight );
432 432
433 dummyAllDayRightB->setFlat( true ); 433 dummyAllDayRightB->setFlat( true );
434 dummyAllDayRightB->setFocusPolicy(NoFocus); 434 dummyAllDayRightB->setFocusPolicy(NoFocus);
435 dummyAllDayRightB->setFixedHeight( (dummyAllDayRightB->sizeHint().height()/4)*3 ); 435 dummyAllDayRightB->setFixedHeight( (dummyAllDayRightB->sizeHint().height()/4)*3 );
436
436 QPopupMenu * wpo = new QPopupMenu (this); 437 QPopupMenu * wpo = new QPopupMenu (this);
437 wpo->insertItem( i18n("W#"), 0 ); 438 QPopupMenu * all = new QPopupMenu (this);
439 //wpo->insertItem( i18n("W#"), 0 );
440 int first = 1;
438 int i; 441 int i;
439 for ( i = 1; i < 53; i++ ) 442 for ( i = 1; i < 50; ++i ) {
440 wpo->insertItem( QString::number( i ),i ); 443 if ( !(i%10) ) {
441 //Qt bug - we must add some empty fields... 444 all->insertItem( i18n("Select week %1-%2" ).arg(first).arg( i-1) ,wpo );
442 for ( i = 53; i < 54; ++i ) { 445 connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeekNum ( int ) ) );
443 wpo->insertItem( "", 52 ); 446 first = i;
447 wpo = new QPopupMenu (this);
448 }
449 wpo->insertItem( QString::number(i), i );
450 }
451 for ( i = 50; i < 53; ++i ) {
452 wpo->insertItem( QString::number(i), i);
444 } 453 }
445 dummyAllDayRightB->setPopup( wpo ); 454 all->insertItem( i18n("Select week %1-%2" ).arg(first).arg( i-1) ,wpo );
446 455 dummyAllDayRightB->setPopup( all );
447 connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeekNum ( int ) ) ); 456 connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeekNum ( int ) ) );
448 457
449 // Create event context menu for all day agenda 458 // Create event context menu for all day agenda
450 mAllDayAgendaPopup = eventPopup(); 459 mAllDayAgendaPopup = eventPopup();
451 connect(mAllDayAgenda,SIGNAL(showIncidencePopupSignal(Incidence *)), 460 connect(mAllDayAgenda,SIGNAL(showIncidencePopupSignal(Incidence *)),
452 mAllDayAgendaPopup,SLOT(showIncidencePopup(Incidence *))); 461 mAllDayAgendaPopup,SLOT(showIncidencePopup(Incidence *)));
453 462
454 // Create agenda frame 463 // Create agenda frame
455 QGridLayout *agendaLayout = new QGridLayout(agendaFrame,3,3); 464 QGridLayout *agendaLayout = new QGridLayout(agendaFrame,3,3);
456 // QHBox *agendaFrame = new QHBox(splitterAgenda); 465 // QHBox *agendaFrame = new QHBox(splitterAgenda);
457 466
458 // create event indicator bars 467 // create event indicator bars
459 mEventIndicatorTop = new EventIndicator(EventIndicator::Top,agendaFrame); 468 mEventIndicatorTop = new EventIndicator(EventIndicator::Top,agendaFrame);
460 agendaLayout->addWidget(mEventIndicatorTop,0,1); 469 agendaLayout->addWidget(mEventIndicatorTop,0,1);
461 mEventIndicatorTop->setPaintWidget( mSplitterAgenda ); 470 mEventIndicatorTop->setPaintWidget( mSplitterAgenda );
462 mEventIndicatorBottom = new EventIndicator(EventIndicator::Bottom, 471 mEventIndicatorBottom = new EventIndicator(EventIndicator::Bottom,
463 agendaFrame); 472 agendaFrame);
464 agendaLayout->addWidget(mEventIndicatorBottom,2,1); 473 agendaLayout->addWidget(mEventIndicatorBottom,2,1);
465 QWidget *dummyAgendaRight = new QWidget(agendaFrame); 474 QWidget *dummyAgendaRight = new QWidget(agendaFrame);
466 agendaLayout->addWidget(dummyAgendaRight,0,2); 475 agendaLayout->addWidget(dummyAgendaRight,0,2);
467 476
468 // Create time labels 477 // Create time labels
469 mTimeLabels = new TimeLabels(24,agendaFrame); 478 mTimeLabels = new TimeLabels(24,agendaFrame);
470 agendaLayout->addWidget(mTimeLabels,1,0); 479 agendaLayout->addWidget(mTimeLabels,1,0);
471 connect(mTimeLabels,SIGNAL( scaleChanged()), 480 connect(mTimeLabels,SIGNAL( scaleChanged()),
472 this,SLOT(updateConfig())); 481 this,SLOT(updateConfig()));
473 482
474 // Create agenda 483 // Create agenda
475 mAgenda = new KOAgenda(1,96,KOPrefs::instance()->mHourSize,agendaFrame); 484 mAgenda = new KOAgenda(1,96,KOPrefs::instance()->mHourSize,agendaFrame);
476 agendaLayout->addMultiCellWidget(mAgenda,1,1,1,2); 485 agendaLayout->addMultiCellWidget(mAgenda,1,1,1,2);
477 agendaLayout->setColStretch(1,1); 486 agendaLayout->setColStretch(1,1);
478 mAgenda->setFocusPolicy(NoFocus); 487 mAgenda->setFocusPolicy(NoFocus);
479 // Create event context menu for agenda 488 // Create event context menu for agenda
480 mAgendaPopup = eventPopup(); 489 mAgendaPopup = eventPopup();
481 490
482 mAgendaPopup->addAdditionalItem(QIconSet(SmallIcon("bell")), 491 mAgendaPopup->addAdditionalItem(QIconSet(SmallIcon("bell")),
483 i18n("Toggle Alarm"),mAgenda, 492 i18n("Toggle Alarm"),mAgenda,
484 SLOT(popupAlarm()),true); 493 SLOT(popupAlarm()),true);
485 494
486 495
487 connect(mAgenda,SIGNAL(showIncidencePopupSignal(Incidence *)), 496 connect(mAgenda,SIGNAL(showIncidencePopupSignal(Incidence *)),
488 mAgendaPopup,SLOT(showIncidencePopup(Incidence *))); 497 mAgendaPopup,SLOT(showIncidencePopup(Incidence *)));
489 498
490 // make connections between dependent widgets 499 // make connections between dependent widgets
491 mTimeLabels->setAgenda(mAgenda); 500 mTimeLabels->setAgenda(mAgenda);
492 501
493 // Update widgets to reflect user preferences 502 // Update widgets to reflect user preferences
494 // updateConfig(); 503 // updateConfig();
495 504
496 // createDayLabels(); 505 // createDayLabels();
497 506
498 // these blank widgets make the All Day Event box line up with the agenda 507 // these blank widgets make the All Day Event box line up with the agenda
499 dummyAllDayRight->setFixedWidth(mAgenda->verticalScrollBar()->width()); 508 dummyAllDayRight->setFixedWidth(mAgenda->verticalScrollBar()->width());
500 dummyAgendaRight->setFixedWidth(mAgenda->verticalScrollBar()->width()); 509 dummyAgendaRight->setFixedWidth(mAgenda->verticalScrollBar()->width());
501 mDummyAllDayLeft->setFixedWidth(mTimeLabels->width()); 510 mDummyAllDayLeft->setFixedWidth(mTimeLabels->width());
502 511
503 // Scrolling 512 // Scrolling
504 connect(mAgenda->verticalScrollBar(),SIGNAL(valueChanged(int)), 513 connect(mAgenda->verticalScrollBar(),SIGNAL(valueChanged(int)),
505 mTimeLabels, SLOT(positionChanged())); 514 mTimeLabels, SLOT(positionChanged()));
506 connect(mTimeLabels->verticalScrollBar(),SIGNAL(valueChanged(int)), 515 connect(mTimeLabels->verticalScrollBar(),SIGNAL(valueChanged(int)),
507 SLOT(setContentsPos(int))); 516 SLOT(setContentsPos(int)));
508 517
509 connect(mAgenda,SIGNAL(showDateView( int, QDate )),SIGNAL(showDateView( int, QDate ))); 518 connect(mAgenda,SIGNAL(showDateView( int, QDate )),SIGNAL(showDateView( int, QDate )));
510 connect(mAllDayAgenda,SIGNAL(showDateView( int, QDate )),SIGNAL(showDateView( int, QDate ))); 519 connect(mAllDayAgenda,SIGNAL(showDateView( int, QDate )),SIGNAL(showDateView( int, QDate )));
511 520
512 // Create/Show/Edit/Delete Event 521 // Create/Show/Edit/Delete Event
513 connect(mAgenda,SIGNAL(newEventSignal(int,int)), 522 connect(mAgenda,SIGNAL(newEventSignal(int,int)),
514 SLOT(newEvent(int,int))); 523 SLOT(newEvent(int,int)));
515 connect(mAgenda,SIGNAL(newTodoSignal(int,int)), 524 connect(mAgenda,SIGNAL(newTodoSignal(int,int)),
516 SLOT(newTodo(int,int))); 525 SLOT(newTodo(int,int)));
517 connect(mAgenda,SIGNAL(newEventSignal(int,int,int,int)), 526 connect(mAgenda,SIGNAL(newEventSignal(int,int,int,int)),
518 SLOT(newEvent(int,int,int,int))); 527 SLOT(newEvent(int,int,int,int)));
519 connect(mAllDayAgenda,SIGNAL(newEventSignal(int,int)), 528 connect(mAllDayAgenda,SIGNAL(newEventSignal(int,int)),
520 SLOT(newEventAllDay(int,int))); 529 SLOT(newEventAllDay(int,int)));
521 connect(mAllDayAgenda,SIGNAL(newTodoSignal(int,int)), 530 connect(mAllDayAgenda,SIGNAL(newTodoSignal(int,int)),
522 SLOT(newTodoAllDay(int,int))); 531 SLOT(newTodoAllDay(int,int)));
523 connect(mAllDayAgenda,SIGNAL(newEventSignal(int,int,int,int)), 532 connect(mAllDayAgenda,SIGNAL(newEventSignal(int,int,int,int)),
524 SLOT(newEventAllDay(int,int))); 533 SLOT(newEventAllDay(int,int)));
525 connect(mAgenda,SIGNAL(newTimeSpanSignal(int,int,int,int)), 534 connect(mAgenda,SIGNAL(newTimeSpanSignal(int,int,int,int)),
526 SLOT(newTimeSpanSelected(int,int,int,int))); 535 SLOT(newTimeSpanSelected(int,int,int,int)));
527 connect(mAllDayAgenda,SIGNAL(newTimeSpanSignal(int,int,int,int)), 536 connect(mAllDayAgenda,SIGNAL(newTimeSpanSignal(int,int,int,int)),
528 SLOT(newTimeSpanSelectedAllDay(int,int,int,int))); 537 SLOT(newTimeSpanSelectedAllDay(int,int,int,int)));
529 connect(mAgenda,SIGNAL(newStartSelectSignal()),SLOT(updateView())); 538 connect(mAgenda,SIGNAL(newStartSelectSignal()),SLOT(updateView()));
530 connect(mAllDayAgenda,SIGNAL(newStartSelectSignal()),SLOT(updateView())); 539 connect(mAllDayAgenda,SIGNAL(newStartSelectSignal()),SLOT(updateView()));
531 540
532 connect(mAgenda,SIGNAL(editIncidenceSignal(Incidence *)), 541 connect(mAgenda,SIGNAL(editIncidenceSignal(Incidence *)),
533 SIGNAL(editIncidenceSignal(Incidence *))); 542 SIGNAL(editIncidenceSignal(Incidence *)));
534 connect(mAllDayAgenda,SIGNAL(editIncidenceSignal(Incidence *)), 543 connect(mAllDayAgenda,SIGNAL(editIncidenceSignal(Incidence *)),
535 SIGNAL(editIncidenceSignal(Incidence *))); 544 SIGNAL(editIncidenceSignal(Incidence *)));
536 connect(mAgenda,SIGNAL(showIncidenceSignal(Incidence *)), 545 connect(mAgenda,SIGNAL(showIncidenceSignal(Incidence *)),
537 SIGNAL(showIncidenceSignal(Incidence *))); 546 SIGNAL(showIncidenceSignal(Incidence *)));
538 connect(mAllDayAgenda,SIGNAL(showIncidenceSignal(Incidence *)), 547 connect(mAllDayAgenda,SIGNAL(showIncidenceSignal(Incidence *)),
539 SIGNAL(showIncidenceSignal(Incidence *))); 548 SIGNAL(showIncidenceSignal(Incidence *)));
540 connect(mAgenda,SIGNAL(deleteIncidenceSignal(Incidence *)), 549 connect(mAgenda,SIGNAL(deleteIncidenceSignal(Incidence *)),
541 SIGNAL(deleteIncidenceSignal(Incidence *))); 550 SIGNAL(deleteIncidenceSignal(Incidence *)));
542 connect(mAllDayAgenda,SIGNAL(deleteIncidenceSignal(Incidence *)), 551 connect(mAllDayAgenda,SIGNAL(deleteIncidenceSignal(Incidence *)),
543 SIGNAL(deleteIncidenceSignal(Incidence *))); 552 SIGNAL(deleteIncidenceSignal(Incidence *)));
544 553
545 connect(mAgenda,SIGNAL(itemModified(KOAgendaItem *, int )), 554 connect(mAgenda,SIGNAL(itemModified(KOAgendaItem *, int )),
546 SLOT(updateEventDates(KOAgendaItem *, int ))); 555 SLOT(updateEventDates(KOAgendaItem *, int )));
547 connect(mAllDayAgenda,SIGNAL(itemModified(KOAgendaItem *, int )), 556 connect(mAllDayAgenda,SIGNAL(itemModified(KOAgendaItem *, int )),
548 SLOT(updateEventDates(KOAgendaItem *, int))); 557 SLOT(updateEventDates(KOAgendaItem *, int)));
549 558
550 // event indicator update 559 // event indicator update
551 connect(mAgenda,SIGNAL(lowerYChanged(int)), 560 connect(mAgenda,SIGNAL(lowerYChanged(int)),
552 SLOT(updateEventIndicatorTop(int))); 561 SLOT(updateEventIndicatorTop(int)));
553 connect(mAgenda,SIGNAL(upperYChanged(int)), 562 connect(mAgenda,SIGNAL(upperYChanged(int)),
554 SLOT(updateEventIndicatorBottom(int))); 563 SLOT(updateEventIndicatorBottom(int)));
555 // drag signals 564 // drag signals
556 /* 565 /*
557 connect(mAgenda,SIGNAL(startDragSignal(Event *)), 566 connect(mAgenda,SIGNAL(startDragSignal(Event *)),
558 SLOT(startDrag(Event *))); 567 SLOT(startDrag(Event *)));
559 connect(mAllDayAgenda,SIGNAL(startDragSignal(Event *)), 568 connect(mAllDayAgenda,SIGNAL(startDragSignal(Event *)),
560 SLOT(startDrag(Event *))); 569 SLOT(startDrag(Event *)));
561 */ 570 */
562 // synchronize selections 571 // synchronize selections
563 connect( mAgenda, SIGNAL( incidenceSelected( Incidence * ) ), 572 connect( mAgenda, SIGNAL( incidenceSelected( Incidence * ) ),
564 mAllDayAgenda, SLOT( deselectItem() ) ); 573 mAllDayAgenda, SLOT( deselectItem() ) );
565 connect( mAllDayAgenda, SIGNAL( incidenceSelected( Incidence * ) ), 574 connect( mAllDayAgenda, SIGNAL( incidenceSelected( Incidence * ) ),
566 mAgenda, SLOT( deselectItem() ) ); 575 mAgenda, SLOT( deselectItem() ) );
567 connect( mAgenda, SIGNAL( incidenceSelected( Incidence * ) ), 576 connect( mAgenda, SIGNAL( incidenceSelected( Incidence * ) ),
568 SIGNAL( incidenceSelected( Incidence * ) ) ); 577 SIGNAL( incidenceSelected( Incidence * ) ) );
569 connect( mAllDayAgenda, SIGNAL( incidenceSelected( Incidence * ) ), 578 connect( mAllDayAgenda, SIGNAL( incidenceSelected( Incidence * ) ),
570 SIGNAL( incidenceSelected( Incidence * ) ) ); 579 SIGNAL( incidenceSelected( Incidence * ) ) );
571 connect( mAgenda, SIGNAL( resizedSignal() ), 580 connect( mAgenda, SIGNAL( resizedSignal() ),
572 SLOT( updateConfig( ) ) ); 581 SLOT( updateConfig( ) ) );
573 connect( mAgenda, SIGNAL( addToCalSignal(Incidence *, Incidence *) ), 582 connect( mAgenda, SIGNAL( addToCalSignal(Incidence *, Incidence *) ),
574 SLOT( addToCalSlot(Incidence *, Incidence * ) ) ); 583 SLOT( addToCalSlot(Incidence *, Incidence * ) ) );
575 connect( mAllDayAgenda, SIGNAL( addToCalSignal(Incidence * ,Incidence *) ), 584 connect( mAllDayAgenda, SIGNAL( addToCalSignal(Incidence * ,Incidence *) ),
576 SLOT( addToCalSlot(Incidence * , Incidence *) ) ); 585 SLOT( addToCalSlot(Incidence * , Incidence *) ) );
577 // connect( mAgenda, SIGNAL( cloneIncidenceSignal(Incidence *) ), SIGNAL( cloneIncidenceSignal(Incidence *) ) ); 586 // connect( mAgenda, SIGNAL( cloneIncidenceSignal(Incidence *) ), SIGNAL( cloneIncidenceSignal(Incidence *) ) );
578 //connect( mAllDayAgenda, SIGNAL( cloneIncidenceSignal(Incidence *) ), SIGNAL( cloneIncidenceSignal(Incidence *) ) ); 587 //connect( mAllDayAgenda, SIGNAL( cloneIncidenceSignal(Incidence *) ), SIGNAL( cloneIncidenceSignal(Incidence *) ) );
579 588
580 QFont dlf = KOPrefs::instance()->mTimeLabelsFont; 589 QFont dlf = KOPrefs::instance()->mTimeLabelsFont;
581 QFontMetrics fm ( dlf ); 590 QFontMetrics fm ( dlf );
582 QString dayTest = "30"; 591 QString dayTest = "30";
583 int wid = fm.width( dayTest ); 592 int wid = fm.width( dayTest );
584 int maxWid = dummyAllDayRight->width(); 593 int maxWid = dummyAllDayRight->width()-2;
585 int fontPoint = dlf.pointSize(); 594 int fontPoint = dlf.pointSize();
586 while ( wid > maxWid ) { 595 while ( wid > maxWid ) {
587 --fontPoint; 596 --fontPoint;
588 dlf.setPointSize( fontPoint ); 597 dlf.setPointSize( fontPoint );
589 QFontMetrics f( dlf ); 598 QFontMetrics f( dlf );
590 wid = f.width( dayTest ); 599 wid = f.width( dayTest );
591 } 600 }
592 mDummyAllDayRightL->setFont( dlf ); 601 mDummyAllDayRightL->setFont( dlf );
593 mDummyAllDayRightL->setAlignment( AlignHCenter ); 602 mDummyAllDayRightL->setAlignment( AlignHCenter );
594} 603}
595 604
596void KOAgendaView::toggleAllDay() 605void KOAgendaView::toggleAllDay()
597{ 606{
598 if ( mSplitterAgenda->firstHandle() ) 607 if ( mSplitterAgenda->firstHandle() )
599 mSplitterAgenda->firstHandle()->toggle(); 608 mSplitterAgenda->firstHandle()->toggle();
600} 609}
601void KOAgendaView::addToCalSlot(Incidence * inc, Incidence * incOld ) 610void KOAgendaView::addToCalSlot(Incidence * inc, Incidence * incOld )
602{ 611{
603 calendar()->addIncidence( inc ); 612 calendar()->addIncidence( inc );
604 613
605 if ( incOld ) { 614 if ( incOld ) {
606 if ( incOld->type() == "Todo" ) 615 if ( incOld->type() == "Todo" )
607 emit todoMoved((Todo*)incOld, KOGlobals::EVENTEDITED ); 616 emit todoMoved((Todo*)incOld, KOGlobals::EVENTEDITED );
608 else 617 else
609 emit incidenceChanged(incOld, KOGlobals::EVENTEDITED); 618 emit incidenceChanged(incOld, KOGlobals::EVENTEDITED);
610 } 619 }
611 620
612} 621}
613 622
614KOAgendaView::~KOAgendaView() 623KOAgendaView::~KOAgendaView()
615{ 624{
616 delete mAgendaPopup; 625 delete mAgendaPopup;
617 delete mAllDayAgendaPopup; 626 delete mAllDayAgendaPopup;
618 delete KOAgendaItem::paintPix(); 627 delete KOAgendaItem::paintPix();
619 delete KOAgendaItem::paintPixSel(); 628 delete KOAgendaItem::paintPixSel();
620} 629}
621void KOAgendaView::resizeEvent( QResizeEvent* e ) 630void KOAgendaView::resizeEvent( QResizeEvent* e )
622{ 631{
623 //qDebug("KOAgendaView::resizeEvent( QResizeEvent* e ) %d ", e->size().width()); 632 //qDebug("KOAgendaView::resizeEvent( QResizeEvent* e ) %d ", e->size().width());
624 bool uc = false; 633 bool uc = false;
625 int ow = e->oldSize().width(); 634 int ow = e->oldSize().width();
626 int oh = e->oldSize().height(); 635 int oh = e->oldSize().height();
627 int w = e->size().width(); 636 int w = e->size().width();
628 int h = e->size().height(); 637 int h = e->size().height();
629 if ( (ow > oh && w< h ) || (ow < oh && w > h ) ) { 638 if ( (ow > oh && w< h ) || (ow < oh && w > h ) ) {
630 if ( ! mBlockUpdating && !globalFlagBlockStartup && !globalFlagBlockAgenda ) 639 if ( ! mBlockUpdating && !globalFlagBlockStartup && !globalFlagBlockAgenda )
631 uc = true; 640 uc = true;
632 //qDebug("view changed %d %d %d %d ", ow, oh , w , h); 641 //qDebug("view changed %d %d %d %d ", ow, oh , w , h);
633 } 642 }
634 mUpcomingWidth = e->size().width() ; 643 mUpcomingWidth = e->size().width() ;
635 if ( mBlockUpdating || uc ) { 644 if ( mBlockUpdating || uc ) {
636 mBlockUpdating = false; 645 mBlockUpdating = false;
637 //mAgenda->setMinimumSize(800 , 600 ); 646 //mAgenda->setMinimumSize(800 , 600 );
638 //qDebug("mAgenda->resize+++++++++++++++ "); 647 //qDebug("mAgenda->resize+++++++++++++++ ");
639 updateConfig(); 648 updateConfig();
640 //qDebug("KOAgendaView::Updating now possible "); 649 //qDebug("KOAgendaView::Updating now possible ");
641 } else 650 } else
642 createDayLabels(); 651 createDayLabels();
643 //qDebug("resizeEvent end "); 652 //qDebug("resizeEvent end ");
644 653
645} 654}
646void KOAgendaView::slotDaylabelClicked( int num ) 655void KOAgendaView::slotDaylabelClicked( int num )
647{ 656{
648 657
649 QDate firstDate = mSelectedDates.first(); 658 QDate firstDate = mSelectedDates.first();
650 if ( num == -1 ) 659 if ( num == -1 )
651 emit showDateView( 6, firstDate ); 660 emit showDateView( 6, firstDate );
652 else if (num >= 0 ) { 661 else if (num >= 0 ) {
653 if ( mSelectedDates.count() == 1) 662 if ( mSelectedDates.count() == 1)
654 emit showDateView( 9, firstDate.addDays( num ) ); 663 emit showDateView( 9, firstDate.addDays( num ) );
655 else 664 else
656 emit showDateView( 3, firstDate.addDays( num ) ); 665 emit showDateView( 3, firstDate.addDays( num ) );
657 } 666 }
658 else 667 else
659 showDateView( 10, firstDate.addDays(1) ); 668 showDateView( 10, firstDate.addDays(1) );
660} 669}
661 670
662KOAgendaButton* KOAgendaView::getNewDaylabel() 671KOAgendaButton* KOAgendaView::getNewDaylabel()
663{ 672{
664 673
665 KOAgendaButton * dayLabel = new KOAgendaButton(mDayLabels); 674 KOAgendaButton * dayLabel = new KOAgendaButton(mDayLabels);
666 connect( dayLabel, SIGNAL( numClicked(int) ), this, SLOT ( slotDaylabelClicked(int) ) ); 675 connect( dayLabel, SIGNAL( numClicked(int) ), this, SLOT ( slotDaylabelClicked(int) ) );
667 mDayLabelsList.append( dayLabel ); 676 mDayLabelsList.append( dayLabel );
668 mLayoutDayLabels->addWidget(dayLabel); 677 mLayoutDayLabels->addWidget(dayLabel);
669 return dayLabel ; 678 return dayLabel ;
670} 679}
671 680
672void KOAgendaView::createDayLabels() 681void KOAgendaView::createDayLabels()
673{ 682{
674 683
675 if ( mBlockUpdating || globalFlagBlockLabel == 1) { 684 if ( mBlockUpdating || globalFlagBlockLabel == 1) {
676 // qDebug(" KOAgendaView::createDayLabels() blocked "); 685 // qDebug(" KOAgendaView::createDayLabels() blocked ");
677 return; 686 return;
678 687
679 } 688 }
680 int newHight; 689 int newHight;
681 690
682 // ### Before deleting and recreating we could check if mSelectedDates changed... 691 // ### Before deleting and recreating we could check if mSelectedDates changed...
683 // It would remove some flickering and gain speed (since this is called by 692 // It would remove some flickering and gain speed (since this is called by
684 // each updateView() call) 693 // each updateView() call)
685 694
686 int maxWid = mUpcomingWidth - mTimeLabels->width()- mAgenda->verticalScrollBar()->width() - 2; 695 int maxWid = mUpcomingWidth - mTimeLabels->width()- mAgenda->verticalScrollBar()->width() - 2;
687 mDayLabelsFrame->setMaximumWidth( mUpcomingWidth ); 696 mDayLabelsFrame->setMaximumWidth( mUpcomingWidth );
688 if ( maxWid < 0 ) 697 if ( maxWid < 0 )
689 maxWid = 20; 698 maxWid = 20;
690 699
691 QFont dlf = KOPrefs::instance()->mTimeLabelsFont; 700 QFont dlf = KOPrefs::instance()->mTimeLabelsFont;
692 QFontMetrics fm ( dlf ); 701 QFontMetrics fm ( dlf );
693 int selCount = mSelectedDates.count(); 702 int selCount = mSelectedDates.count();
694 QString dayTest = "Mon 20"; 703 QString dayTest = "Mon 20";
695 //QString dayTest = "Mon 20"; 704 //QString dayTest = "Mon 20";
696 int wid = fm.width( dayTest ); 705 int wid = fm.width( dayTest );
697 //maxWid -= ( selCount * 3 ); //working for QLabels 706 //maxWid -= ( selCount * 3 ); //working for QLabels
698 maxWid -= ( selCount * 3 ); //working for QPushButton 707 maxWid -= ( selCount * 3 ); //working for QPushButton
699 if ( maxWid < 0 ) 708 if ( maxWid < 0 )
700 maxWid = 20; 709 maxWid = 20;
701 int needWid = wid * selCount; 710 int needWid = wid * selCount;
702 //qDebug("++++++++Needed : %d MaxWidth: %d", needWid, maxWid ); 711 //qDebug("++++++++Needed : %d MaxWidth: %d", needWid, maxWid );
703 //if ( needWid > maxWid ) 712 //if ( needWid > maxWid )
704 // qDebug("DAYLABELS TOOOOOOO BIG "); 713 // qDebug("DAYLABELS TOOOOOOO BIG ");
705 while ( needWid > maxWid ) { 714 while ( needWid > maxWid ) {
706 dayTest = dayTest.left( dayTest.length() - 1 ); 715 dayTest = dayTest.left( dayTest.length() - 1 );
707 wid = fm.width( dayTest ); 716 wid = fm.width( dayTest );
708 needWid = wid * selCount; 717 needWid = wid * selCount;
709 } 718 }
710 int maxLen = dayTest.length(); 719 int maxLen = dayTest.length();
711 int fontPoint = dlf.pointSize(); 720 int fontPoint = dlf.pointSize();
712 if ( maxLen < 2 ) { 721 if ( maxLen < 2 ) {
713 int fontPoint = dlf.pointSize(); 722 int fontPoint = dlf.pointSize();
714 while ( fontPoint > 4 ) { 723 while ( fontPoint > 4 ) {
715 --fontPoint; 724 --fontPoint;
716 dlf.setPointSize( fontPoint ); 725 dlf.setPointSize( fontPoint );
717 QFontMetrics f( dlf ); 726 QFontMetrics f( dlf );
718 wid = f.width( "30" ); 727 wid = f.width( "30" );
719 needWid = wid * selCount; 728 needWid = wid * selCount;
720 if ( needWid < maxWid ) 729 if ( needWid < maxWid )
721 break; 730 break;
722 } 731 }
723 maxLen = 2; 732 maxLen = 2;
724 } 733 }
725 //qDebug("Max len %d ", dayTest.length() ); 734 //qDebug("Max len %d ", dayTest.length() );
726 735
727 QFontMetrics tempF( dlf ); 736 QFontMetrics tempF( dlf );
728 newHight = tempF.height(); 737 newHight = tempF.height();
729 mDayLabels->setFont( dlf ); 738 mDayLabels->setFont( dlf );
730 // mLayoutDayLabels = new QHBoxLayout(mDayLabels);; 739 // mLayoutDayLabels = new QHBoxLayout(mDayLabels);;
731 // mLayoutDayLabels->addSpacing(mTimeLabels->width()); 740 // mLayoutDayLabels->addSpacing(mTimeLabels->width());
732 //mLayoutDayLabels->addSpacing( 2 ); 741 //mLayoutDayLabels->addSpacing( 2 );
733 // QFont lFont = dlf; 742 // QFont lFont = dlf;
734 bool appendLabels = false; 743 bool appendLabels = false;
735 KOAgendaButton *dayLabel; 744 KOAgendaButton *dayLabel;
736 dayLabel = mDayLabelsList.first(); 745 dayLabel = mDayLabelsList.first();
737 if ( !dayLabel ) { 746 if ( !dayLabel ) {
738 appendLabels = true; 747 appendLabels = true;
739 dayLabel = getNewDaylabel(); 748 dayLabel = getNewDaylabel();
740 } 749 }
741 dayLabel->setFixedWidth( mTimeLabels->width()+2 ); 750 dayLabel->setFixedWidth( mTimeLabels->width()+2 );
742 dayLabel->setFont( dlf ); 751 dayLabel->setFont( dlf );
743 dayLabel->setNum( -1 ); 752 dayLabel->setNum( -1 );
744 //dayLabel->setAlignment(QLabel::AlignHCenter); 753 //dayLabel->setAlignment(QLabel::AlignHCenter);
745 dayLabel->setText( KOGlobals::self()->calendarSystem()->monthName( mSelectedDates.first(), true ) ); 754 dayLabel->setText( KOGlobals::self()->calendarSystem()->monthName( mSelectedDates.first(), true ) );
746 dayLabel->show(); 755 dayLabel->show();
747 DateList::ConstIterator dit; 756 DateList::ConstIterator dit;
748 bool oneday = (mSelectedDates.first() == mSelectedDates.last() ); 757 bool oneday = (mSelectedDates.first() == mSelectedDates.last() );
749 int counter = -1; 758 int counter = -1;
750 for( dit = mSelectedDates.begin(); dit != mSelectedDates.end(); ++dit ) { 759 for( dit = mSelectedDates.begin(); dit != mSelectedDates.end(); ++dit ) {
751 ++counter; 760 ++counter;
752 QDate date = *dit; 761 QDate date = *dit;
753 // QBoxLayout *dayLayout = new QVBoxLayout(mLayoutDayLabels); 762 // QBoxLayout *dayLayout = new QVBoxLayout(mLayoutDayLabels);
754 if ( ! appendLabels ) { 763 if ( ! appendLabels ) {
755 dayLabel = mDayLabelsList.next(); 764 dayLabel = mDayLabelsList.next();
756 if ( !dayLabel ) 765 if ( !dayLabel )
757 appendLabels = true; 766 appendLabels = true;
758 } 767 }
759 if ( appendLabels ) { 768 if ( appendLabels ) {
760 dayLabel = getNewDaylabel(); 769 dayLabel = getNewDaylabel();
761 } 770 }
762 dayLabel->setMinimumWidth( 1 ); 771 dayLabel->setMinimumWidth( 1 );
763 dayLabel->setMaximumWidth( 1024 ); 772 dayLabel->setMaximumWidth( 1024 );
764 dayLabel->setFont( dlf ); 773 dayLabel->setFont( dlf );
765 dayLabel->show(); 774 dayLabel->show();
766 dayLabel->setNum( counter ); 775 dayLabel->setNum( counter );
767 QString str; 776 QString str;
768 int dW = KOGlobals::self()->calendarSystem()->dayOfWeek(date); 777 int dW = KOGlobals::self()->calendarSystem()->dayOfWeek(date);
769 QString dayName = KOGlobals::self()->calendarSystem()->weekDayName( dW, true ); 778 QString dayName = KOGlobals::self()->calendarSystem()->weekDayName( dW, true );
770 switch ( maxLen ) { 779 switch ( maxLen ) {
771 case 2: 780 case 2:
772 str = QString::number( date.day() ); 781 str = QString::number( date.day() );
773 break; 782 break;
774 783
775 case 3: 784 case 3:
776 str = dayName.left( 1 ) +QString::number( date.day()); 785 str = dayName.left( 1 ) +QString::number( date.day());
777 786
778 break; 787 break;
779 case 4: 788 case 4:
780 str = dayName.left( 1 ) + " " +QString::number( date.day()); 789 str = dayName.left( 1 ) + " " +QString::number( date.day());
781 790
782 break; 791 break;
783 case 5: 792 case 5:
784 str = dayName.left( 2 ) + " " +QString::number( date.day()); 793 str = dayName.left( 2 ) + " " +QString::number( date.day());
785 794
786 break; 795 break;
787 case 6: 796 case 6:
788 str = dayName.left( 3 ) + " " +QString::number( date.day()); 797 str = dayName.left( 3 ) + " " +QString::number( date.day());
789 break; 798 break;
790 799
791 default: 800 default:
792 break; 801 break;
793 } 802 }
794 if ( oneday ) { 803 if ( oneday ) {
795 QString addString; 804 QString addString;
796 if ( mSelectedDates.first() == QDateTime::currentDateTime().date() ) 805 if ( mSelectedDates.first() == QDateTime::currentDateTime().date() )
797 addString = i18n("Today"); 806 addString = i18n("Today");
798 else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(1) ) 807 else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(1) )
799 addString = i18n("Tomorrow"); 808 addString = i18n("Tomorrow");
800 else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(-1) ) 809 else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(-1) )
801 addString = i18n("Yesterday"); 810 addString = i18n("Yesterday");
802 else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(-2) ) 811 else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(-2) )
803 addString = i18n("Day before yesterday"); 812 addString = i18n("Day before yesterday");
804 else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(2) ) 813 else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(2) )
805 addString = i18n("Day after tomorrow"); 814 addString = i18n("Day after tomorrow");
806 if ( !addString.isEmpty() ) { 815 if ( !addString.isEmpty() ) {
807 str = addString+", " + str; 816 str = addString+", " + str;
808 } 817 }
809 } 818 }
810 dayLabel->setText(str); 819 dayLabel->setText(str);
811 //dayLabel->setAlignment(QLabel::AlignHCenter); 820 //dayLabel->setAlignment(QLabel::AlignHCenter);
812 if (date == QDate::currentDate()) { 821 if (date == QDate::currentDate()) {
813 QFont bFont = dlf; 822 QFont bFont = dlf;
814 bFont.setBold( true ); 823 bFont.setBold( true );
815 dayLabel->setFont(bFont); 824 dayLabel->setFont(bFont);
816 } 825 }
817 //dayLayout->addWidget(dayLabel); 826 //dayLayout->addWidget(dayLabel);
818 827
819#ifndef KORG_NOPLUGINS 828#ifndef KORG_NOPLUGINS
820 CalendarDecoration::List cds = KOCore::self()->calendarDecorations(); 829 CalendarDecoration::List cds = KOCore::self()->calendarDecorations();
821 CalendarDecoration *it; 830 CalendarDecoration *it;
822 for(it = cds.first(); it; it = cds.next()) { 831 for(it = cds.first(); it; it = cds.next()) {
823 QString text = it->shortText( date ); 832 QString text = it->shortText( date );
824 if ( !text.isEmpty() ) { 833 if ( !text.isEmpty() ) {
825 QLabel *label = new QLabel(text,mDayLabels); 834 QLabel *label = new QLabel(text,mDayLabels);
826 label->setAlignment(AlignCenter); 835 label->setAlignment(AlignCenter);
827 dayLayout->addWidget(label); 836 dayLayout->addWidget(label);
828 } 837 }
829 } 838 }
830 839
831 for(it = cds.first(); it; it = cds.next()) { 840 for(it = cds.first(); it; it = cds.next()) {
832 QWidget *wid = it->smallWidget(mDayLabels,date); 841 QWidget *wid = it->smallWidget(mDayLabels,date);
833 if ( wid ) { 842 if ( wid ) {
834 // wid->setHeight(20); 843 // wid->setHeight(20);
835 dayLayout->addWidget(wid); 844 dayLayout->addWidget(wid);
836 } 845 }
837 } 846 }
838#endif 847#endif
839 } 848 }
840 if ( ! appendLabels ) { 849 if ( ! appendLabels ) {
diff --git a/korganizer/navigatorbar.cpp b/korganizer/navigatorbar.cpp
index 2406bb5..24de01f 100644
--- a/korganizer/navigatorbar.cpp
+++ b/korganizer/navigatorbar.cpp
@@ -1,228 +1,236 @@
1/* 1/*
2 This file is part of KOrganizer. 2 This file is part of KOrganizer.
3 3
4 Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> 4 Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
5 5
6 This program is free software; you can redistribute it and/or modify 6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or 8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version. 9 (at your option) any later version.
10 10
11 This program is distributed in the hope that it will be useful, 11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details. 14 GNU General Public License for more details.
15 15
16 You should have received a copy of the GNU General Public License 16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software 17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 19
20 As a special exception, permission is given to link this program 20 As a special exception, permission is given to link this program
21 with any edition of Qt, and distribute the resulting executable, 21 with any edition of Qt, and distribute the resulting executable,
22 without including the source code for Qt in the source distribution. 22 without including the source code for Qt in the source distribution.
23*/ 23*/
24 24
25#include <qstring.h> 25#include <qstring.h>
26#include <qtooltip.h> 26#include <qtooltip.h>
27#include <qpushbutton.h> 27#include <qpushbutton.h>
28#include <qlayout.h> 28#include <qlayout.h>
29#include <qframe.h> 29#include <qframe.h>
30#include <qlabel.h> 30#include <qlabel.h>
31#include <qpopupmenu.h> 31#include <qpopupmenu.h>
32#include <qapplication.h> 32#include <qapplication.h>
33 33
34#include <kdebug.h> 34#include <kdebug.h>
35#include <klocale.h> 35#include <klocale.h>
36#include <kglobal.h> 36#include <kglobal.h>
37#include <kiconloader.h> 37#include <kiconloader.h>
38#include "libkdepim/kdatepicker.h" 38#include "libkdepim/kdatepicker.h"
39#include <knotifyclient.h> 39#include <knotifyclient.h>
40#include "kdatetbl.h" 40#include "kdatetbl.h"
41 41
42#include "koglobals.h" 42#include "koglobals.h"
43#include "koprefs.h" 43#include "koprefs.h"
44#ifndef KORG_NOPLUGINS 44#ifndef KORG_NOPLUGINS
45#include "kocore.h" 45#include "kocore.h"
46#endif 46#endif
47 47
48#include <kcalendarsystem.h> 48#include <kcalendarsystem.h>
49 49
50#include "navigatorbar.h" 50#include "navigatorbar.h"
51 51
52NavigatorBar::NavigatorBar( const QDate & date, QWidget *parent, const char *name ) 52NavigatorBar::NavigatorBar( const QDate & date, QWidget *parent, const char *name )
53 : QWidget( parent, name ) 53 : QWidget( parent, name )
54{ 54{
55 QBoxLayout *topLayout = new QHBoxLayout( this ); 55 QBoxLayout *topLayout = new QHBoxLayout( this );
56 56
57 // Set up the control buttons and date label 57 // Set up the control buttons and date label
58 mCtrlFrame = new QFrame( this ); 58 mCtrlFrame = new QFrame( this );
59 mCtrlFrame->setFrameStyle(QFrame::Panel|QFrame::Raised); 59 mCtrlFrame->setFrameStyle(QFrame::Panel|QFrame::Raised);
60 mCtrlFrame->setLineWidth(1); 60 mCtrlFrame->setLineWidth(1);
61 61
62 topLayout->addWidget( mCtrlFrame ); 62 topLayout->addWidget( mCtrlFrame );
63 63
64 QFont tfont = font(); 64 QFont tfont = font();
65 if ( QApplication::desktop()->width() >= 480 ) 65 if ( QApplication::desktop()->width() >= 480 )
66 tfont.setPointSize(tfont.pointSize()+2); 66 tfont.setPointSize(tfont.pointSize()+2);
67 tfont.setBold(true); 67 tfont.setBold(true);
68 68
69 bool isRTL = KOGlobals::self()->reverseLayout(); 69 bool isRTL = KOGlobals::self()->reverseLayout();
70#ifndef DESKTOP_VERSION 70#ifndef DESKTOP_VERSION
71 bool isDesktop = false; 71 bool isDesktop = false;
72#else 72#else
73 bool isDesktop = true; 73 bool isDesktop = true;
74#endif 74#endif
75 bool insertWeek = (QString ( name ) == QString("useBigPixmaps")) ; 75 bool insertWeek = (QString ( name ) == QString("useBigPixmaps")) ;
76 if ( insertWeek && QApplication::desktop()->width() > 320 ) 76 if ( insertWeek && QApplication::desktop()->width() > 320 )
77 isDesktop = true; 77 isDesktop = true;
78 // Create backward navigation buttons 78 // Create backward navigation buttons
79 mPrevYear = new QPushButton( mCtrlFrame ); 79 mPrevYear = new QPushButton( mCtrlFrame );
80 mPrevYear->setPixmap( SmallIcon( isDesktop ? "2leftarrowB" : "2leftarrow" ) ); 80 mPrevYear->setPixmap( SmallIcon( isDesktop ? "2leftarrowB" : "2leftarrow" ) );
81 QToolTip::add( mPrevYear, i18n("Previous Year") ); 81 QToolTip::add( mPrevYear, i18n("Previous Year") );
82 82
83 mPrevMonth = new QPushButton( mCtrlFrame ); 83 mPrevMonth = new QPushButton( mCtrlFrame );
84 mPrevMonth->setPixmap( SmallIcon( isDesktop ? "1leftarrowB" : "1leftarrow") ); 84 mPrevMonth->setPixmap( SmallIcon( isDesktop ? "1leftarrowB" : "1leftarrow") );
85 QToolTip::add( mPrevMonth, i18n("Previous Month") ); 85 QToolTip::add( mPrevMonth, i18n("Previous Month") );
86 86
87 // Create forward navigation buttons 87 // Create forward navigation buttons
88 mNextMonth = new QPushButton( mCtrlFrame ); 88 mNextMonth = new QPushButton( mCtrlFrame );
89 mNextMonth->setPixmap( SmallIcon( isDesktop ? "1rightarrowB" : "1rightarrow") ); 89 mNextMonth->setPixmap( SmallIcon( isDesktop ? "1rightarrowB" : "1rightarrow") );
90 QToolTip::add( mNextMonth, i18n("Next Month") ); 90 QToolTip::add( mNextMonth, i18n("Next Month") );
91 91
92 QPushButton * selWeek = 0; 92 QPushButton * selWeek = 0;
93 if ( insertWeek ) { 93 if ( insertWeek ) {
94 selWeek = new QPushButton( mCtrlFrame ); 94 selWeek = new QPushButton( mCtrlFrame );
95 QToolTip::add( selWeek, i18n("Select Week") ); 95 QToolTip::add( selWeek, i18n("Select Week") );
96 selWeek->setFocusPolicy(NoFocus); 96 selWeek->setFocusPolicy(NoFocus);
97 } 97 }
98 98
99 mNextYear = new QPushButton( mCtrlFrame ); 99 mNextYear = new QPushButton( mCtrlFrame );
100 mNextYear->setPixmap( SmallIcon( isDesktop ? "2rightarrowB": "2rightarrow") ); 100 mNextYear->setPixmap( SmallIcon( isDesktop ? "2rightarrowB": "2rightarrow") );
101 QToolTip::add( mNextYear, i18n("Next Year") ); 101 QToolTip::add( mNextYear, i18n("Next Year") );
102 mSelectMonth = new QPushButton( mCtrlFrame ); 102 mSelectMonth = new QPushButton( mCtrlFrame );
103 // Create month name label 103 // Create month name label
104 //selectMonth->setFont( tfont ); 104 //selectMonth->setFont( tfont );
105 // selectMonth->setAlignment( AlignCenter ); 105 // selectMonth->setAlignment( AlignCenter );
106 //mDateLabel = new QLabel( selectMonth ); 106 //mDateLabel = new QLabel( selectMonth );
107 //mDateLabel->setFont( tfont ); 107 //mDateLabel->setFont( tfont );
108 //mDateLabel->setAlignment( AlignCenter ); 108 //mDateLabel->setAlignment( AlignCenter );
109 if ( QString ( name ) == QString("useBigPixmaps") ) { 109 if ( QString ( name ) == QString("useBigPixmaps") ) {
110 mNextMonth->setFlat( true); 110 mNextMonth->setFlat( true);
111 mNextYear->setFlat( true); 111 mNextYear->setFlat( true);
112 mSelectMonth->setFlat( true); 112 mSelectMonth->setFlat( true);
113 mPrevYear->setFlat( true); 113 mPrevYear->setFlat( true);
114 mPrevMonth->setFlat( true); 114 mPrevMonth->setFlat( true);
115 if ( insertWeek ) 115 if ( insertWeek )
116 selWeek->setFlat( true); 116 selWeek->setFlat( true);
117 } 117 }
118 mSelectMonth->setFont( tfont ); 118 mSelectMonth->setFont( tfont );
119 // Set minimum width to width of widest month name label 119 // Set minimum width to width of widest month name label
120 int i; 120 int i;
121 int maxwidth = 0; 121 int maxwidth = 0;
122 QFontMetrics fm ( mSelectMonth->font() ); 122 QFontMetrics fm ( mSelectMonth->font() );
123 int width = fm.width("September '00" ); 123 int width = fm.width("September '00" );
124// for( i = 1; i <= KOGlobals::self()->calendarSystem()->monthsInYear(date); 124// for( i = 1; i <= KOGlobals::self()->calendarSystem()->monthsInYear(date);
125// ++i ) { 125// ++i ) {
126// //int width = fm.width( KOGlobals::self()->calendarSystem()->monthName(i, 126// //int width = fm.width( KOGlobals::self()->calendarSystem()->monthName(i,
127// // KOGlobals::self()->calendarSystem()->year(date) ) + " 2000" ); 127// // KOGlobals::self()->calendarSystem()->year(date) ) + " 2000" );
128// int width = fm.width("September 2000" ); 128// int width = fm.width("September 2000" );
129// if ( width > maxwidth ) maxwidth = width; 129// if ( width > maxwidth ) maxwidth = width;
130// } 130// }
131 maxwidth = width+2; 131 maxwidth = width+2;
132 int size = fm.height()+2; 132 int size = fm.height()+2;
133 if ( QApplication::desktop()->width() >= 480 ) { 133 if ( QApplication::desktop()->width() >= 480 ) {
134 size += 6; 134 size += 6;
135 maxwidth+= 6; 135 maxwidth+= 6;
136 } 136 }
137 137
138 if ( insertWeek ) { 138 if ( insertWeek ) {
139 //shit : bug in Qt. after inserting 53 item, only 51 are shown...
140 QPopupMenu * wpo = new QPopupMenu (this); 139 QPopupMenu * wpo = new QPopupMenu (this);
141 wpo->insertItem( i18n("W#"), 0 ); 140 QPopupMenu * all = new QPopupMenu (this);
142 for ( i = 1; i < 53; ++i ) { 141 //wpo->insertItem( i18n("W#"), 0 );
142 int first = 1;
143 for ( i = 1; i < 50; ++i ) {
144 if ( !(i%10) ) {
145 all->insertItem( i18n("Select week %1-%2" ).arg(first).arg( i-1) ,wpo );
146 connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeek ( int ) ) );
147 first = i;
148 wpo = new QPopupMenu (this);
149 }
143 wpo->insertItem( QString::number(i), i ); 150 wpo->insertItem( QString::number(i), i );
144 } 151 }
145 for ( i = 53; i < 54; ++i ) { 152 for ( i = 50; i < 53; ++i ) {
146 wpo->insertItem( "", 52 ); 153 wpo->insertItem( QString::number(i), i);
147 } 154 }
148 selWeek->setPopup( wpo ); 155 all->insertItem( i18n("Select week %1-%2" ).arg(first).arg( i-1) ,wpo );
149 selWeek->setFixedWidth( (size/4)*3 ); 156 selWeek->setPopup( all );
157 selWeek->setFixedWidth( (size/5)*4 );
150 selWeek->setFixedHeight( size ); 158 selWeek->setFixedHeight( size );
151 connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeek ( int ) ) ); 159 connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeek ( int ) ) );
152 } 160 }
153 mSelectMonth->setFixedWidth( maxwidth ); 161 mSelectMonth->setFixedWidth( maxwidth );
154 mSelectMonth->setFixedHeight( size ); 162 mSelectMonth->setFixedHeight( size );
155 mPrevYear->setFixedHeight( size ); 163 mPrevYear->setFixedHeight( size );
156 mPrevMonth->setFixedHeight( size ); 164 mPrevMonth->setFixedHeight( size );
157 mNextMonth->setFixedHeight( size ); 165 mNextMonth->setFixedHeight( size );
158 mNextYear->setFixedHeight ( size ); 166 mNextYear->setFixedHeight ( size );
159 // set up control frame layout 167 // set up control frame layout
160 QBoxLayout *ctrlLayout = new QHBoxLayout( mCtrlFrame, 1 ); 168 QBoxLayout *ctrlLayout = new QHBoxLayout( mCtrlFrame, 1 );
161 ctrlLayout->addWidget( mPrevYear, 3 ); 169 ctrlLayout->addWidget( mPrevYear, 3 );
162 ctrlLayout->addWidget( mPrevMonth, 3 ); 170 ctrlLayout->addWidget( mPrevMonth, 3 );
163 //ctrlLayout->addStretch( 1 ); 171 //ctrlLayout->addStretch( 1 );
164 // ctrlLayout->addSpacing( 1 ); 172 // ctrlLayout->addSpacing( 1 );
165 // ctrlLayout->addWidget( mDateLabel ); 173 // ctrlLayout->addWidget( mDateLabel );
166 ctrlLayout->addWidget( mSelectMonth ); 174 ctrlLayout->addWidget( mSelectMonth );
167 // ctrlLayout->addSpacing( 1 ); 175 // ctrlLayout->addSpacing( 1 );
168 // ctrlLayout->addStretch( 1 ); 176 // ctrlLayout->addStretch( 1 );
169 ctrlLayout->addWidget( mNextMonth, 3 ); 177 ctrlLayout->addWidget( mNextMonth, 3 );
170 ctrlLayout->addWidget( mNextYear, 3 ); 178 ctrlLayout->addWidget( mNextYear, 3 );
171 if ( insertWeek ) 179 if ( insertWeek )
172 ctrlLayout->addWidget( selWeek ); 180 ctrlLayout->addWidget( selWeek );
173 181
174 connect( mPrevYear, SIGNAL( clicked() ), SIGNAL( goPrevYear() ) ); 182 connect( mPrevYear, SIGNAL( clicked() ), SIGNAL( goPrevYear() ) );
175 connect( mPrevMonth, SIGNAL( clicked() ), SIGNAL( goPrevMonth() ) ); 183 connect( mPrevMonth, SIGNAL( clicked() ), SIGNAL( goPrevMonth() ) );
176 connect( mNextMonth, SIGNAL( clicked() ), SIGNAL( goNextMonth() ) ); 184 connect( mNextMonth, SIGNAL( clicked() ), SIGNAL( goNextMonth() ) );
177 connect( mNextYear, SIGNAL( clicked() ), SIGNAL( goNextYear() ) ); 185 connect( mNextYear, SIGNAL( clicked() ), SIGNAL( goNextYear() ) );
178 connect( mSelectMonth, SIGNAL( clicked() ),SLOT( selectMonth() ) ); 186 connect( mSelectMonth, SIGNAL( clicked() ),SLOT( selectMonth() ) );
179 mPrevYear->setFocusPolicy(NoFocus); 187 mPrevYear->setFocusPolicy(NoFocus);
180 mPrevMonth->setFocusPolicy(NoFocus); 188 mPrevMonth->setFocusPolicy(NoFocus);
181 mNextMonth->setFocusPolicy(NoFocus); 189 mNextMonth->setFocusPolicy(NoFocus);
182 mNextYear->setFocusPolicy(NoFocus); 190 mNextYear->setFocusPolicy(NoFocus);
183 mSelectMonth->setFocusPolicy(NoFocus); 191 mSelectMonth->setFocusPolicy(NoFocus);
184 192
185} 193}
186 194
187NavigatorBar::~NavigatorBar() 195NavigatorBar::~NavigatorBar()
188{ 196{
189} 197}
190 198
191void NavigatorBar::selectMonth() 199void NavigatorBar::selectMonth()
192{ 200{
193 201
194 int month; 202 int month;
195 KPopupFrame* popup = new KPopupFrame(this); 203 KPopupFrame* popup = new KPopupFrame(this);
196 int size = 12; 204 int size = 12;
197 if ( QApplication::desktop()->width() >= 480 ) 205 if ( QApplication::desktop()->width() >= 480 )
198 size = 18; 206 size = 18;
199 KDateInternalMonthPicker* picker = new KDateInternalMonthPicker(size, popup); 207 KDateInternalMonthPicker* picker = new KDateInternalMonthPicker(size, popup);
200 // ----- 208 // -----
201 picker->resize(picker->sizeHint()); 209 picker->resize(picker->sizeHint());
202 popup->setMainWidget(picker); 210 popup->setMainWidget(picker);
203 picker->setFocus(); 211 picker->setFocus();
204 connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); 212 connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int)));
205 if(popup->exec(mSelectMonth->mapToGlobal(QPoint(0, mSelectMonth->height())))) 213 if(popup->exec(mSelectMonth->mapToGlobal(QPoint(0, mSelectMonth->height()))))
206 { 214 {
207 month = picker->getResult(); 215 month = picker->getResult();
208 emit monthSelected ( month ); 216 emit monthSelected ( month );
209 } else { 217 } else {
210 KNotifyClient::beep(); 218 KNotifyClient::beep();
211 } 219 }
212 delete popup; 220 delete popup;
213} 221}
214void NavigatorBar::selectDates( const KCal::DateList &dateList ) 222void NavigatorBar::selectDates( const KCal::DateList &dateList )
215{ 223{
216 if (dateList.count() > 0) { 224 if (dateList.count() > 0) {
217 QDate date = dateList.first(); 225 QDate date = dateList.first();
218 226
219 const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem(); 227 const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem();
220 228
221 // compute the label at the top of the navigator 229 // compute the label at the top of the navigator
222 QString dtstr = i18n(calSys->monthName( date )) + " '" + 230 QString dtstr = i18n(calSys->monthName( date )) + " '" +
223 QString::number( calSys->year( date ) ).right(2); 231 QString::number( calSys->year( date ) ).right(2);
224 232
225 mSelectMonth->setText( dtstr ); 233 mSelectMonth->setText( dtstr );
226 } 234 }
227} 235}
228 236