author | zautrix <zautrix> | 2005-07-06 21:48:53 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-06 21:48:53 (UTC) |
commit | 93bc4dbbef774e28672c947281291b12d5971803 (patch) (unidiff) | |
tree | eac12b91fffe75bfd0c40046c7a13cd746fafc6f | |
parent | 630904c92dc014538ff0b08731efb10dcc25426f (diff) | |
download | kdepimpi-93bc4dbbef774e28672c947281291b12d5971803.zip kdepimpi-93bc4dbbef774e28672c947281291b12d5971803.tar.gz kdepimpi-93bc4dbbef774e28672c947281291b12d5971803.tar.bz2 |
fixxx
-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 2 | ||||
-rw-r--r-- | bin/kdepim/korganizer/today_small.png | bin | 797 -> 827 bytes | |||
-rw-r--r-- | korganizer/kotodoview.cpp | 12 |
3 files changed, 9 insertions, 5 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index cb92677..bcc23dc 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1,189 +1,188 @@ | |||
1 | { "10 minutes","10 Minuten" }, | 1 | { "10 minutes","10 Minuten" }, |
2 | { "10th","10." }, | 2 | { "10th","10." }, |
3 | { "11th","11." }, | 3 | { "11th","11." }, |
4 | { "12 pm Format","12 AM/PM Format" }, | 4 | { "12 pm Format","12 AM/PM Format" }, |
5 | { "12th","12." }, | 5 | { "12th","12." }, |
6 | { "13th","13." }, | 6 | { "13th","13." }, |
7 | { "14th","14." }, | 7 | { "14th","14." }, |
8 | { "15th","15." }, | 8 | { "15th","15." }, |
9 | { "16th","16." }, | 9 | { "16th","16." }, |
10 | { "17th","17." }, | 10 | { "17th","17." }, |
11 | { "18th","18." }, | 11 | { "18th","18." }, |
12 | { "19th","19." }, | 12 | { "19th","19." }, |
13 | { "1 Day","1 Tag" }, | 13 | { "1 Day","1 Tag" }, |
14 | { "1 h","1 Std" }, | 14 | { "1 h","1 Std" }, |
15 | { "1 (high)","1 (hoch)" }, | 15 | { "1 (high)","1 (hoch)" }, |
16 | { "5 (low)","5" }, | 16 | { "5 (low)","5" }, |
17 | { "1st","1." }, | 17 | { "1st","1." }, |
18 | { "20th","20." }, | 18 | { "20th","20." }, |
19 | { "21st","21." }, | 19 | { "21st","21." }, |
20 | { "22nd","22." }, | 20 | { "22nd","22." }, |
21 | { "23rd","23." }, | 21 | { "23rd","23." }, |
22 | { "24:00 Hour Format","24:00 Stunden Format" }, | 22 | { "24:00 Hour Format","24:00 Stunden Format" }, |
23 | { "24th","24." }, | 23 | { "24th","24." }, |
24 | { "25th","25." }, | 24 | { "25th","25." }, |
25 | { "26th","26." }, | 25 | { "26th","26." }, |
26 | { "27th","27." }, | 26 | { "27th","27." }, |
27 | { "28th","28." }, | 27 | { "28th","28." }, |
28 | { "29th","29." }, | 28 | { "29th","29." }, |
29 | { "2nd","2." }, | 29 | { "2nd","2." }, |
30 | { "30 minutes","30 Minuten" }, | 30 | { "30 minutes","30 Minuten" }, |
31 | { "30th","30." }, | 31 | { "30th","30." }, |
32 | { "31st","31." }, | 32 | { "31st","31." }, |
33 | { "3rd","3." }, | 33 | { "3rd","3." }, |
34 | { "4th","4." }, | 34 | { "4th","4." }, |
35 | { "5 (lowest)","5 (Niedrigster)" }, | 35 | { "5 (lowest)","5 (Niedrigster)" }, |
36 | { "5th","5." }, | 36 | { "5th","5." }, |
37 | { "6th","6." }, | 37 | { "6th","6." }, |
38 | { "7th","7." }, | 38 | { "7th","7." }, |
39 | { "8th","8." }, | 39 | { "8th","8." }, |
40 | { "9th","9." }, | 40 | { "9th","9." }, |
41 | { "About...","Über..." }, | 41 | { "About...","Über..." }, |
42 | { "&Accept","&Akzeptieren" }, | 42 | { "&Accept","&Akzeptieren" }, |
43 | { "Accept","Akzeptieren" }, | 43 | { "Accept","Akzeptieren" }, |
44 | { "Accept A&ll","A&lles Akzepieren" }, | 44 | { "Accept A&ll","A&lles Akzepieren" }, |
45 | { "Access:","Zugriff:" }, | 45 | { "Access:","Zugriff:" }, |
46 | { "A corresponding event is missing in your calendar!","Ein zugehöriger Termin fehlt in ihrem Kalender!" }, | 46 | { "A corresponding event is missing in your calendar!","Ein zugehöriger Termin fehlt in ihrem Kalender!" }, |
47 | { "Action","Aktion" }, | 47 | { "Action","Aktion" }, |
48 | { "Add Filter","Filter Hinzufügen" }, | 48 | { "Add Filter","Filter Hinzufügen" }, |
49 | { "&Add","Hinzufügen" }, | 49 | { "&Add","Hinzufügen" }, |
50 | { "Add","Hinzufügen" }, | 50 | { "Add","Hinzufügen" }, |
51 | { "Additional email addresses:","Zusätzliche E-Mail Adressen:" }, | 51 | { "Additional email addresses:","Zusätzliche E-Mail Adressen:" }, |
52 | { "Additional email address:","Zusätzliche E-Mail Adresse:" }, | 52 | { "Additional email address:","Zusätzliche E-Mail Adresse:" }, |
53 | { "&Addressbook","&Adressbuch" }, | 53 | { "&Addressbook","&Adressbuch" }, |
54 | { "Address &Book...","Adress&buch..." }, | 54 | { "Address &Book...","Adress&buch..." }, |
55 | { "Agenda Size","Agende Größe" }, | 55 | { "Agenda Size","Agende Größe" }, |
56 | { "Agenda Size:","Größe der Agenda:" }, | 56 | { "Agenda Size:","Größe der Agenda:" }, |
57 | { "Agenda view:","Agenda Ansicht:" }, | 57 | { "Agenda view:","Agenda Ansicht:" }, |
58 | { "Agenda view background color:","Hintergrund der Agenda Ansicht:" }, | 58 | { "Agenda view background color:","Hintergrund der Agenda Ansicht:" }, |
59 | { "All attendees","Alle Teilnehmer" }, | 59 | { "All attendees","Alle Teilnehmer" }, |
60 | { "AllDayAgenda Height:","Höhe Ganztages Agenda:" }, | 60 | { "AllDayAgenda Height:","Höhe Ganztages Agenda:" }, |
61 | { "All day event","Ganztägig" }, | 61 | { "All day event","Ganztägig" }, |
62 | { "Anonymous","Anonym" }, | 62 | { "Anonymous","Anonym" }, |
63 | { "Apply","Anwenden" }, | 63 | { "Apply","Anwenden" }, |
64 | { "Apr","Apr" }, | 64 | { "Apr","Apr" }, |
65 | { "April","April" }, | 65 | { "April","April" }, |
66 | {"Ask for every entry on conflict","Frage bei Konflikten nach"}, | 66 | {"Ask for every entry on conflict","Frage bei Konflikten nach"}, |
67 | { "Ask for preferences before syncing","Vor dem Syncronisieren nachfragen" }, | 67 | { "Ask for preferences before syncing","Vor dem Syncronisieren nachfragen" }, |
68 | { "Ask for quit when closing KO/Pi","Vor dem Beenden von KO/Pi nachfragen" }, | 68 | { "Ask for quit when closing KO/Pi","Vor dem Beenden von KO/Pi nachfragen" }, |
69 | { "Attendees","Teilnehmer" }, | 69 | { "Attendees","Teilnehmer" }, |
70 | { "Aug","Aug" }, | 70 | { "Aug","Aug" }, |
71 | { "August","August" }, | 71 | { "August","August" }, |
72 | { "Auto-Save","Automatisches Abspeichern" }, | 72 | { "Auto-Save","Automatisches Abspeichern" }, |
73 | { "Auto save delay in minutes:","Verzög.autom.Speichern in Min" }, | 73 | { "Auto save delay in minutes:","Verzög.autom.Speichern in Min" }, |
74 | { "Auto saving...","Automatische Sicherung..." }, | 74 | { "Auto saving...","Automatische Sicherung..." }, |
75 | { "Begin on:","Starte mit:" }, | 75 | { "Begin on:","Starte mit:" }, |
76 | { "Begins on: %1","Starte mit: %1" }, | 76 | { "Begins on: %1","Starte mit: %1" }, |
77 | { "<b>From:</b> %1 <b>To:</b> %2","<b>Vom:</b> %1 <b>Zum:</b> %2" }, | 77 | { "<b>From:</b> %1 <b>To:</b> %2","<b>Vom:</b> %1 <b>Zum:</b> %2" }, |
78 | { "<b>On:</b> %1","<b>Am:</b> %1" }, | 78 | { "<b>On:</b> %1","<b>Am:</b> %1" }, |
79 | { "<b>On:</b> %1 <b>From:S</b> %2 <b>To:</b> %3","<b>Am:</b> %1 <b>Vom:S</b> %2 <b>Zum:</b> %3" }, | 79 | { "<b>On:</b> %1 <b>From:S</b> %2 <b>To:</b> %3","<b>Am:</b> %1 <b>Vom:S</b> %2 <b>Zum:</b> %3" }, |
80 | { "<b>Original event:</b><p>","<b>Original Termin:</b><p>" }, | 80 | { "<b>Original event:</b><p>","<b>Original Termin:</b><p>" }, |
81 | { " - both are modified after last sync"," - beide wurden nach der letzten Syncronisation verändert" }, | 81 | { " - both are modified after last sync"," - beide wurden nach der letzten Syncronisation verändert" }, |
82 | { "Busy","Belegt" }, | 82 | { "Busy","Belegt" }, |
83 | { "&Cancel","Abbre&chen" }, | 83 | { "&Cancel","Abbre&chen" }, |
84 | { "Cancel","Abbrechen" }, | 84 | { "Cancel","Abbrechen" }, |
85 | { "Cannot delete To-Do\nwhich has children.","Kann Todo nicht löschen,\n da noch Einträge vorhanden sind" }, | 85 | { "Cannot delete To-Do\nwhich has children.","Kann Todo nicht löschen,\n da noch Einträge vorhanden sind" }, |
86 | { "Can't generate mail:\nNo event selected.","Kann e-Mail nicht erstellen:\nKein Termin ausgewählt." }, | 86 | { "Can't generate mail:\nNo event selected.","Kann e-Mail nicht erstellen:\nKein Termin ausgewählt." }, |
87 | { "Categories...","Kategorien..." }, | 87 | { "Categories...","Kategorien..." }, |
88 | { "Categories","Kategorien" }, | 88 | { "Categories","Kategorien" }, |
89 | { "Category","Kategorie" }, | 89 | { "Category","Kategorie" }, |
90 | { "Center View","Zentriere Ansicht" }, | 90 | { "Center View","Zentriere Ansicht" }, |
91 | { "Change","Ändere" }, | 91 | { "Change","Ändere" }, |
92 | { "Cinema","Kino" }, | 92 | { "Cinema","Kino" }, |
93 | { "Click to add a new Todo","Hier klicken, um ein neues Todo anzulegen" }, | ||
94 | { "Clone Item","Klone Eintrag" }, | 93 | { "Clone Item","Klone Eintrag" }, |
95 | { "&Close","S&chließen" }, | 94 | { "&Close","S&chließen" }, |
96 | { "Close","Schließen" }, | 95 | { "Close","Schließen" }, |
97 | { "Close this dialog to abort deletion!","Zum Abbrechen des Löschvorganges Dialog schließen!" }, | 96 | { "Close this dialog to abort deletion!","Zum Abbrechen des Löschvorganges Dialog schließen!" }, |
98 | { "Colors","Farben" }, | 97 | { "Colors","Farben" }, |
99 | { "completed","erledigt" }, | 98 | { "completed","erledigt" }, |
100 | { "completed on %1","erledigt am %1" }, | 99 | { "completed on %1","erledigt am %1" }, |
101 | { "Complete","Erledigt" }, | 100 | { "Complete","Erledigt" }, |
102 | { "Confidential","Vertraulich" }, | 101 | { "Confidential","Vertraulich" }, |
103 | { "Configure...","Einstellungen..." }, | 102 | { "Configure...","Einstellungen..." }, |
104 | { "Confirm &deletes","Löschvogang bestätigen" }, | 103 | { "Confirm &deletes","Löschvogang bestätigen" }, |
105 | { "Couldn't load calendar\n '%1'.","Kann Kalender\n '%1' nicht laden." }, | 104 | { "Couldn't load calendar\n '%1'.","Kann Kalender\n '%1' nicht laden." }, |
106 | { "Counter-event Viewer","Terminzähler Ansicht" }, | 105 | { "Counter-event Viewer","Terminzähler Ansicht" }, |
107 | { "Daily ending hour:","Feierabend:" }, | 106 | { "Daily ending hour:","Feierabend:" }, |
108 | { "Daily starting hour:","Anfangszeit:" }, | 107 | { "Daily starting hour:","Anfangszeit:" }, |
109 | { "Daily","Täglich" }, | 108 | { "Daily","Täglich" }, |
110 | { "Date Format","Datums Format" }, | 109 | { "Date Format","Datums Format" }, |
111 | { "Date Format:","Datums Format:" }, | 110 | { "Date Format:","Datums Format:" }, |
112 | { "DateNavigator:(nr)","Datums Navigator" }, | 111 | { "DateNavigator:(nr)","Datums Navigator" }, |
113 | { "Dates: ","Datum: " }, | 112 | { "Dates: ","Datum: " }, |
114 | { "Date && Time","Datum && Zeit" }, | 113 | { "Date && Time","Datum && Zeit" }, |
115 | { "Day begins at:","Der Tag beginnt um:" }, | 114 | { "Day begins at:","Der Tag beginnt um:" }, |
116 | { "Days in Next-X-Days:","Tage in Nächste-X-Tage:" }, | 115 | { "Days in Next-X-Days:","Tage in Nächste-X-Tage:" }, |
117 | { "Days in What's Next:","Tage in What's Next:" }, | 116 | { "Days in What's Next:","Tage in What's Next:" }, |
118 | { "day(s)","Tag(e)" }, | 117 | { "day(s)","Tag(e)" }, |
119 | { "Days to show in Next-X-Days view:","Welche Tage in Nächste-X-Tagen anzeigen:" }, | 118 | { "Days to show in Next-X-Days view:","Welche Tage in Nächste-X-Tagen anzeigen:" }, |
120 | { "day","Tag" }, | 119 | { "day","Tag" }, |
121 | { "Dec","Dez" }, | 120 | { "Dec","Dez" }, |
122 | { "December","Dezember" }, | 121 | { "December","Dezember" }, |
123 | { "Default alarm time:","Standard Alarmzeit:" }, | 122 | { "Default alarm time:","Standard Alarmzeit:" }, |
124 | { "Default appointment time:","Standard Termin Startzeit:" }, | 123 | { "Default appointment time:","Standard Termin Startzeit:" }, |
125 | { "Default event color:","Standard Terminfarbe:" }, | 124 | { "Default event color:","Standard Terminfarbe:" }, |
126 | { "Default","Standard" }, | 125 | { "Default","Standard" }, |
127 | { "Def. duration of new app.:","Standard Termin Länge:" }, | 126 | { "Def. duration of new app.:","Standard Termin Länge:" }, |
128 | { "Delete All","Lösche alles" }, | 127 | { "Delete All","Lösche alles" }, |
129 | { "Delete all selected","Lösche alle Selektierten" }, | 128 | { "Delete all selected","Lösche alle Selektierten" }, |
130 | { "Delete Current","Aktuellen löschen" }, | 129 | { "Delete Current","Aktuellen löschen" }, |
131 | { "Delete Event...","Lösche Termin..." }, | 130 | { "Delete Event...","Lösche Termin..." }, |
132 | { "Delete Event","Lösche Termin" }, | 131 | { "Delete Event","Lösche Termin" }, |
133 | { "&Delete...","Lösche..." }, | 132 | { "&Delete...","Lösche..." }, |
134 | { "Delete...","Lösche..." }, | 133 | { "Delete...","Lösche..." }, |
135 | { "Delete","Lösche" }, | 134 | { "Delete","Lösche" }, |
136 | { "Delete Todo...","Lösche Todo..." }, | 135 | { "Delete Todo...","Lösche Todo..." }, |
137 | { "Delete To-Do","Lösche Todo" }, | 136 | { "Delete To-Do","Lösche Todo" }, |
138 | { "Deleting item %d ...","Lösche Eintrag %d..." }, | 137 | { "Deleting item %d ...","Lösche Eintrag %d..." }, |
139 | { "Descriptions","Beschreibungen" }, | 138 | { "Descriptions","Beschreibungen" }, |
140 | { "Deselect all","Deselektiere Alle" }, | 139 | { "Deselect all","Deselektiere Alle" }, |
141 | { "Details","Details" }, | 140 | { "Details","Details" }, |
142 | { "Dinner","Abendessen" }, | 141 | { "Dinner","Abendessen" }, |
143 | { "Do you really want\nto close KO/Pi?","Möchten Sie wirklich\nKO/PI verlassen?" }, | 142 | { "Do you really want\nto close KO/Pi?","Möchten Sie wirklich\nKO/PI verlassen?" }, |
144 | { "Due Date","Fällig am" }, | 143 | { "Due Date","Fällig am" }, |
145 | { "Due: ","Fällig: "}, | 144 | { "Due: ","Fällig: "}, |
146 | { "Due Time","Fällig um" }, | 145 | { "Due Time","Fällig um" }, |
147 | { "Due:","Fällig:"}, | 146 | { "Due:","Fällig:"}, |
148 | { "Duration: ","Dauer: " }, | 147 | { "Duration: ","Dauer: " }, |
149 | { "Edit...","Bearbeite..." }, | 148 | { "Edit...","Bearbeite..." }, |
150 | { "Edit Event...","Bearbeite Termin..." }, | 149 | { "Edit Event...","Bearbeite Termin..." }, |
151 | { "Edit Event","Bearbeite Termin" }, | 150 | { "Edit Event","Bearbeite Termin" }, |
152 | { "Edit exceptions","Bearbeite Ausnahmen" }, | 151 | { "Edit exceptions","Bearbeite Ausnahmen" }, |
153 | { "EditorBox:","Editor Fenster:" }, | 152 | { "EditorBox:","Editor Fenster:" }, |
154 | { "Edit Recurrence Range","Bearbeite Wiederholung" }, | 153 | { "Edit Recurrence Range","Bearbeite Wiederholung" }, |
155 | { "Edit Todo...","Berabeite Todo..." }, | 154 | { "Edit Todo...","Berabeite Todo..." }, |
156 | { "Edit To-Do","Todo bearbeiten" }, | 155 | { "Edit To-Do","Todo bearbeiten" }, |
157 | { "E&mail address:","E&mail Adresse:" }, | 156 | { "E&mail address:","E&mail Adresse:" }, |
158 | { "(EmptyEmail)","(KeineEmail)" }, | 157 | { "(EmptyEmail)","(KeineEmail)" }, |
159 | { "(EmptyName)","(KeinName)" }, | 158 | { "(EmptyName)","(KeinName)" }, |
160 | { "Enable Recurrence","Wiederholung anschalten" }, | 159 | { "Enable Recurrence","Wiederholung anschalten" }, |
161 | { "End after","Endet nach"}, | 160 | { "End after","Endet nach"}, |
162 | { "End by:","Endet am"}, | 161 | { "End by:","Endet am"}, |
163 | { "End Date","End Datum" }, | 162 | { "End Date","End Datum" }, |
164 | { "End:","Ende:" }, | 163 | { "End:","Ende:" }, |
165 | { "End Time","End Zeit" }, | 164 | { "End Time","End Zeit" }, |
166 | { "English","Englisch" }, | 165 | { "English","Englisch" }, |
167 | { "Event","Termin" }, | 166 | { "Event","Termin" }, |
168 | { "Event list","Termin Liste" }, | 167 | { "Event list","Termin Liste" }, |
169 | { "Events","Termine" }, | 168 | { "Events","Termine" }, |
170 | { "Event Viewer:","Termin Übersicht:" }, | 169 | { "Event Viewer:","Termin Übersicht:" }, |
171 | { "every","jede" }, | 170 | { "every","jede" }, |
172 | { "Exceptions...","Ausnahmen..." }, | 171 | { "Exceptions...","Ausnahmen..." }, |
173 | { "Exceptions","Ausnahmen" }, | 172 | { "Exceptions","Ausnahmen" }, |
174 | { "Exclude holidays","Ohne freie Tage" }, | 173 | { "Exclude holidays","Ohne freie Tage" }, |
175 | { "Exclude Saturdays","Ohne Samstage" }, | 174 | { "Exclude Saturdays","Ohne Samstage" }, |
176 | { "Feb","Feb" }, | 175 | { "Feb","Feb" }, |
177 | { "February","Februar" }, | 176 | { "February","Februar" }, |
178 | { "&Find","Suche!" }, | 177 | { "&Find","Suche!" }, |
179 | { "Fonts","Schriftart" }, | 178 | { "Fonts","Schriftart" }, |
180 | { "Force take local entry always","Erzwinge:Nimm immer lokalen Eintrag" }, | 179 | { "Force take local entry always","Erzwinge:Nimm immer lokalen Eintrag" }, |
181 | { "Force take remote entry always","Erzwinge:Nimm immer fernen Eintrag"}, | 180 | { "Force take remote entry always","Erzwinge:Nimm immer fernen Eintrag"}, |
182 | { "Free","Frei" }, | 181 | { "Free","Frei" }, |
183 | { "Friday","Freitag" }, | 182 | { "Friday","Freitag" }, |
184 | { "Fri","Fr" }, | 183 | { "Fri","Fr" }, |
185 | { "From:","Vom:" }, | 184 | { "From:","Vom:" }, |
186 | { "Full &name:","Vor- und &Nachname:" }, | 185 | { "Full &name:","Vor- und &Nachname:" }, |
187 | { "General","Allgemein" }, | 186 | { "General","Allgemein" }, |
188 | { "German","Deutsch" }, | 187 | { "German","Deutsch" }, |
189 | { "Gifts","Geschenke" }, | 188 | { "Gifts","Geschenke" }, |
@@ -1401,106 +1400,107 @@ | |||
1401 | { "Add new Calendar","Füge Kalender hinzu" }, | 1400 | { "Add new Calendar","Füge Kalender hinzu" }, |
1402 | { "<b>Name of new calendar:</b>","<b>Name des Kalenders:</b>" }, | 1401 | { "<b>Name of new calendar:</b>","<b>Name des Kalenders:</b>" }, |
1403 | { "<b>Local ical (*.ics) file:</b>","<b>Lokale ical (*.ics) Datei:</b>" }, | 1402 | { "<b>Local ical (*.ics) file:</b>","<b>Lokale ical (*.ics) Datei:</b>" }, |
1404 | { "Sorry, the calendar name is empty!","Sorry, der Kalendername ist leer!" }, | 1403 | { "Sorry, the calendar name is empty!","Sorry, der Kalendername ist leer!" }, |
1405 | { "Sorry, the file name is empty!","Sorry, der Dateiname ist leer!" }, | 1404 | { "Sorry, the file name is empty!","Sorry, der Dateiname ist leer!" }, |
1406 | { "Error loading calendar file\n%1.","Fehler beim Laden der Kalenderdatei\n%1." }, | 1405 | { "Error loading calendar file\n%1.","Fehler beim Laden der Kalenderdatei\n%1." }, |
1407 | { "The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>","Der Kalender <b>%1</b> ist nicht geladen! Das Laden der Datei <b>%2</b> schlug fehl! <b>Soll erneut versucht werden den Kalender zu laden?</b>" }, | 1406 | { "The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>","Der Kalender <b>%1</b> ist nicht geladen! Das Laden der Datei <b>%2</b> schlug fehl! <b>Soll erneut versucht werden den Kalender zu laden?</b>" }, |
1408 | { "Global application font for all apps:","Globale Schriftart:" }, | 1407 | { "Global application font for all apps:","Globale Schriftart:" }, |
1409 | { "Application Font","Applikationsschriftart" }, | 1408 | { "Application Font","Applikationsschriftart" }, |
1410 | { "Kx/Pi","Kx/Pi" }, | 1409 | { "Kx/Pi","Kx/Pi" }, |
1411 | { "Backup","Backup" }, | 1410 | { "Backup","Backup" }, |
1412 | { "KDE-Pim Global Settings","KDE-Pim Globale Einstellungen" }, | 1411 | { "KDE-Pim Global Settings","KDE-Pim Globale Einstellungen" }, |
1413 | { "Sorry, the calendar name \n%1\nalready exists!\nPlease choose another name!","Sorry, der Kalendername \n%1\nist schon in Benutzung!\nBitte wählen Sie einen anderen!" }, | 1412 | { "Sorry, the calendar name \n%1\nalready exists!\nPlease choose another name!","Sorry, der Kalendername \n%1\nist schon in Benutzung!\nBitte wählen Sie einen anderen!" }, |
1414 | { "Sorry, the file \n%1\nis already loaded!\nPlease choose another file!","Sorry, die Datei \n%1\nist schon geladen!\nBitte wählen Sie eine andere!" }, | 1413 | { "Sorry, the file \n%1\nis already loaded!\nPlease choose another file!","Sorry, die Datei \n%1\nist schon geladen!\nBitte wählen Sie eine andere!" }, |
1415 | { "Choose Color","Wähle Farbe" }, | 1414 | { "Choose Color","Wähle Farbe" }, |
1416 | { " OK "," OK " }, | 1415 | { " OK "," OK " }, |
1417 | { " Cancel "," Abbrechen " }, | 1416 | { " Cancel "," Abbrechen " }, |
1418 | { "Matching items will be added to list","Passende werden zur Liste hinzugefügt" }, | 1417 | { "Matching items will be added to list","Passende werden zur Liste hinzugefügt" }, |
1419 | { "Matching items will be removed from list","Passende werden von der Liste entfernt" }, | 1418 | { "Matching items will be removed from list","Passende werden von der Liste entfernt" }, |
1420 | { "Search on displayed list only","Suche auf der dargestellten Liste" }, | 1419 | { "Search on displayed list only","Suche auf der dargestellten Liste" }, |
1421 | { "List will be cleared before search","Liste wird vor der Suche gelöscht" }, | 1420 | { "List will be cleared before search","Liste wird vor der Suche gelöscht" }, |
1422 | { "<center>%1</center> <center>is not running. Do you want to set\nthe state to running?</center>","<center>%1</center> <center>ist nicht am Laufen. Möchten Sie den Zustand auf "laufend" setzen?</center>" }, | 1421 | { "<center>%1</center> <center>is not running. Do you want to set\nthe state to running?</center>","<center>%1</center> <center>ist nicht am Laufen. Möchten Sie den Zustand auf "laufend" setzen?</center>" }, |
1423 | { "%1\nis running!","%1\nist am Laufen!" }, | 1422 | { "%1\nis running!","%1\nist am Laufen!" }, |
1424 | { "Additional Comment:","Zusätzlicher Kommentar:" }, | 1423 | { "Additional Comment:","Zusätzlicher Kommentar:" }, |
1425 | { "Stop and save","Stopp und Speichern" }, | 1424 | { "Stop and save","Stopp und Speichern" }, |
1426 | { "Continue running","Weiter laufen lassen" }, | 1425 | { "Continue running","Weiter laufen lassen" }, |
1427 | { "Stop - do not save","Stopp - nicht Speichern" }, | 1426 | { "Stop - do not save","Stopp - nicht Speichern" }, |
1428 | { "Do you really want to set\nthe state to stopped\nwithout saving the data?","Möchten sie den Zustand\nwirklich auf gestoppt setzen\nohne die Daten abzuspeichern?" }, | 1427 | { "Do you really want to set\nthe state to stopped\nwithout saving the data?","Möchten sie den Zustand\nwirklich auf gestoppt setzen\nohne die Daten abzuspeichern?" }, |
1429 | { "Time mismatch!","Zeiten stimmen nicht!" }, | 1428 | { "Time mismatch!","Zeiten stimmen nicht!" }, |
1430 | { "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" }, | 1429 | { "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" }, |
1431 | { "Yes, stop todo","Ja, stoppe Todo" }, | 1430 | { "Yes, stop todo","Ja, stoppe Todo" }, |
1432 | { "Todo stopped - no data saved because runtime was < 15 sec!","Todo gestoppt - nichts gespeichert da Laufzeit < 15 sec!" }, | 1431 | { "Todo stopped - no data saved because runtime was < 15 sec!","Todo gestoppt - nichts gespeichert da Laufzeit < 15 sec!" }, |
1433 | { "Todo started! Double click again to stop!","Todo gestartet! Doppelklicke um es zu stoppen!" }, | 1432 | { "Todo started! Double click again to stop!","Todo gestartet! Doppelklicke um es zu stoppen!" }, |
1434 | { "Please choose the <b>default calendar</b> in this column. Newly created or imported items are added to the default calendar.","Bitte wählen Sie den <b>Default-Kalender</b> in dieser Spalte. Neu angelegte oder importierte Einträge werden dem Default-Kalender hinzugefügt." }, | 1433 | { "Please choose the <b>default calendar</b> in this column. Newly created or imported items are added to the default calendar.","Bitte wählen Sie den <b>Default-Kalender</b> in dieser Spalte. Neu angelegte oder importierte Einträge werden dem Default-Kalender hinzugefügt." }, |
1435 | { "Spouse","Ehegatte" }, | 1434 | { "Spouse","Ehegatte" }, |
1436 | { "Notes","Notizen" }, | 1435 | { "Notes","Notizen" }, |
1437 | { "Messanger","Messanger" }, | 1436 | { "Messanger","Messanger" }, |
1438 | { "Assistant","Assistent" }, | 1437 | { "Assistant","Assistent" }, |
1439 | { "Manager","Manager" }, | 1438 | { "Manager","Manager" }, |
1440 | { "Secrecy","Sichtbar" }, | 1439 | { "Secrecy","Sichtbar" }, |
1441 | { "male","männlich" }, | 1440 | { "male","männlich" }, |
1442 | { "female","weiblich" }, | 1441 | { "female","weiblich" }, |
1443 | { "Hide!","Verbergen!" }, | 1442 | { "Hide!","Verbergen!" }, |
1444 | { "Show!","Anzeigen!" }, | 1443 | { "Show!","Anzeigen!" }, |
1445 | { "Details","Details" }, | 1444 | { "Details","Details" }, |
1446 | { "Profession","Beruf" }, | 1445 | { "Profession","Beruf" }, |
1447 | { "Children","Kinder" }, | 1446 | { "Children","Kinder" }, |
1448 | { "Department","Abteilung" }, | 1447 | { "Department","Abteilung" }, |
1449 | { "Backup cancelled","Backup abgebrochen" }, | 1448 | { "Backup cancelled","Backup abgebrochen" }, |
1450 | { "Backup globally disabled","Backup global abgeschaltet" }, | 1449 | { "Backup globally disabled","Backup global abgeschaltet" }, |
1451 | { "Backup succesfully finished","Backup erfolgreich beendet" }, | 1450 | { "Backup succesfully finished","Backup erfolgreich beendet" }, |
1452 | { "(Hint: You can enable automatic backup in the global settings!)","(Hinweis: Sie können ein automatisches Backup in den globalen Einstellungen konfigurieren!)" }, | 1451 | { "(Hint: You can enable automatic backup in the global settings!)","(Hinweis: Sie können ein automatisches Backup in den globalen Einstellungen konfigurieren!)" }, |
1453 | { "This will <b>backup all calendar files</b> to the directory %1 %2","Das schreibt ein <b>Backup aller Kalenderdateien</b> in das Verzeichnis %1 %2" }, | 1452 | { "This will <b>backup all calendar files</b> to the directory %1 %2","Das schreibt ein <b>Backup aller Kalenderdateien</b> in das Verzeichnis %1 %2" }, |
1454 | { "Birthdays","Geburtstage" }, | 1453 | { "Birthdays","Geburtstage" }, |
1455 | { "KO/Pi import information!","KO/Pi Import Information!" }, | 1454 | { "KO/Pi import information!","KO/Pi Import Information!" }, |
1456 | { "Start this todo\nand stop all running","Starte dieses Todo\nund stoppe alle Laufenden" }, | 1455 | { "Start this todo\nand stop all running","Starte dieses Todo\nund stoppe alle Laufenden" }, |
1457 | { "Cancel - do not start"," Abbrechen - Todo nicht starten" }, | 1456 | { "Cancel - do not start"," Abbrechen - Todo nicht starten" }, |
1458 | { "The timezone has changed!\nShould the calendar be reloaded\nto shift the time of the events?\nPlease read Menu: Help->FAQ:\n"How do I change the timezone?"\nas well!","Die Zeitzone wurde geändert!\nSollen die Kalender neu geladen\nwerden num die Zeiten\nder Termine zu ändern?\nBitte lesen Sie auch\nMenu: Help->FAQ:\n"How do I change the timezone?"" }, | 1457 | { "The timezone has changed!\nShould the calendar be reloaded\nto shift the time of the events?\nPlease read Menu: Help->FAQ:\n"How do I change the timezone?"\nas well!","Die Zeitzone wurde geändert!\nSollen die Kalender neu geladen\nwerden num die Zeiten\nder Termine zu ändern?\nBitte lesen Sie auch\nMenu: Help->FAQ:\n"How do I change the timezone?"" }, |
1459 | { "Reload","Neu laden" }, | 1458 | { "Reload","Neu laden" }, |
1460 | { "Timezone settings","Zeitzoneneinstellung" }, | 1459 | { "Timezone settings","Zeitzoneneinstellung" }, |
1461 | { "Title: ","Titel: " }, | 1460 | { "Title: ","Titel: " }, |
1462 | { "Journal from: ","Journal vom: " }, | 1461 | { "Journal from: ","Journal vom: " }, |
1463 | { "Journal: %1 from ","Journal: %1 vom " }, | 1462 | { "Journal: %1 from ","Journal: %1 vom " }, |
1464 | { "<b>Click here to edit categories: </b>","<b>Klicke hier um Kategorien zu ändern: </b>" }, | 1463 | { "<b>Click here to edit categories: </b>","<b>Klicke hier um Kategorien zu ändern: </b>" }, |
1465 | { "Selected Item","Ausgewähltes Item" }, | 1464 | { "Selected Item","Ausgewähltes Item" }, |
1466 | { "Select Date...","Wähle Datum..." }, | 1465 | { "Select Date...","Wähle Datum..." }, |
1467 | { "After importing/loading/syncing there may be new categories in events or todos which are not added automatically to the category list. Please choose what to do <b>now</b>:","Nach dem Importieren/Laden/Syncen kann es neue Kategorien in den Terminen oder Todos geben, die nicht automatisch der Kategorieliste hinzugefügt werden. Bitte wählen Sie, was <b>jetzt</b> passieren soll:" }, | 1466 | { "After importing/loading/syncing there may be new categories in events or todos which are not added automatically to the category list. Please choose what to do <b>now</b>:","Nach dem Importieren/Laden/Syncen kann es neue Kategorien in den Terminen oder Todos geben, die nicht automatisch der Kategorieliste hinzugefügt werden. Bitte wählen Sie, was <b>jetzt</b> passieren soll:" }, |
1468 | { "Change category list now!","Ändere Kategorieliste jetzt!" }, | 1467 | { "Change category list now!","Ändere Kategorieliste jetzt!" }, |
1469 | { "Edit category list...","Ändere Kategorieliste..." }, | 1468 | { "Edit category list...","Ändere Kategorieliste..." }, |
1470 | { "Toolbar changes needs a restart!","Neustart benötigt für Toolbaränderungen!" }, | 1469 | { "Toolbar changes needs a restart!","Neustart benötigt für Toolbaränderungen!" }, |
1471 | { "Filepath: ","Dateipfad: " }, | 1470 | { "Filepath: ","Dateipfad: " }, |
1472 | { "You can try to reload the calendar in the Resource View!","In der Resourcenansicht können Sie erneut versuchen den Kalender zu laden!" }, | 1471 | { "You can try to reload the calendar in the Resource View!","In der Resourcenansicht können Sie erneut versuchen den Kalender zu laden!" }, |
1473 | { "<b>WARNING:</b> There is a pending suspended alarm!","<b>WARNUNG:</b> Es gibt einen laufenden Suspendalarm!" }, | 1472 | { "<b>WARNING:</b> There is a pending suspended alarm!","<b>WARNUNG:</b> Es gibt einen laufenden Suspendalarm!" }, |
1474 | { "Pending Suspend Alarm","Laufender Suspend Alarm" }, | 1473 | { "Pending Suspend Alarm","Laufender Suspend Alarm" }, |
1475 | { "Error loading calendar %1","Fehler beim Laden von Kalender %1" }, | 1474 | { "Error loading calendar %1","Fehler beim Laden von Kalender %1" }, |
1476 | { "Calendar(s) not loaded:","Nicht geladene(r) Kalender:" }, | 1475 | { "Calendar(s) not loaded:","Nicht geladene(r) Kalender:" }, |
1477 | { "Loding of calendar(s) failed","Laden von Kalendern fehlgeschlagen" }, | 1476 | { "Loding of calendar(s) failed","Laden von Kalendern fehlgeschlagen" }, |
1478 | { "Alarm Options","Alarm Einstellungen" }, | 1477 | { "Alarm Options","Alarm Einstellungen" }, |
1479 | { "Delete selected...","Lösche Ausgewählte..." }, | 1478 | { "Delete selected...","Lösche Ausgewählte..." }, |
1480 | { "None","Nichts" }, | 1479 | { "None","Nichts" }, |
1481 | { "Selection","Auswahl" }, | 1480 | { "Selection","Auswahl" }, |
1482 | { "Set categories","Setze Kategorien" }, | 1481 | { "Set categories","Setze Kategorien" }, |
1483 | { "This adds the selected\nitems to the calendar\n%1\nand removes them from\ntheir current calendar!","Das fügt die ausgewählten\nEinträge dem Kalender\n%1\nhinzu und entfernt sie von\nihrem aktuellen Kalender!" }, | 1482 | { "This adds the selected\nitems to the calendar\n%1\nand removes them from\ntheir current calendar!","Das fügt die ausgewählten\nEinträge dem Kalender\n%1\nhinzu und entfernt sie von\nihrem aktuellen Kalender!" }, |
1484 | { "Reset","Neu setzen" }, | 1483 | { "Reset","Neu setzen" }, |
1485 | { "Do you want to <b>add</b> categories to the selected items or <b>reset</b> the list (i.e. remove current categories)?","Möchten Sie Kategorien zu den ausgewählten Einträgen <b>hinzufügen</b> oder die Liste <b>neu setzen</b> (d.h. vorhandene Kategorien löschen)?" }, | 1484 | { "Do you want to <b>add</b> categories to the selected items or <b>reset</b> the list (i.e. remove current categories)?","Möchten Sie Kategorien zu den ausgewählten Einträgen <b>hinzufügen</b> oder die Liste <b>neu setzen</b> (d.h. vorhandene Kategorien löschen)?" }, |
1486 | { "The file\n%1\ndoes not exist!\nShall I create it for you?","Die Datei\n%1\nexistiert nicht!\nSoll sie neu angelegt werden?" }, | 1485 | { "The file\n%1\ndoes not exist!\nShall I create it for you?","Die Datei\n%1\nexistiert nicht!\nSoll sie neu angelegt werden?" }, |
1487 | { "Sorry, cannot create the file\n%1!\nNo calendar added!","Kann leider die Datei\n%1\nnicht anlegen!\nKein Kalender hinzugefügt!" }, | 1486 | { "Sorry, cannot create the file\n%1!\nNo calendar added!","Kann leider die Datei\n%1\nnicht anlegen!\nKein Kalender hinzugefügt!" }, |
1488 | { "\nNO\n WRITEABLE\n CALENDAR\n FOUND!\n\nPlease fix your calendar settings!\n","\nKEIN\n SCHREIBBARER\n KALENDER\n GEFUNDEN!\n\nBitte korrigieren Sie\nihre Kalendereinstellungen!\n" }, | 1487 | { "\nNO\n WRITEABLE\n CALENDAR\n FOUND!\n\nPlease fix your calendar settings!\n","\nKEIN\n SCHREIBBARER\n KALENDER\n GEFUNDEN!\n\nBitte korrigieren Sie\nihre Kalendereinstellungen!\n" }, |
1489 | { "\nThe file\n%1\non disk has changed!\nFile size: %2 bytes.\nLast modified: %3\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie Datei\n%1\nwurde verändert!\nDatei Grösse: %2 Bytes.\nZuletzt geändert: %3\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, | 1488 | { "\nThe file\n%1\non disk has changed!\nFile size: %2 bytes.\nLast modified: %3\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie Datei\n%1\nwurde verändert!\nDatei Grösse: %2 Bytes.\nZuletzt geändert: %3\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, |
1490 | { "Edit","Edit" }, | 1489 | { "Edit","Edit" }, |
1491 | { "Last Modified","Zuletzt geändert" }, | 1490 | { "Last Modified","Zuletzt geändert" }, |
1492 | { "Journal viewer","Journal Anzeige" }, | 1491 | { "Journal viewer","Journal Anzeige" }, |
1493 | { "Configure Calendar Files...","Konfiguriere Kalenderdateien..." }, | 1492 | { "Configure Calendar Files...","Konfiguriere Kalenderdateien..." }, |
1494 | { "You can use and display <b>more than one</b> calendar file in KO/Pi. A calendar file is called a <b>resource</b>. To add a calendar or change calendar settings please use menu: <b>View -> Toggle Resource View</b>.","Sie können <b>mehr als eine</b> Kalenderdatei in KO/Pi darstellen und benutzen. Eine Kalenderdatei wird <b>Resource</b> genannt. Um einen Kalender hinzuzufügen oder die Kalendereinstellungen zu ändern benutzen Sie bitte das Menu: <b>Ansicht -> Resourcenansicht umschalten</b>." }, | 1493 | { "You can use and display <b>more than one</b> calendar file in KO/Pi. A calendar file is called a <b>resource</b>. To add a calendar or change calendar settings please use menu: <b>View -> Toggle Resource View</b>.","Sie können <b>mehr als eine</b> Kalenderdatei in KO/Pi darstellen und benutzen. Eine Kalenderdatei wird <b>Resource</b> genannt. Um einen Kalender hinzuzufügen oder die Kalendereinstellungen zu ändern benutzen Sie bitte das Menu: <b>Ansicht -> Resourcenansicht umschalten</b>." }, |
1495 | { "Hide Completed","Verstecke erledigte Todos" }, | 1494 | { "Hide Completed","Verstecke erledigte Todos" }, |
1496 | { "Show not Running","Zeige nicht Laufende" }, | 1495 | { "Show not Running","Zeige nicht Laufende" }, |
1496 | { "Click to add new Todo","Klick für neues Todo!" }, | ||
1497 | { "","" }, | 1497 | { "","" }, |
1498 | { "","" }, | 1498 | { "","" }, |
1499 | { "","" }, | 1499 | { "","" }, |
1500 | { "","" }, | 1500 | { "","" }, |
1501 | { "","" }, | 1501 | { "","" }, |
1502 | { "","" }, | 1502 | { "","" }, |
1503 | { "","" }, | 1503 | { "","" }, |
1504 | 1504 | ||
1505 | 1505 | ||
1506 | 1506 | ||
diff --git a/bin/kdepim/korganizer/today_small.png b/bin/kdepim/korganizer/today_small.png index fcc4ac2..3d2979f 100644 --- a/bin/kdepim/korganizer/today_small.png +++ b/bin/kdepim/korganizer/today_small.png | |||
Binary files differ | |||
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 06d40b1..2c017e1 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp | |||
@@ -383,243 +383,247 @@ void KOTodoListView::contentsMouseMoveEvent(QMouseEvent* e) | |||
383 | 383 | ||
384 | } else { | 384 | } else { |
385 | if ( !internalDrop ) { | 385 | if ( !internalDrop ) { |
386 | qDebug("Dnd: External Copy"); | 386 | qDebug("Dnd: External Copy"); |
387 | } else | 387 | } else |
388 | qDebug("DnD: Internal copy: Copy pending"); | 388 | qDebug("DnD: Internal copy: Copy pending"); |
389 | } | 389 | } |
390 | } | 390 | } |
391 | } | 391 | } |
392 | #endif | 392 | #endif |
393 | } | 393 | } |
394 | void KOTodoListView::keyReleaseEvent ( QKeyEvent *e ) | 394 | void KOTodoListView::keyReleaseEvent ( QKeyEvent *e ) |
395 | { | 395 | { |
396 | if ( !e->isAutoRepeat() ) { | 396 | if ( !e->isAutoRepeat() ) { |
397 | mFlagKeyPressed = false; | 397 | mFlagKeyPressed = false; |
398 | } | 398 | } |
399 | } | 399 | } |
400 | 400 | ||
401 | 401 | ||
402 | void KOTodoListView::keyPressEvent ( QKeyEvent * e ) | 402 | void KOTodoListView::keyPressEvent ( QKeyEvent * e ) |
403 | { | 403 | { |
404 | qApp->processEvents(); | 404 | qApp->processEvents(); |
405 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { | 405 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { |
406 | e->ignore(); | 406 | e->ignore(); |
407 | // qDebug(" ignore %d",e->isAutoRepeat() ); | 407 | // qDebug(" ignore %d",e->isAutoRepeat() ); |
408 | return; | 408 | return; |
409 | } | 409 | } |
410 | if (! e->isAutoRepeat() ) | 410 | if (! e->isAutoRepeat() ) |
411 | mFlagKeyPressed = true; | 411 | mFlagKeyPressed = true; |
412 | QListViewItem* cn; | 412 | QListViewItem* cn; |
413 | if ( e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter ) { | 413 | if ( e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter ) { |
414 | cn = currentItem(); | 414 | cn = currentItem(); |
415 | if ( cn ) { | 415 | if ( cn ) { |
416 | KOTodoViewItem* ci = (KOTodoViewItem*)( cn ); | 416 | KOTodoViewItem* ci = (KOTodoViewItem*)( cn ); |
417 | if ( ci ){ | 417 | if ( ci ){ |
418 | if ( e->state() == ShiftButton ) | 418 | if ( e->state() == ShiftButton ) |
419 | ci->setOn( false ); | 419 | ci->setOn( false ); |
420 | else | 420 | else |
421 | ci->setOn( true ); | 421 | ci->setOn( true ); |
422 | cn = cn->itemBelow(); | 422 | cn = cn->itemBelow(); |
423 | if ( cn ) { | 423 | if ( cn ) { |
424 | setCurrentItem ( cn ); | 424 | setCurrentItem ( cn ); |
425 | ensureItemVisible ( cn ); | 425 | ensureItemVisible ( cn ); |
426 | } | 426 | } |
427 | 427 | ||
428 | } | 428 | } |
429 | } | 429 | } |
430 | 430 | ||
431 | return; | 431 | return; |
432 | } | 432 | } |
433 | 433 | ||
434 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton || mName != "todolistsmall" ) { | 434 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton || mName != "todolistsmall" ) { |
435 | switch ( e->key() ) { | 435 | switch ( e->key() ) { |
436 | case Qt::Key_Down: | 436 | case Qt::Key_Down: |
437 | case Qt::Key_Up: | 437 | case Qt::Key_Up: |
438 | QListView::keyPressEvent ( e ); | 438 | QListView::keyPressEvent ( e ); |
439 | break; | 439 | break; |
440 | case Qt::Key_Left: | 440 | case Qt::Key_Left: |
441 | case Qt::Key_Right: | 441 | case Qt::Key_Right: |
442 | QListView::keyPressEvent ( e ); | 442 | QListView::keyPressEvent ( e ); |
443 | e->accept(); | 443 | e->accept(); |
444 | return; | 444 | return; |
445 | break; | 445 | break; |
446 | default: | 446 | default: |
447 | e->ignore(); | 447 | e->ignore(); |
448 | break; | 448 | break; |
449 | } | 449 | } |
450 | return; | 450 | return; |
451 | } | 451 | } |
452 | e->ignore(); | 452 | e->ignore(); |
453 | } | 453 | } |
454 | void KOTodoListView::contentsMouseReleaseEvent(QMouseEvent *e) | 454 | void KOTodoListView::contentsMouseReleaseEvent(QMouseEvent *e) |
455 | { | 455 | { |
456 | QListView::contentsMouseReleaseEvent(e); | 456 | QListView::contentsMouseReleaseEvent(e); |
457 | mMousePressed = false; | 457 | mMousePressed = false; |
458 | } | 458 | } |
459 | 459 | ||
460 | void KOTodoListView::contentsMouseDoubleClickEvent(QMouseEvent *e) | 460 | void KOTodoListView::contentsMouseDoubleClickEvent(QMouseEvent *e) |
461 | { | 461 | { |
462 | if (!e) return; | 462 | if (!e) return; |
463 | 463 | ||
464 | QPoint vp = contentsToViewport(e->pos()); | 464 | QPoint vp = contentsToViewport(e->pos()); |
465 | 465 | ||
466 | QListViewItem *item = itemAt(vp); | 466 | QListViewItem *item = itemAt(vp); |
467 | 467 | ||
468 | emit double_Clicked(item); | 468 | emit double_Clicked(item); |
469 | if (!item) return; | 469 | if (!item) return; |
470 | 470 | ||
471 | emit doubleClicked(item,vp,0); | 471 | emit doubleClicked(item,vp,0); |
472 | } | 472 | } |
473 | 473 | ||
474 | ///////////////////////////////////////////////////////////////////////////// | 474 | ///////////////////////////////////////////////////////////////////////////// |
475 | 475 | ||
476 | KOQuickTodo::KOQuickTodo(QWidget *parent) : | 476 | KOQuickTodo::KOQuickTodo(QWidget *parent) : |
477 | QLineEdit(parent) | 477 | QLineEdit(parent) |
478 | { | 478 | { |
479 | setText(i18n("Click to add a new Todo")); | 479 | setText(i18n("Click to add new Todo")); |
480 | } | 480 | } |
481 | 481 | ||
482 | void KOQuickTodo::focusInEvent(QFocusEvent *ev) | 482 | void KOQuickTodo::focusInEvent(QFocusEvent *ev) |
483 | { | 483 | { |
484 | if ( text()==i18n("Click to add a new Todo") ) | 484 | if ( text()==i18n("Click to add new Todo") ) |
485 | setText(""); | 485 | setText(""); |
486 | QLineEdit::focusInEvent(ev); | 486 | QLineEdit::focusInEvent(ev); |
487 | } | 487 | } |
488 | 488 | ||
489 | void KOQuickTodo::focusOutEvent(QFocusEvent *ev) | 489 | void KOQuickTodo::focusOutEvent(QFocusEvent *ev) |
490 | { | 490 | { |
491 | setText(i18n("Click to add a new Todo")); | 491 | setText(i18n("Click to add new Todo")); |
492 | QLineEdit::focusOutEvent(ev); | 492 | QLineEdit::focusOutEvent(ev); |
493 | } | 493 | } |
494 | 494 | ||
495 | ///////////////////////////////////////////////////////////////////////////// | 495 | ///////////////////////////////////////////////////////////////////////////// |
496 | 496 | ||
497 | KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : | 497 | KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : |
498 | KOrg::BaseView(calendar,parent,name) | 498 | KOrg::BaseView(calendar,parent,name) |
499 | { | 499 | { |
500 | mCategoryPopupMenu = 0; | 500 | mCategoryPopupMenu = 0; |
501 | mPendingUpdateBeforeRepaint = false; | 501 | mPendingUpdateBeforeRepaint = false; |
502 | isFlatDisplay = false; | 502 | isFlatDisplay = false; |
503 | mNavigator = 0; | 503 | mNavigator = 0; |
504 | QBoxLayout *topLayout = new QVBoxLayout(this); | 504 | QBoxLayout *topLayout = new QVBoxLayout(this); |
505 | mName = QString ( name ); | 505 | mName = QString ( name ); |
506 | mBlockUpdate = false; | 506 | mBlockUpdate = false; |
507 | mQuickBar = new QWidget( this ); | 507 | mQuickBar = new QWidget( this ); |
508 | topLayout->addWidget(mQuickBar); | 508 | topLayout->addWidget(mQuickBar); |
509 | 509 | ||
510 | mQuickAdd = new KOQuickTodo(mQuickBar); | 510 | mQuickAdd = new KOQuickTodo(mQuickBar); |
511 | QBoxLayout *quickLayout = new QHBoxLayout(mQuickBar); | 511 | QBoxLayout *quickLayout = new QHBoxLayout(mQuickBar); |
512 | quickLayout->addWidget( mQuickAdd ); | 512 | quickLayout->addWidget( mQuickAdd ); |
513 | QPushButton * flat = new QPushButton( "F",mQuickBar ); | 513 | QPushButton * flat = new QPushButton( "F",mQuickBar ); |
514 | int fixwid = flat->sizeHint().height(); | 514 | int fixwid = flat->sizeHint().height(); |
515 | if ( QApplication::desktop()->width() > 320 ) | 515 | if ( QApplication::desktop()->width() > 320 ) |
516 | fixwid *= 2; | 516 | fixwid *= 2; |
517 | flat->setFixedWidth( fixwid ); | 517 | flat->setFixedWidth( fixwid ); |
518 | connect ( flat, SIGNAL ( clicked()), SLOT ( setAllFlat())); | 518 | connect ( flat, SIGNAL ( clicked()), SLOT ( setAllFlat())); |
519 | QPushButton * allopen = new QPushButton( "O",mQuickBar ); | 519 | QPushButton * allopen = new QPushButton( "O",mQuickBar ); |
520 | allopen->setFixedWidth( fixwid ); | 520 | allopen->setFixedWidth( fixwid ); |
521 | connect ( allopen, SIGNAL ( clicked()), SLOT ( setAllOpen())); | 521 | connect ( allopen, SIGNAL ( clicked()), SLOT ( setAllOpen())); |
522 | QPushButton * allclose = new QPushButton( "C",mQuickBar ); | 522 | QPushButton * allclose = new QPushButton( "C",mQuickBar ); |
523 | allclose->setFixedWidth( fixwid ); | 523 | allclose->setFixedWidth( fixwid ); |
524 | connect ( allclose, SIGNAL ( clicked()), SLOT ( setAllClose())); | 524 | connect ( allclose, SIGNAL ( clicked()), SLOT ( setAllClose())); |
525 | QPushButton * s_done = new QPushButton( "D",mQuickBar ); | 525 | QPushButton * s_done = new QPushButton( "D",mQuickBar ); |
526 | s_done->setPixmap( SmallIcon("greenhook16")); | ||
526 | s_done->setFixedWidth( fixwid ); | 527 | s_done->setFixedWidth( fixwid ); |
528 | s_done->setFixedHeight( flat->sizeHint().height() ); | ||
527 | connect ( s_done, SIGNAL ( clicked()), SLOT ( toggleCompleted())); | 529 | connect ( s_done, SIGNAL ( clicked()), SLOT ( toggleCompleted())); |
528 | QPushButton * s_run = new QPushButton( "R",mQuickBar ); | 530 | QPushButton * s_run = new QPushButton( "R",mQuickBar ); |
531 | s_run->setPixmap( SmallIcon("ko16old")); | ||
529 | s_run->setFixedWidth( fixwid ); | 532 | s_run->setFixedWidth( fixwid ); |
533 | s_run->setFixedHeight( flat->sizeHint().height() ); | ||
530 | connect ( s_run, SIGNAL ( clicked()), SLOT ( toggleRunning())); | 534 | connect ( s_run, SIGNAL ( clicked()), SLOT ( toggleRunning())); |
531 | 535 | ||
532 | mNewSubBut = new QPushButton( "sub",mQuickBar ); | 536 | mNewSubBut = new QPushButton( "sub",mQuickBar ); |
533 | mNewSubBut->setFixedWidth( fixwid*3/2 ); | 537 | mNewSubBut->setFixedWidth( fixwid*3/2 ); |
534 | connect ( mNewSubBut, SIGNAL ( clicked()), SLOT ( newSubTodo())); | 538 | connect ( mNewSubBut, SIGNAL ( clicked()), SLOT ( newSubTodo())); |
535 | mNewSubBut->setEnabled( false ); | 539 | mNewSubBut->setEnabled( false ); |
536 | quickLayout->addWidget( mNewSubBut ); | 540 | quickLayout->addWidget( mNewSubBut ); |
537 | quickLayout->addWidget( s_done ); | 541 | quickLayout->addWidget( s_done ); |
538 | quickLayout->addWidget( s_run ); | 542 | quickLayout->addWidget( s_run ); |
539 | 543 | ||
540 | quickLayout->addWidget( allopen ); | 544 | quickLayout->addWidget( allopen ); |
541 | quickLayout->addWidget( allclose ); | 545 | quickLayout->addWidget( allclose ); |
542 | quickLayout->addWidget( flat ); | 546 | quickLayout->addWidget( flat ); |
543 | 547 | ||
544 | if ( !KOPrefs::instance()->mEnableQuickTodo ) mQuickBar->hide(); | 548 | if ( !KOPrefs::instance()->mEnableQuickTodo ) mQuickBar->hide(); |
545 | 549 | ||
546 | mTodoListView = new KOTodoListView(calendar,this, name ); | 550 | mTodoListView = new KOTodoListView(calendar,this, name ); |
547 | topLayout->addWidget(mTodoListView); | 551 | topLayout->addWidget(mTodoListView); |
548 | //mTodoListView->header()->setMaximumHeight(30); | 552 | //mTodoListView->header()->setMaximumHeight(30); |
549 | mTodoListView->setRootIsDecorated(true); | 553 | mTodoListView->setRootIsDecorated(true); |
550 | mTodoListView->setAllColumnsShowFocus(true); | 554 | mTodoListView->setAllColumnsShowFocus(true); |
551 | 555 | ||
552 | mTodoListView->setShowSortIndicator(true); | 556 | mTodoListView->setShowSortIndicator(true); |
553 | 557 | ||
554 | mTodoListView->addColumn(i18n("Todo")); | 558 | mTodoListView->addColumn(i18n("Todo")); |
555 | mTodoListView->addColumn(i18n("Prio")); | 559 | mTodoListView->addColumn(i18n("Prio")); |
556 | mTodoListView->setColumnAlignment(1,AlignHCenter); | 560 | mTodoListView->setColumnAlignment(1,AlignHCenter); |
557 | mTodoListView->addColumn(i18n("Complete")); | 561 | mTodoListView->addColumn(i18n("Complete")); |
558 | mTodoListView->setColumnAlignment(2,AlignCenter); | 562 | mTodoListView->setColumnAlignment(2,AlignCenter); |
559 | 563 | ||
560 | mTodoListView->addColumn(i18n("Due Date")); | 564 | mTodoListView->addColumn(i18n("Due Date")); |
561 | mTodoListView->setColumnAlignment(3,AlignLeft); | 565 | mTodoListView->setColumnAlignment(3,AlignLeft); |
562 | mTodoListView->addColumn(i18n("Due Time")); | 566 | mTodoListView->addColumn(i18n("Due Time")); |
563 | mTodoListView->setColumnAlignment(4,AlignHCenter); | 567 | mTodoListView->setColumnAlignment(4,AlignHCenter); |
564 | 568 | ||
565 | mTodoListView->addColumn(i18n("Start Date")); | 569 | mTodoListView->addColumn(i18n("Start Date")); |
566 | mTodoListView->setColumnAlignment(5,AlignLeft); | 570 | mTodoListView->setColumnAlignment(5,AlignLeft); |
567 | mTodoListView->addColumn(i18n("Start Time")); | 571 | mTodoListView->addColumn(i18n("Start Time")); |
568 | mTodoListView->setColumnAlignment(6,AlignHCenter); | 572 | mTodoListView->setColumnAlignment(6,AlignHCenter); |
569 | 573 | ||
570 | mTodoListView->addColumn(i18n("Cancelled")); | 574 | mTodoListView->addColumn(i18n("Cancelled")); |
571 | mTodoListView->addColumn(i18n("Categories")); | 575 | mTodoListView->addColumn(i18n("Categories")); |
572 | mTodoListView->addColumn(i18n("Calendar")); | 576 | mTodoListView->addColumn(i18n("Calendar")); |
573 | #if 0 | 577 | #if 0 |
574 | mTodoListView->addColumn(i18n("Sort Id")); | 578 | mTodoListView->addColumn(i18n("Sort Id")); |
575 | mTodoListView->setColumnAlignment(4,AlignHCenter); | 579 | mTodoListView->setColumnAlignment(4,AlignHCenter); |
576 | #endif | 580 | #endif |
577 | 581 | ||
578 | mTodoListView->setMinimumHeight( 60 ); | 582 | mTodoListView->setMinimumHeight( 60 ); |
579 | mTodoListView->setItemsRenameable( true ); | 583 | mTodoListView->setItemsRenameable( true ); |
580 | mTodoListView->setRenameable( 0 ); | 584 | mTodoListView->setRenameable( 0 ); |
581 | mTodoListView->setColumnWidth( 0, 120 ); | 585 | mTodoListView->setColumnWidth( 0, 120 ); |
582 | int iii = 0; | 586 | int iii = 0; |
583 | for ( iii = 0; iii< 10 ; ++iii ) | 587 | for ( iii = 0; iii< 10 ; ++iii ) |
584 | mTodoListView->setColumnWidthMode( iii, QListView::Manual ); | 588 | mTodoListView->setColumnWidthMode( iii, QListView::Manual ); |
585 | 589 | ||
586 | 590 | ||
587 | mKOTodoViewWhatsThis = new KOTodoViewWhatsThis(mTodoListView->viewport(),this); | 591 | mKOTodoViewWhatsThis = new KOTodoViewWhatsThis(mTodoListView->viewport(),this); |
588 | 592 | ||
589 | mPriorityPopupMenu = new QPopupMenu(this); | 593 | mPriorityPopupMenu = new QPopupMenu(this); |
590 | for (int i = 1; i <= 5; i++) { | 594 | for (int i = 1; i <= 5; i++) { |
591 | QString label = QString ("%1").arg (i); | 595 | QString label = QString ("%1").arg (i); |
592 | mPriority[mPriorityPopupMenu->insertItem (label)] = i; | 596 | mPriority[mPriorityPopupMenu->insertItem (label)] = i; |
593 | } | 597 | } |
594 | connect (mPriorityPopupMenu, SIGNAL(activated (int)), SLOT (setNewPriority(int))); | 598 | connect (mPriorityPopupMenu, SIGNAL(activated (int)), SLOT (setNewPriority(int))); |
595 | 599 | ||
596 | mPercentageCompletedPopupMenu = new QPopupMenu(this); | 600 | mPercentageCompletedPopupMenu = new QPopupMenu(this); |
597 | for (int i = 0; i <= 100; i+=20) { | 601 | for (int i = 0; i <= 100; i+=20) { |
598 | QString label = QString ("%1 %").arg (i); | 602 | QString label = QString ("%1 %").arg (i); |
599 | mPercentage[mPercentageCompletedPopupMenu->insertItem (label)] = i; | 603 | mPercentage[mPercentageCompletedPopupMenu->insertItem (label)] = i; |
600 | } | 604 | } |
601 | connect (mPercentageCompletedPopupMenu, SIGNAL (activated (int)), SLOT (setNewPercentage (int))); | 605 | connect (mPercentageCompletedPopupMenu, SIGNAL (activated (int)), SLOT (setNewPercentage (int))); |
602 | 606 | ||
603 | 607 | ||
604 | mCategoryPopupMenu = new QPopupMenu (this); | 608 | mCategoryPopupMenu = new QPopupMenu (this); |
605 | mCategoryPopupMenu->setCheckable (true); | 609 | mCategoryPopupMenu->setCheckable (true); |
606 | connect (mCategoryPopupMenu, SIGNAL (activated (int)), SLOT (changedCategories (int))); | 610 | connect (mCategoryPopupMenu, SIGNAL (activated (int)), SLOT (changedCategories (int))); |
607 | connect (mCategoryPopupMenu, SIGNAL (aboutToShow ()), SLOT (fillCategories ())); | 611 | connect (mCategoryPopupMenu, SIGNAL (aboutToShow ()), SLOT (fillCategories ())); |
608 | 612 | ||
609 | mCalPopupMenu = new QPopupMenu (this); | 613 | mCalPopupMenu = new QPopupMenu (this); |
610 | mCalPopupMenu->setCheckable (true); | 614 | mCalPopupMenu->setCheckable (true); |
611 | connect (mCalPopupMenu, SIGNAL (activated (int)), SLOT (changedCal (int))); | 615 | connect (mCalPopupMenu, SIGNAL (activated (int)), SLOT (changedCal (int))); |
612 | connect (mCalPopupMenu, SIGNAL (aboutToShow ()), SLOT (fillCal ())); | 616 | connect (mCalPopupMenu, SIGNAL (aboutToShow ()), SLOT (fillCal ())); |
613 | 617 | ||
614 | 618 | ||
615 | 619 | ||
616 | 620 | ||
617 | mItemPopupMenu = new QPopupMenu(this); | 621 | mItemPopupMenu = new QPopupMenu(this); |
618 | mItemPopupMenu->insertItem(i18n("Show"), this, | 622 | mItemPopupMenu->insertItem(i18n("Show"), this, |
619 | SLOT (showTodo())); | 623 | SLOT (showTodo())); |
620 | mItemPopupMenu->insertItem(i18n("Edit..."), this, | 624 | mItemPopupMenu->insertItem(i18n("Edit..."), this, |
621 | SLOT (editTodo())); | 625 | SLOT (editTodo())); |
622 | mItemPopupMenu->insertItem( i18n("Delete..."), this, | 626 | mItemPopupMenu->insertItem( i18n("Delete..."), this, |
623 | SLOT (deleteTodo())); | 627 | SLOT (deleteTodo())); |
624 | mItemPopupMenu->insertItem( i18n("Clone..."), this, | 628 | mItemPopupMenu->insertItem( i18n("Clone..."), this, |
625 | SLOT (cloneTodo())); | 629 | SLOT (cloneTodo())); |
@@ -1025,193 +1029,193 @@ KOTodoView::insertTodoItem(Todo *todo) | |||
1025 | return mTodoMap.insert(todo,todoItem); | 1029 | return mTodoMap.insert(todo,todoItem); |
1026 | } | 1030 | } |
1027 | } | 1031 | } |
1028 | 1032 | ||
1029 | 1033 | ||
1030 | void KOTodoView::updateConfig() | 1034 | void KOTodoView::updateConfig() |
1031 | { | 1035 | { |
1032 | updateView(); | 1036 | updateView(); |
1033 | mTodoListView->repaintContents(); | 1037 | mTodoListView->repaintContents(); |
1034 | } | 1038 | } |
1035 | 1039 | ||
1036 | QPtrList<Incidence> KOTodoView::selectedIncidences() | 1040 | QPtrList<Incidence> KOTodoView::selectedIncidences() |
1037 | { | 1041 | { |
1038 | QPtrList<Incidence> selected; | 1042 | QPtrList<Incidence> selected; |
1039 | 1043 | ||
1040 | KOTodoViewItem *item = (KOTodoViewItem *)(mTodoListView->selectedItem()); | 1044 | KOTodoViewItem *item = (KOTodoViewItem *)(mTodoListView->selectedItem()); |
1041 | // if (!item) item = mActiveItem; | 1045 | // if (!item) item = mActiveItem; |
1042 | if (item) selected.append(item->todo()); | 1046 | if (item) selected.append(item->todo()); |
1043 | 1047 | ||
1044 | return selected; | 1048 | return selected; |
1045 | } | 1049 | } |
1046 | 1050 | ||
1047 | QPtrList<Todo> KOTodoView::selectedTodos() | 1051 | QPtrList<Todo> KOTodoView::selectedTodos() |
1048 | { | 1052 | { |
1049 | QPtrList<Todo> selected; | 1053 | QPtrList<Todo> selected; |
1050 | 1054 | ||
1051 | KOTodoViewItem *item = (KOTodoViewItem *)(mTodoListView->selectedItem()); | 1055 | KOTodoViewItem *item = (KOTodoViewItem *)(mTodoListView->selectedItem()); |
1052 | // if (!item) item = mActiveItem; | 1056 | // if (!item) item = mActiveItem; |
1053 | if (item) selected.append(item->todo()); | 1057 | if (item) selected.append(item->todo()); |
1054 | 1058 | ||
1055 | return selected; | 1059 | return selected; |
1056 | } | 1060 | } |
1057 | 1061 | ||
1058 | void KOTodoView::changeEventDisplay(Event *, int) | 1062 | void KOTodoView::changeEventDisplay(Event *, int) |
1059 | { | 1063 | { |
1060 | updateView(); | 1064 | updateView(); |
1061 | } | 1065 | } |
1062 | 1066 | ||
1063 | void KOTodoView::showDates(const QDate &, const QDate &) | 1067 | void KOTodoView::showDates(const QDate &, const QDate &) |
1064 | { | 1068 | { |
1065 | } | 1069 | } |
1066 | 1070 | ||
1067 | void KOTodoView::showEvents(QPtrList<Event>) | 1071 | void KOTodoView::showEvents(QPtrList<Event>) |
1068 | { | 1072 | { |
1069 | kdDebug() << "KOTodoView::selectEvents(): not yet implemented" << endl; | 1073 | kdDebug() << "KOTodoView::selectEvents(): not yet implemented" << endl; |
1070 | } | 1074 | } |
1071 | 1075 | ||
1072 | void KOTodoView::printPreview(CalPrinter *calPrinter, const QDate &fd, | 1076 | void KOTodoView::printPreview(CalPrinter *calPrinter, const QDate &fd, |
1073 | const QDate &td) | 1077 | const QDate &td) |
1074 | { | 1078 | { |
1075 | #ifndef KORG_NOPRINTER | 1079 | #ifndef KORG_NOPRINTER |
1076 | calPrinter->preview(CalPrinter::Todolist, fd, td); | 1080 | calPrinter->preview(CalPrinter::Todolist, fd, td); |
1077 | #endif | 1081 | #endif |
1078 | } | 1082 | } |
1079 | 1083 | ||
1080 | void KOTodoView::editItem(QListViewItem *item ) | 1084 | void KOTodoView::editItem(QListViewItem *item ) |
1081 | { | 1085 | { |
1082 | emit editTodoSignal(((KOTodoViewItem *)item)->todo()); | 1086 | emit editTodoSignal(((KOTodoViewItem *)item)->todo()); |
1083 | } | 1087 | } |
1084 | 1088 | ||
1085 | void KOTodoView::showItem(QListViewItem *item,const QPoint &,int) | 1089 | void KOTodoView::showItem(QListViewItem *item,const QPoint &,int) |
1086 | { | 1090 | { |
1087 | emit showTodoSignal(((KOTodoViewItem *)item)->todo()); | 1091 | emit showTodoSignal(((KOTodoViewItem *)item)->todo()); |
1088 | } | 1092 | } |
1089 | 1093 | ||
1090 | void KOTodoView::popupMenu(QListViewItem *item,const QPoint &p,int column) | 1094 | void KOTodoView::popupMenu(QListViewItem *item,const QPoint &p,int column) |
1091 | { | 1095 | { |
1092 | pendingSubtodo = 0; | 1096 | pendingSubtodo = 0; |
1093 | mActiveItem = (KOTodoViewItem *)item; | 1097 | mActiveItem = (KOTodoViewItem *)item; |
1094 | if (item) { | 1098 | if (item) { |
1095 | switch (column){ | 1099 | switch (column){ |
1096 | case 1: | 1100 | case 1: |
1097 | mPriorityPopupMenu->popup(QCursor::pos ()); break; | 1101 | mPriorityPopupMenu->popup(QCursor::pos ()); break; |
1098 | case 2: | 1102 | case 2: |
1099 | mPercentageCompletedPopupMenu->popup(QCursor::pos ()); break; | 1103 | mPercentageCompletedPopupMenu->popup(QCursor::pos ()); break; |
1100 | case 3: | 1104 | case 3: |
1101 | moveTodo(); | 1105 | moveTodo(); |
1102 | break; | 1106 | break; |
1103 | case 8: | 1107 | case 8: |
1104 | mCategoryPopupMenu->popup(QCursor::pos ()); break; | 1108 | mCategoryPopupMenu->popup(QCursor::pos ()); break; |
1105 | case 9: | 1109 | case 9: |
1106 | mCalPopupMenu->popup(QCursor::pos ()); break; | 1110 | mCalPopupMenu->popup(QCursor::pos ()); break; |
1107 | default: | 1111 | default: |
1108 | mItemPopupMenu->popup(QCursor::pos()); | 1112 | mItemPopupMenu->popup(QCursor::pos()); |
1109 | } | 1113 | } |
1110 | } else mPopupMenu->popup(QCursor::pos()); | 1114 | } else mPopupMenu->popup(QCursor::pos()); |
1111 | } | 1115 | } |
1112 | void KOTodoView::newTodo() | 1116 | void KOTodoView::newTodo() |
1113 | { | 1117 | { |
1114 | emit newTodoSignal(); | 1118 | emit newTodoSignal(); |
1115 | } | 1119 | } |
1116 | 1120 | ||
1117 | void KOTodoView::newSubTodo() | 1121 | void KOTodoView::newSubTodo() |
1118 | { | 1122 | { |
1119 | mActiveItem = (KOTodoViewItem*)mTodoListView->currentItem(); | 1123 | mActiveItem = (KOTodoViewItem*)mTodoListView->currentItem(); |
1120 | if (mActiveItem) { | 1124 | if (mActiveItem) { |
1121 | if ( mQuickAdd->isVisible() && !mQuickAdd->text().isEmpty() && mQuickAdd->text() != i18n("Click to add a new Todo") ) { | 1125 | if ( mQuickAdd->isVisible() && !mQuickAdd->text().isEmpty() && mQuickAdd->text() != i18n("Click to add new Todo") ) { |
1122 | addQuickTodoPar( mActiveItem->todo()); | 1126 | addQuickTodoPar( mActiveItem->todo()); |
1123 | } else | 1127 | } else |
1124 | emit newSubTodoSignal(mActiveItem->todo()); | 1128 | emit newSubTodoSignal(mActiveItem->todo()); |
1125 | } | 1129 | } |
1126 | } | 1130 | } |
1127 | void KOTodoView::unparentTodo() | 1131 | void KOTodoView::unparentTodo() |
1128 | { | 1132 | { |
1129 | if (mActiveItem) { | 1133 | if (mActiveItem) { |
1130 | emit unparentTodoSignal(mActiveItem->todo()); | 1134 | emit unparentTodoSignal(mActiveItem->todo()); |
1131 | } | 1135 | } |
1132 | } | 1136 | } |
1133 | 1137 | ||
1134 | void KOTodoView::reparentTodo() | 1138 | void KOTodoView::reparentTodo() |
1135 | { | 1139 | { |
1136 | if (mActiveItem) { | 1140 | if (mActiveItem) { |
1137 | topLevelWidget()->setCaption(i18n("Click on new parent item")); | 1141 | topLevelWidget()->setCaption(i18n("Click on new parent item")); |
1138 | pendingSubtodo = mActiveItem; | 1142 | pendingSubtodo = mActiveItem; |
1139 | } | 1143 | } |
1140 | } | 1144 | } |
1141 | void KOTodoView::editTodo() | 1145 | void KOTodoView::editTodo() |
1142 | { | 1146 | { |
1143 | if (mActiveItem) { | 1147 | if (mActiveItem) { |
1144 | emit editTodoSignal(mActiveItem->todo()); | 1148 | emit editTodoSignal(mActiveItem->todo()); |
1145 | } | 1149 | } |
1146 | } | 1150 | } |
1147 | void KOTodoView::cloneTodo() | 1151 | void KOTodoView::cloneTodo() |
1148 | { | 1152 | { |
1149 | if (mActiveItem) { | 1153 | if (mActiveItem) { |
1150 | emit cloneTodoSignal((Incidence*)mActiveItem->todo()); | 1154 | emit cloneTodoSignal((Incidence*)mActiveItem->todo()); |
1151 | } | 1155 | } |
1152 | } | 1156 | } |
1153 | void KOTodoView::cancelTodo() | 1157 | void KOTodoView::cancelTodo() |
1154 | { | 1158 | { |
1155 | if (mActiveItem) { | 1159 | if (mActiveItem) { |
1156 | emit cancelTodoSignal((Incidence*)mActiveItem->todo()); | 1160 | emit cancelTodoSignal((Incidence*)mActiveItem->todo()); |
1157 | } | 1161 | } |
1158 | } | 1162 | } |
1159 | void KOTodoView::moveTodo() | 1163 | void KOTodoView::moveTodo() |
1160 | { | 1164 | { |
1161 | if (mActiveItem) { | 1165 | if (mActiveItem) { |
1162 | emit moveTodoSignal((Incidence*)mActiveItem->todo()); | 1166 | emit moveTodoSignal((Incidence*)mActiveItem->todo()); |
1163 | } | 1167 | } |
1164 | } | 1168 | } |
1165 | void KOTodoView::beamTodo() | 1169 | void KOTodoView::beamTodo() |
1166 | { | 1170 | { |
1167 | if (mActiveItem) { | 1171 | if (mActiveItem) { |
1168 | emit beamTodoSignal((Incidence*)mActiveItem->todo()); | 1172 | emit beamTodoSignal((Incidence*)mActiveItem->todo()); |
1169 | } | 1173 | } |
1170 | } | 1174 | } |
1171 | 1175 | ||
1172 | 1176 | ||
1173 | void KOTodoView::showTodo() | 1177 | void KOTodoView::showTodo() |
1174 | { | 1178 | { |
1175 | if (mActiveItem) { | 1179 | if (mActiveItem) { |
1176 | emit showTodoSignal(mActiveItem->todo()); | 1180 | emit showTodoSignal(mActiveItem->todo()); |
1177 | } | 1181 | } |
1178 | } | 1182 | } |
1179 | 1183 | ||
1180 | void KOTodoView::deleteTodo() | 1184 | void KOTodoView::deleteTodo() |
1181 | { | 1185 | { |
1182 | if (mActiveItem) { | 1186 | if (mActiveItem) { |
1183 | emit deleteTodoSignal(mActiveItem->todo()); | 1187 | emit deleteTodoSignal(mActiveItem->todo()); |
1184 | } | 1188 | } |
1185 | } | 1189 | } |
1186 | 1190 | ||
1187 | void KOTodoView::setNewPriority(int index) | 1191 | void KOTodoView::setNewPriority(int index) |
1188 | { | 1192 | { |
1189 | if (mActiveItem && !mActiveItem->todo()->isReadOnly ()) { | 1193 | if (mActiveItem && !mActiveItem->todo()->isReadOnly ()) { |
1190 | mActiveItem->todo()->setPriority(mPriority[index]); | 1194 | mActiveItem->todo()->setPriority(mPriority[index]); |
1191 | mActiveItem->construct(); | 1195 | mActiveItem->construct(); |
1192 | todoModified (mActiveItem->todo(), KOGlobals::PRIORITY_MODIFIED); | 1196 | todoModified (mActiveItem->todo(), KOGlobals::PRIORITY_MODIFIED); |
1193 | mActiveItem->todo()->setRevision( mActiveItem->todo()->revision()+1 ); | 1197 | mActiveItem->todo()->setRevision( mActiveItem->todo()->revision()+1 ); |
1194 | } | 1198 | } |
1195 | processSelectionChange(); | 1199 | processSelectionChange(); |
1196 | } | 1200 | } |
1197 | 1201 | ||
1198 | void KOTodoView::setNewPercentage(int index) | 1202 | void KOTodoView::setNewPercentage(int index) |
1199 | { | 1203 | { |
1200 | if (mActiveItem && !mActiveItem->todo()->isReadOnly ()) { | 1204 | if (mActiveItem && !mActiveItem->todo()->isReadOnly ()) { |
1201 | 1205 | ||
1202 | if ( mPercentage[index] == 100 && !mActiveItem->isOn() ) { | 1206 | if ( mPercentage[index] == 100 && !mActiveItem->isOn() ) { |
1203 | mActiveItem->setOn( true ); | 1207 | mActiveItem->setOn( true ); |
1204 | processSelectionChange(); | 1208 | processSelectionChange(); |
1205 | return; | 1209 | return; |
1206 | } else if ( mPercentage[index] != 100 && mActiveItem->isOn() ) { | 1210 | } else if ( mPercentage[index] != 100 && mActiveItem->isOn() ) { |
1207 | KOTodoViewItem* par = (static_cast<KOTodoViewItem*>(mActiveItem->parent())); | 1211 | KOTodoViewItem* par = (static_cast<KOTodoViewItem*>(mActiveItem->parent())); |
1208 | if ( par && par->isOn() ) | 1212 | if ( par && par->isOn() ) |
1209 | par->setOn( false ); | 1213 | par->setOn( false ); |
1210 | } | 1214 | } |
1211 | if (mPercentage[index] == 100) { | 1215 | if (mPercentage[index] == 100) { |
1212 | mActiveItem->todo()->setCompleted(QDateTime::currentDateTime()); | 1216 | mActiveItem->todo()->setCompleted(QDateTime::currentDateTime()); |
1213 | } else { | 1217 | } else { |
1214 | mActiveItem->todo()->setCompleted(false); | 1218 | mActiveItem->todo()->setCompleted(false); |
1215 | } | 1219 | } |
1216 | mActiveItem->todo()->setPercentComplete(mPercentage[index]); | 1220 | mActiveItem->todo()->setPercentComplete(mPercentage[index]); |
1217 | mActiveItem->construct(); | 1221 | mActiveItem->construct(); |