author | zautrix <zautrix> | 2005-06-29 16:14:46 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-29 16:14:46 (UTC) |
commit | 77aa480c9891a90c9b492618ebfd2b20f2d0727a (patch) (unidiff) | |
tree | 4f2c278d016fe21f280f8ee6abbca34685aada96 | |
parent | e0fa858c284dddf0d47146e666c4ece7158487be (diff) | |
download | kdepimpi-77aa480c9891a90c9b492618ebfd2b20f2d0727a.zip kdepimpi-77aa480c9891a90c9b492618ebfd2b20f2d0727a.tar.gz kdepimpi-77aa480c9891a90c9b492618ebfd2b20f2d0727a.tar.bz2 |
many sync fixes
-rw-r--r-- | bin/kdepim/WhatsNew.txt | 5 | ||||
-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 4 | ||||
-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 2 | ||||
-rw-r--r-- | kaddressbook/addresseeeditorwidget.cpp | 6 | ||||
-rw-r--r-- | kaddressbook/kabcore.cpp | 5 | ||||
-rw-r--r-- | kaddressbook/kabcore.h | 1 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 23 | ||||
-rw-r--r-- | korganizer/mainwindow.h | 1 | ||||
-rw-r--r-- | libkdepim/externalapphandler.cpp | 12 | ||||
-rw-r--r-- | libkdepim/externalapphandler.h | 1 | ||||
-rw-r--r-- | libkdepim/ksyncmanager.cpp | 18 |
11 files changed, 55 insertions, 23 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 54376a0..10778ac 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,178 +1,183 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 2.1.11 ************ | 3 | ********** VERSION 2.1.11 ************ |
4 | 4 | ||
5 | KO/Pi: | 5 | KO/Pi: |
6 | Because we can have many calendars now in KO/Pi we can have more than one journal entry per day. | 6 | Because we can have many calendars now in KO/Pi we can have more than one journal entry per day. |
7 | Added features to handle (and add ) more than one journal entry per day. | 7 | Added features to handle (and add ) more than one journal entry per day. |
8 | Added option for a journal title. | 8 | Added option for a journal title. |
9 | 9 | ||
10 | Added info about the calendar, the item belongs to, to the event/todo/journal viewer. | 10 | Added info about the calendar, the item belongs to, to the event/todo/journal viewer. |
11 | 11 | ||
12 | |||
13 | Fixed some problems when calling KO/Pi or KA/Pi from the alarm applet. | ||
14 | |||
15 | Added KA/Pi multi sync to the multi sync called from the alarm applet. | ||
16 | |||
12 | ********** VERSION 2.1.10 ************ | 17 | ********** VERSION 2.1.10 ************ |
13 | 18 | ||
14 | KO/Pi: | 19 | KO/Pi: |
15 | Importing Birthdays will now create another file resource "Birthdays" and import the birthday data from KA/Pi into that file. | 20 | Importing Birthdays will now create another file resource "Birthdays" and import the birthday data from KA/Pi into that file. |
16 | When a multidayevent is selected in monthview all occurences of this event in the monthview are now hightlighted. | 21 | When a multidayevent is selected in monthview all occurences of this event in the monthview are now hightlighted. |
17 | Fixed a bug in searching for a small timerange, i.e. one day. | 22 | Fixed a bug in searching for a small timerange, i.e. one day. |
18 | 23 | ||
19 | KA/Pi: | 24 | KA/Pi: |
20 | Fixed two problems in csv export. | 25 | Fixed two problems in csv export. |
21 | Fixed problems when calling the contact selection dialog from KO/Pi or OM/Pi. | 26 | Fixed problems when calling the contact selection dialog from KO/Pi or OM/Pi. |
22 | 27 | ||
23 | ********** VERSION 2.1.9 ************ | 28 | ********** VERSION 2.1.9 ************ |
24 | 29 | ||
25 | KO/Pi: | 30 | KO/Pi: |
26 | Fixed some problems of the new search options in the search dialog. | 31 | Fixed some problems of the new search options in the search dialog. |
27 | Fixed some problems in the new resource config options. | 32 | Fixed some problems in the new resource config options. |
28 | Changed the recurrence edit of events and todos such that the recurrence edit page now is notified about a change of the start date on the first page. | 33 | Changed the recurrence edit of events and todos such that the recurrence edit page now is notified about a change of the start date on the first page. |
29 | Fixed a problem creating new events in the agenda view if at the day/time is already an agenda item shown: | 34 | Fixed a problem creating new events in the agenda view if at the day/time is already an agenda item shown: |
30 | Now you can click on the bottom/top of an allday agenda item or on the left/right side of an agenda item to get the "new todo/new event" popup. | 35 | Now you can click on the bottom/top of an allday agenda item or on the left/right side of an agenda item to get the "new todo/new event" popup. |
31 | 36 | ||
32 | Fixed a problem in recurrence range in syncing with DTM. | 37 | Fixed a problem in recurrence range in syncing with DTM. |
33 | 38 | ||
34 | KA/Pi: | 39 | KA/Pi: |
35 | Made it posiible to show in the contact overview the details of all data available for that contact( e.g. office, spouse, children, nickname ...) | 40 | Made it posiible to show in the contact overview the details of all data available for that contact( e.g. office, spouse, children, nickname ...) |
36 | 41 | ||
37 | PwM/Pi: | 42 | PwM/Pi: |
38 | Added "sec" to the timeout config settings to make it clear the timeout values are seconds. | 43 | Added "sec" to the timeout config settings to make it clear the timeout values are seconds. |
39 | 44 | ||
40 | ********** VERSION 2.1.8 ************ | 45 | ********** VERSION 2.1.8 ************ |
41 | 46 | ||
42 | KO/Pi: | 47 | KO/Pi: |
43 | Added info about the completion state of a todo in the ListView/Searchdialog. | 48 | Added info about the completion state of a todo in the ListView/Searchdialog. |
44 | If in TodoView is selected "do not show compledted todos" then completed todos are not shown in the ListView as well. | 49 | If in TodoView is selected "do not show compledted todos" then completed todos are not shown in the ListView as well. |
45 | Fixed some updating problems when changing the filter. | 50 | Fixed some updating problems when changing the filter. |
46 | 51 | ||
47 | KA/Pi: | 52 | KA/Pi: |
48 | In the addressee selection dialog now the formatted name is shown, if not empty. | 53 | In the addressee selection dialog now the formatted name is shown, if not empty. |
49 | Added a column "category" to the addressee selection dialog to make it possible to sort addressees after category. | 54 | Added a column "category" to the addressee selection dialog to make it possible to sort addressees after category. |
50 | Now in the addressee selection dialog a selected contact is remove with a single click from the selected list. | 55 | Now in the addressee selection dialog a selected contact is remove with a single click from the selected list. |
51 | 56 | ||
52 | Fixed in the file selector on the Zaurus the problem that symbolic links to files/dirs were ignored. | 57 | Fixed in the file selector on the Zaurus the problem that symbolic links to files/dirs were ignored. |
53 | Fixed the sorting for size in the file selector on the Z. | 58 | Fixed the sorting for size in the file selector on the Z. |
54 | 59 | ||
55 | Changed the color selection dialog on the Zaurus to a more user friendly version. | 60 | Changed the color selection dialog on the Zaurus to a more user friendly version. |
56 | 61 | ||
57 | ********** VERSION 2.1.7 ************ | 62 | ********** VERSION 2.1.7 ************ |
58 | 63 | ||
59 | KO/Pi: | 64 | KO/Pi: |
60 | Fixed several problems in the new Resource handling. | 65 | Fixed several problems in the new Resource handling. |
61 | Added more options to the search dialog. | 66 | Added more options to the search dialog. |
62 | Fixed a problem in the Month view. | 67 | Fixed a problem in the Month view. |
63 | Added more options to the dialog when setting a todo to stopped. | 68 | Added more options to the dialog when setting a todo to stopped. |
64 | 69 | ||
65 | Fixed two small problems in KO/Pi Alarm applet. | 70 | Fixed two small problems in KO/Pi Alarm applet. |
66 | 71 | ||
67 | ********** VERSION 2.1.6 ************ | 72 | ********** VERSION 2.1.6 ************ |
68 | 73 | ||
69 | This release is for testing only. | 74 | This release is for testing only. |
70 | 75 | ||
71 | KO/Pi: | 76 | KO/Pi: |
72 | Added to the list view (the list view is used in search dialog as well) the possibility to print it. | 77 | Added to the list view (the list view is used in search dialog as well) the possibility to print it. |
73 | Added to the list view the possibility to hide entries, if you do not want to print all entries of the list view. | 78 | Added to the list view the possibility to hide entries, if you do not want to print all entries of the list view. |
74 | Added to the list view the possibility to add all subtodos of selected todos to an export/beam. | 79 | Added to the list view the possibility to add all subtodos of selected todos to an export/beam. |
75 | Added to the search dialog the possibility to make an additive search such that you can get a better list for export/printout. | 80 | Added to the search dialog the possibility to make an additive search such that you can get a better list for export/printout. |
76 | Added to the search dialog the possibility to hide the checkboxes such that there is more space for the list view on the Zaurus. | 81 | Added to the search dialog the possibility to hide the checkboxes such that there is more space for the list view on the Zaurus. |
77 | Fixed a problem in the AlarmTimer Applet: Now utf8 messages are displayed properly. | 82 | Fixed a problem in the AlarmTimer Applet: Now utf8 messages are displayed properly. |
78 | 83 | ||
79 | Added support for multiple calendar files in KO/Pi. Only local ical (*.ics) files are supported as calendars. | 84 | Added support for multiple calendar files in KO/Pi. Only local ical (*.ics) files are supported as calendars. |
80 | In the sync profile config it is still missing to specify a particular calendar to sync with this profile. That setting will be added later. | 85 | In the sync profile config it is still missing to specify a particular calendar to sync with this profile. That setting will be added later. |
81 | Now on every sync the set of calendars is synced which are enabled in the resource view. | 86 | Now on every sync the set of calendars is synced which are enabled in the resource view. |
82 | 87 | ||
83 | A calendar is enabled in the resource view if the "eye" column is checked. | 88 | A calendar is enabled in the resource view if the "eye" column is checked. |
84 | You can set a calendar to be the default for new items( "+" column ). | 89 | You can set a calendar to be the default for new items( "+" column ). |
85 | You can tell KO/Pi to ignore all alarm of a calendar ( "bell" column ) and you can set it readonly. | 90 | You can tell KO/Pi to ignore all alarm of a calendar ( "bell" column ) and you can set it readonly. |
86 | To find out how to add a new calendar and how to remove a calendar is left as an exercise to the reader ... | 91 | To find out how to add a new calendar and how to remove a calendar is left as an exercise to the reader ... |
87 | 92 | ||
88 | 93 | ||
89 | ********** VERSION 2.1.5 ************ | 94 | ********** VERSION 2.1.5 ************ |
90 | 95 | ||
91 | This is the new stable version. | 96 | This is the new stable version. |
92 | Bugfix: | 97 | Bugfix: |
93 | Fixed a problem with agenda popup on the desktop in KO/Pi. | 98 | Fixed a problem with agenda popup on the desktop in KO/Pi. |
94 | Fixed a crash when reloading file, e.g. after a passive pi-sync synchronization. | 99 | Fixed a crash when reloading file, e.g. after a passive pi-sync synchronization. |
95 | Added config option to not display completed todos in agenda view. | 100 | Added config option to not display completed todos in agenda view. |
96 | Addressee view is now using the formatted name, if defined. | 101 | Addressee view is now using the formatted name, if defined. |
97 | That makes it possible to display "lastname, firstname" in that view now. | 102 | That makes it possible to display "lastname, firstname" in that view now. |
98 | To set the formatted name for all contacts, please use menu: | 103 | To set the formatted name for all contacts, please use menu: |
99 | Edit->Change->Set formatted name. | 104 | Edit->Change->Set formatted name. |
100 | Fixed the bug in KA/Pi that is was not possible to add images to a contact on Windows. | 105 | Fixed the bug in KA/Pi that is was not possible to add images to a contact on Windows. |
101 | 106 | ||
102 | ********** VERSION 2.1.4 ************ | 107 | ********** VERSION 2.1.4 ************ |
103 | 108 | ||
104 | Fixed two more bugs in the KA/Pi CSV import dialog: | 109 | Fixed two more bugs in the KA/Pi CSV import dialog: |
105 | Made it possible to read multi-line fields and import it to the "Note" field. | 110 | Made it possible to read multi-line fields and import it to the "Note" field. |
106 | Fixed a problem in mapping custom fields, whatever a custem field is... | 111 | Fixed a problem in mapping custom fields, whatever a custem field is... |
107 | 112 | ||
108 | ********** VERSION 2.1.3 ************ | 113 | ********** VERSION 2.1.3 ************ |
109 | 114 | ||
110 | Changed the menu structure of the alarm applet: | 115 | Changed the menu structure of the alarm applet: |
111 | Moved "Simulate" to " Play Beeps" submenu and re-added "Todo List". | 116 | Moved "Simulate" to " Play Beeps" submenu and re-added "Todo List". |
112 | 117 | ||
113 | Fixed several problems in the KA/Pi CSV import dialog: | 118 | Fixed several problems in the KA/Pi CSV import dialog: |
114 | Added "Category", made codec configureable and made it possible to map many fields to the "Note" field. | 119 | Added "Category", made codec configureable and made it possible to map many fields to the "Note" field. |
115 | 120 | ||
116 | 121 | ||
117 | ********** VERSION 2.1.2 ************ | 122 | ********** VERSION 2.1.2 ************ |
118 | 123 | ||
119 | Fixed a problem closing the alarm dialog on Zaurus with "OK" button. | 124 | Fixed a problem closing the alarm dialog on Zaurus with "OK" button. |
120 | 125 | ||
121 | Fixed a problem when importing data from Outlook with mutiple categories set. | 126 | Fixed a problem when importing data from Outlook with mutiple categories set. |
122 | 127 | ||
123 | Changed display of days in datenavigator: | 128 | Changed display of days in datenavigator: |
124 | Birthdays are now blue, not dark green. | 129 | Birthdays are now blue, not dark green. |
125 | When todo view is shown, no birtdays are shown and days with due todos are shown blue. | 130 | When todo view is shown, no birtdays are shown and days with due todos are shown blue. |
126 | When journal view is shown, only holidays are shown and days with journals are blue. | 131 | When journal view is shown, only holidays are shown and days with journals are blue. |
127 | 132 | ||
128 | Added Backup options to global config: | 133 | Added Backup options to global config: |
129 | You can create now x-daily backups for KO/Pi, KA/Pi (for file resources only, file resource is the standard type) and PwM/Pi ( all files you will open ). | 134 | You can create now x-daily backups for KO/Pi, KA/Pi (for file resources only, file resource is the standard type) and PwM/Pi ( all files you will open ). |
130 | It is recommended to use another HDD/Memory card for the backup directory. If (very useful on the Zaurus) the specified backup directory does not exist you are asked if you want to try again to create a backup. That makes it possible to insert your memory card in the Zaurus and then trying again. | 135 | It is recommended to use another HDD/Memory card for the backup directory. If (very useful on the Zaurus) the specified backup directory does not exist you are asked if you want to try again to create a backup. That makes it possible to insert your memory card in the Zaurus and then trying again. |
131 | The backup is created when the application wants to save for the first time on a backup-day. You can specify the amount of backups and the day interval of backups. | 136 | The backup is created when the application wants to save for the first time on a backup-day. You can specify the amount of backups and the day interval of backups. |
132 | 137 | ||
133 | ********** VERSION 2.1.1 ************ | 138 | ********** VERSION 2.1.1 ************ |
134 | 139 | ||
135 | Stable release 2.1.1! | 140 | Stable release 2.1.1! |
136 | 141 | ||
137 | KO/Pi: | 142 | KO/Pi: |
138 | Fixed one problem in the layout of the edit dialogs on the Zaurus with 640x480 display. | 143 | Fixed one problem in the layout of the edit dialogs on the Zaurus with 640x480 display. |
139 | 144 | ||
140 | ********** VERSION 2.1.0 ************ | 145 | ********** VERSION 2.1.0 ************ |
141 | 146 | ||
142 | Stable release 2.1.0! | 147 | Stable release 2.1.0! |
143 | 148 | ||
144 | Summary of changes/fixes compared to version 2.0.6: | 149 | Summary of changes/fixes compared to version 2.0.6: |
145 | 150 | ||
146 | Many bugs of version 2.0.6 fixed. | 151 | Many bugs of version 2.0.6 fixed. |
147 | Most of them were small bugs, but some of them were important. | 152 | Most of them were small bugs, but some of them were important. |
148 | It is recommended to use version 2.1.0 and not version 2.0.6. | 153 | It is recommended to use version 2.1.0 and not version 2.0.6. |
149 | 154 | ||
150 | Important changes: | 155 | Important changes: |
151 | 156 | ||
152 | Added recurring todos to KO/Pi. | 157 | Added recurring todos to KO/Pi. |
153 | 158 | ||
154 | Added global application font settings (for all KDE-Pim/Pi apps) to the general settings. | 159 | Added global application font settings (for all KDE-Pim/Pi apps) to the general settings. |
155 | 160 | ||
156 | Made Passwordmanager PwM/Pi more userfriendly: Rearranged some toolbar icons, optimized setting of focus, fixed layout problems and more. | 161 | Made Passwordmanager PwM/Pi more userfriendly: Rearranged some toolbar icons, optimized setting of focus, fixed layout problems and more. |
157 | 162 | ||
158 | Datenavigator can now display many months. Very useful on the desktop. | 163 | Datenavigator can now display many months. Very useful on the desktop. |
159 | 164 | ||
160 | KO/Pi alarm applet changed: Made buttons in alarm dialog much bigger and other usebility enhancements. | 165 | KO/Pi alarm applet changed: Made buttons in alarm dialog much bigger and other usebility enhancements. |
161 | 166 | ||
162 | Made alarm sound working on Linux desktop. | 167 | Made alarm sound working on Linux desktop. |
163 | 168 | ||
164 | Made KO/Pi and KA/Pi running from a memory stick. Please read storage HowTo for details. | 169 | Made KO/Pi and KA/Pi running from a memory stick. Please read storage HowTo for details. |
165 | 170 | ||
166 | Added timetracking feature in KO/Pi todo view. Please read timetraker HowTo for details. | 171 | Added timetracking feature in KO/Pi todo view. Please read timetraker HowTo for details. |
167 | 172 | ||
168 | Many other usebility enhancements. | 173 | Many other usebility enhancements. |
169 | Special thanks to Ben for his suggestions! | 174 | Special thanks to Ben for his suggestions! |
170 | 175 | ||
171 | You can find the complete changelog | 176 | You can find the complete changelog |
172 | from version 1.7.7 to 2.1.0 | 177 | from version 1.7.7 to 2.1.0 |
173 | in the source package or on | 178 | in the source package or on |
174 | 179 | ||
175 | http://www.pi-sync.net/html/changelog.html | 180 | http://www.pi-sync.net/html/changelog.html |
176 | 181 | ||
177 | 182 | ||
178 | 183 | ||
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index 515161f..c18a241 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt | |||
@@ -4,518 +4,518 @@ | |||
4 | { "Choose a directory with may files","Wähle Verzeichnis" }, | 4 | { "Choose a directory with may files","Wähle Verzeichnis" }, |
5 | { "ldap","ldap" }, | 5 | { "ldap","ldap" }, |
6 | { "No description available","Keine Beschreibung verfügbar" }, | 6 | { "No description available","Keine Beschreibung verfügbar" }, |
7 | { "Library files for "%1" not found in paths","Bibliothek für "%1" nicht gefunden" }, | 7 | { "Library files for "%1" not found in paths","Bibliothek für "%1" nicht gefunden" }, |
8 | { "qtopia","qtopia" }, | 8 | { "qtopia","qtopia" }, |
9 | { "Qtopia PIM Addressbook.","Qtopia PIM Adressbuch." }, | 9 | { "Qtopia PIM Addressbook.","Qtopia PIM Adressbuch." }, |
10 | { "vCard","vCard" }, | 10 | { "vCard","vCard" }, |
11 | { "vCard Format","vCard Format" }, | 11 | { "vCard Format","vCard Format" }, |
12 | { "microkabcformat_binary","microkabcformat_binary" }, | 12 | { "microkabcformat_binary","microkabcformat_binary" }, |
13 | { "Binary","Binary" }, | 13 | { "Binary","Binary" }, |
14 | { "No description available.","Keine Beschreibung verfügbar." }, | 14 | { "No description available.","Keine Beschreibung verfügbar." }, |
15 | { "Department","Abteilung" }, | 15 | { "Department","Abteilung" }, |
16 | { "Profession","Beruf" }, | 16 | { "Profession","Beruf" }, |
17 | { "Assistant's Name","Name d.Assistenten" }, | 17 | { "Assistant's Name","Name d.Assistenten" }, |
18 | { "Manager's Name","Name d.Manager's" }, | 18 | { "Manager's Name","Name d.Manager's" }, |
19 | { "Spouse's Name","Name d.Ehegatten" }, | 19 | { "Spouse's Name","Name d.Ehegatten" }, |
20 | { "Office","Büro" }, | 20 | { "Office","Büro" }, |
21 | { "IM Address","IM Adresse" }, | 21 | { "IM Address","IM Adresse" }, |
22 | { "Anniversary","Jahrestag" }, | 22 | { "Anniversary","Jahrestag" }, |
23 | { "Gender","Geschlecht" }, | 23 | { "Gender","Geschlecht" }, |
24 | { "Children","Kinder" }, | 24 | { "Children","Kinder" }, |
25 | { "FreeBusyUrl","FreeBusyUrl" }, | 25 | { "FreeBusyUrl","FreeBusyUrl" }, |
26 | { "ExternalID","ExternalID" }, | 26 | { "ExternalID","ExternalID" }, |
27 | { "Resource loaded: '%1'","Resource geladen: '%1'" }, | 27 | { "Resource loaded: '%1'","Resource geladen: '%1'" }, |
28 | { "Select View","Ansicht wählen" }, | 28 | { "Select View","Ansicht wählen" }, |
29 | { "Modify View...","Ansicht ändern..." }, | 29 | { "Modify View...","Ansicht ändern..." }, |
30 | { "Add View...","Ansicht hinzufügen..." }, | 30 | { "Add View...","Ansicht hinzufügen..." }, |
31 | { "Delete View","Ansicht löschen" }, | 31 | { "Delete View","Ansicht löschen" }, |
32 | { "Refresh View","Ansicht aktualisieren" }, | 32 | { "Refresh View","Ansicht aktualisieren" }, |
33 | { "Edit &Filters...","Bearbeite &Filter..." }, | 33 | { "Edit &Filters...","Bearbeite &Filter..." }, |
34 | { "Select Filter","Filter wählen" }, | 34 | { "Select Filter","Filter wählen" }, |
35 | { "Style:","Stil:" }, | 35 | { "Style:","Stil:" }, |
36 | { "HTML table style.","HTML tabellen stil." }, | 36 | { "HTML table style.","HTML tabellen stil." }, |
37 | { "Default Table View","Standard Tabellen Ansicht" }, | 37 | { "Default Table View","Standard Tabellen Ansicht" }, |
38 | { "Show Extension Bar","Zeige Extension Bar" }, | 38 | { "Show Extension Bar","Zeige Extension Bar" }, |
39 | { "None","Kein" }, | 39 | { "None","Kein" }, |
40 | { "Name...","Name..." }, | 40 | { "Name...","Name..." }, |
41 | { "Role:","Funktion:" }, | 41 | { "Role:","Funktion:" }, |
42 | { "Organization:","Firma:" }, | 42 | { "Organization:","Firma:" }, |
43 | { "Formatted name:","Formatt. Name:" }, | 43 | { "Formatted name:","Formatt. Name:" }, |
44 | { "Edit Phone Numbers...","Bearbeite Telefonnummern..." }, | 44 | { "Edit Phone Numbers...","Bearbeite Telefonnummern..." }, |
45 | { "Categories","Kategorien" }, | 45 | { "Categories","Kategorien" }, |
46 | { "Public","Öffentlich" }, | 46 | { "Public","Öffentlich" }, |
47 | { "Private","Privat" }, | 47 | { "Private","Privat" }, |
48 | { "Confidential","Vertraulich" }, | 48 | { "Confidential","Vertraulich" }, |
49 | { "&General","Allgemein" }, | 49 | { "&General","Allgemein" }, |
50 | { "&Edit Addresses...","B&earbeite Adressen..." }, | 50 | { "&Edit Addresses...","B&earbeite Adressen..." }, |
51 | { "Edit Email Addresses...","Bearbeite E-Mail Adressen..." }, | 51 | { "Edit Email Addresses...","Bearbeite E-Mail Adressen..." }, |
52 | { "Email:","Email:" }, | 52 | { "Email:","Email:" }, |
53 | { "URL:","URL:" }, | 53 | { "URL:","URL:" }, |
54 | { "&IM address:","&IM address:" }, | 54 | { "&IM address:","&IM address:" }, |
55 | { "&Address","&Adresse" }, | 55 | { "&Address","&Adresse" }, |
56 | { "Department:","Abteilung:" }, | 56 | { "Department:","Abteilung:" }, |
57 | { "Office:","Büro:" }, | 57 | { "Office:","Büro:" }, |
58 | { "Profession:","Beruf:" }, | 58 | { "Profession:","Beruf:" }, |
59 | { "Manager's name:","N.d.Manager's:" }, | 59 | { "Manager's name:","N.d.Manager's:" }, |
60 | { "Assistant's name:","N.d.Assistenten:" }, | 60 | { "Assistant's name:","N.d.Assistenten:" }, |
61 | { "Nick name:","Spitzname:" }, | 61 | { "Nick name:","Spitzname:" }, |
62 | { "Spouse's name:","N.d.Ehegatten:" }, | 62 | { "Spouse's name:","N.d.Ehegatten:" }, |
63 | { "Children's names:","N.d.Kinder:" }, | 63 | { "Children's names:","N.d.Kinder:" }, |
64 | { "Birthday:","Geburtstag:" }, | 64 | { "Birthday:","Geburtstag:" }, |
65 | { " Local Time","Ortszeit" }, | 65 | { " Local Time","Ortszeit" }, |
66 | { "Mon","Mo" }, | 66 | { "Mon","Mo" }, |
67 | { "Tue","Di" }, | 67 | { "Tue","Di" }, |
68 | { "Wed","Mi" }, | 68 | { "Wed","Mi" }, |
69 | { "Thu","Do" }, | 69 | { "Thu","Do" }, |
70 | { "Fri","Fr" }, | 70 | { "Fri","Fr" }, |
71 | { "Sat","Sa" }, | 71 | { "Sat","Sa" }, |
72 | { "Sun","So" }, | 72 | { "Sun","So" }, |
73 | { "January","Januar" }, | 73 | { "January","Januar" }, |
74 | { "February","Februar" }, | 74 | { "February","Februar" }, |
75 | { "March","März" }, | 75 | { "March","März" }, |
76 | { "April","April" }, | 76 | { "April","April" }, |
77 | { "May","Mai" }, | 77 | { "May","Mai" }, |
78 | { "June","Juni" }, | 78 | { "June","Juni" }, |
79 | { "July","July" }, | 79 | { "July","July" }, |
80 | { "August","August" }, | 80 | { "August","August" }, |
81 | { "September","September" }, | 81 | { "September","September" }, |
82 | { "October","October" }, | 82 | { "October","October" }, |
83 | { "November","November" }, | 83 | { "November","November" }, |
84 | { "December","Dezember" }, | 84 | { "December","Dezember" }, |
85 | { "tomorrow","Morgen" }, | 85 | { "tomorrow","Morgen" }, |
86 | { "today","Heute" }, | 86 | { "today","Heute" }, |
87 | { "yesterday","Gestern" }, | 87 | { "yesterday","Gestern" }, |
88 | { "Monday","Montag" }, | 88 | { "Monday","Montag" }, |
89 | { "Tuesday","Dienstag" }, | 89 | { "Tuesday","Dienstag" }, |
90 | { "Wednesday","Mittwoch" }, | 90 | { "Wednesday","Mittwoch" }, |
91 | { "Thursday","Donnerstag" }, | 91 | { "Thursday","Donnerstag" }, |
92 | { "Friday","Freitag" }, | 92 | { "Friday","Freitag" }, |
93 | { "Saturday","Samstag" }, | 93 | { "Saturday","Samstag" }, |
94 | { "Sunday","Sonntag" }, | 94 | { "Sunday","Sonntag" }, |
95 | { "Anniversary:","Jahrestag:" }, | 95 | { "Anniversary:","Jahrestag:" }, |
96 | { "Gender:","Geschlecht:" }, | 96 | { "Gender:","Geschlecht:" }, |
97 | { "ALIEN (gender undefined)","ALIEN (Geschlecht unbekannt)" }, | 97 | { "ALIEN (gender undefined)","ALIEN (Geschlecht unbekannt)" }, |
98 | { "female","weiblich" }, | 98 | { "female","weiblich" }, |
99 | { "male","männlich" }, | 99 | { "male","männlich" }, |
100 | { "&Details","&Details" }, | 100 | { "&Details","&Details" }, |
101 | { "Note:","Notiz:" }, | 101 | { "Note:","Notiz:" }, |
102 | { "&Notes","&Notizen" }, | 102 | { "&Notes","&Notizen" }, |
103 | { "Use geo data","Benutze geo Daten" }, | 103 | { "Use geo data","Benutze geo Daten" }, |
104 | { "Latitude:","Breitengrad:" }, | 104 | { "Latitude:","Breitengrad:" }, |
105 | { "Longitude:","Längengrad:" }, | 105 | { "Longitude:","Längengrad:" }, |
106 | { "Edit Geo Data...","Edit geo Daten..." }, | 106 | { "Edit Geo Data...","Edit geo Daten..." }, |
107 | { "Keys:","Schlüssel:" }, | 107 | { "Keys:","Schlüssel:" }, |
108 | { "Add","Hinzu" }, | 108 | { "Add","Hinzu" }, |
109 | { "Remove","Entf." }, | 109 | { "Remove","Entf." }, |
110 | { "Export","Exportiere" }, | 110 | { "Export","Exportiere" }, |
111 | { "&Misc","Verschiedenes" }, | 111 | { "&Misc","Verschiedenes" }, |
112 | { "Photo","Foto" }, | 112 | { "Photo","Foto" }, |
113 | { "Store as URL","Speichere als URL" }, | 113 | { "Store as URL","Speichere als URL" }, |
114 | { "Logo","Logo" }, | 114 | { "Logo","Logo" }, |
115 | { "&Images","B&ilder" }, | 115 | { "&Images","B&ilder" }, |
116 | { "Home","Privat" }, | 116 | { "Home","Privat" }, |
117 | { "Work","Geschäft" }, | 117 | { "Work","Geschäft" }, |
118 | { "Mobile","Handy" }, | 118 | { "Mobile","Handy" }, |
119 | { "Fax","Fax" }, | 119 | { "Fax","Fax" }, |
120 | { "Contact Editor","Bearbeite Kontakt" }, | 120 | { "Contact Editor","Bearbeite Kontakt" }, |
121 | { "&Mail...","&Mail..." }, | 121 | { "&Mail...","&Mail..." }, |
122 | { "&Print...","Drucken..." }, | 122 | { "&Print...","Drucken..." }, |
123 | { "&Save","&Speichern" }, | 123 | { "&Save","&Speichern" }, |
124 | { "&New Contact...","&Neuer Kontakt..." }, | 124 | { "&New Contact...","&Neuer Kontakt..." }, |
125 | { "Mail &vCard...","Mail &vCard..." }, | 125 | { "Mail &vCard...","Mail &vCard..." }, |
126 | { "Selected to phone","Auswahl zum Telefon" }, | 126 | { "Selected to phone","Auswahl zum Telefon" }, |
127 | { "Beam selected v&Card(s)","Beame ausgewählte v&Card(s)" }, | 127 | { "Beam selected v&Card(s)","Beame ausgewählte v&Card(s)" }, |
128 | { "&Beam personal vCard","Beame persönliche vCard" }, | 128 | { "&Beam personal vCard","Beame persönliche vCard" }, |
129 | { "&Edit Contact...","Bearbeite Kontakt..." }, | 129 | { "&Edit Contact...","Bearbeite Kontakt..." }, |
130 | { "&Exit","B&eenden" }, | 130 | { "&Exit","B&eenden" }, |
131 | { "&Copy","Kopieren" }, | 131 | { "&Copy","Kopieren" }, |
132 | { "Cu&t","Ausschneiden" }, | 132 | { "Cu&t","Ausschneiden" }, |
133 | { "&Paste","Einfügen" }, | 133 | { "&Paste","Einfügen" }, |
134 | { "Select &All","Alles auswählen" }, | 134 | { "Select &All","Alles auswählen" }, |
135 | { "&Undo","Rückgängig machen" }, | 135 | { "&Undo","Rückgängig machen" }, |
136 | { "Re&do","Wiederherstellen" }, | 136 | { "Re&do","Wiederherstellen" }, |
137 | { "&Delete Contact","Lösche Kontakt" }, | 137 | { "&Delete Contact","Lösche Kontakt" }, |
138 | { "Configure &Resources...","Konfiguriere &Resourcen..." }, | 138 | { "Configure &Resources...","Konfiguriere &Resourcen..." }, |
139 | { "&Configure %1...","Konfiguriere %1..." }, | 139 | { "&Configure %1...","Konfiguriere %1..." }, |
140 | { "Configure S&hortcuts...","Konfiguriere S&hortcuts..." }, | 140 | { "Configure S&hortcuts...","Konfiguriere S&hortcuts..." }, |
141 | { "Show Jump Bar","Zeige Jump Bar" }, | 141 | { "Show Jump Bar","Zeige Jump Bar" }, |
142 | { "Show Details","Zeige Details" }, | 142 | { "Show Details","Zeige Details" }, |
143 | { "Beam receive enabled","Beam (IR) Empfang AN" }, | 143 | { "Beam receive enabled","Beam (IR) Empfang AN" }, |
144 | { "Set Who Am I","Setze "wer bin ich"" }, | 144 | { "Set Who Am I","Setze "wer bin ich"" }, |
145 | { "Set Categories for Contacts...","Setze Kategorien für Kontakte..." }, | 145 | { "Set Categories for Contacts...","Setze Kategorien für Kontakte..." }, |
146 | { "Edit Category List...","Editiere Kategorieliste..." }, | 146 | { "Edit Category List...","Editiere Kategorieliste..." }, |
147 | { "Remove "voice"...","Entferne "voice"..." }, | 147 | { "Remove "voice"...","Entferne "voice"..." }, |
148 | { "Import from Outlook...","Importiere aus Outlook..." }, | 148 | { "Import from Outlook...","Importiere aus Outlook..." }, |
149 | { "Licence","Lizenz" }, | 149 | { "Licence","Lizenz" }, |
150 | { "Faq","Fragen + Antworten" }, | 150 | { "Faq","Fragen + Antworten" }, |
151 | { "What's New?","Was ist neu?" }, | 151 | { "What's New?","Was ist neu?" }, |
152 | { "Sync HowTo","Sync Anleitung" }, | 152 | { "Sync HowTo","Sync Anleitung" }, |
153 | { "&About KAddressBook","Über KAdressBuch" }, | 153 | { "&About KAddressBook","Über KAdressBuch" }, |
154 | { "Select Incremental Search Field","Selektiere Such Feld" }, | 154 | { "Select Incremental Search Field","Selektiere Such Feld" }, |
155 | { "Synchronize","Synchronisieren" }, | 155 | { "Synchronize","Synchronisieren" }, |
156 | { "Configure...","Konfigurieren..." }, | 156 | { "Configure...","Konfigurieren..." }, |
157 | { "Enable Pi-Sync","Aktiviere Pi-Sync" }, | 157 | { "Enable Pi-Sync","Aktiviere Pi-Sync" }, |
158 | { "Multiple sync","Multi Sync" }, | 158 | { "Multiple sync","Multi Sync" }, |
159 | { "Import CSV List...","Importiere CSV-Datei..." }, | 159 | { "Import CSV List...","Importiere CSV-Datei..." }, |
160 | { "Export CSV List...","Exportiere CSV-Datei..." }, | 160 | { "Export CSV List...","Exportiere CSV-Datei..." }, |
161 | { "Import KDE 2 Addressbook...","Importiere KDE 2 Adressbuch..." }, | 161 | { "Import KDE 2 Addressbook...","Importiere KDE 2 Adressbuch..." }, |
162 | { "Import vCard...","Importiere vCard..." }, | 162 | { "Import vCard...","Importiere vCard..." }, |
163 | { "Export vCard 3.0...","Exportiere vCard 3.0..." }, | 163 | { "Export vCard 3.0...","Exportiere vCard 3.0..." }, |
164 | { "Import Qtopia...","Importiere Qtopia..." }, | 164 | { "Import Qtopia...","Importiere Qtopia..." }, |
165 | { "Export Qtopia...","Exportiere Qtopia..." }, | 165 | { "Export Qtopia...","Exportiere Qtopia..." }, |
166 | { "Edit Contact","Bearbeite Kontakt" }, | 166 | { "Edit Contact","Bearbeite Kontakt" }, |
167 | { "Ok","Ok" }, | 167 | { "Ok","Ok" }, |
168 | { "Apply","Anwenden" }, | 168 | { "Apply","Anwenden" }, |
169 | { "Cancel","Abbrechen" }, | 169 | { "Cancel","Abbrechen" }, |
170 | { "KAddressbook/Pi","KAdressbuch/Pi" }, | 170 | { "KAddressbook/Pi","KAdressbuch/Pi" }, |
171 | { "No Filter","Kein Filter" }, | 171 | { "No Filter","Kein Filter" }, |
172 | { "Given Name","Vorname" }, | 172 | { "Given Name","Vorname" }, |
173 | { "Family Name","Nachname" }, | 173 | { "Family Name","Nachname" }, |
174 | { "Email Address","E-Mail Adresse" }, | 174 | { "Email Address","E-Mail Adresse" }, |
175 | { "All Fields","Alle Felder" }, | 175 | { "All Fields","Alle Felder" }, |
176 | { "Question","Frage" }, | 176 | { "Question","Frage" }, |
177 | { "After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as "other".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?","After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as "other".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?" }, | 177 | { "After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as "other".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?","After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as "other".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?" }, |
178 | { "No","Nein" }, | 178 | { "No","Nein" }, |
179 | { "Yes","Ja" }, | 179 | { "Yes","Ja" }, |
180 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile" }, | 180 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile" }, |
181 | { "Local device name:","Name dieses Gerätes:" }, | 181 | { "Local device name:","Name dieses Gerätes:" }, |
182 | { "New profile","Neues Profil" }, | 182 | { "New profile","Neues Profil" }, |
183 | { "Clone profile","Klone Profil" }, | 183 | { "Clone profile","Klone Profil" }, |
184 | { "Delete profile","Lösche Profil" }, | 184 | { "Delete profile","Lösche Profil" }, |
185 | { "Profile:","Profil:" }, | 185 | { "Profile:","Profil:" }, |
186 | { "Ask for every entry on conflict","Frage bei Konflikten nach"}, | 186 | { "Ask for every entry on conflict","Frage bei Konflikten nach"}, |
187 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, | 187 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, |
188 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, | 188 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, |
189 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" } | 189 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" } |
190 | { "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, | 190 | { "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, |
191 | { "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, | 191 | { "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, |
192 | { "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, | 192 | { "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, |
193 | { "Write back file","Schreibe Datei zurück" }, | 193 | { "Write back file","Schreibe Datei zurück" }, |
194 | { "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, | 194 | { "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, |
195 | { "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, | 195 | { "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, |
196 | { "Local device name:","Name dieses Gerätes:" }, | 196 | { "Local device name:","Name dieses Gerätes:" }, |
197 | { "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, | 197 | { "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, |
198 | { "Sync preferences","Synchronisations Einstellungen" }, | 198 | { "Sync preferences","Synchronisations Einstellungen" }, |
199 | { "Profile kind","Profil Art" }, | 199 | { "Profile kind","Profil Art" }, |
200 | { "Local file","Lokale Datei" }, | 200 | { "Local file","Lokale Datei" }, |
201 | { "Local file:","Lokale Datei:" }, | 201 | { "Local file:","Lokale Datei:" }, |
202 | { "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, | 202 | { "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, |
203 | { "Fill in default values for:","Setze Beispiel Werte ein für:" }, | 203 | { "Fill in default values for:","Setze Beispiel Werte ein für:" }, |
204 | { "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, | 204 | { "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, |
205 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, | 205 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, |
206 | { "Device","Gerät:" }, | 206 | { "Device","Gerät:" }, |
207 | { "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, | 207 | { "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, |
208 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n","Synchronisationsübersicht:\n\n %d items lokal hinzugefügt\n %d items entfernt hinzugefügt\n %d items lokal geändert\n %d items entfernt geändert\n %d items lokal gelöscht\n %d items entfernt gelöscht\n" }, | 208 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n","Synchronisationsübersicht:\n\n %d items lokal hinzugefügt\n %d items entfernt hinzugefügt\n %d items lokal geändert\n %d items entfernt geändert\n %d items lokal gelöscht\n %d items entfernt gelöscht\n" }, |
209 | { "Synchronization successful","Synchronisation erfolgreich" }, | 209 | { "Synchronization successful","Synchronisation erfolgreich" }, |
210 | { "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, | 210 | { "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, |
211 | { "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, | 211 | { "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, |
212 | { "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, | 212 | { "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, |
213 | { "Enter password","Passwort eingeben" }, | 213 | { "Enter password","Passwort eingeben" }, |
214 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, | 214 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, |
215 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, | 215 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, |
216 | { "Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n","Sorry, das Kopierkommando schlug fehl!\nKommando war:\n%1\n \nVersuche Kommando von Kosole um\nDetails für das Fehlschlagen\nzu erfahren.\n" }, | 216 | { "Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n","Sorry, das Kopierkommando schlug fehl!\nKommando war:\n%1\n \nVersuche Kommando von Kosole um\nDetails für das Fehlschlagen\nzu erfahren.\n" }, |
217 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, | 217 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, |
218 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, | 218 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, |
219 | { "Used %1 Client","Benutzter %1 Client" }, | 219 | { "Used %1 Client","Benutzter %1 Client" }, |
220 | { "No email client installed","Kein Email Klient installiert" }, | 220 | { "No email client installed","Kein Email Klient installiert" }, |
221 | { "Userdefined email client","Benutzerdef. Email Klient" }, | 221 | { "Userdefined email client","Benutzerdef. Email Klient" }, |
222 | { "OM/Pi email client","OM/Pi Email Klient" }, | 222 | { "OM/Pi email client","OM/Pi Email Klient" }, |
223 | { "Include in multiple ","Beziehe in mehrfach " }, | 223 | { "Include in multiple ","Beziehe in mehrfach " }, |
224 | { "calendar ","Kalender " }, | 224 | { "calendar ","Kalender " }, |
225 | { "addressbook ","Adressbuch " }, | 225 | { "addressbook ","Adressbuch " }, |
226 | { "pwmanager","PWmanager" }, | 226 | { "pwmanager","PWmanager" }, |
227 | { " sync"," Sync ein" }, | 227 | { " sync"," Sync ein" }, |
228 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, | 228 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, |
229 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, | 229 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, |
230 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, | 230 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, |
231 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, | 231 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, |
232 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, | 232 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, |
233 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, | 233 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, |
234 | { "Help...","Hilfe..." }, | 234 | { "Help...","Hilfe..." }, |
235 | { "Local file Cal:","Lokale Datei Kal:" }, | 235 | { "Local file Cal:","Lokale Datei Kal:" }, |
236 | { "Local file ABook:","Lokale Datei ABuch:" }, | 236 | { "Local file ABook:","Lokale Datei ABuch:" }, |
237 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, | 237 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, |
238 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, | 238 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, |
239 | { "Calendar:","Kalender:" }, | 239 | { "Calendar:","Kalender:" }, |
240 | { "AddressBook:","AdressBuch:" }, | 240 | { "AddressBook:","AdressBuch:" }, |
241 | { "PWManager:","PWManager:" }, | 241 | { "PWManager:","PWManager:" }, |
242 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, | 242 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, |
243 | { "ssh/scp","ssh/scp" }, | 243 | { "ssh/scp","ssh/scp" }, |
244 | { "ftp","ftp" }, | 244 | { "ftp","ftp" }, |
245 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, | 245 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, |
246 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, | 246 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, |
247 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, | 247 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, |
248 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, | 248 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, |
249 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, | 249 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, |
250 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, | 250 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, |
251 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, | 251 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, |
252 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, | 252 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, |
253 | { "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" }, | 253 | { "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" }, |
254 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, | 254 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, |
255 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, | 255 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, |
256 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, | 256 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, |
257 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, | 257 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, |
258 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, | 258 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, |
259 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, | 259 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, |
260 | { "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!" }, | 260 | { "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!" }, |
261 | { "KDE-Pim Sync","KDE-Pim Sync" }, | 261 | { "KDE-Pim Sync","KDE-Pim Sync" }, |
262 | { "Multiple profiles","Multi-Sync Profile" }, | 262 | { "Multiple profiles","Multi-Sync Profile" }, |
263 | { "Device: ","Gerät: " }, | 263 | { "Device: ","Gerät: " }, |
264 | { "Multiple sync started.","Multi-Sync gestartet." }, | 264 | { "Multiple sync started.","Multi-Sync gestartet." }, |
265 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, | 265 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile selektiert für Multi-Sync" }, |
266 | { "KDE-Pim sync config","KDE-Pim Sync Konfig" }, | 266 | { "KDE-Pim sync config","KDE-Pim Sync Konfig" }, |
267 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein, z.B.:\n" }, | 267 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein, z.B.:\n" }, |
268 | { "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Modell\nautomatisch\erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, | 268 | { "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Modell\nautomatisch\erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, |
269 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, | 269 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, |
270 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, | 270 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, |
271 | { "Edit Address Book Filters","Editiere Addressbuch Filter" }, | 271 | { "Edit Address Book Filters","Editiere Addressbuch Filter" }, |
272 | { "&Add...","Hinzufügen..." }, | 272 | { "&Add...","Hinzufügen..." }, |
273 | { "&Edit...","B&earbeiten..." }, | 273 | { "&Edit...","B&earbeiten..." }, |
274 | { "&Remove","Entfe&rne" }, | 274 | { "&Remove","Entfe&rne" }, |
275 | { "Modify View: ","Ansicht ändern: " }, | 275 | { "Modify View: ","Ansicht ändern: " }, |
276 | { "Fields","Felder" }, | 276 | { "Fields","Felder" }, |
277 | { "Select Fields to Display","Wähle anzuzeigende Felder" }, | 277 | { "Select Fields to Display","Wähle anzuzeigende Felder" }, |
278 | { "All","Alles" }, | 278 | { "All","Alles" }, |
279 | { "Frequent","Frequent" }, | 279 | { "Frequent","Frequent" }, |
280 | { "Address","Adresse" }, | 280 | { "Address","Adresse" }, |
281 | { "Email","E-Mail" }, | 281 | { "Email","E-Mail" }, |
282 | { "Personal","Persönl." }, | 282 | { "Personal","Persönl." }, |
283 | { "Organization","Organisation" }, | 283 | { "Organization","Organisation" }, |
284 | { "Custom","Benutzerdefiniert" }, | 284 | { "Custom","Benutzerdefiniert" }, |
285 | { "&Selected\nfields:","&Selektierte\nFelder:" }, | 285 | { "&Selected\nfields:","&Selektierte\nFelder:" }, |
286 | { "Formatted Name","Format. Name" }, | 286 | { "Formatted Name","Format. Name" }, |
287 | { "Additional Names","Mittelname" }, | 287 | { "Additional Names","Mittelname" }, |
288 | { "Honorific Prefixes","Namensprefix" }, | 288 | { "Honorific Prefixes","Namensprefix" }, |
289 | { "Honorific Suffixes","Namenssuffix" }, | 289 | { "Honorific Suffixes","Namenssuffix" }, |
290 | { "Nick Name","Spitzname" }, | 290 | { "Nick Name","Spitzname" }, |
291 | { "Birthday","Geburtstag" }, | 291 | { "Birthday","Geburtstag" }, |
292 | { "Home Address Street","Privat Adresse Strasse" }, | 292 | { "Home Address Street","Privat Adresse Strasse" }, |
293 | { "Home Address Locality","Privat Adresse Stadt" }, | 293 | { "Home Address Locality","Privat Adresse Stadt" }, |
294 | { "Home Address Region","Privat Adresse Bundesland" }, | 294 | { "Home Address Region","Privat Adresse Bundesland" }, |
295 | { "Home Address Postal Code","Privat Adresse PLZ" }, | 295 | { "Home Address Postal Code","Privat Adresse PLZ" }, |
296 | { "Home Address Country","Privat Adresse Land" }, | 296 | { "Home Address Country","Privat Adresse Land" }, |
297 | { "Home Address Label","Privat Adresse Label" }, | 297 | { "Home Address Label","Privat Adresse Label" }, |
298 | { "Business Address Street","Büro Adresse Strasse" }, | 298 | { "Business Address Street","Büro Adresse Strasse" }, |
299 | { "Business Address Locality","Büro Adresse Stadt" }, | 299 | { "Business Address Locality","Büro Adresse Stadt" }, |
300 | { "Business Address Region","Büro Adresse Bundesland" }, | 300 | { "Business Address Region","Büro Adresse Bundesland" }, |
301 | { "Business Address Postal Code","Büro Adresse PLZ" }, | 301 | { "Business Address Postal Code","Büro Adresse PLZ" }, |
302 | { "Business Address Country","Büro Adresse Land" }, | 302 | { "Business Address Country","Büro Adresse Land" }, |
303 | { "Business Address Label","Büro Adresse Label" }, | 303 | { "Business Address Label","Büro Adresse Label" }, |
304 | { "Home Phone","Privat Telefon" }, | 304 | { "Home Phone","Privat Telefon" }, |
305 | { "Business Phone","Büro Telefon" }, | 305 | { "Business Phone","Büro Telefon" }, |
306 | { "Mobile Phone","Handy" }, | 306 | { "Mobile Phone","Handy" }, |
307 | { "Home Fax","Privat Fax" }, | 307 | { "Home Fax","Privat Fax" }, |
308 | { "Business Fax","Büro Fax" }, | 308 | { "Business Fax","Büro Fax" }, |
309 | { "Car Phone","Autotelefon" }, | 309 | { "Car Phone","Autotelefon" }, |
310 | { "ISDN","ISDN" }, | 310 | { "ISDN","ISDN" }, |
311 | { "Pager","Pager" }, | 311 | { "Pager","Pager" }, |
312 | { "Mail Client","Mail Klient" }, | 312 | { "Mail Client","Mail Klient" }, |
313 | { "Title","Titel" }, | 313 | { "Title","Titel" }, |
314 | { "Role","Rolle" }, | 314 | { "Role","Rolle" }, |
315 | { "Note","Notiz" }, | 315 | { "Note","Notiz" }, |
316 | { "URL","URL" }, | 316 | { "URL","URL" }, |
317 | { "Resource","Resource" }, | 317 | { "Resource","Resource" }, |
318 | { "SIP","SIP" }, | 318 | { "SIP","SIP" }, |
319 | { "Default Filter","Default Filter" }, | 319 | { "Default Filter","Default Filter" }, |
320 | { "The default filter will be activated whenever this view is displayed. This feature allows you to configure views that only interact with certain types of information based on the filter. Once the view is activated, the filter can be changed at anytime.","#The default filter will be activated whenever this view is displayed. This feature allows you to configure views that only interact with certain types of information based on the filter. Once the view is activated, the filter can be changed at anytime." }, | 320 | { "The default filter will be activated whenever this view is displayed. This feature allows you to configure views that only interact with certain types of information based on the filter. Once the view is activated, the filter can be changed at anytime.","#The default filter will be activated whenever this view is displayed. This feature allows you to configure views that only interact with certain types of information based on the filter. Once the view is activated, the filter can be changed at anytime." }, |
321 | { "No default filter","Kein default Filter" }, | 321 | { "No default filter","Kein default Filter" }, |
322 | { "Use last active filter","Nutze letzen aktiven Filter" }, | 322 | { "Use last active filter","Nutze letzen aktiven Filter" }, |
323 | { "Use filter:","Nutze Filter:" }, | 323 | { "Use filter:","Nutze Filter:" }, |
324 | { "Look & Feel","Look & Feel" }, | 324 | { "Look & Feel","Look & Feel" }, |
325 | { "Row Separator","Reihen Separator" }, | 325 | { "Row Separator","Reihen Separator" }, |
326 | { "Alternating backgrounds","Abwechselnder Hintergrund" }, | 326 | { "Alternating backgrounds","Abwechselnder Hintergrund" }, |
327 | { "Single line","Einzelne Zeile" }, | 327 | { "Single line","Einzelne Zeile" }, |
328 | { "Enable background image:","Hintergrundbild:" }, | 328 | { "Enable background image:","Hintergrundbild:" }, |
329 | { "Enable contact tooltips","Contact Tooltips" }, | 329 | { "Enable contact tooltips","Contact Tooltips" }, |
330 | { "&Enable custom Colors","Benutzerdef. Farben" }, | 330 | { "&Enable custom Colors","Benutzerdef. Farben" }, |
331 | { "&Colors","Farben" }, | 331 | { "&Colors","Farben" }, |
332 | { "If custom colors are enabled, you may choose the colors for the view below. Otherwise colors from your current KDE color scheme are used.","#If custom colors are enabled, you may choose the colors for the view below. Otherwise colors from your current KDE color scheme are used." }, | 332 | { "If custom colors are enabled, you may choose the colors for the view below. Otherwise colors from your current KDE color scheme are used.","#If custom colors are enabled, you may choose the colors for the view below. Otherwise colors from your current KDE color scheme are used." }, |
333 | { "Double click or press RETURN on a item to select a color for the related strings in the view.","#Double click or press RETURN on a item to select a color for the related strings in the view." }, | 333 | { "Double click or press RETURN on a item to select a color for the related strings in the view.","#Double click or press RETURN on a item to select a color for the related strings in the view." }, |
334 | { "&Enable custom fonts","B&enutzerdefinierte Schriften" }, | 334 | { "&Enable custom fonts","B&enutzerdefinierte Schriften" }, |
335 | { "&Text font:","Textschriftart:" }, | 335 | { "&Text font:","Textschriftart:" }, |
336 | { "&Header font:","Titelschriftart:" }, | 336 | { "&Header font:","Titelschriftart:" }, |
337 | { "If custom fonts are enabled, you may choose which fonts to use for this view below. Otherwise the default KDE font will be used, in bold style for the header and normal style for the data.","#If custom fonts are enabled, you may choose which fonts to use for this view below. Otherwise the default KDE font will be used, in bold style for the header and normal style for the data." }, | 337 | { "If custom fonts are enabled, you may choose which fonts to use for this view below. Otherwise the default KDE font will be used, in bold style for the header and normal style for the data.","#If custom fonts are enabled, you may choose which fonts to use for this view below. Otherwise the default KDE font will be used, in bold style for the header and normal style for the data." }, |
338 | { "&Fonts","Schri&ften" }, | 338 | { "&Fonts","Schri&ften" }, |
339 | { "Background Color","Hintergrundfarbe" }, | 339 | { "Background Color","Hintergrundfarbe" }, |
340 | { "Text Color","Textfarbe" }, | 340 | { "Text Color","Textfarbe" }, |
341 | { "Header Background Color","Titel Hintergrundfarbe" }, | 341 | { "Header Background Color","Titel Hintergrundfarbe" }, |
342 | { "Header Text Color","Titel Farbe" }, | 342 | { "Header Text Color","Titel Farbe" }, |
343 | { "Highlight Color","Auswahlfarbe" }, | 343 | { "Highlight Color","Auswahlfarbe" }, |
344 | { "Highlighted Text Color","Auswahltextfarbe" }, | 344 | { "Highlighted Text Color","Auswahltextfarbe" }, |
345 | { "Alternating Background Color","Abwechselnder Hintergrundfarbe" }, | 345 | { "Alternating Background Color","Abwechselnder Hintergrundfarbe" }, |
346 | { "Postal","Post" }, | 346 | { "Postal","Post" }, |
347 | { "Dr.","Dr." }, | 347 | { "Dr.","Dr." }, |
348 | { "Miss","Frl." }, | 348 | { "Miss","Frl." }, |
349 | { "Mr.","Herr" }, | 349 | { "Mr.","Herr" }, |
350 | { "Mrs.","Frau" }, | 350 | { "Mrs.","Frau" }, |
351 | { "Ms.","Fr." }, | 351 | { "Ms.","Fr." }, |
352 | { "Prof.","Prof." }, | 352 | { "Prof.","Prof." }, |
353 | { "I","I" }, | 353 | { "I","I" }, |
354 | { "II","II" }, | 354 | { "II","II" }, |
355 | { "III","III" }, | 355 | { "III","III" }, |
356 | { "Jr.","Jr." }, | 356 | { "Jr.","Jr." }, |
357 | { "Sr.","Sr." }, | 357 | { "Sr.","Sr." }, |
358 | { "Name:","Name:" }, | 358 | { "Name:","Name:" }, |
359 | { "Documents","Dokumente" }, | 359 | { "Documents","Dokumente" }, |
360 | { "Files","Dateien" }, | 360 | { "Files","Dateien" }, |
361 | { "All Files","Alle Dateien" }, | 361 | { "All Files","Alle Dateien" }, |
362 | { "Name","Name" }, | 362 | { "Name","Name" }, |
363 | { "Size","Größe" }, | 363 | { "Size","Größe" }, |
364 | { "Date","Datum" }, | 364 | { "Date","Datum" }, |
365 | { "Mime Type","Mime Typ" }, | 365 | { "Mime Type","Mime Typ" }, |
366 | { "Geo Data Input","Geo Dateneingabe" }, | 366 | { "Geo Data Input","Geo Dateneingabe" }, |
367 | { "Sexagesimal","Sexagesimal" }, | 367 | { "Sexagesimal","Sexagesimal" }, |
368 | { "North","Nord" }, | 368 | { "North","Nord" }, |
369 | { "South","Süd" }, | 369 | { "South","Süd" }, |
370 | { "East","Ost" }, | 370 | { "East","Ost" }, |
371 | { "West","West" }, | 371 | { "West","West" }, |
372 | { "Undefined","Unbestimmt" }, | 372 | { "Undefined","Unbestimmt" }, |
373 | { "Edit Address","Bearbeite Adresse" }, | 373 | { "Edit Address","Bearbeite Adresse" }, |
374 | { "Street:","Strasse:" }, | 374 | { "Street:","Strasse:" }, |
375 | { "Post office box:","Postfach:" }, | 375 | { "Post office box:","Postfach:" }, |
376 | { "Locality:","Stadt:" }, | 376 | { "Locality:","Stadt:" }, |
377 | { "Region:","Region:" }, | 377 | { "Region:","Region:" }, |
378 | { "Postal code:","PLZ:" }, | 378 | { "Postal code:","PLZ:" }, |
379 | { "Country:","Staat:" }, | 379 | { "Country:","Staat:" }, |
380 | { "This is the preferred address","Dies ist die bevorzugte Adresse" }, | 380 | { "This is the preferred address","Dies ist die bevorzugte Adresse" }, |
381 | { "New...","Neu..." }, | 381 | { "New...","Neu..." }, |
382 | { "Change Type","Ändere Art" }, | 382 | { "Change Type","Ändere Art" }, |
383 | { "Edit Address Type","Ändere Address Art" }, | 383 | { "Edit Address Type","Ändere Address Art" }, |
384 | { "Address Types","Address Art" }, | 384 | { "Address Types","Address Art" }, |
385 | { "Domestic","Inland" }, | 385 | { "Domestic","Inland" }, |
386 | { "International","International" }, | 386 | { "International","International" }, |
387 | { "Parcel","Paket" }, | 387 | { "Parcel","Paket" }, |
388 | { "Edit Contact Name","Ändere Kontakt Name" }, | 388 | { "Edit Contact Name","Ändere Kontakt Name" }, |
389 | { "Honorific prefixes:","Namensprefixes:" }, | 389 | { "Honorific prefixes:","Namensprefixes:" }, |
390 | { "Given name:","Vorname:" }, | 390 | { "Given name:","Vorname:" }, |
391 | { "Additional names:","Mittelnamen:" }, | 391 | { "Additional names:","Mittelnamen:" }, |
392 | { "Family names:","Nachname:" }, | 392 | { "Family names:","Nachname:" }, |
393 | { "Honorific suffixes:","Namenssuffixe:" }, | 393 | { "Honorific suffixes:","Namenssuffixe:" }, |
394 | { "Parse name automatically","Setze Namen automatisch" }, | 394 | { "Parse name automatically","Setze Namen automatisch" }, |
395 | { "Edit Phone Numbers","Bearbeite Telefonnummern" }, | 395 | { "Edit Phone Numbers","Bearbeite Telefonnummern" }, |
396 | { "Number","Nummer" }, | 396 | { "Number","Nummer" }, |
397 | { "Type","Typ" }, | 397 | { "Type","Typ" }, |
398 | { "Edit Phone Number","Bearbeite Telefonnummer" }, | 398 | { "Edit Phone Number","Bearbeite Telefonnummer" }, |
399 | { "Number:","Nummer:" }, | 399 | { "Number:","Nummer:" }, |
400 | { "This is the preferred phone number","Dies ist die bevorzugte Telefonnummer" }, | 400 | { "This is the preferred phone number","Dies ist die bevorzugte Telefonnummer" }, |
401 | { "Types","Typen" }, | 401 | { "Types","Typen" }, |
402 | { "Messenger","Messenger" }, | 402 | { "Messenger","Messenger" }, |
403 | { "Other","Anderes" }, | 403 | { "Other","Anderes" }, |
404 | { "Video","Video" }, | 404 | { "Video","Video" }, |
405 | { "Mailbox","Mailbox" }, | 405 | { "Mailbox","Mailbox" }, |
406 | { "Modem","Modem" }, | 406 | { "Modem","Modem" }, |
407 | { "Car","Auto" }, | 407 | { "Car","Auto" }, |
408 | { "PCS","PCS" }, | 408 | { "PCS","PCS" }, |
409 | { "Category","Kategorie" }, | 409 | { "Category","Kategorie" }, |
410 | { "Select Categories","Wähle Kategorien" }, | 410 | { "Select Categories","Wähle Kategorien" }, |
411 | { " &Deselect All "," &Deselektiere alle " }, | 411 | { " &Deselect All "," &Deselektiere alle " }, |
412 | { " &Edit Categories "," B&earbeite Kategorien " }, | 412 | { " &Edit Categories "," B&earbeite Kategorien " }, |
413 | { "&OK","&OK" }, | 413 | { "&OK","&OK" }, |
414 | { "&Cancel","Abbre&chen" }, | 414 | { "&Cancel","Abbre&chen" }, |
415 | { "Configure","Konfiguriere" }, | 415 | { "Configure","Konfiguriere" }, |
416 | { "Default","Voreinstellungen" }, | 416 | { "Default","Voreinstellungen" }, |
417 | { "Addressbook","Adressbuch" }, | 417 | { "Addressbook","Adressbuch" }, |
418 | { "Details view font","Schriftart Detailansicht" }, | 418 | { "Details view font","Schriftart Detailansicht" }, |
419 | { "phone:123","phone:123" }, | 419 | { "phone:123","phone:123" }, |
420 | { "Search only after <return> key pressed","Suche nur nach <return> Taste" }, | 420 | { "Search only after <return> key pressed","Suche nur nach <return> Taste" }, |
421 | { "Show edit dialog on single click","Zeige Edit Dialog bei Einzelklick" }, | 421 | { "Show edit dialog on single click","Zeige Edit Dialog bei Einzelklick" }, |
422 | { "Automatic name parsing for new contacts","Automa. Name Parsen für neue Kontakte" }, | 422 | { "Automatic name parsing for new contacts","Automa. Name Parsen für neue Kontakte" }, |
423 | { "Display List and Details at once (restart)","Zeige Liste und Details zusammen(neustart)" }, | 423 | { "Display List and Details at once (restart)","Zeige Liste und Details zusammen(neustart)" }, |
424 | { "Show exit confirmation","Vor dem Beenden nachfragen" }, | 424 | { "Show exit confirmation","Vor dem Beenden nachfragen" }, |
425 | { "General","Allgemein" }, | 425 | { "General","Allgemein" }, |
426 | { "Extensions (restart)","Extensions (restart)" }, | 426 | { "Extensions (restart)","Extensions (restart)" }, |
427 | { "Description","Beschreibungen" }, | 427 | { "Description","Beschreibungen" }, |
428 | { "Extensions","Extensions" }, | 428 | { "Extensions","Extensions" }, |
429 | { "Prefixes","Prefixe" }, | 429 | { "Prefixes","Prefixe" }, |
430 | { "Inclusions","Inclusions" }, | 430 | { "Inclusions","Inclusions" }, |
431 | { "Suffixes","Suffixe" }, | 431 | { "Suffixes","Suffixe" }, |
432 | { "Default formatted name:","Default format. Name:" }, | 432 | { "Default formatted name:","Default format. Name:" }, |
433 | { "Empty","Leer" }, | 433 | { "Empty","Leer" }, |
434 | { "Simple Name","Einfacher Name" }, | 434 | { "Simple Name","Einfacher Name" }, |
435 | { "Full Name","Voller Name" }, | 435 | { "Full Name","Voller Name" }, |
436 | { "Reverse Name","Namen umdrehen" }, | 436 | { "Reverse Name","Namen umdrehen" }, |
437 | { "Contact","Kontakt" }, | 437 | { "Contact","Kontakt" }, |
438 | { "Global","Allgemein" }, | 438 | { "Global","Allgemein" }, |
439 | { "Phone","Telefon" }, | 439 | { "Phone","Telefon" }, |
440 | { "SMS","SMS" }, | 440 | { "SMS","SMS" }, |
441 | { "Language:(needs restart)","Sprache:(Neustart)" }, | 441 | { "Language:(needs restart)","Sprache:(Neustart)" }, |
442 | { "English","English" }, | 442 | { "English","English" }, |
443 | { "German","Deutsch" }, | 443 | { "German","Deutsch" }, |
444 | { "French","Französisch" }, | 444 | { "French","Französisch" }, |
445 | { "Italian","Italienisch" }, | 445 | { "Italian","Italienisch" }, |
446 | { "User defined (usertranslation.txt)","Benutzerdef. (usertranslation.txt)" }, | 446 | { "User defined (usertranslation.txt)","Benutzerdef. (usertranslation.txt)" }, |
447 | { "Time Format(nr):","Zeit Format(nr):" }, | 447 | { "Time Format(nr):","Zeit Format(nr):" }, |
448 | { "24:00","24:00" }, | 448 | { "24:00","24:00" }, |
449 | { "12:00am","12:00am" }, | 449 | { "12:00am","12:00am" }, |
450 | { "Week starts on Sunday","Woche beginnt Sonntags" }, | 450 | { "Week starts on Sunday","Woche beginnt Sonntags" }, |
451 | { "Locale","Locale" }, | 451 | { "Locale","Locale" }, |
452 | { "Date Format:","Datums Format:" }, | 452 | { "Date Format:","Datums Format:" }, |
453 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, | 453 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, |
454 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, | 454 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, |
455 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, | 455 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, |
456 | { "User defined","Benutzerdefiniert" }, | 456 | { "User defined","Benutzerdefiniert" }, |
457 | { "User long date:","Format langes Datum:" }, | 457 | { "User long date:","Format langes Datum:" }, |
458 | { "User short date:","Format kurzes Datum:" }, | 458 | { "User short date:","Format kurzes Datum:" }, |
459 | { "Daylight start:","Sommerzeit Start:" }, | 459 | { "Daylight start:","Sommerzeit Start:" }, |
460 | { "Daylight end:","Sommerzeit Ende:" }, | 460 | { "Daylight end:","Sommerzeit Ende:" }, |
461 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, | 461 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, |
462 | { "Monday 19 April 2004: %A %d %B %Y","Monday 19 April 2004: %A %d %B %Y" }, | 462 | { "Monday 19 April 2004: %A %d %B %Y","Monday 19 April 2004: %A %d %B %Y" }, |
463 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, | 463 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, |
464 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, | 464 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, |
465 | { "Date Format","Datums Format" }, | 465 | { "Date Format","Datums Format" }, |
466 | { "Timezone:","Zeitzone:" }, | 466 | { "Timezone:","Zeitzone:" }, |
467 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, | 467 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, |
468 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, | 468 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, |
469 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, | 469 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, |
470 | { "Used Mail Client","Benutzter Mail Client" }, | 470 | { "Used Mail Client","Benutzter Mail Client" }, |
471 | { "Channel:","Channel:" }, | 471 | { "Channel:","Channel:" }, |
472 | { "Message:","Message:" }, | 472 | { "Message:","Message:" }, |
473 | { "Parameters:","Parameter:" }, | 473 | { "Parameters:","Parameter:" }, |
474 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, | 474 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, |
475 | { "extra Message:","extra Message:" }, | 475 | { "extra Message:","extra Message:" }, |
476 | { "extra Parameters:","extra Parameter:" }, | 476 | { "extra Parameters:","extra Parameter:" }, |
477 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, | 477 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, |
478 | { "External Apps.","Externe Appl." }, | 478 | { "External Apps.","Externe Appl." }, |
479 | { "Used %1 Client","Benutzer %1 Client" }, | 479 | { "Used %1 Client","Benutzer %1 Client" }, |
480 | { "No email client installed","Keine Email Client installiert" }, | 480 | { "No email client installed","Keine Email Client installiert" }, |
481 | { "Userdefined email client","Benutzerdef. Email Client" }, | 481 | { "Userdefined email client","Benutzerdef. Email Client" }, |
482 | { "OM/Pi email client","OM/Pi Email Client" }, | 482 | { "OM/Pi email client","OM/Pi Email Client" }, |
483 | { "Close KA/Pi?","Schließe KA/Pi?" }, | 483 | { "Close KA/Pi?","Schließe KA/Pi?" }, |
484 | { "\nChanges will be saved!","\nÄnderungen werden gespeichert!" }, | 484 | { "\nChanges will be saved!","\nÄnderungen werden gespeichert!" }, |
485 | { "Yes!","Ja!" }, | 485 | { "Yes!","Ja!" }, |
486 | { "There was an error while attempting to save\n the address book. Please check that some \nother application is not using it. ","#There was an error while attempting to save\n the address book. Please check that some \nother application is not using it. " }, | 486 | { "There was an error while attempting to save\n the address book. Please check that some \nother application is not using it. ","#There was an error while attempting to save\n the address book. Please check that some \nother application is not using it. " }, |
487 | { "Saving addressbook ... ","Speichere Adressbuch ... " }, | 487 | { "Saving addressbook ... ","Speichere Adressbuch ... " }, |
488 | { "Addressbook saved!","Adressbuch gespeichert!" }, | 488 | { "Addressbook saved!","Adressbuch gespeichert!" }, |
489 | { "Default Table View","Default Tabellenansicht" }, | 489 | { "Default Table View","Default Tabellenansicht" }, |
490 | { "Merge and Remove","Zusammenfügen/entfernen" }, | 490 | { "Merge and Remove","Zusammenfügen/entfernen" }, |
491 | { "Merge","Zusammenfügen" }, | 491 | { "Merge","Zusammenfügen" }, |
492 | { "Merge Contacts Editor","Contact-Zusammenfüge-Editor" }, | 492 | { "Merge Contacts Editor","Contact-Zusammenfüge-Editor" }, |
493 | { "New List...","Neue Liste..." }, | 493 | { "New List...","Neue Liste..." }, |
494 | { "Rename List...","Ändere Namen..." }, | 494 | { "Rename List...","Ändere Namen..." }, |
495 | { "Remove List","Lösche Liste" }, | 495 | { "Remove List","Lösche Liste" }, |
496 | { "Add Contact","Kontakt hinzu" }, | 496 | { "Add Contact","Kontakt hinzu" }, |
497 | { "Change Email...","Ändere Email..." }, | 497 | { "Change Email...","Ändere Email..." }, |
498 | { "Remove Contact","Entferne Kontakt" }, | 498 | { "Remove Contact","Entferne Kontakt" }, |
499 | { "Use Preferred","Nutze Preferred" }, | 499 | { "Use Preferred","Nutze Preferred" }, |
500 | { "Distribution List Editor","Distribution List Editor" }, | 500 | { "Distribution List Editor","Distribution List Editor" }, |
501 | { "Choose which contacts to export","Wähle Kontakte zum Exportieren" }, | 501 | { "Choose which contacts to export","Wähle Kontakte zum Exportieren" }, |
502 | { "Which contacts do you want to export?","Welche Kontakte sollen exportiert werden?" }, | 502 | { "Which contacts do you want to export?","Welche Kontakte sollen exportiert werden?" }, |
503 | { "Contact Selection","Kontaktauswahl" }, | 503 | { "Contact Selection","Kontaktauswahl" }, |
504 | { "&All","&Alle" }, | 504 | { "&All","&Alle" }, |
505 | { "Export the entire address book","Exportiere das komplette Addressbuch" }, | 505 | { "Export the entire address book","Exportiere das komplette Addressbuch" }, |
506 | { "&Selected","Au&sgewählte" }, | 506 | { "&Selected","Au&sgewählte" }, |
507 | { "Only export contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected.","###Only export contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected." }, | 507 | { "Only export contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected.","###Only export contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected." }, |
508 | { "By matching &filter","Zutreffender &Filter" }, | 508 | { "By matching &filter","Zutreffender &Filter" }, |
509 | { "Only export contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters","###Only export contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters" }, | 509 | { "Only export contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters","###Only export contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters" }, |
510 | { "By Cate&gories","Kategorien" }, | 510 | { "By Cate&gories","Kategorien" }, |
511 | { "Only export contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories.","###Only export contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories." }, | 511 | { "Only export contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories.","###Only export contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories." }, |
512 | { "Select a filter to decide which contacts to export.","Wähle Filter zum Export aus." }, | 512 | { "Select a filter to decide which contacts to export.","Wähle Filter zum Export aus." }, |
513 | { "Check the categories whose members you want to export.","Wähle die Kategorien zum Export aus." }, | 513 | { "Check the categories whose members you want to export.","Wähle die Kategorien zum Export aus." }, |
514 | { "Sorting","Sortieren" }, | 514 | { "Sorting","Sortieren" }, |
515 | { "Criterion:","Merkmal:" }, | 515 | { "Criterion:","Merkmal:" }, |
516 | { "Order:","Reihenfolge:" }, | 516 | { "Order:","Reihenfolge:" }, |
517 | { "Ascending","Aufsteigend" }, | 517 | { "Ascending","Aufsteigend" }, |
518 | { "Descending","Absteigend" }, | 518 | { "Descending","Absteigend" }, |
519 | { "Save file","Datei speichern" }, | 519 | { "Save file","Datei speichern" }, |
520 | { "Error","Fehler" }, | 520 | { "Error","Fehler" }, |
521 | { "Unable to export contacts.","Exportieren der Kontakte geht nicht." }, | 521 | { "Unable to export contacts.","Exportieren der Kontakte geht nicht." }, |
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 510f4bf..792cb91 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -715,513 +715,513 @@ | |||
715 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, | 715 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, |
716 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, | 716 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, |
717 | { "Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n","Sorry, das Kopierkommando schlug fehl!\nKommando war:\n%1\n \nVersuche Kommando von Kosole um\nDetails für das Fehlschlagen\nzu erfahren.\n" }, | 717 | { "Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n","Sorry, das Kopierkommando schlug fehl!\nKommando war:\n%1\n \nVersuche Kommando von Kosole um\nDetails für das Fehlschlagen\nzu erfahren.\n" }, |
718 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, | 718 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, |
719 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, | 719 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, |
720 | { "Edit Calendar Filters","Editiere Kalendar Filter" }, | 720 | { "Edit Calendar Filters","Editiere Kalendar Filter" }, |
721 | { "Enter filter name:","Neuer Filter Name:" }, | 721 | { "Enter filter name:","Neuer Filter Name:" }, |
722 | { "Add Filter","Filter hinzufügen" }, | 722 | { "Add Filter","Filter hinzufügen" }, |
723 | { "Question","Frage" }, | 723 | { "Question","Frage" }, |
724 | { "Filter position: ","Filter Position: " }, | 724 | { "Filter position: ","Filter Position: " }, |
725 | { "Month View","Monatsansicht" }, | 725 | { "Month View","Monatsansicht" }, |
726 | { "This profil cannot be deleted!\n","Dieses Profil kann\nnicht gelöscht werden!" }, | 726 | { "This profil cannot be deleted!\n","Dieses Profil kann\nnicht gelöscht werden!" }, |
727 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, | 727 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, |
728 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, | 728 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, |
729 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile haben denselben Namen!\nBitte unterschiedliche Namen wählen!" }, | 729 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile haben denselben Namen!\nBitte unterschiedliche Namen wählen!" }, |
730 | { "Access: ","Zugriff: " }, | 730 | { "Access: ","Zugriff: " }, |
731 | { "Needs Action","Aktion notwendig" }, | 731 | { "Needs Action","Aktion notwendig" }, |
732 | { "Accepted","Akzeptiert" }, | 732 | { "Accepted","Akzeptiert" }, |
733 | { "Declined","Abgelehnt" }, | 733 | { "Declined","Abgelehnt" }, |
734 | { "Tentative","Vorläufig" }, | 734 | { "Tentative","Vorläufig" }, |
735 | { "Delegated","Beauftragt" }, | 735 | { "Delegated","Beauftragt" }, |
736 | { "Completed","Vollständig" }, | 736 | { "Completed","Vollständig" }, |
737 | { "In Process","In Bearbeitung" }, | 737 | { "In Process","In Bearbeitung" }, |
738 | { "Participant","Teilnehmer" }, | 738 | { "Participant","Teilnehmer" }, |
739 | { "Optional Participant","Möglicher Teilnehmer" }, | 739 | { "Optional Participant","Möglicher Teilnehmer" }, |
740 | { "Observer","Beobachter" }, | 740 | { "Observer","Beobachter" }, |
741 | { "Chair","Vorsitzender" }, | 741 | { "Chair","Vorsitzender" }, |
742 | { "Not supported \non desktop!\n","" }, | 742 | { "Not supported \non desktop!\n","" }, |
743 | { "Nothing selected!\n\nThis prints the full width of the Agenda view as you see it!\n\nTo determine the vertical range of the printing, please select\na vertical range (with the left mouse button down) in one column. ","Es ist nichts selektiert!\nDieses druckt die volle Breite der Agenda View, so wie man sie sieht.\nUm die vertikale Auswahl zum Drucken zu bestimmen,\nbitte einen vertikalen Zeitraum (mit gedrückter linker Maustaste)\nin einer Spalte auswählen.\n(Es wird danach direkt der Termin Dialog angezeigt\n - dort bitte auf Abbrechen klicken) " }, | 743 | { "Nothing selected!\n\nThis prints the full width of the Agenda view as you see it!\n\nTo determine the vertical range of the printing, please select\na vertical range (with the left mouse button down) in one column. ","Es ist nichts selektiert!\nDieses druckt die volle Breite der Agenda View, so wie man sie sieht.\nUm die vertikale Auswahl zum Drucken zu bestimmen,\nbitte einen vertikalen Zeitraum (mit gedrückter linker Maustaste)\nin einer Spalte auswählen.\n(Es wird danach direkt der Termin Dialog angezeigt\n - dort bitte auf Abbrechen klicken) " }, |
744 | { "Date range: ","Datums Zeitspanne: " }, | 744 | { "Date range: ","Datums Zeitspanne: " }, |
745 | { "Not supported \non PDA!\n","Nicht verfügbar\nauf dem PDA. " }, | 745 | { "Not supported \non PDA!\n","Nicht verfügbar\nauf dem PDA. " }, |
746 | { "Syncing - close to abort!","Syncing-schließe um abzubrechen." }, | 746 | { "Syncing - close to abort!","Syncing-schließe um abzubrechen." }, |
747 | { "Add / remove events","Add./entferne Termine" }, | 747 | { "Add / remove events","Add./entferne Termine" }, |
748 | { "File does not exist:\n '%1'.","Datei existiert nicht:\n '%1'." }, | 748 | { "File does not exist:\n '%1'.","Datei existiert nicht:\n '%1'." }, |
749 | { "Couldn't load calendar\n '%1'.","Kann Kalender nicht laden:\n '%1'." }, | 749 | { "Couldn't load calendar\n '%1'.","Kann Kalender nicht laden:\n '%1'." }, |
750 | { "\nThe file on disk has changed!\nFile size: %1 bytes.\nLast modified: %2\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie gepeicherte Datei wurde verändert!\nDatei Grösse: %1 Bytes.\nZuletzt geändert: %2\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, | 750 | { "\nThe file on disk has changed!\nFile size: %1 bytes.\nLast modified: %2\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie gepeicherte Datei wurde verändert!\nDatei Grösse: %1 Bytes.\nZuletzt geändert: %2\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, |
751 | { "Overwrite","Überschreiben" }, | 751 | { "Overwrite","Überschreiben" }, |
752 | { "Sync+save","Syncen+speichern" }, | 752 | { "Sync+save","Syncen+speichern" }, |
753 | { "Default","Standard" }, | 753 | { "Default","Standard" }, |
754 | { " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, | 754 | { " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, |
755 | { " %d items?"," %d Einträge?" }, | 755 | { " %d items?"," %d Einträge?" }, |
756 | { "\nThis event recurs\nover multiple dates.\nAre you sure you want\nto delete this event\nand all its recurrences?","\nDieses ist ein\nwiederholender Termin!.\nSind Sie sicher, dass Sie\ndiesen Termin und alle\nWiederholungen löschen möchten?" }, | 756 | { "\nThis event recurs\nover multiple dates.\nAre you sure you want\nto delete this event\nand all its recurrences?","\nDieses ist ein\nwiederholender Termin!.\nSind Sie sicher, dass Sie\ndiesen Termin und alle\nWiederholungen löschen möchten?" }, |
757 | { " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, | 757 | { " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, |
758 | { "Current","Aktuelle" }, | 758 | { "Current","Aktuelle" }, |
759 | { "\nThis event recurs\nover multiple dates.\nDo you want to delete\nall it's recurrences,\nor only the current one on:\n","\nDieses ist ein\nwiederholender Termin!\nMöchten sie alle Wiederholungen\nlöschen, oder nur die aktuelle am:\n" }, | 759 | { "\nThis event recurs\nover multiple dates.\nDo you want to delete\nall it's recurrences,\nor only the current one on:\n","\nDieses ist ein\nwiederholender Termin!\nMöchten sie alle Wiederholungen\nlöschen, oder nur die aktuelle am:\n" }, |
760 | { "All","Alle" }, | 760 | { "All","Alle" }, |
761 | { "Data Loss Warning","Datenverlust Warnung" }, | 761 | { "Data Loss Warning","Datenverlust Warnung" }, |
762 | { "Proceed","Weitermachen" }, | 762 | { "Proceed","Weitermachen" }, |
763 | { "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, | 763 | { "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, |
764 | { "Filter disabled ","Filter abgeschaltet" }, | 764 | { "Filter disabled ","Filter abgeschaltet" }, |
765 | { "Filter selected: ","Gewählter Filter: " }, | 765 | { "Filter selected: ","Gewählter Filter: " }, |
766 | { "Toggle Cancel","Gecancelt ändern" }, | 766 | { "Toggle Cancel","Gecancelt ändern" }, |
767 | { "&Toggle Cancel","Gecancel&t ändern" }, | 767 | { "&Toggle Cancel","Gecancel&t ändern" }, |
768 | { "Configure Toolbar","Konfiguriere Toolbar" }, | 768 | { "Configure Toolbar","Konfiguriere Toolbar" }, |
769 | { "Stretched TB","Gedehnte TB" }, | 769 | { "Stretched TB","Gedehnte TB" }, |
770 | { "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, | 770 | { "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, |
771 | { "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, | 771 | { "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, |
772 | { "When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing","Wenn ein Kalender doppelt importiert\nwird, werden doppelte Einträge ignoriert!\nSie können eine Backup Datei anlegen unter\nDatei - Speichere Kalender Backup\num den Import rückgängig machen zu können.\n" }, | 772 | { "When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing","Wenn ein Kalender doppelt importiert\nwird, werden doppelte Einträge ignoriert!\nSie können eine Backup Datei anlegen unter\nDatei - Speichere Kalender Backup\num den Import rückgängig machen zu können.\n" }, |
773 | { "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, | 773 | { "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, |
774 | { "Imported file successfully","Datei erfolgreich importiert" }, | 774 | { "Imported file successfully","Datei erfolgreich importiert" }, |
775 | { "Error importing file","Fehler beim Importieren der Datei" }, | 775 | { "Error importing file","Fehler beim Importieren der Datei" }, |
776 | { "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, | 776 | { "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, |
777 | { "Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n","Zu speichernde Datei\existiert bereits!\nExist. Datei vom:\n%1\nÜberschreiben?\n" }, | 777 | { "Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n","Zu speichernde Datei\existiert bereits!\nExist. Datei vom:\n%1\nÜberschreiben?\n" }, |
778 | { "Overwrite!","Überschreiben!" }, | 778 | { "Overwrite!","Überschreiben!" }, |
779 | { "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n","Import Datei \n...%1\nvom:\n%2\nDuplizierte Einträge\nwerden nicht importiert!\n" }, | 779 | { "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n","Import Datei \n...%1\nvom:\n%2\nDuplizierte Einträge\nwerden nicht importiert!\n" }, |
780 | { "Load backup filename","Lade Backup Dateiname" }, | 780 | { "Load backup filename","Lade Backup Dateiname" }, |
781 | { "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, | 781 | { "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, |
782 | { "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, | 782 | { "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, |
783 | { "Save backup filename","Speichere Backup Dateiname" }, | 783 | { "Save backup filename","Speichere Backup Dateiname" }, |
784 | { "Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n","Backup Datei\nexistiert bereits!\nAlte Backup Datei vom:\n%1\nÜberschreiben?\n" }, | 784 | { "Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n","Backup Datei\nexistiert bereits!\nAlte Backup Datei vom:\n%1\nÜberschreiben?\n" }, |
785 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, | 785 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, |
786 | { "Details of attendee","Teilnehmerdetails" }, | 786 | { "Details of attendee","Teilnehmerdetails" }, |
787 | { "Work phone:\n","Telefon Arbeit:\n" }, | 787 | { "Work phone:\n","Telefon Arbeit:\n" }, |
788 | { "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, | 788 | { "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, |
789 | { "Home phone:\n","Telefon privat:\n" }, | 789 | { "Home phone:\n","Telefon privat:\n" }, |
790 | { "Mobile home phone:\n","Mobiltelefon privat:\n" }, | 790 | { "Mobile home phone:\n","Mobiltelefon privat:\n" }, |
791 | { "Email:\n","Email:\n" }, | 791 | { "Email:\n","Email:\n" }, |
792 | { "Alarm disabled for this item","Alarm deaktiviert für dieses Item" }, | 792 | { "Alarm disabled for this item","Alarm deaktiviert für dieses Item" }, |
793 | { "Audio Al.: ","Audio Al.: " }, | 793 | { "Audio Al.: ","Audio Al.: " }, |
794 | { "Proc.Al.: ","Proz.Al.: " }, | 794 | { "Proc.Al.: ","Proz.Al.: " }, |
795 | { "No sound set","Kein Sound definiert" }, | 795 | { "No sound set","Kein Sound definiert" }, |
796 | { "*.wav|Wav Files","*.wav|Wav Dateien" }, | 796 | { "*.wav|Wav Files","*.wav|Wav Dateien" }, |
797 | { "No program set","Kein Programm definiert" }, | 797 | { "No program set","Kein Programm definiert" }, |
798 | { "Running '%1'","Ausführen '%1'" }, | 798 | { "Running '%1'","Ausführen '%1'" }, |
799 | { "Playing '%1'","Abspielen '%1'" }, | 799 | { "Playing '%1'","Abspielen '%1'" }, |
800 | { "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" }, | 800 | { "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" }, |
801 | { "Load!","Laden!" }, | 801 | { "Load!","Laden!" }, |
802 | { "Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n","Backup Datei vom:\n%1\nDas Laden der Backup Datei\nlöscht die aktuellen Daten!\n" }, | 802 | { "Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n","Backup Datei vom:\n%1\nDas Laden der Backup Datei\nlöscht die aktuellen Daten!\n" }, |
803 | { "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, | 803 | { "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, |
804 | { "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, | 804 | { "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, |
805 | { "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, | 805 | { "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, |
806 | { "Features + hints...","Eigenschaften + Tipps..." }, | 806 | { "Features + hints...","Eigenschaften + Tipps..." }, |
807 | { "User translation...","Benutzer Übersetzung..." }, | 807 | { "User translation...","Benutzer Übersetzung..." }, |
808 | { "Sync HowTo...","Synchronisation HowTo..." }, | 808 | { "Sync HowTo...","Synchronisation HowTo..." }, |
809 | { "Print calendar...","Drucke Kalender..." }, | 809 | { "Print calendar...","Drucke Kalender..." }, |
810 | { "Anniversary","Jahrestag" }, | 810 | { "Anniversary","Jahrestag" }, |
811 | { "When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n","Wenn Geburtstage mehrfach importiert\nwerden, werden doppelte Einträge ignoriert\nwenn sie nicht verändert wurden.\n" }, | 811 | { "When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n","Wenn Geburtstage mehrfach importiert\nwerden, werden doppelte Einträge ignoriert\nwenn sie nicht verändert wurden.\n" }, |
812 | { "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, | 812 | { "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, |
813 | { "Next recurrence is on: ","Nächste Wiederholung ist am:" }, | 813 | { "Next recurrence is on: ","Nächste Wiederholung ist am:" }, |
814 | { "<b>Alarm on: </b>","<b>Alarm am: </b>" }, | 814 | { "<b>Alarm on: </b>","<b>Alarm am: </b>" }, |
815 | { "<b>Access: </b>","<b>Zugriff: </b>" }, | 815 | { "<b>Access: </b>","<b>Zugriff: </b>" }, |
816 | { "(%1 min before)","(%1 min vorher)" }, | 816 | { "(%1 min before)","(%1 min vorher)" }, |
817 | { "<b>Categories: </b>","<b>Kategorien: </b>" }, | 817 | { "<b>Categories: </b>","<b>Kategorien: </b>" }, |
818 | { "Save Journal/Description...","Speichere Journal/Details..." }, | 818 | { "Save Journal/Description...","Speichere Journal/Details..." }, |
819 | { "This saves the text/details of selected\nJournals and Events/Todos\nto a text file.","Das speichert den Text bzw.\ndie Details von selektierten\nJournalen und Events/Todos\nin eine Textdatei." }, | 819 | { "This saves the text/details of selected\nJournals and Events/Todos\nto a text file.","Das speichert den Text bzw.\ndie Details von selektierten\nJournalen und Events/Todos\nin eine Textdatei." }, |
820 | { "Continue","Weitermachen" }, | 820 | { "Continue","Weitermachen" }, |
821 | { " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, | 821 | { " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, |
822 | { "Attendee:","Teilnehmer:" }, | 822 | { "Attendee:","Teilnehmer:" }, |
823 | { "Click OK to search ->","Klicke zum Suchen auf OK ->" }, | 823 | { "Click OK to search ->","Klicke zum Suchen auf OK ->" }, |
824 | { "On day ","Am Tag " }, | 824 | { "On day ","Am Tag " }, |
825 | { "%1 of ","%1 des Monats" }, | 825 | { "%1 of ","%1 des Monats" }, |
826 | { "%1 of the year","%1 des Jahres" }, | 826 | { "%1 of the year","%1 des Jahres" }, |
827 | { "Anonymous","Anonymo" }, | 827 | { "Anonymous","Anonymo" }, |
828 | { "nobody@nowhere","niemand@nirgendwo" }, | 828 | { "nobody@nowhere","niemand@nirgendwo" }, |
829 | { "calendar.html","calendar.html" }, | 829 | { "calendar.html","calendar.html" }, |
830 | { " Local Time"," Locale Zeit" }, | 830 | { " Local Time"," Locale Zeit" }, |
831 | { "Unknown Name","Unbekannter Name" }, | 831 | { "Unknown Name","Unbekannter Name" }, |
832 | { "unknown@nowhere","unbekannt@nirgendwo" }, | 832 | { "unknown@nowhere","unbekannt@nirgendwo" }, |
833 | { "Beam via IR!","Beam via IR!" }, | 833 | { "Beam via IR!","Beam via IR!" }, |
834 | { "Next Month","Nächster Monat" }, | 834 | { "Next Month","Nächster Monat" }, |
835 | { "Prio","Prio" }, | 835 | { "Prio","Prio" }, |
836 | { "Reparent Todo","Mache Sub-Todo" }, | 836 | { "Reparent Todo","Mache Sub-Todo" }, |
837 | { "tomorrow","morgen" }, | 837 | { "tomorrow","morgen" }, |
838 | { "today","heute" }, | 838 | { "today","heute" }, |
839 | { "yesterday","gestern" }, | 839 | { "yesterday","gestern" }, |
840 | { "Ok","Ok" }, | 840 | { "Ok","Ok" }, |
841 | { "Ok+Agenda","Ok+Agenda" }, | 841 | { "Ok+Agenda","Ok+Agenda" }, |
842 | { "Email","Email" }, | 842 | { "Email","Email" }, |
843 | { "RSVP","RSVP" }, | 843 | { "RSVP","RSVP" }, |
844 | { "Email:","Email:" }, | 844 | { "Email:","Email:" }, |
845 | { "Appointment Time ","Termin Zeit " }, | 845 | { "Appointment Time ","Termin Zeit " }, |
846 | { "2","2" }, | 846 | { "2","2" }, |
847 | { "3","3" }, | 847 | { "3","3" }, |
848 | { "4","4" }, | 848 | { "4","4" }, |
849 | { " 0 %"," 0 %" }, | 849 | { " 0 %"," 0 %" }, |
850 | { " 20 %"," 20 %" }, | 850 | { " 20 %"," 20 %" }, |
851 | { " 40 %"," 40 %" }, | 851 | { " 40 %"," 40 %" }, |
852 | { " 60 %"," 60 %" }, | 852 | { " 60 %"," 60 %" }, |
853 | { " 80 %"," 80 %" }, | 853 | { " 80 %"," 80 %" }, |
854 | { "100 %","100 %" }, | 854 | { "100 %","100 %" }, |
855 | { "Filter","Filter" }, | 855 | { "Filter","Filter" }, |
856 | { "Configure","Konfiguriere" }, | 856 | { "Configure","Konfiguriere" }, |
857 | { "What's Next","What's Next" }, | 857 | { "What's Next","What's Next" }, |
858 | { "Complete calendar...","Kompletten Kalender..." }, | 858 | { "Complete calendar...","Kompletten Kalender..." }, |
859 | { "Filtered calendar...","Gefilterten Kalender..." }, | 859 | { "Filtered calendar...","Gefilterten Kalender..." }, |
860 | { "Export to phone","Exportiere zum Handy" }, | 860 | { "Export to phone","Exportiere zum Handy" }, |
861 | { "Beam receive enabled","Beam Empfang an" }, | 861 | { "Beam receive enabled","Beam Empfang an" }, |
862 | { "What's new?","Was ist neu?" }, | 862 | { "What's new?","Was ist neu?" }, |
863 | { "FAQ...","FAQ..." }, | 863 | { "FAQ...","FAQ..." }, |
864 | { "Licence...","Licence..." }, | 864 | { "Licence...","Licence..." }, |
865 | { "What's This?","What's This?" }, | 865 | { "What's This?","What's This?" }, |
866 | { "&Edit...","&Editiere..." }, | 866 | { "&Edit...","&Editiere..." }, |
867 | { "Oktober","Oktober" }, | 867 | { "Oktober","Oktober" }, |
868 | { "Title","Titel" }, | 868 | { "Title","Titel" }, |
869 | { "%1 %","%1 %" }, | 869 | { "%1 %","%1 %" }, |
870 | { "Enable Pi-Sync","Schalte Pi-Sync an" }, | 870 | { "Enable Pi-Sync","Schalte Pi-Sync an" }, |
871 | { "Import!","Importiere!" }, | 871 | { "Import!","Importiere!" }, |
872 | { "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, | 872 | { "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, |
873 | { "Export to phone options","Export ans Handy Optionen" }, | 873 | { "Export to phone options","Export ans Handy Optionen" }, |
874 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, | 874 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, |
875 | { "I/O device: ","I/O device: " }, | 875 | { "I/O device: ","I/O device: " }, |
876 | { "Connection: ","Connection: " }, | 876 | { "Connection: ","Connection: " }, |
877 | { "Model(opt.): ","Model(opt.): " }, | 877 | { "Model(opt.): ","Model(opt.): " }, |
878 | { "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, | 878 | { "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, |
879 | { "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, | 879 | { "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, |
880 | { "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nTodo/Kalender Daten auf dem Handy!" }, | 880 | { "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nTodo/Kalender Daten auf dem Handy!" }, |
881 | { "Export to mobile phone!","Exportiere auf das Handy!" }, | 881 | { "Export to mobile phone!","Exportiere auf das Handy!" }, |
882 | { "Export complete calendar","Exportiere kompletten Kalender" }, | 882 | { "Export complete calendar","Exportiere kompletten Kalender" }, |
883 | { "Writing to phone...","Sende Daten ans Handy..." }, | 883 | { "Writing to phone...","Sende Daten ans Handy..." }, |
884 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, | 884 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, |
885 | { "Retry","Nochmal versuchen" }, | 885 | { "Retry","Nochmal versuchen" }, |
886 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, | 886 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, |
887 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, | 887 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, |
888 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, | 888 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, |
889 | { "Export filtered calendar","Exportiere gefilterten Kalender" }, | 889 | { "Export filtered calendar","Exportiere gefilterten Kalender" }, |
890 | { "Preferences","Vorlieben" }, | 890 | { "Preferences","Vorlieben" }, |
891 | { "Global","Global" }, | 891 | { "Global","Global" }, |
892 | { "Phone","Phone" }, | 892 | { "Phone","Phone" }, |
893 | { "SMS","SMS" }, | 893 | { "SMS","SMS" }, |
894 | { "Fax","Fax" }, | 894 | { "Fax","Fax" }, |
895 | { "Pager","Pager" }, | 895 | { "Pager","Pager" }, |
896 | { "SIP","SIP" }, | 896 | { "SIP","SIP" }, |
897 | { "Italian","Italienisch" }, | 897 | { "Italian","Italienisch" }, |
898 | { "24:00","24:00" }, | 898 | { "24:00","24:00" }, |
899 | { "12:00am","12:00am" }, | 899 | { "12:00am","12:00am" }, |
900 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, | 900 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, |
901 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, | 901 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, |
902 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, | 902 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, |
903 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, | 903 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, |
904 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, | 904 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, |
905 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, | 905 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, |
906 | { "Used Mail Client","Benutzter Mail Client" }, | 906 | { "Used Mail Client","Benutzter Mail Client" }, |
907 | { "Channel:","Channel:" }, | 907 | { "Channel:","Channel:" }, |
908 | { "Message:","Message:" }, | 908 | { "Message:","Message:" }, |
909 | { "Parameters:","Parameter:" }, | 909 | { "Parameters:","Parameter:" }, |
910 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, | 910 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, |
911 | { "extra Message:","extra Message:" }, | 911 | { "extra Message:","extra Message:" }, |
912 | { "extra Parameters:","extra Parameter:" }, | 912 | { "extra Parameters:","extra Parameter:" }, |
913 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, | 913 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, |
914 | { "External Apps.","Externe Appl." }, | 914 | { "External Apps.","Externe Appl." }, |
915 | { "24 hours","24 Std." }, | 915 | { "24 hours","24 Std." }, |
916 | { "3 hours","3 Std." }, | 916 | { "3 hours","3 Std." }, |
917 | { "1 hour","1 Std." }, | 917 | { "1 hour","1 Std." }, |
918 | { "15 minutes","15 Min." }, | 918 | { "15 minutes","15 Min." }, |
919 | { "5 minutes","5 Min." }, | 919 | { "5 minutes","5 Min." }, |
920 | { "1 minute","1 Min." }, | 920 | { "1 minute","1 Min." }, |
921 | { "23","23" }, | 921 | { "23","23" }, |
922 | { "Mon 15","Mon 15" }, | 922 | { "Mon 15","Mon 15" }, |
923 | { "Configure KO","Konfiguriere KO" }, | 923 | { "Configure KO","Konfiguriere KO" }, |
924 | { "Event text","Termin Text" }, | 924 | { "Event text","Termin Text" }, |
925 | { "ToDo","Todo" }, | 925 | { "ToDo","Todo" }, |
926 | { "Today","Heute" }, | 926 | { "Today","Heute" }, |
927 | { "What's Next View","What's Next Ansicht" }, | 927 | { "What's Next View","What's Next Ansicht" }, |
928 | { "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, | 928 | { "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, |
929 | { "Alarm","Alarm" }, | 929 | { "Alarm","Alarm" }, |
930 | { "Used %1 Client","Benutzter %1 Client" }, | 930 | { "Used %1 Client","Benutzter %1 Client" }, |
931 | { "No email client installed","Kein Email Klient installiert" }, | 931 | { "No email client installed","Kein Email Klient installiert" }, |
932 | { "Userdefined email client","Benutzerdef. Email Klient" }, | 932 | { "Userdefined email client","Benutzerdef. Email Klient" }, |
933 | { "OM/Pi email client","OM/Pi Email Klient" }, | 933 | { "OM/Pi email client","OM/Pi Email Klient" }, |
934 | { "Include in multiple ","Beziehe in multiple " }, | 934 | { "Include in multiple ","Beziehe in multiple " }, |
935 | { "calendar ","Kalender " }, | 935 | { "calendar ","Kalender " }, |
936 | { "addressbook ","Adressbuch " }, | 936 | { "addressbook ","Adressbuch " }, |
937 | { "pwmanager","PWmanager" }, | 937 | { "pwmanager","PWmanager" }, |
938 | { " sync"," Sync ein" }, | 938 | { " sync"," Sync ein" }, |
939 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, | 939 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, |
940 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, | 940 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, |
941 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, | 941 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, |
942 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, | 942 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, |
943 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, | 943 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, |
944 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, | 944 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, |
945 | { "Help...","Hilfe..." }, | 945 | { "Help...","Hilfe..." }, |
946 | { "Local file Cal:","Lokale Datei Kal:" }, | 946 | { "Local file Cal:","Lokale Datei Kal:" }, |
947 | { "Local file ABook:","Lokale Datei ABuch:" }, | 947 | { "Local file ABook:","Lokale Datei ABuch:" }, |
948 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, | 948 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, |
949 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, | 949 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, |
950 | { "Calendar:","Kalender:" }, | 950 | { "Calendar:","Kalender:" }, |
951 | { "AddressBook:","AdressBuch:" }, | 951 | { "AddressBook:","AdressBuch:" }, |
952 | { "PWManager:","PWManager:" }, | 952 | { "PWManager:","PWManager:" }, |
953 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, | 953 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, |
954 | { "ssh/scp","ssh/scp" }, | 954 | { "ssh/scp","ssh/scp" }, |
955 | { "ftp","ftp" }, | 955 | { "ftp","ftp" }, |
956 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, | 956 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, |
957 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, | 957 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, |
958 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, | 958 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, |
959 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, | 959 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, |
960 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, | 960 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, |
961 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, | 961 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, |
962 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, | 962 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, |
963 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, | 963 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, |
964 | { "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" }, | 964 | { "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" }, |
965 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, | 965 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, |
966 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, | 966 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, |
967 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, | 967 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, |
968 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, | 968 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, |
969 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, | 969 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, |
970 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, | 970 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, |
971 | { "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!" }, | 971 | { "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!" }, |
972 | { "KDE-Pim Sync","KDE-Pim Sync" }, | 972 | { "KDE-Pim Sync","KDE-Pim Sync" }, |
973 | { "Multiple profiles","Multi-Sync Profile" }, | 973 | { "Multiple profiles","Multi-Sync Profile" }, |
974 | { "Device: ","Gerät: " }, | 974 | { "Device: ","Gerät: " }, |
975 | { "Multiple sync started.","Multi-Sync gestartet." }, | 975 | { "Multiple sync started.","Multi-Sync gestartet." }, |
976 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, | 976 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, |
977 | { "Turn filter on","Schalte Filter an" }, | 977 | { "Turn filter on","Schalte Filter an" }, |
978 | { "Turn filter off","Schalte Filter aus" }, | 978 | { "Turn filter off","Schalte Filter aus" }, |
979 | { "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, | 979 | { "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, |
980 | { "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, | 980 | { "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, |
981 | { "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, | 981 | { "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, |
982 | { "<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" }, | 982 | { "<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" }, |
983 | { "<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" }, | 983 | { "<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" }, |
984 | { "<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" }, | 984 | { "<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" }, |
985 | { "<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" }, | 985 | { "<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" }, |
986 | { "<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" }, | 986 | { "<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" }, |
987 | { "<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" }, | 987 | { "<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" }, |
988 | { "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, | 988 | { "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, |
989 | { "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, | 989 | { "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, |
990 | { "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, | 990 | { "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, |
991 | { "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, | 991 | { "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, |
992 | { "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, | 992 | { "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, |
993 | { "<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" }, | 993 | { "<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" }, |
994 | { "<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" }, | 994 | { "<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" }, |
995 | { "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, | 995 | { "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, |
996 | { "<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" }, | 996 | { "<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" }, |
997 | { "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, | 997 | { "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, |
998 | { "<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" }, | 998 | { "<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" }, |
999 | { "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, | 999 | { "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, |
1000 | { "<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" }, | 1000 | { "<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" }, |
1001 | { "<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" }, | 1001 | { "<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" }, |
1002 | { "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, | 1002 | { "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, |
1003 | { "<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" }, | 1003 | { "<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" }, |
1004 | { "<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" }, | 1004 | { "<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" }, |
1005 | { "<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" }, | 1005 | { "<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" }, |
1006 | { "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, | 1006 | { "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, |
1007 | { "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, | 1007 | { "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, |
1008 | { "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, | 1008 | { "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, |
1009 | { "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, | 1009 | { "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, |
1010 | { "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, | 1010 | { "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, |
1011 | { "<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" }, | 1011 | { "<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" }, |
1012 | { "<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" }, | 1012 | { "<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" }, |
1013 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, | 1013 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, |
1014 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, | 1014 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, |
1015 | { "<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" }, | 1015 | { "<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" }, |
1016 | { "<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X+ctrl</b>: Zeige/verstecke Datumsnavigator</p>\n" }, | 1016 | { "<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X+ctrl</b>: Zeige/verstecke Datumsnavigator</p>\n" }, |
1017 | { "<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" }, | 1017 | { "<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" }, |
1018 | { "<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" }, | 1018 | { "<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" }, |
1019 | { "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monatsansicht</p>\n" }, | 1019 | { "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monatsansicht</p>\n" }, |
1020 | { "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochenansicht | <b>U</b>: Wochenansicht</p>\n" }, | 1020 | { "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochenansicht | <b>U</b>: Wochenansicht</p>\n" }, |
1021 | { "<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" }, | 1021 | { "<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" }, |
1022 | { "<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ","<p><b>X</b>: Nächste-X-Tage Ansicht | <b>W</b>: What's Next Ansicht\n " }, | 1022 | { "<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ","<p><b>X</b>: Nächste-X-Tage Ansicht | <b>W</b>: What's Next Ansicht\n " }, |
1023 | { "<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" }, | 1023 | { "<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" }, |
1024 | { "<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" }, | 1024 | { "<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" }, |
1025 | { "<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" }, | 1025 | { "<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" }, |
1026 | { "<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" }, | 1026 | { "<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" }, |
1027 | { "<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" }, | 1027 | { "<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" }, |
1028 | { "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, | 1028 | { "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, |
1029 | { "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" }, | 1029 | { "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" }, |
1030 | { "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, | 1030 | { "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, |
1031 | { "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, | 1031 | { "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, |
1032 | { "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, | 1032 | { "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, |
1033 | { "\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.info\n" }, | 1033 | { "\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.info\n" }, |
1034 | { "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" }, | 1034 | { "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" }, |
1035 | { "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" }, | 1035 | { "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" }, |
1036 | { "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, | 1036 | { "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, |
1037 | { "KO/Pi FAQ","KO/Pi FAQ" }, | 1037 | { "KO/Pi FAQ","KO/Pi FAQ" }, |
1038 | { "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, | 1038 | { "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, |
1039 | { "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, | 1039 | { "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, |
1040 | { "About KOrganizer/Pi","Über KOrganizer/Pi" }, | 1040 | { "About KOrganizer/Pi","Über KOrganizer/Pi" }, |
1041 | { "From: ","Von: " }, | 1041 | { "From: ","Von: " }, |
1042 | { "Remove sync info","Entferne Sync Info" }, | 1042 | { "Remove sync info","Entferne Sync Info" }, |
1043 | { "For all profiles","Für alle Profile" }, | 1043 | { "For all profiles","Für alle Profile" }, |
1044 | { "Hide not Running","Verstecke nicht Laufende" }, | 1044 | { "Hide not Running","Verstecke nicht Laufende" }, |
1045 | { "ME","ME" }, | 1045 | { "ME","ME" }, |
1046 | { "Toolbar","Toolbar" }, | 1046 | { "Toolbar","Toolbar" }, |
1047 | { "Undo Delete...","Löschen rückgängig machen..." }, | 1047 | { "Undo Delete...","Löschen rückgängig machen..." }, |
1048 | { "Undo Delete","Löschen rückgängig machen" }, | 1048 | { "Undo Delete","Löschen rückgängig machen" }, |
1049 | { "KDE Sync HowTo...","KDE Sync HowTo..." }, | 1049 | { "KDE Sync HowTo...","KDE Sync HowTo..." }, |
1050 | { "Multi Sync HowTo...","Multi Sync HowTo..." }, | 1050 | { "Multi Sync HowTo...","Multi Sync HowTo..." }, |
1051 | { "Januar","Januar" }, | 1051 | { "Januar","Januar" }, |
1052 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, | 1052 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, |
1053 | { "No Filter","Kein Filter" }, | 1053 | { "No Filter","Kein Filter" }, |
1054 | { "Multiple Sync options","Multi Sync Optionen" }, | 1054 | { "Multiple Sync options","Multi Sync Optionen" }, |
1055 | { "Sync algo options","Sync Ablauf Optionen" }, | 1055 | { "Sync algo options","Sync Ablauf Optionen" }, |
1056 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, | 1056 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, |
1057 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, | 1057 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, |
1058 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, | 1058 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, |
1059 | { "Write back options","Optionen zum Zurückschreiben" }, | 1059 | { "Write back options","Optionen zum Zurückschreiben" }, |
1060 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, | 1060 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, |
1061 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, | 1061 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, |
1062 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, | 1062 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, |
1063 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, | 1063 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, |
1064 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, | 1064 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, |
1065 | { "Time period","Zeitspanne" }, | 1065 | { "Time period","Zeitspanne" }, |
1066 | { "From ","Von " }, | 1066 | { "From ","Von " }, |
1067 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, | 1067 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, |
1068 | { " weeks in the future "," Wochen in der Zukunft " }, | 1068 | { " weeks in the future "," Wochen in der Zukunft " }, |
1069 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, | 1069 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, |
1070 | { "Local temp file:","Lokale temp Datei:" }, | 1070 | { "Local temp file:","Lokale temp Datei:" }, |
1071 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, | 1071 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, |
1072 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, | 1072 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, |
1073 | { "Language","Sprache" }, | 1073 | { "Language","Sprache" }, |
1074 | { "Time Format","Zeit Format" }, | 1074 | { "Time Format","Zeit Format" }, |
1075 | { "Time Zone","Zeit Zone" }, | 1075 | { "Time Zone","Zeit Zone" }, |
1076 | { "%1 groups subscribed","%1 Guppen abboniert" }, | 1076 | { "%1 groups subscribed","%1 Guppen abboniert" }, |
1077 | { "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" }, | 1077 | { "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" }, |
1078 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, | 1078 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, |
1079 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, | 1079 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, |
1080 | { "Save settings","Speichere Einstellungen" }, | 1080 | { "Save settings","Speichere Einstellungen" }, |
1081 | { "Save standard","Speichere Standard" }, | 1081 | { "Save standard","Speichere Standard" }, |
1082 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, | 1082 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, |
1083 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, | 1083 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, |
1084 | { "Data storage path","Daten Speicherpfad" }, | 1084 | { "Data storage path","Daten Speicherpfad" }, |
1085 | { "Language","Sprache" }, | 1085 | { "Language","Sprache" }, |
1086 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, | 1086 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, |
1087 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, | 1087 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, |
1088 | { "Show events that are done","Zeige abgelaufene Termine" }, | 1088 | { "Show events that are done","Zeige abgelaufene Termine" }, |
1089 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, | 1089 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, |
1090 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, | 1090 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, |
1091 | { "KO/Pi","KO/Pi" }, | 1091 | { "KO/Pi","KO/Pi" }, |
1092 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, | 1092 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, |
1093 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, | 1093 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, |
1094 | { "Sound.Al.: ","Sound.Al.: " }, | 1094 | { "Sound.Al.: ","Sound.Al.: " }, |
1095 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, | 1095 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, |
1096 | { "Restore","Wiederherstellen" }, | 1096 | { "Restore","Wiederherstellen" }, |
1097 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, | 1097 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, |
1098 | { "% completed","% erledigt" }, | 1098 | { "% completed","% erledigt" }, |
1099 | { "%d item(s) found.","%d Item(s) gefunden." }, | 1099 | { "%d item(s) found.","%d Item(s) gefunden." }, |
1100 | { "Set complete","Setze auf erledigt" }, | 1100 | { "Set complete","Setze auf erledigt" }, |
1101 | { "(cancelled)","(gecancelt)" }, | 1101 | { "(cancelled)","(gecancelt)" }, |
1102 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, | 1102 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, |
1103 | { " Local time "," Locale Zeit " }, | 1103 | { " Local time "," Locale Zeit " }, |
1104 | { "Form2","Form2" }, | 1104 | { "Form2","Form2" }, |
1105 | { "Filter enabled","Filter angeschaltet" }, | 1105 | { "Filter enabled","Filter angeschaltet" }, |
1106 | { "Edit Filters","Ändere Filter" }, | 1106 | { "Edit Filters","Ändere Filter" }, |
1107 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, | 1107 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, |
1108 | { "Agenda","Agenda" }, | 1108 | { "Agenda","Agenda" }, |
1109 | { " ("," (" }, | 1109 | { " ("," (" }, |
1110 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, | 1110 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, |
1111 | { "Print","Print" }, | 1111 | { "Print","Print" }, |
1112 | { "&Setup Printer...","Drucker &Setup..." }, | 1112 | { "&Setup Printer...","Drucker &Setup..." }, |
1113 | { "View Type","Zeige Typ" }, | 1113 | { "View Type","Zeige Typ" }, |
1114 | { "Page &orientation:","Seiten Ausrichtung:" }, | 1114 | { "Page &orientation:","Seiten Ausrichtung:" }, |
1115 | { "Use Default of Selected Style","Default des selektierten Stils" }, | 1115 | { "Use Default of Selected Style","Default des selektierten Stils" }, |
1116 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, | 1116 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, |
1117 | { "Portrait","Portrait" }, | 1117 | { "Portrait","Portrait" }, |
1118 | { "Landscape","Landschaft" }, | 1118 | { "Landscape","Landschaft" }, |
1119 | { "Print day","Drucke Tag" }, | 1119 | { "Print day","Drucke Tag" }, |
1120 | { "CalPrintDay_Base","CalPrintDay_Base" }, | 1120 | { "CalPrintDay_Base","CalPrintDay_Base" }, |
1121 | { "Date && Time Range","Datum && Zeitspanne" }, | 1121 | { "Date && Time Range","Datum && Zeitspanne" }, |
1122 | { "&End date:","&Enddatum:" }, | 1122 | { "&End date:","&Enddatum:" }, |
1123 | { "&Start date:","&Startdatum:" }, | 1123 | { "&Start date:","&Startdatum:" }, |
1124 | { "Start &time:","Startzeit:" }, | 1124 | { "Start &time:","Startzeit:" }, |
1125 | { "End ti&me:","Endzeit:" }, | 1125 | { "End ti&me:","Endzeit:" }, |
1126 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, | 1126 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, |
1127 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, | 1127 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, |
1128 | { "Alt+D","Alt+D" }, | 1128 | { "Alt+D","Alt+D" }, |
1129 | { "&Use colors","Nutze Farben" }, | 1129 | { "&Use colors","Nutze Farben" }, |
1130 | { "Alt+U","Alt+U" }, | 1130 | { "Alt+U","Alt+U" }, |
1131 | { "Print week","Drucke Woche" }, | 1131 | { "Print week","Drucke Woche" }, |
1132 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, | 1132 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, |
1133 | { "Use &colors","Nutze Farben" }, | 1133 | { "Use &colors","Nutze Farben" }, |
1134 | { "Type of View","Typ der Ansicht" }, | 1134 | { "Type of View","Typ der Ansicht" }, |
1135 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, | 1135 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, |
1136 | { "Alt+F","Alt+F" }, | 1136 | { "Alt+F","Alt+F" }, |
1137 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, | 1137 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, |
1138 | { "Alt+T","Alt+T" }, | 1138 | { "Alt+T","Alt+T" }, |
1139 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, | 1139 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, |
1140 | { "Print month","Drucke Monat" }, | 1140 | { "Print month","Drucke Monat" }, |
1141 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, | 1141 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, |
1142 | { "&Start month:","&Startmonat:" }, | 1142 | { "&Start month:","&Startmonat:" }, |
1143 | { "&End month:","&Endmonat:" }, | 1143 | { "&End month:","&Endmonat:" }, |
1144 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, | 1144 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, |
1145 | { "Print todos","Drucke Todos" }, | 1145 | { "Print todos","Drucke Todos" }, |
1146 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, | 1146 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, |
1147 | { "Include &description of the item","Inclusive Itembeschreibung" }, | 1147 | { "Include &description of the item","Inclusive Itembeschreibung" }, |
1148 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, | 1148 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, |
1149 | { "Include &priority of the item","Inclusive Priorität des Items" }, | 1149 | { "Include &priority of the item","Inclusive Priorität des Items" }, |
1150 | { "Items to Print","Zu druckende Items" }, | 1150 | { "Items to Print","Zu druckende Items" }, |
1151 | { "&From:","Von:" }, | 1151 | { "&From:","Von:" }, |
1152 | { "&To:","Bis:" }, | 1152 | { "&To:","Bis:" }, |
1153 | { "Print &all todo items","Drucke alle Todo Items" }, | 1153 | { "Print &all todo items","Drucke alle Todo Items" }, |
1154 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, | 1154 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, |
1155 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, | 1155 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, |
1156 | { "Todo List","Todo Liste" }, | 1156 | { "Todo List","Todo Liste" }, |
1157 | { "&Title:","&Titel:" }, | 1157 | { "&Title:","&Titel:" }, |
1158 | { "Co&nnect subtodos with its parent","Verbinde Untertodos mit ihren Ober-Todos" }, | 1158 | { "Co&nnect subtodos with its parent","Verbinde Untertodos mit ihren Ober-Todos" }, |
1159 | { "Todo list","Todo Liste" }, | 1159 | { "Todo list","Todo Liste" }, |
1160 | { "&Print...","Drucke..." }, | 1160 | { "&Print...","Drucke..." }, |
1161 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, | 1161 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, |
1162 | { "[Unconfigured]","[Unkonfiguriert]" }, | 1162 | { "[Unconfigured]","[Unkonfiguriert]" }, |
1163 | { "OK","OK" }, | 1163 | { "OK","OK" }, |
1164 | { "FilterEditor","FilterEditor" }, | 1164 | { "FilterEditor","FilterEditor" }, |
1165 | { "Include","Inclusive" }, | 1165 | { "Include","Inclusive" }, |
1166 | { "Exclude","Exclusive" }, | 1166 | { "Exclude","Exclusive" }, |
1167 | { "Edit Selection...","Editiere Auswahl" }, | 1167 | { "Edit Selection...","Editiere Auswahl" }, |
1168 | { "recurring events","wiederholende Termine" }, | 1168 | { "recurring events","wiederholende Termine" }, |
1169 | { "recurr. events","wiederh.Termine" }, | 1169 | { "recurr. events","wiederh.Termine" }, |
1170 | { "completed to-dos","erledigte Todos" }, | 1170 | { "completed to-dos","erledigte Todos" }, |
1171 | { "events","Termine" }, | 1171 | { "events","Termine" }, |
1172 | { "todos","Todos" }, | 1172 | { "todos","Todos" }, |
1173 | { "journals","Journale" }, | 1173 | { "journals","Journale" }, |
1174 | { "public","öffentl." }, | 1174 | { "public","öffentl." }, |
1175 | { "private","privat" }, | 1175 | { "private","privat" }, |
1176 | { "confidential","vertraul." }, | 1176 | { "confidential","vertraul." }, |
1177 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Untertodos.\nAlle erledigten Untertodos\nwerden auch gelöscht!" }, | 1177 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Untertodos.\nAlle erledigten Untertodos\nwerden auch gelöscht!" }, |
1178 | { "Yesterday","Gestern" }, | 1178 | { "Yesterday","Gestern" }, |
1179 | { "Day after tomorrow","Übermorgen" }, | 1179 | { "Day after tomorrow","Übermorgen" }, |
1180 | { "Tomorrow","Morgen" }, | 1180 | { "Tomorrow","Morgen" }, |
1181 | { "Day before yesterday","Vorgestern" }, | 1181 | { "Day before yesterday","Vorgestern" }, |
1182 | { "Size %1","Größe %1" }, | 1182 | { "Size %1","Größe %1" }, |
1183 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1183 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1184 | { " (%1 y.)"," (%1 J.)" }, | 1184 | { " (%1 y.)"," (%1 J.)" }, |
1185 | { "Allday:","Ganztägig:" }, | 1185 | { "Allday:","Ganztägig:" }, |
1186 | { "compl.todos","erled.Todos" }, | 1186 | { "compl.todos","erled.Todos" }, |
1187 | { "Day view","Tagesansicht" }, | 1187 | { "Day view","Tagesansicht" }, |
1188 | { "Next days","Nächste Tage" }, | 1188 | { "Next days","Nächste Tage" }, |
1189 | { "Next week","Nächste Woche" }, | 1189 | { "Next week","Nächste Woche" }, |
1190 | { "Next two weeks","Nächste zwei Wochen" }, | 1190 | { "Next two weeks","Nächste zwei Wochen" }, |
1191 | { "This month","Dieser Monat" }, | 1191 | { "This month","Dieser Monat" }, |
1192 | { "Journal view","Journal" }, | 1192 | { "Journal view","Journal" }, |
1193 | { "Display all opened","Zeige alle geöffnet" }, | 1193 | { "Display all opened","Zeige alle geöffnet" }, |
1194 | { "Display all closed","Zeige alle geschlossen" }, | 1194 | { "Display all closed","Zeige alle geschlossen" }, |
1195 | { "Display all flat","Zeige alle flach" }, | 1195 | { "Display all flat","Zeige alle flach" }, |
1196 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1196 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1197 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1197 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1198 | { "Select week %1-%2","Wähle Woche %1-%2" }, | 1198 | { "Select week %1-%2","Wähle Woche %1-%2" }, |
1199 | { "Select Week","Wähle Woche" }, | 1199 | { "Select Week","Wähle Woche" }, |
1200 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, | 1200 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, |
1201 | { "Set Alarm!","Setze Alarm!" }, | 1201 | { "Set Alarm!","Setze Alarm!" }, |
1202 | { "Changed alarm for %1 items","Alarm für %1 Items geändert" }, | 1202 | { "Changed alarm for %1 items","Alarm für %1 Items geändert" }, |
1203 | { " and "," und " }, | 1203 | { " and "," und " }, |
1204 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, | 1204 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, |
1205 | { "Mail to selected","Mail an Ausgewählte" }, | 1205 | { "Mail to selected","Mail an Ausgewählte" }, |
1206 | { "Mail to all","Mail an Alle" }, | 1206 | { "Mail to all","Mail an Alle" }, |
1207 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, | 1207 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, |
1208 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, | 1208 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, |
1209 | { " on"," am" }, | 1209 | { " on"," am" }, |
1210 | { " completed on "," erledigt am " }, | 1210 | { " completed on "," erledigt am " }, |
1211 | { "Save as Event template","Speichere als Vorlage" }, | 1211 | { "Save as Event template","Speichere als Vorlage" }, |
1212 | { "Load Event template","Lade Termin Vorlage" }, | 1212 | { "Load Event template","Lade Termin Vorlage" }, |
1213 | { "Save as Journal template","Speichere als Journal Vorlage" }, | 1213 | { "Save as Journal template","Speichere als Journal Vorlage" }, |
1214 | { "Insert Journal template","Füge Journal Vorlage ein" }, | 1214 | { "Insert Journal template","Füge Journal Vorlage ein" }, |
1215 | { "Sub todos:<br>","Unter Todos:<br>" }, | 1215 | { "Sub todos:<br>","Unter Todos:<br>" }, |
1216 | { "Parent todo:<br>","Über Todo:<br>" }, | 1216 | { "Parent todo:<br>","Über Todo:<br>" }, |
1217 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, | 1217 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, |
1218 | { " completed"," erledigt" }, | 1218 | { " completed"," erledigt" }, |
1219 | { "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.info --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, | 1219 | { "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.info --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, |
1220 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, | 1220 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, |
1221 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, | 1221 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, |
1222 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, | 1222 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, |
1223 | { "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" }, | 1223 | { "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" }, |
1224 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, | 1224 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, |
1225 | { "Error","Fehler" }, | 1225 | { "Error","Fehler" }, |
1226 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, | 1226 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, |
1227 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, | 1227 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, |
diff --git a/kaddressbook/addresseeeditorwidget.cpp b/kaddressbook/addresseeeditorwidget.cpp index bd32859..5334a0e 100644 --- a/kaddressbook/addresseeeditorwidget.cpp +++ b/kaddressbook/addresseeeditorwidget.cpp | |||
@@ -406,934 +406,932 @@ qDebug("AddresseeEditorWidget::setupTab1 has to be changed"); | |||
406 | qDebug("AddresseeEditorWidget::setupTab1 has to be changed"); | 406 | qDebug("AddresseeEditorWidget::setupTab1 has to be changed"); |
407 | #endif //KAB_EMBEDDED | 407 | #endif //KAB_EMBEDDED |
408 | 408 | ||
409 | // Left hand separator. This separator doesn't go all the way | 409 | // Left hand separator. This separator doesn't go all the way |
410 | // across so the dialog still flows from top to bottom | 410 | // across so the dialog still flows from top to bottom |
411 | bar = new KSeparator( KSeparator::HLine, tab1 ); | 411 | bar = new KSeparator( KSeparator::HLine, tab1 ); |
412 | layout->addMultiCellWidget( bar, 4, 4, 0, 2 ); | 412 | layout->addMultiCellWidget( bar, 4, 4, 0, 2 ); |
413 | 413 | ||
414 | ////////////////////////////////////// | 414 | ////////////////////////////////////// |
415 | // Phone numbers (upper right) | 415 | // Phone numbers (upper right) |
416 | label = new QLabel( tab1 ); | 416 | label = new QLabel( tab1 ); |
417 | //US loadIcon call is ambiguous. Add one more parameter | 417 | //US loadIcon call is ambiguous. Add one more parameter |
418 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop ) ); | 418 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop ) ); |
419 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop, 0 ) ); | 419 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop, 0 ) ); |
420 | layout->addMultiCellWidget( label, 0, 1, 3, 3 ); | 420 | layout->addMultiCellWidget( label, 0, 1, 3, 3 ); |
421 | 421 | ||
422 | mPhoneEditWidget = new PhoneEditWidget( tab1 ); | 422 | mPhoneEditWidget = new PhoneEditWidget( tab1 ); |
423 | connect( mPhoneEditWidget, SIGNAL( modified() ), SLOT( emitModified() ) ); | 423 | connect( mPhoneEditWidget, SIGNAL( modified() ), SLOT( emitModified() ) ); |
424 | layout->addMultiCellWidget( mPhoneEditWidget, 0, 3, 4, 6 ); | 424 | layout->addMultiCellWidget( mPhoneEditWidget, 0, 3, 4, 6 ); |
425 | 425 | ||
426 | bar = new KSeparator( KSeparator::HLine, tab1 ); | 426 | bar = new KSeparator( KSeparator::HLine, tab1 ); |
427 | layout->addMultiCellWidget( bar, 4, 4, 3, 6 ); | 427 | layout->addMultiCellWidget( bar, 4, 4, 3, 6 ); |
428 | */ | 428 | */ |
429 | ////////////////////////////////////// | 429 | ////////////////////////////////////// |
430 | // Addresses (lower left) | 430 | // Addresses (lower left) |
431 | /* LR | 431 | /* LR |
432 | label = new QLabel( tab1_1 ); | 432 | label = new QLabel( tab1_1 ); |
433 | //US loadIcon call is ambiguous. Add one more parameter | 433 | //US loadIcon call is ambiguous. Add one more parameter |
434 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "gohome", KIcon::Desktop ) ); | 434 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "gohome", KIcon::Desktop ) ); |
435 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "gohome", KIcon::Desktop, 0 ) ); | 435 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "gohome", KIcon::Desktop, 0 ) ); |
436 | //US layout->addMultiCellWidget( label, 5, 6, 0, 0 ); | 436 | //US layout->addMultiCellWidget( label, 5, 6, 0, 0 ); |
437 | layout->addMultiCellWidget( label, 0, 1, 0, 0 ); | 437 | layout->addMultiCellWidget( label, 0, 1, 0, 0 ); |
438 | */ | 438 | */ |
439 | 439 | ||
440 | mAddressEditWidget = new AddressEditWidget( tab1_1 ); | 440 | mAddressEditWidget = new AddressEditWidget( tab1_1 ); |
441 | connect( mAddressEditWidget, SIGNAL( modified() ), SLOT( emitModified() ) ); | 441 | connect( mAddressEditWidget, SIGNAL( modified() ), SLOT( emitModified() ) ); |
442 | //US layout->addMultiCellWidget( mAddressEditWidget, 5, 9, 1, 2 ); | 442 | //US layout->addMultiCellWidget( mAddressEditWidget, 5, 9, 1, 2 ); |
443 | layout->addMultiCellWidget( mAddressEditWidget, 0, 4, 0, 1 ); | 443 | layout->addMultiCellWidget( mAddressEditWidget, 0, 4, 0, 1 ); |
444 | 444 | ||
445 | //US | 445 | //US |
446 | /* LR | 446 | /* LR |
447 | bar = new KSeparator( KSeparator::HLine, tab1_1 ); | 447 | bar = new KSeparator( KSeparator::HLine, tab1_1 ); |
448 | layout->addMultiCellWidget( bar, 5, 5, 0, 3 ); | 448 | layout->addMultiCellWidget( bar, 5, 5, 0, 3 ); |
449 | */ | 449 | */ |
450 | 450 | ||
451 | ////////////////////////////////////// | 451 | ////////////////////////////////////// |
452 | // Email / Web (lower right) | 452 | // Email / Web (lower right) |
453 | /* LR | 453 | /* LR |
454 | label = new QLabel( tab1_1 ); | 454 | label = new QLabel( tab1_1 ); |
455 | //US loadIcon call is ambiguous. Add one more parameter | 455 | //US loadIcon call is ambiguous. Add one more parameter |
456 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop) ); | 456 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop) ); |
457 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop, 0) ); | 457 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "email", KIcon::Desktop, 0) ); |
458 | //US layout->addMultiCellWidget( label, 5, 6, 3, 3 ); | 458 | //US layout->addMultiCellWidget( label, 5, 6, 3, 3 ); |
459 | layout->addMultiCellWidget( label, 6, 7, 0, 0 ); | 459 | layout->addMultiCellWidget( label, 6, 7, 0, 0 ); |
460 | */ | 460 | */ |
461 | mEmailWidget = new EmailEditWidget( tab1_1 ); | 461 | mEmailWidget = new EmailEditWidget( tab1_1 ); |
462 | connect( mEmailWidget, SIGNAL( modified() ), SLOT( emitModified() ) ); | 462 | connect( mEmailWidget, SIGNAL( modified() ), SLOT( emitModified() ) ); |
463 | //US layout->addMultiCellWidget( mEmailWidget, 5, 6, 4, 6 ); | 463 | //US layout->addMultiCellWidget( mEmailWidget, 5, 6, 4, 6 ); |
464 | layout->addMultiCellWidget( mEmailWidget, 5, 6, 0, 1 ); | 464 | layout->addMultiCellWidget( mEmailWidget, 5, 6, 0, 1 ); |
465 | 465 | ||
466 | /* LR | 466 | /* LR |
467 | // add the separator | 467 | // add the separator |
468 | bar = new KSeparator( KSeparator::HLine, tab1_1 ); | 468 | bar = new KSeparator( KSeparator::HLine, tab1_1 ); |
469 | //US layout->addMultiCellWidget( bar, 7, 7, 3, 6 ); | 469 | //US layout->addMultiCellWidget( bar, 7, 7, 3, 6 ); |
470 | layout->addMultiCellWidget( bar, 8, 8, 0, 3 ); | 470 | layout->addMultiCellWidget( bar, 8, 8, 0, 3 ); |
471 | 471 | ||
472 | label = new QLabel( tab1_1 ); | 472 | label = new QLabel( tab1_1 ); |
473 | //US loadIcon call is ambiguous. Add one more parameter | 473 | //US loadIcon call is ambiguous. Add one more parameter |
474 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop) ); | 474 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop) ); |
475 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop, 0) ); | 475 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "homepage", KIcon::Desktop, 0) ); |
476 | //US layout->addMultiCellWidget( label, 8, 9, 3, 3 ); | 476 | //US layout->addMultiCellWidget( label, 8, 9, 3, 3 ); |
477 | layout->addMultiCellWidget( label, 9, 10, 0, 0 ); | 477 | layout->addMultiCellWidget( label, 9, 10, 0, 0 ); |
478 | */ | 478 | */ |
479 | label = new QLabel( i18n( "URL:" ), tab1_1 ); | 479 | label = new QLabel( i18n( "URL:" ), tab1_1 ); |
480 | mURLEdit = new KLineEdit( tab1_1 ); | 480 | mURLEdit = new KLineEdit( tab1_1 ); |
481 | connect( mURLEdit, SIGNAL( textChanged( const QString& ) ), | 481 | connect( mURLEdit, SIGNAL( textChanged( const QString& ) ), |
482 | SLOT( textChanged( const QString& ) ) ); | 482 | SLOT( textChanged( const QString& ) ) ); |
483 | label->setBuddy( mURLEdit ); | 483 | label->setBuddy( mURLEdit ); |
484 | //US layout->addWidget( label, 8, 4 ); | 484 | //US layout->addWidget( label, 8, 4 ); |
485 | layout->addWidget( label, 7,0 ); | 485 | layout->addWidget( label, 7,0 ); |
486 | //US layout->addMultiCellWidget( mURLEdit, 8, 8, 5, 6 ); | 486 | //US layout->addMultiCellWidget( mURLEdit, 8, 8, 5, 6 ); |
487 | layout->addWidget( mURLEdit, 7, 1); | 487 | layout->addWidget( mURLEdit, 7, 1); |
488 | 488 | ||
489 | label = new QLabel( i18n( "&IM address:" ), tab1_1 ); | 489 | label = new QLabel( i18n( "&IM address:" ), tab1_1 ); |
490 | mIMAddressEdit = new KLineEdit( tab1_1 ); | 490 | mIMAddressEdit = new KLineEdit( tab1_1 ); |
491 | connect( mIMAddressEdit, SIGNAL( textChanged( const QString& ) ), | 491 | connect( mIMAddressEdit, SIGNAL( textChanged( const QString& ) ), |
492 | SLOT( textChanged( const QString& ) ) ); | 492 | SLOT( textChanged( const QString& ) ) ); |
493 | label->setBuddy( mIMAddressEdit ); | 493 | label->setBuddy( mIMAddressEdit ); |
494 | //US layout->addWidget( label, 9, 4 ); | 494 | //US layout->addWidget( label, 9, 4 ); |
495 | layout->addWidget( label, 8, 0 ); | 495 | layout->addWidget( label, 8, 0 ); |
496 | //US layout->addMultiCellWidget( mIMAddressEdit, 9, 9, 5, 6 ); | 496 | //US layout->addMultiCellWidget( mIMAddressEdit, 9, 9, 5, 6 ); |
497 | layout->addWidget( mIMAddressEdit, 8,1 ); | 497 | layout->addWidget( mIMAddressEdit, 8,1 ); |
498 | 498 | ||
499 | //US layout->addColSpacing( 6, 50 ); | 499 | //US layout->addColSpacing( 6, 50 ); |
500 | 500 | ||
501 | //US bar = new KSeparator( KSeparator::HLine, tab1_1 ); | 501 | //US bar = new KSeparator( KSeparator::HLine, tab1_1 ); |
502 | //US layout->addMultiCellWidget( bar, 10, 10, 0, 6 ); | 502 | //US layout->addMultiCellWidget( bar, 10, 10, 0, 6 ); |
503 | 503 | ||
504 | /*US | 504 | /*US |
505 | /////////////////////////////////////// | 505 | /////////////////////////////////////// |
506 | QHBox *categoryBox = new QHBox( tab1 ); | 506 | QHBox *categoryBox = new QHBox( tab1 ); |
507 | categoryBox->setSpacing( KDialogBase::spacingHintSmall() ); | 507 | categoryBox->setSpacing( KDialogBase::spacingHintSmall() ); |
508 | 508 | ||
509 | // Categories | 509 | // Categories |
510 | button = new QPushButton( i18n( "Categories" ), categoryBox ); | 510 | button = new QPushButton( i18n( "Categories" ), categoryBox ); |
511 | connect( button, SIGNAL( clicked() ), SLOT( categoryButtonClicked() ) ); | 511 | connect( button, SIGNAL( clicked() ), SLOT( categoryButtonClicked() ) ); |
512 | 512 | ||
513 | mCategoryEdit = new KLineEdit( categoryBox ); | 513 | mCategoryEdit = new KLineEdit( categoryBox ); |
514 | mCategoryEdit->setReadOnly( true ); | 514 | mCategoryEdit->setReadOnly( true ); |
515 | connect( mCategoryEdit, SIGNAL( textChanged( const QString& ) ), | 515 | connect( mCategoryEdit, SIGNAL( textChanged( const QString& ) ), |
516 | SLOT( textChanged( const QString& ) ) ); | 516 | SLOT( textChanged( const QString& ) ) ); |
517 | 517 | ||
518 | mSecrecyWidget = new SecrecyWidget( categoryBox ); | 518 | mSecrecyWidget = new SecrecyWidget( categoryBox ); |
519 | connect( mSecrecyWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); | 519 | connect( mSecrecyWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); |
520 | 520 | ||
521 | layout->addMultiCellWidget( categoryBox, 11, 11, 0, 6 ); | 521 | layout->addMultiCellWidget( categoryBox, 11, 11, 0, 6 ); |
522 | */ | 522 | */ |
523 | // Build the layout and add to the tab widget | 523 | // Build the layout and add to the tab widget |
524 | layout->activate(); // required | 524 | layout->activate(); // required |
525 | 525 | ||
526 | mTabWidget->addTab( tab1_1, i18n( "&Address" ) ); | 526 | mTabWidget->addTab( tab1_1, i18n( "&Address" ) ); |
527 | } | 527 | } |
528 | 528 | ||
529 | 529 | ||
530 | 530 | ||
531 | void AddresseeEditorWidget::setupTab2() | 531 | void AddresseeEditorWidget::setupTab2() |
532 | { | 532 | { |
533 | // This is the Details tab | 533 | // This is the Details tab |
534 | QWidget *tab2 = new QWidget( mTabWidget ); | 534 | QWidget *tab2 = new QWidget( mTabWidget ); |
535 | 535 | ||
536 | QGridLayout *layout = new QGridLayout( tab2, 8, 3 ); | 536 | QGridLayout *layout = new QGridLayout( tab2, 8, 3 ); |
537 | layout->setMargin( KDialogBase::marginHintSmall() ); | 537 | layout->setMargin( KDialogBase::marginHintSmall() ); |
538 | layout->setSpacing( KDialogBase::spacingHintSmall() ); | 538 | layout->setSpacing( KDialogBase::spacingHintSmall() ); |
539 | 539 | ||
540 | QLabel *label; | 540 | QLabel *label; |
541 | KSeparator* bar; | 541 | KSeparator* bar; |
542 | 542 | ||
543 | /////////////////////// | 543 | /////////////////////// |
544 | // Office info | 544 | // Office info |
545 | 545 | ||
546 | // Department | 546 | // Department |
547 | label = new QLabel( tab2 ); | 547 | label = new QLabel( tab2 ); |
548 | //US loadIcon call is ambiguous. Add one more parameter | 548 | //US loadIcon call is ambiguous. Add one more parameter |
549 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop ) ); | 549 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop ) ); |
550 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop, 0 ) ); | 550 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop, 0 ) ); |
551 | layout->addMultiCellWidget( label, 0, 1, 0, 0 ); | 551 | layout->addMultiCellWidget( label, 0, 1, 0, 0 ); |
552 | 552 | ||
553 | label = new QLabel( i18n( "Department:" ), tab2 ); | 553 | label = new QLabel( i18n( "Department:" ), tab2 ); |
554 | layout->addWidget( label, 0, 1 ); | 554 | layout->addWidget( label, 0, 1 ); |
555 | mDepartmentEdit = new KLineEdit( tab2 ); | 555 | mDepartmentEdit = new KLineEdit( tab2 ); |
556 | connect( mDepartmentEdit, SIGNAL( textChanged( const QString& ) ), | 556 | connect( mDepartmentEdit, SIGNAL( textChanged( const QString& ) ), |
557 | SLOT( textChanged( const QString& ) ) ); | 557 | SLOT( textChanged( const QString& ) ) ); |
558 | label->setBuddy( mDepartmentEdit ); | 558 | label->setBuddy( mDepartmentEdit ); |
559 | layout->addWidget( mDepartmentEdit, 0, 2 ); | 559 | layout->addWidget( mDepartmentEdit, 0, 2 ); |
560 | 560 | ||
561 | label = new QLabel( i18n( "Office:" ), tab2 ); | 561 | label = new QLabel( i18n( "Office:" ), tab2 ); |
562 | layout->addWidget( label, 1, 1 ); | 562 | layout->addWidget( label, 1, 1 ); |
563 | mOfficeEdit = new KLineEdit( tab2 ); | 563 | mOfficeEdit = new KLineEdit( tab2 ); |
564 | connect( mOfficeEdit, SIGNAL( textChanged( const QString& ) ), | 564 | connect( mOfficeEdit, SIGNAL( textChanged( const QString& ) ), |
565 | SLOT( textChanged( const QString& ) ) ); | 565 | SLOT( textChanged( const QString& ) ) ); |
566 | label->setBuddy( mOfficeEdit ); | 566 | label->setBuddy( mOfficeEdit ); |
567 | layout->addWidget( mOfficeEdit, 1, 2 ); | 567 | layout->addWidget( mOfficeEdit, 1, 2 ); |
568 | 568 | ||
569 | label = new QLabel( i18n( "Profession:" ), tab2 ); | 569 | label = new QLabel( i18n( "Profession:" ), tab2 ); |
570 | layout->addWidget( label, 2, 1 ); | 570 | layout->addWidget( label, 2, 1 ); |
571 | mProfessionEdit = new KLineEdit( tab2 ); | 571 | mProfessionEdit = new KLineEdit( tab2 ); |
572 | connect( mProfessionEdit, SIGNAL( textChanged( const QString& ) ), | 572 | connect( mProfessionEdit, SIGNAL( textChanged( const QString& ) ), |
573 | SLOT( textChanged( const QString& ) ) ); | 573 | SLOT( textChanged( const QString& ) ) ); |
574 | label->setBuddy( mProfessionEdit ); | 574 | label->setBuddy( mProfessionEdit ); |
575 | layout->addWidget( mProfessionEdit, 2, 2 ); | 575 | layout->addWidget( mProfessionEdit, 2, 2 ); |
576 | 576 | ||
577 | label = new QLabel( i18n( "Manager\'s name:" ), tab2 ); | 577 | label = new QLabel( i18n( "Manager\'s name:" ), tab2 ); |
578 | //US layout->addWidget( label, 0, 3 ); | 578 | //US layout->addWidget( label, 0, 3 ); |
579 | layout->addWidget( label, 3, 1 ); | 579 | layout->addWidget( label, 3, 1 ); |
580 | mManagerEdit = new KLineEdit( tab2 ); | 580 | mManagerEdit = new KLineEdit( tab2 ); |
581 | connect( mManagerEdit, SIGNAL( textChanged( const QString& ) ), | 581 | connect( mManagerEdit, SIGNAL( textChanged( const QString& ) ), |
582 | SLOT( textChanged( const QString& ) ) ); | 582 | SLOT( textChanged( const QString& ) ) ); |
583 | label->setBuddy( mManagerEdit ); | 583 | label->setBuddy( mManagerEdit ); |
584 | //US layout->addMultiCellWidget( mManagerEdit, 0, 0, 4, 5 ); | 584 | //US layout->addMultiCellWidget( mManagerEdit, 0, 0, 4, 5 ); |
585 | layout->addWidget( mManagerEdit, 3, 2 ); | 585 | layout->addWidget( mManagerEdit, 3, 2 ); |
586 | 586 | ||
587 | label = new QLabel( i18n( "Assistant's name:" ), tab2 ); | 587 | label = new QLabel( i18n( "Assistant's name:" ), tab2 ); |
588 | //US layout->addWidget( label, 1, 3 ); | 588 | //US layout->addWidget( label, 1, 3 ); |
589 | layout->addWidget( label, 4, 1 ); | 589 | layout->addWidget( label, 4, 1 ); |
590 | mAssistantEdit = new KLineEdit( tab2 ); | 590 | mAssistantEdit = new KLineEdit( tab2 ); |
591 | connect( mAssistantEdit, SIGNAL( textChanged( const QString& ) ), | 591 | connect( mAssistantEdit, SIGNAL( textChanged( const QString& ) ), |
592 | SLOT( textChanged( const QString& ) ) ); | 592 | SLOT( textChanged( const QString& ) ) ); |
593 | label->setBuddy( mAssistantEdit ); | 593 | label->setBuddy( mAssistantEdit ); |
594 | //US layout->addMultiCellWidget( mAssistantEdit, 1, 1, 4, 5 ); | 594 | //US layout->addMultiCellWidget( mAssistantEdit, 1, 1, 4, 5 ); |
595 | layout->addWidget( mAssistantEdit, 4, 2 ); | 595 | layout->addWidget( mAssistantEdit, 4, 2 ); |
596 | 596 | ||
597 | bar = new KSeparator( KSeparator::HLine, tab2 ); | 597 | bar = new KSeparator( KSeparator::HLine, tab2 ); |
598 | //US layout->addMultiCellWidget( bar, 3, 3, 0, 5 ); | 598 | //US layout->addMultiCellWidget( bar, 3, 3, 0, 5 ); |
599 | layout->addMultiCellWidget( bar, 5, 5, 0, 2 ); | 599 | layout->addMultiCellWidget( bar, 5, 5, 0, 2 ); |
600 | 600 | ||
601 | ///////////////////////////////////////////////// | 601 | ///////////////////////////////////////////////// |
602 | // Personal info | 602 | // Personal info |
603 | 603 | ||
604 | //label = new QLabel( tab2 ); | 604 | //label = new QLabel( tab2 ); |
605 | //US loadIcon call is ambiguous. Add one more parameter | 605 | //US loadIcon call is ambiguous. Add one more parameter |
606 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) ); | 606 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) ); |
607 | //label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 0 ) ); | 607 | //label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 0 ) ); |
608 | //US layout->addMultiCellWidget( label, 4, 5, 0, 0 ); | 608 | //US layout->addMultiCellWidget( label, 4, 5, 0, 0 ); |
609 | //layout->addMultiCellWidget( label, 6, 7, 0, 0 ); | 609 | //layout->addMultiCellWidget( label, 6, 7, 0, 0 ); |
610 | 610 | ||
611 | 611 | ||
612 | int iii = 6; | 612 | int iii = 6; |
613 | 613 | ||
614 | if ( QApplication::desktop()->width() == 640 ) { | 614 | if ( QApplication::desktop()->width() == 640 ) { |
615 | QHBox * nbox = new QHBox ( tab2 ); | 615 | QHBox * nbox = new QHBox ( tab2 ); |
616 | label = new QLabel( i18n( "Nick name:" )+" ", nbox ); | 616 | label = new QLabel( i18n( "Nick name:" )+" ", nbox ); |
617 | mNicknameEdit = new KLineEdit( nbox ); | 617 | mNicknameEdit = new KLineEdit( nbox ); |
618 | connect( mNicknameEdit, SIGNAL( textChanged( const QString& ) ), | 618 | connect( mNicknameEdit, SIGNAL( textChanged( const QString& ) ), |
619 | SLOT( textChanged( const QString& ) ) ); | 619 | SLOT( textChanged( const QString& ) ) ); |
620 | label->setBuddy( mNicknameEdit ); | 620 | label->setBuddy( mNicknameEdit ); |
621 | 621 | ||
622 | label = new QLabel( " "+i18n( "Spouse's name:" )+" ", nbox ); | 622 | label = new QLabel( " "+i18n( "Spouse's name:" )+" ", nbox ); |
623 | mSpouseEdit = new KLineEdit( nbox ); | 623 | mSpouseEdit = new KLineEdit( nbox ); |
624 | connect( mSpouseEdit, SIGNAL( textChanged( const QString& ) ), | 624 | connect( mSpouseEdit, SIGNAL( textChanged( const QString& ) ), |
625 | SLOT( textChanged( const QString& ) ) ); | 625 | SLOT( textChanged( const QString& ) ) ); |
626 | label->setBuddy( mSpouseEdit ); | 626 | label->setBuddy( mSpouseEdit ); |
627 | layout->addMultiCellWidget( nbox, iii, iii, 1, 2 ); | 627 | layout->addMultiCellWidget( nbox, iii, iii, 1, 2 ); |
628 | ++iii; | 628 | ++iii; |
629 | 629 | ||
630 | } else { | 630 | } else { |
631 | label = new QLabel( i18n( "Nick name:" ), tab2 ); | 631 | label = new QLabel( i18n( "Nick name:" ), tab2 ); |
632 | layout->addWidget( label, iii, 1 ); | 632 | layout->addWidget( label, iii, 1 ); |
633 | mNicknameEdit = new KLineEdit( tab2 ); | 633 | mNicknameEdit = new KLineEdit( tab2 ); |
634 | connect( mNicknameEdit, SIGNAL( textChanged( const QString& ) ), | 634 | connect( mNicknameEdit, SIGNAL( textChanged( const QString& ) ), |
635 | SLOT( textChanged( const QString& ) ) ); | 635 | SLOT( textChanged( const QString& ) ) ); |
636 | label->setBuddy( mNicknameEdit ); | 636 | label->setBuddy( mNicknameEdit ); |
637 | layout->addWidget( mNicknameEdit, iii, 2 ); | 637 | layout->addWidget( mNicknameEdit, iii, 2 ); |
638 | ++iii; | 638 | ++iii; |
639 | 639 | ||
640 | label = new QLabel( i18n( "Spouse's name:" ), tab2 ); | 640 | label = new QLabel( i18n( "Spouse's name:" ), tab2 ); |
641 | layout->addWidget( label, iii, 1 ); | 641 | layout->addWidget( label, iii, 1 ); |
642 | mSpouseEdit = new KLineEdit( tab2 ); | 642 | mSpouseEdit = new KLineEdit( tab2 ); |
643 | connect( mSpouseEdit, SIGNAL( textChanged( const QString& ) ), | 643 | connect( mSpouseEdit, SIGNAL( textChanged( const QString& ) ), |
644 | SLOT( textChanged( const QString& ) ) ); | 644 | SLOT( textChanged( const QString& ) ) ); |
645 | label->setBuddy( mSpouseEdit ); | 645 | label->setBuddy( mSpouseEdit ); |
646 | layout->addWidget( mSpouseEdit, iii, 2 ); | 646 | layout->addWidget( mSpouseEdit, iii, 2 ); |
647 | ++iii; | 647 | ++iii; |
648 | } | 648 | } |
649 | 649 | ||
650 | label = new QLabel( i18n( "Children's names:" ), tab2 ); | 650 | label = new QLabel( i18n( "Children's names:" ), tab2 ); |
651 | layout->addWidget( label, iii, 1 ); | 651 | layout->addWidget( label, iii, 1 ); |
652 | mChildEdit = new KLineEdit( tab2 ); | 652 | mChildEdit = new KLineEdit( tab2 ); |
653 | connect( mChildEdit, SIGNAL( textChanged( const QString& ) ), | 653 | connect( mChildEdit, SIGNAL( textChanged( const QString& ) ), |
654 | SLOT( textChanged( const QString& ) ) ); | 654 | SLOT( textChanged( const QString& ) ) ); |
655 | label->setBuddy( mChildEdit ); | 655 | label->setBuddy( mChildEdit ); |
656 | layout->addWidget( mChildEdit, iii, 2 ); | 656 | layout->addWidget( mChildEdit, iii, 2 ); |
657 | ++iii; | 657 | ++iii; |
658 | if ( QApplication::desktop()->width() == 640 ) { | 658 | if ( QApplication::desktop()->width() == 640 ) { |
659 | QHBox * nbox = new QHBox ( tab2 ); | 659 | QHBox * nbox = new QHBox ( tab2 ); |
660 | label = new QLabel( i18n( "Birthday:" )+" ", nbox ); | 660 | label = new QLabel( i18n( "Birthday:" )+" ", nbox ); |
661 | mBirthdayPicker = new KDateEdit( nbox ); | 661 | mBirthdayPicker = new KDateEdit( nbox ); |
662 | mBirthdayPicker->toggleDateFormat(); | 662 | //mBirthdayPicker->toggleDateFormat(); |
663 | mBirthdayPicker->setHandleInvalid( true ); | 663 | mBirthdayPicker->setHandleInvalid( true ); |
664 | connect( mBirthdayPicker, SIGNAL( dateChanged( QDate ) ), | 664 | connect( mBirthdayPicker, SIGNAL( dateChanged( QDate ) ), |
665 | SLOT( dateChanged( QDate ) ) ); | 665 | SLOT( dateChanged( QDate ) ) ); |
666 | 666 | ||
667 | label->setBuddy( mBirthdayPicker ); | 667 | label->setBuddy( mBirthdayPicker ); |
668 | 668 | ||
669 | label = new QLabel( " "+i18n( "Anniversary:" )+" ", nbox ); | 669 | label = new QLabel( " "+i18n( "Anniversary:" )+" ", nbox ); |
670 | mAnniversaryPicker = new KDateEdit( nbox ); | 670 | mAnniversaryPicker = new KDateEdit( nbox ); |
671 | mAnniversaryPicker->setHandleInvalid( true ); | 671 | mAnniversaryPicker->setHandleInvalid( true ); |
672 | connect( mAnniversaryPicker, SIGNAL( dateChanged( QDate ) ), | 672 | connect( mAnniversaryPicker, SIGNAL( dateChanged( QDate ) ), |
673 | SLOT( dateChanged( QDate ) ) ); | 673 | SLOT( dateChanged( QDate ) ) ); |
674 | 674 | ||
675 | label->setBuddy( mAnniversaryPicker ); | 675 | label->setBuddy( mAnniversaryPicker ); |
676 | layout->addMultiCellWidget( nbox, iii, iii, 1, 2 ); | 676 | layout->addMultiCellWidget( nbox, iii, iii, 1, 2 ); |
677 | ++iii; | 677 | ++iii; |
678 | 678 | ||
679 | } else { | 679 | } else { |
680 | 680 | ||
681 | label = new QLabel( i18n( "Birthday:" ), tab2 ); | 681 | label = new QLabel( i18n( "Birthday:" ), tab2 ); |
682 | layout->addWidget( label, iii, 1 ); | 682 | layout->addWidget( label, iii, 1 ); |
683 | mBirthdayPicker = new KDateEdit( tab2 ); | 683 | mBirthdayPicker = new KDateEdit( tab2 ); |
684 | mBirthdayPicker->toggleDateFormat(); | 684 | //mBirthdayPicker->toggleDateFormat(); |
685 | mBirthdayPicker->setHandleInvalid( true ); | 685 | mBirthdayPicker->setHandleInvalid( true ); |
686 | connect( mBirthdayPicker, SIGNAL( dateChanged( QDate ) ), | 686 | connect( mBirthdayPicker, SIGNAL( dateChanged( QDate ) ), |
687 | SLOT( dateChanged( QDate ) ) ); | 687 | SLOT( dateChanged( QDate ) ) ); |
688 | 688 | ||
689 | label->setBuddy( mBirthdayPicker ); | 689 | label->setBuddy( mBirthdayPicker ); |
690 | layout->addWidget( mBirthdayPicker, iii, 2 ); | 690 | layout->addWidget( mBirthdayPicker, iii, 2 ); |
691 | ++iii; | 691 | ++iii; |
692 | 692 | ||
693 | label = new QLabel( i18n( "Anniversary:" ), tab2 ); | 693 | label = new QLabel( i18n( "Anniversary:" ), tab2 ); |
694 | layout->addWidget( label, iii, 1 ); | 694 | layout->addWidget( label, iii, 1 ); |
695 | mAnniversaryPicker = new KDateEdit( tab2 ); | 695 | mAnniversaryPicker = new KDateEdit( tab2 ); |
696 | mAnniversaryPicker->setHandleInvalid( true ); | 696 | mAnniversaryPicker->setHandleInvalid( true ); |
697 | connect( mAnniversaryPicker, SIGNAL( dateChanged( QDate ) ), | 697 | connect( mAnniversaryPicker, SIGNAL( dateChanged( QDate ) ), |
698 | SLOT( dateChanged( QDate ) ) ); | 698 | SLOT( dateChanged( QDate ) ) ); |
699 | 699 | ||
700 | label->setBuddy( mAnniversaryPicker ); | 700 | label->setBuddy( mAnniversaryPicker ); |
701 | layout->addWidget( mAnniversaryPicker, iii, 2 ); | 701 | layout->addWidget( mAnniversaryPicker, iii, 2 ); |
702 | ++iii; | 702 | ++iii; |
703 | 703 | ||
704 | } | 704 | } |
705 | 705 | ||
706 | label = new QLabel( i18n( "Gender:" ), tab2 ); | 706 | label = new QLabel( i18n( "Gender:" ), tab2 ); |
707 | layout->addWidget( label, iii, 1 ); | 707 | layout->addWidget( label, iii, 1 ); |
708 | mGenderBox = new QComboBox ( tab2 ); | 708 | mGenderBox = new QComboBox ( tab2 ); |
709 | mGenderBox->insertItem ( i18n( "ALIEN (gender undefined)" )); | 709 | mGenderBox->insertItem ( i18n( "ALIEN (gender undefined)" )); |
710 | mGenderBox->insertItem ( i18n( "female" )); | 710 | mGenderBox->insertItem ( i18n( "female" )); |
711 | mGenderBox->insertItem ( i18n( "male" )); | 711 | mGenderBox->insertItem ( i18n( "male" )); |
712 | connect( mGenderBox, SIGNAL( activated ( const QString & ) ), | 712 | connect( mGenderBox, SIGNAL( activated ( const QString & ) ), |
713 | SLOT( textChanged( const QString& ) ) ); | 713 | SLOT( textChanged( const QString& ) ) ); |
714 | label->setBuddy( mGenderBox ); | 714 | label->setBuddy( mGenderBox ); |
715 | layout->addWidget( mGenderBox, iii, 2 ); | 715 | layout->addWidget( mGenderBox, iii, 2 ); |
716 | ++iii; | 716 | ++iii; |
717 | // Build the layout and add to the tab widget | 717 | // Build the layout and add to the tab widget |
718 | layout->activate(); // required | 718 | layout->activate(); // required |
719 | 719 | ||
720 | mTabWidget->addTab( tab2, i18n( "&Details" ) ); | 720 | mTabWidget->addTab( tab2, i18n( "&Details" ) ); |
721 | } | 721 | } |
722 | 722 | ||
723 | void AddresseeEditorWidget::setupTab2_1() | 723 | void AddresseeEditorWidget::setupTab2_1() |
724 | { | 724 | { |
725 | // This is the Details tab | 725 | // This is the Details tab |
726 | QWidget *tab2_2 = new QWidget( mTabWidget ); | 726 | QWidget *tab2_2 = new QWidget( mTabWidget ); |
727 | 727 | ||
728 | QGridLayout *layout = new QGridLayout( tab2_2, 1, 2 ); | 728 | QGridLayout *layout = new QGridLayout( tab2_2, 1, 2 ); |
729 | layout->setMargin( KDialogBase::marginHintSmall() ); | 729 | layout->setMargin( KDialogBase::marginHintSmall() ); |
730 | layout->setSpacing( KDialogBase::spacingHintSmall() ); | 730 | layout->setSpacing( KDialogBase::spacingHintSmall() ); |
731 | 731 | ||
732 | QLabel *label; | 732 | QLabel *label; |
733 | KSeparator* bar; | 733 | KSeparator* bar; |
734 | 734 | ||
735 | /*US | 735 | /*US |
736 | /////////////////////// | 736 | /////////////////////// |
737 | // Office info | 737 | // Office info |
738 | 738 | ||
739 | // Department | 739 | // Department |
740 | label = new QLabel( tab2 ); | 740 | label = new QLabel( tab2 ); |
741 | //US loadIcon call is ambiguous. Add one more parameter | 741 | //US loadIcon call is ambiguous. Add one more parameter |
742 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop ) ); | 742 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop ) ); |
743 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop, 0 ) ); | 743 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "folder", KIcon::Desktop, 0 ) ); |
744 | layout->addMultiCellWidget( label, 0, 1, 0, 0 ); | 744 | layout->addMultiCellWidget( label, 0, 1, 0, 0 ); |
745 | 745 | ||
746 | label = new QLabel( i18n( "Department:" ), tab2 ); | 746 | label = new QLabel( i18n( "Department:" ), tab2 ); |
747 | layout->addWidget( label, 0, 1 ); | 747 | layout->addWidget( label, 0, 1 ); |
748 | mDepartmentEdit = new KLineEdit( tab2 ); | 748 | mDepartmentEdit = new KLineEdit( tab2 ); |
749 | connect( mDepartmentEdit, SIGNAL( textChanged( const QString& ) ), | 749 | connect( mDepartmentEdit, SIGNAL( textChanged( const QString& ) ), |
750 | SLOT( textChanged( const QString& ) ) ); | 750 | SLOT( textChanged( const QString& ) ) ); |
751 | label->setBuddy( mDepartmentEdit ); | 751 | label->setBuddy( mDepartmentEdit ); |
752 | layout->addWidget( mDepartmentEdit, 0, 2 ); | 752 | layout->addWidget( mDepartmentEdit, 0, 2 ); |
753 | 753 | ||
754 | label = new QLabel( i18n( "Office:" ), tab2 ); | 754 | label = new QLabel( i18n( "Office:" ), tab2 ); |
755 | layout->addWidget( label, 1, 1 ); | 755 | layout->addWidget( label, 1, 1 ); |
756 | mOfficeEdit = new KLineEdit( tab2 ); | 756 | mOfficeEdit = new KLineEdit( tab2 ); |
757 | connect( mOfficeEdit, SIGNAL( textChanged( const QString& ) ), | 757 | connect( mOfficeEdit, SIGNAL( textChanged( const QString& ) ), |
758 | SLOT( textChanged( const QString& ) ) ); | 758 | SLOT( textChanged( const QString& ) ) ); |
759 | label->setBuddy( mOfficeEdit ); | 759 | label->setBuddy( mOfficeEdit ); |
760 | layout->addWidget( mOfficeEdit, 1, 2 ); | 760 | layout->addWidget( mOfficeEdit, 1, 2 ); |
761 | 761 | ||
762 | label = new QLabel( i18n( "Profession:" ), tab2 ); | 762 | label = new QLabel( i18n( "Profession:" ), tab2 ); |
763 | layout->addWidget( label, 2, 1 ); | 763 | layout->addWidget( label, 2, 1 ); |
764 | mProfessionEdit = new KLineEdit( tab2 ); | 764 | mProfessionEdit = new KLineEdit( tab2 ); |
765 | connect( mProfessionEdit, SIGNAL( textChanged( const QString& ) ), | 765 | connect( mProfessionEdit, SIGNAL( textChanged( const QString& ) ), |
766 | SLOT( textChanged( const QString& ) ) ); | 766 | SLOT( textChanged( const QString& ) ) ); |
767 | label->setBuddy( mProfessionEdit ); | 767 | label->setBuddy( mProfessionEdit ); |
768 | layout->addWidget( mProfessionEdit, 2, 2 ); | 768 | layout->addWidget( mProfessionEdit, 2, 2 ); |
769 | 769 | ||
770 | label = new QLabel( i18n( "Manager\'s name:" ), tab2 ); | 770 | label = new QLabel( i18n( "Manager\'s name:" ), tab2 ); |
771 | layout->addWidget( label, 0, 3 ); | 771 | layout->addWidget( label, 0, 3 ); |
772 | mManagerEdit = new KLineEdit( tab2 ); | 772 | mManagerEdit = new KLineEdit( tab2 ); |
773 | connect( mManagerEdit, SIGNAL( textChanged( const QString& ) ), | 773 | connect( mManagerEdit, SIGNAL( textChanged( const QString& ) ), |
774 | SLOT( textChanged( const QString& ) ) ); | 774 | SLOT( textChanged( const QString& ) ) ); |
775 | label->setBuddy( mManagerEdit ); | 775 | label->setBuddy( mManagerEdit ); |
776 | layout->addMultiCellWidget( mManagerEdit, 0, 0, 4, 5 ); | 776 | layout->addMultiCellWidget( mManagerEdit, 0, 0, 4, 5 ); |
777 | 777 | ||
778 | label = new QLabel( i18n( "Assistant's name:" ), tab2 ); | 778 | label = new QLabel( i18n( "Assistant's name:" ), tab2 ); |
779 | layout->addWidget( label, 1, 3 ); | 779 | layout->addWidget( label, 1, 3 ); |
780 | mAssistantEdit = new KLineEdit( tab2 ); | 780 | mAssistantEdit = new KLineEdit( tab2 ); |
781 | connect( mAssistantEdit, SIGNAL( textChanged( const QString& ) ), | 781 | connect( mAssistantEdit, SIGNAL( textChanged( const QString& ) ), |
782 | SLOT( textChanged( const QString& ) ) ); | 782 | SLOT( textChanged( const QString& ) ) ); |
783 | label->setBuddy( mAssistantEdit ); | 783 | label->setBuddy( mAssistantEdit ); |
784 | layout->addMultiCellWidget( mAssistantEdit, 1, 1, 4, 5 ); | 784 | layout->addMultiCellWidget( mAssistantEdit, 1, 1, 4, 5 ); |
785 | 785 | ||
786 | bar = new KSeparator( KSeparator::HLine, tab2 ); | 786 | bar = new KSeparator( KSeparator::HLine, tab2 ); |
787 | layout->addMultiCellWidget( bar, 3, 3, 0, 5 ); | 787 | layout->addMultiCellWidget( bar, 3, 3, 0, 5 ); |
788 | 788 | ||
789 | ///////////////////////////////////////////////// | 789 | ///////////////////////////////////////////////// |
790 | // Personal info | 790 | // Personal info |
791 | 791 | ||
792 | label = new QLabel( tab2 ); | 792 | label = new QLabel( tab2 ); |
793 | //US loadIcon call is ambiguous. Add one more parameter | 793 | //US loadIcon call is ambiguous. Add one more parameter |
794 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) ); | 794 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop ) ); |
795 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 0 ) ); | 795 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "personal", KIcon::Desktop, 0 ) ); |
796 | layout->addMultiCellWidget( label, 4, 5, 0, 0 ); | 796 | layout->addMultiCellWidget( label, 4, 5, 0, 0 ); |
797 | 797 | ||
798 | label = new QLabel( i18n( "Nick name:" ), tab2 ); | 798 | label = new QLabel( i18n( "Nick name:" ), tab2 ); |
799 | layout->addWidget( label, 4, 1 ); | 799 | layout->addWidget( label, 4, 1 ); |
800 | mNicknameEdit = new KLineEdit( tab2 ); | 800 | mNicknameEdit = new KLineEdit( tab2 ); |
801 | connect( mNicknameEdit, SIGNAL( textChanged( const QString& ) ), | 801 | connect( mNicknameEdit, SIGNAL( textChanged( const QString& ) ), |
802 | SLOT( textChanged( const QString& ) ) ); | 802 | SLOT( textChanged( const QString& ) ) ); |
803 | label->setBuddy( mNicknameEdit ); | 803 | label->setBuddy( mNicknameEdit ); |
804 | layout->addWidget( mNicknameEdit, 4, 2 ); | 804 | layout->addWidget( mNicknameEdit, 4, 2 ); |
805 | 805 | ||
806 | label = new QLabel( i18n( "Spouse's name:" ), tab2 ); | 806 | label = new QLabel( i18n( "Spouse's name:" ), tab2 ); |
807 | layout->addWidget( label, 5, 1 ); | 807 | layout->addWidget( label, 5, 1 ); |
808 | mSpouseEdit = new KLineEdit( tab2 ); | 808 | mSpouseEdit = new KLineEdit( tab2 ); |
809 | connect( mSpouseEdit, SIGNAL( textChanged( const QString& ) ), | 809 | connect( mSpouseEdit, SIGNAL( textChanged( const QString& ) ), |
810 | SLOT( textChanged( const QString& ) ) ); | 810 | SLOT( textChanged( const QString& ) ) ); |
811 | label->setBuddy( mSpouseEdit ); | 811 | label->setBuddy( mSpouseEdit ); |
812 | layout->addWidget( mSpouseEdit, 5, 2 ); | 812 | layout->addWidget( mSpouseEdit, 5, 2 ); |
813 | 813 | ||
814 | label = new QLabel( i18n( "Birthday:" ), tab2 ); | 814 | label = new QLabel( i18n( "Birthday:" ), tab2 ); |
815 | layout->addWidget( label, 4, 3 ); | 815 | layout->addWidget( label, 4, 3 ); |
816 | mBirthdayPicker = new KDateEdit( tab2 ); | 816 | mBirthdayPicker = new KDateEdit( tab2 ); |
817 | mBirthdayPicker->setHandleInvalid( true ); | 817 | mBirthdayPicker->setHandleInvalid( true ); |
818 | connect( mBirthdayPicker, SIGNAL( dateChanged( QDate ) ), | 818 | connect( mBirthdayPicker, SIGNAL( dateChanged( QDate ) ), |
819 | SLOT( dateChanged( QDate ) ) ); | 819 | SLOT( dateChanged( QDate ) ) ); |
820 | connect( mBirthdayPicker, SIGNAL( invalidDateEntered() ), | 820 | connect( mBirthdayPicker, SIGNAL( invalidDateEntered() ), |
821 | SLOT( invalidDate() ) ); | 821 | SLOT( invalidDate() ) ); |
822 | connect( mBirthdayPicker, SIGNAL( textChanged( const QString& ) ), | 822 | connect( mBirthdayPicker, SIGNAL( textChanged( const QString& ) ), |
823 | SLOT( emitModified() ) ); | 823 | SLOT( emitModified() ) ); |
824 | label->setBuddy( mBirthdayPicker ); | 824 | label->setBuddy( mBirthdayPicker ); |
825 | layout->addWidget( mBirthdayPicker, 4, 4 ); | 825 | layout->addWidget( mBirthdayPicker, 4, 4 ); |
826 | 826 | ||
827 | label = new QLabel( i18n( "Anniversary:" ), tab2 ); | 827 | label = new QLabel( i18n( "Anniversary:" ), tab2 ); |
828 | layout->addWidget( label, 5, 3 ); | 828 | layout->addWidget( label, 5, 3 ); |
829 | mAnniversaryPicker = new KDateEdit( tab2 ); | 829 | mAnniversaryPicker = new KDateEdit( tab2 ); |
830 | mAnniversaryPicker->setHandleInvalid( true ); | 830 | mAnniversaryPicker->setHandleInvalid( true ); |
831 | connect( mAnniversaryPicker, SIGNAL( dateChanged( QDate ) ), | 831 | connect( mAnniversaryPicker, SIGNAL( dateChanged( QDate ) ), |
832 | SLOT( dateChanged( QDate ) ) ); | 832 | SLOT( dateChanged( QDate ) ) ); |
833 | connect( mAnniversaryPicker, SIGNAL( invalidDateEntered() ), | 833 | connect( mAnniversaryPicker, SIGNAL( invalidDateEntered() ), |
834 | SLOT( invalidDate() ) ); | 834 | SLOT( invalidDate() ) ); |
835 | connect( mAnniversaryPicker, SIGNAL( textChanged( const QString& ) ), | 835 | connect( mAnniversaryPicker, SIGNAL( textChanged( const QString& ) ), |
836 | SLOT( emitModified() ) ); | 836 | SLOT( emitModified() ) ); |
837 | label->setBuddy( mAnniversaryPicker ); | 837 | label->setBuddy( mAnniversaryPicker ); |
838 | layout->addWidget( mAnniversaryPicker, 5, 4 ); | 838 | layout->addWidget( mAnniversaryPicker, 5, 4 ); |
839 | 839 | ||
840 | bar = new KSeparator( KSeparator::HLine, tab2 ); | 840 | bar = new KSeparator( KSeparator::HLine, tab2 ); |
841 | layout->addMultiCellWidget( bar, 6, 6, 0, 5 ); | 841 | layout->addMultiCellWidget( bar, 6, 6, 0, 5 ); |
842 | */ | 842 | */ |
843 | ////////////////////////////////////// | 843 | ////////////////////////////////////// |
844 | // Notes | 844 | // Notes |
845 | label = new QLabel( i18n( "Note:" ), tab2_2 ); | 845 | label = new QLabel( i18n( "Note:" ), tab2_2 ); |
846 | label->setAlignment( Qt::AlignTop | Qt::AlignLeft ); | 846 | label->setAlignment( Qt::AlignTop | Qt::AlignLeft ); |
847 | //US layout->addWidget( label, 7, 0 ); | 847 | //US layout->addWidget( label, 7, 0 ); |
848 | layout->addWidget( label, 0, 0 ); | 848 | layout->addWidget( label, 0, 0 ); |
849 | #ifndef KAB_EMBEDDED | 849 | #ifndef KAB_EMBEDDED |
850 | mNoteEdit = new QTextEdit( tab2_2 ); | 850 | mNoteEdit = new QTextEdit( tab2_2 ); |
851 | mNoteEdit->setWordWrap( QTextEdit::WidgetWidth ); | 851 | mNoteEdit->setWordWrap( QTextEdit::WidgetWidth ); |
852 | mNoteEdit->setMinimumSize( mNoteEdit->sizeHint() ); | 852 | mNoteEdit->setMinimumSize( mNoteEdit->sizeHint() ); |
853 | #else //KAB_EMBEDDED | 853 | #else //KAB_EMBEDDED |
854 | mNoteEdit = new QMultiLineEdit( tab2_2 ); | 854 | mNoteEdit = new QMultiLineEdit( tab2_2 ); |
855 | mNoteEdit->setWordWrap( QMultiLineEdit::WidgetWidth ); | 855 | mNoteEdit->setWordWrap( QMultiLineEdit::WidgetWidth ); |
856 | mNoteEdit->setMinimumSize( mNoteEdit->sizeHint() ); | 856 | mNoteEdit->setMinimumSize( mNoteEdit->sizeHint() ); |
857 | #endif //KAB_EMBEDDED | 857 | #endif //KAB_EMBEDDED |
858 | 858 | ||
859 | connect( mNoteEdit, SIGNAL( textChanged() ), SLOT( emitModified() ) ); | 859 | connect( mNoteEdit, SIGNAL( textChanged() ), SLOT( emitModified() ) ); |
860 | label->setBuddy( mNoteEdit ); | 860 | label->setBuddy( mNoteEdit ); |
861 | //US layout->addMultiCellWidget( mNoteEdit, 7, 7, 1, 5 ); | 861 | //US layout->addMultiCellWidget( mNoteEdit, 7, 7, 1, 5 ); |
862 | layout->addWidget( mNoteEdit, 1, 0); | 862 | layout->addWidget( mNoteEdit, 1, 0); |
863 | 863 | ||
864 | // Build the layout and add to the tab widget | 864 | // Build the layout and add to the tab widget |
865 | layout->activate(); // required | 865 | layout->activate(); // required |
866 | 866 | ||
867 | mTabWidget->addTab( tab2_2, i18n( "&Notes" ) ); | 867 | mTabWidget->addTab( tab2_2, i18n( "&Notes" ) ); |
868 | } | 868 | } |
869 | 869 | ||
870 | 870 | ||
871 | 871 | ||
872 | void AddresseeEditorWidget::setupTab3() | 872 | void AddresseeEditorWidget::setupTab3() |
873 | { | 873 | { |
874 | // This is the Misc tab | 874 | // This is the Misc tab |
875 | QWidget *tab3 = new QWidget( mTabWidget ); | 875 | QWidget *tab3 = new QWidget( mTabWidget ); |
876 | 876 | ||
877 | QGridLayout *layout = new QGridLayout( tab3, 1, 1 ); | 877 | QGridLayout *layout = new QGridLayout( tab3, 1, 1 ); |
878 | layout->setMargin( KDialogBase::marginHintSmall() ); | 878 | layout->setMargin( KDialogBase::marginHintSmall() ); |
879 | layout->setSpacing( KDialogBase::spacingHintSmall() ); | 879 | layout->setSpacing( KDialogBase::spacingHintSmall() ); |
880 | //US layout->setColStretch( 2, 1 ); | 880 | //US layout->setColStretch( 2, 1 ); |
881 | 881 | ||
882 | ////////////////////////////////////// | 882 | ////////////////////////////////////// |
883 | // Geo | 883 | // Geo |
884 | mGeoWidget = new GeoWidget( tab3 ); | 884 | mGeoWidget = new GeoWidget( tab3 ); |
885 | // mGeoWidget->setMinimumSize( mGeoWidget->sizeHint() ); | 885 | // mGeoWidget->setMinimumSize( mGeoWidget->sizeHint() ); |
886 | connect( mGeoWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); | 886 | connect( mGeoWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); |
887 | layout->addWidget( mGeoWidget, 0, 0 ); | 887 | layout->addWidget( mGeoWidget, 0, 0 ); |
888 | /*US | 888 | /*US |
889 | ////////////////////////////////////// | 889 | ////////////////////////////////////// |
890 | // Sound | 890 | // Sound |
891 | #ifndef KAB_EMBEDDED | 891 | #ifndef KAB_EMBEDDED |
892 | mSoundWidget = new SoundWidget( tab3 ); | 892 | mSoundWidget = new SoundWidget( tab3 ); |
893 | mSoundWidget->setMinimumSize( mSoundWidget->sizeHint() ); | 893 | mSoundWidget->setMinimumSize( mSoundWidget->sizeHint() ); |
894 | connect( mSoundWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); | 894 | connect( mSoundWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); |
895 | layout->addWidget( mSoundWidget, 0, 1, Qt::AlignTop ); | 895 | layout->addWidget( mSoundWidget, 0, 1, Qt::AlignTop ); |
896 | #else //KAB_EMBEDDED | 896 | #else //KAB_EMBEDDED |
897 | qDebug("AddresseeEditorWidget::setupTab2 sound part is not supported = has to be changed"); | 897 | qDebug("AddresseeEditorWidget::setupTab2 sound part is not supported = has to be changed"); |
898 | #endif //KAB_EMBEDDED | 898 | #endif //KAB_EMBEDDED |
899 | 899 | ||
900 | ////////////////////////////////////// | 900 | ////////////////////////////////////// |
901 | // Images | 901 | // Images |
902 | mImageWidget = new ImageWidget( tab3 ); | 902 | mImageWidget = new ImageWidget( tab3 ); |
903 | mImageWidget->setMinimumSize( mImageWidget->sizeHint() ); | 903 | mImageWidget->setMinimumSize( mImageWidget->sizeHint() ); |
904 | connect( mImageWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); | 904 | connect( mImageWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); |
905 | layout->addWidget( mImageWidget, 1, 0, Qt::AlignTop ); | 905 | layout->addWidget( mImageWidget, 1, 0, Qt::AlignTop ); |
906 | */ | 906 | */ |
907 | //US | 907 | //US |
908 | /* | 908 | /* |
909 | KSeparator* bar = new KSeparator( KSeparator::HLine, tab3 ); | 909 | KSeparator* bar = new KSeparator( KSeparator::HLine, tab3 ); |
910 | layout->addMultiCellWidget( bar, 1, 1, 0, 0 ); | 910 | layout->addMultiCellWidget( bar, 1, 1, 0, 0 ); |
911 | */ | 911 | */ |
912 | ////////////////////////////////////// | 912 | ////////////////////////////////////// |
913 | // Keys | 913 | // Keys |
914 | mKeyWidget = new KeyWidget( tab3 ); | 914 | mKeyWidget = new KeyWidget( tab3 ); |
915 | //mKeyWidget->setMinimumSize( mKeyWidget->sizeHint() ); | 915 | //mKeyWidget->setMinimumSize( mKeyWidget->sizeHint() ); |
916 | connect( mKeyWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); | 916 | connect( mKeyWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); |
917 | //US layout->addWidget( mKeyWidget, 1, 1, Qt::AlignTop ); | 917 | //US layout->addWidget( mKeyWidget, 1, 1, Qt::AlignTop ); |
918 | layout->addWidget( mKeyWidget, 1, 0 ); | 918 | layout->addWidget( mKeyWidget, 1, 0 ); |
919 | 919 | ||
920 | mTabWidget->addTab( tab3, i18n( "&Misc" ) ); | 920 | mTabWidget->addTab( tab3, i18n( "&Misc" ) ); |
921 | } | 921 | } |
922 | 922 | ||
923 | void AddresseeEditorWidget::setupTab3_1() | 923 | void AddresseeEditorWidget::setupTab3_1() |
924 | { | 924 | { |
925 | // This is the Misc tab | 925 | // This is the Misc tab |
926 | QWidget *tab3 = new QWidget( mTabWidget ); | 926 | QWidget *tab3 = new QWidget( mTabWidget ); |
927 | 927 | ||
928 | //US QGridLayout *layout = new QGridLayout( tab3, 2, 3 ); | 928 | //US QGridLayout *layout = new QGridLayout( tab3, 2, 3 ); |
929 | QGridLayout *layout = new QGridLayout( tab3, 1, 1 ); | 929 | QGridLayout *layout = new QGridLayout( tab3, 1, 1 ); |
930 | layout->setMargin( KDialogBase::marginHint() ); | 930 | layout->setMargin( KDialogBase::marginHint() ); |
931 | layout->setSpacing( KDialogBase::spacingHint() ); | 931 | layout->setSpacing( KDialogBase::spacingHint() ); |
932 | //US layout->setColStretch( 2, 1 ); | 932 | //US layout->setColStretch( 2, 1 ); |
933 | 933 | ||
934 | /*US | 934 | /*US |
935 | ////////////////////////////////////// | 935 | ////////////////////////////////////// |
936 | // Geo | 936 | // Geo |
937 | mGeoWidget = new GeoWidget( tab3 ); | 937 | mGeoWidget = new GeoWidget( tab3 ); |
938 | mGeoWidget->setMinimumSize( mGeoWidget->sizeHint() ); | 938 | mGeoWidget->setMinimumSize( mGeoWidget->sizeHint() ); |
939 | connect( mGeoWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); | 939 | connect( mGeoWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); |
940 | layout->addWidget( mGeoWidget, 0, 0, Qt::AlignTop ); | 940 | layout->addWidget( mGeoWidget, 0, 0, Qt::AlignTop ); |
941 | */ | 941 | */ |
942 | ////////////////////////////////////// | 942 | ////////////////////////////////////// |
943 | // Sound | 943 | // Sound |
944 | #ifndef KAB_EMBEDDED | 944 | #ifndef KAB_EMBEDDED |
945 | mSoundWidget = new SoundWidget( tab3 ); | 945 | mSoundWidget = new SoundWidget( tab3 ); |
946 | mSoundWidget->setMinimumSize( mSoundWidget->sizeHint() ); | 946 | mSoundWidget->setMinimumSize( mSoundWidget->sizeHint() ); |
947 | connect( mSoundWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); | 947 | connect( mSoundWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); |
948 | layout->addWidget( mSoundWidget, 0, 1, Qt::AlignTop ); | 948 | layout->addWidget( mSoundWidget, 0, 1, Qt::AlignTop ); |
949 | #else //KAB_EMBEDDED | 949 | #else //KAB_EMBEDDED |
950 | //US qDebug("AddresseeEditorWidget::setupTab2 sound part is not supported = has to be changed"); | 950 | //US qDebug("AddresseeEditorWidget::setupTab2 sound part is not supported = has to be changed"); |
951 | #endif //KAB_EMBEDDED | 951 | #endif //KAB_EMBEDDED |
952 | 952 | ||
953 | ////////////////////////////////////// | 953 | ////////////////////////////////////// |
954 | // Images | 954 | // Images |
955 | mImageWidget = new ImageWidget( tab3 ); | 955 | mImageWidget = new ImageWidget( tab3 ); |
956 | mImageWidget->setMinimumSize( mImageWidget->sizeHint() ); | 956 | mImageWidget->setMinimumSize( mImageWidget->sizeHint() ); |
957 | connect( mImageWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); | 957 | connect( mImageWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); |
958 | layout->addWidget( mImageWidget, 0, 0, Qt::AlignTop ); | 958 | layout->addWidget( mImageWidget, 0, 0, Qt::AlignTop ); |
959 | /*US | 959 | /*US |
960 | ////////////////////////////////////// | 960 | ////////////////////////////////////// |
961 | // Keys | 961 | // Keys |
962 | mKeyWidget = new KeyWidget( tab3 ); | 962 | mKeyWidget = new KeyWidget( tab3 ); |
963 | mKeyWidget->setMinimumSize( mKeyWidget->sizeHint() ); | 963 | mKeyWidget->setMinimumSize( mKeyWidget->sizeHint() ); |
964 | connect( mKeyWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); | 964 | connect( mKeyWidget, SIGNAL( changed() ), SLOT( emitModified() ) ); |
965 | layout->addWidget( mKeyWidget, 1, 1, Qt::AlignTop ); | 965 | layout->addWidget( mKeyWidget, 1, 1, Qt::AlignTop ); |
966 | */ | 966 | */ |
967 | mTabWidget->addTab( tab3, i18n( "&Images" ) ); | 967 | mTabWidget->addTab( tab3, i18n( "&Images" ) ); |
968 | } | 968 | } |
969 | 969 | ||
970 | 970 | ||
971 | void AddresseeEditorWidget::load() | 971 | void AddresseeEditorWidget::load() |
972 | { | 972 | { |
973 | 973 | ||
974 | // Block signals in case anything tries to emit modified | 974 | // Block signals in case anything tries to emit modified |
975 | // CS: This doesn't seem to work. | 975 | // CS: This doesn't seem to work. |
976 | bool block = signalsBlocked(); | 976 | bool block = signalsBlocked(); |
977 | blockSignals( true ); | 977 | blockSignals( true ); |
978 | mBlockSignals = true; // used for internal signal blocking | 978 | mBlockSignals = true; // used for internal signal blocking |
979 | 979 | ||
980 | mNameEdit->setText( mAddressee.assembledName() ); | 980 | mNameEdit->setText( mAddressee.assembledName() ); |
981 | 981 | ||
982 | if ( mAddressee.formattedName().isEmpty() ) { | 982 | if ( mAddressee.formattedName().isEmpty() ) { |
983 | //US KConfig config( "kaddressbookrc" ); | 983 | //US KConfig config( "kaddressbookrc" ); |
984 | KConfig config( locateLocal("config", "kabcrc") ); | 984 | KConfig config( locateLocal("config", "kabcrc") ); |
985 | config.setGroup( "General" ); | 985 | config.setGroup( "General" ); |
986 | mFormattedNameType = config.readNumEntry( "FormattedNameType", 1 ); | 986 | mFormattedNameType = config.readNumEntry( "FormattedNameType", 1 ); |
987 | mAddressee.setFormattedName( NameEditDialog::formattedName( mAddressee, mFormattedNameType ) ); | 987 | mAddressee.setFormattedName( NameEditDialog::formattedName( mAddressee, mFormattedNameType ) ); |
988 | } else {; | 988 | } else {; |
989 | if ( mAddressee.formattedName() == NameEditDialog::formattedName( mAddressee, NameEditDialog::SimpleName ) ) | 989 | if ( mAddressee.formattedName() == NameEditDialog::formattedName( mAddressee, NameEditDialog::SimpleName ) ) |
990 | mFormattedNameType = NameEditDialog::SimpleName; | 990 | mFormattedNameType = NameEditDialog::SimpleName; |
991 | else if ( mAddressee.formattedName() == NameEditDialog::formattedName( mAddressee, NameEditDialog::FullName ) ) | 991 | else if ( mAddressee.formattedName() == NameEditDialog::formattedName( mAddressee, NameEditDialog::FullName ) ) |
992 | mFormattedNameType = NameEditDialog::FullName; | 992 | mFormattedNameType = NameEditDialog::FullName; |
993 | else if ( mAddressee.formattedName() == NameEditDialog::formattedName( mAddressee, NameEditDialog::ReverseName ) ) | 993 | else if ( mAddressee.formattedName() == NameEditDialog::formattedName( mAddressee, NameEditDialog::ReverseName ) ) |
994 | mFormattedNameType = NameEditDialog::ReverseName; | 994 | mFormattedNameType = NameEditDialog::ReverseName; |
995 | else | 995 | else |
996 | mFormattedNameType = NameEditDialog::CustomName; | 996 | mFormattedNameType = NameEditDialog::CustomName; |
997 | } | 997 | } |
998 | 998 | ||
999 | mFormattedNameLabel->setText( mAddressee.formattedName() ); | 999 | mFormattedNameLabel->setText( mAddressee.formattedName() ); |
1000 | 1000 | ||
1001 | mAConfig->setUid( mAddressee.uid() ); | 1001 | mAConfig->setUid( mAddressee.uid() ); |
1002 | if ( mAConfig->automaticNameParsing() ) { | 1002 | if ( mAConfig->automaticNameParsing() ) { |
1003 | mNameLabel->hide(); | 1003 | mNameLabel->hide(); |
1004 | mNameEdit->show(); | 1004 | mNameEdit->show(); |
1005 | } else { | 1005 | } else { |
1006 | mNameEdit->hide(); | 1006 | mNameEdit->hide(); |
1007 | mNameLabel->setText( mNameEdit->text() ); | 1007 | mNameLabel->setText( mNameEdit->text() ); |
1008 | mNameLabel->show(); | 1008 | mNameLabel->show(); |
1009 | } | 1009 | } |
1010 | 1010 | ||
1011 | mRoleEdit->setText( mAddressee.role() ); | 1011 | mRoleEdit->setText( mAddressee.role() ); |
1012 | mOrgEdit->setText( mAddressee.organization() ); | 1012 | mOrgEdit->setText( mAddressee.organization() ); |
1013 | 1013 | ||
1014 | //US mURLEdit->setURL( mAddressee.url().url() ); | 1014 | //US mURLEdit->setURL( mAddressee.url().url() ); |
1015 | mURLEdit->setText( mAddressee.url().prettyURL() ); | 1015 | mURLEdit->setText( mAddressee.url().prettyURL() ); |
1016 | //US?? mURLEdit->home( false ); | 1016 | //US?? mURLEdit->home( false ); |
1017 | 1017 | ||
1018 | // mNoteEdit->setText( mAddressee.note() ); | 1018 | // mNoteEdit->setText( mAddressee.note() ); |
1019 | mNoteEdit->setText( mAddressee.note() ); | 1019 | mNoteEdit->setText( mAddressee.note() ); |
1020 | mEmailWidget->setEmails( mAddressee.emails() ); | 1020 | mEmailWidget->setEmails( mAddressee.emails() ); |
1021 | mPhoneEditWidget->setPhoneNumbers( mAddressee.phoneNumbers() ); | 1021 | mPhoneEditWidget->setPhoneNumbers( mAddressee.phoneNumbers() ); |
1022 | mAddressEditWidget->setAddresses( mAddressee, mAddressee.addresses() ); | 1022 | mAddressEditWidget->setAddresses( mAddressee, mAddressee.addresses() ); |
1023 | mBirthdayPicker->setDate( mAddressee.birthday().date() ); | 1023 | mBirthdayPicker->setDate( mAddressee.birthday().date() ); |
1024 | 1024 | ||
1025 | //US mAnniversaryPicker->setDate( QDate::fromString( mAddressee.custom( | 1025 | //US mAnniversaryPicker->setDate( QDate::fromString( mAddressee.custom( |
1026 | //US "KADDRESSBOOK", "X-Anniversary" ), Qt::ISODate) ); | 1026 | //US "KADDRESSBOOK", "X-Anniversary" ), Qt::ISODate) ); |
1027 | QDate dt = KGlobal::locale()->readDate( mAddressee.custom("KADDRESSBOOK", "X-Anniversary" ), | 1027 | QDate dt = KGlobal::locale()->readDate( mAddressee.custom("KADDRESSBOOK", "X-Anniversary" ), |
1028 | "%Y-%m-%d"); // = Qt::ISODate | 1028 | "%Y-%m-%d"); // = Qt::ISODate |
1029 | mAnniversaryPicker->setDate( dt ); | 1029 | mAnniversaryPicker->setDate( dt ); |
1030 | 1030 | ||
1031 | 1031 | ||
1032 | mNicknameEdit->setText( mAddressee.nickName() ); | 1032 | mNicknameEdit->setText( mAddressee.nickName() ); |
1033 | mCategoryEdit->setText( mAddressee.categories().join( "," ) ); | 1033 | mCategoryEdit->setText( mAddressee.categories().join( "," ) ); |
1034 | 1034 | ||
1035 | mGeoWidget->setGeo( mAddressee.geo() ); | 1035 | mGeoWidget->setGeo( mAddressee.geo() ); |
1036 | mImageWidget->setPhoto( mAddressee.photo() ); | 1036 | mImageWidget->setPhoto( mAddressee.photo() ); |
1037 | mImageWidget->setLogo( mAddressee.logo() ); | 1037 | mImageWidget->setLogo( mAddressee.logo() ); |
1038 | mKeyWidget->setKeys( mAddressee.keys() ); | 1038 | mKeyWidget->setKeys( mAddressee.keys() ); |
1039 | mSecrecyWidget->setSecrecy( mAddressee.secrecy() ); | 1039 | mSecrecyWidget->setSecrecy( mAddressee.secrecy() ); |
1040 | #ifndef KAB_EMBEDDED | 1040 | #ifndef KAB_EMBEDDED |
1041 | mSoundWidget->setSound( mAddressee.sound() ); | 1041 | mSoundWidget->setSound( mAddressee.sound() ); |
1042 | #else //KAB_EMBEDDED | 1042 | #else //KAB_EMBEDDED |
1043 | //US qDebug("AddresseeEditorWidget::load has to be changed 2"); | 1043 | //US qDebug("AddresseeEditorWidget::load has to be changed 2"); |
1044 | #endif //KAB_EMBEDDED | 1044 | #endif //KAB_EMBEDDED |
1045 | 1045 | ||
1046 | // Load customs | 1046 | // Load customs |
1047 | mIMAddressEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-IMAddress" ) ); | 1047 | mIMAddressEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-IMAddress" ) ); |
1048 | mSpouseEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-SpousesName" ) ); | 1048 | mSpouseEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-SpousesName" ) ); |
1049 | mChildEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-Children" ) ); | 1049 | mChildEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-Children" ) ); |
1050 | mManagerEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-ManagersName" ) ); | 1050 | mManagerEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-ManagersName" ) ); |
1051 | mAssistantEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-AssistantsName" ) ); | 1051 | mAssistantEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-AssistantsName" ) ); |
1052 | mDepartmentEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-Department" ) ); | 1052 | mDepartmentEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-Department" ) ); |
1053 | mOfficeEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-Office" ) ); | 1053 | mOfficeEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-Office" ) ); |
1054 | mProfessionEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-Profession" ) ); | 1054 | mProfessionEdit->setText( mAddressee.custom( "KADDRESSBOOK", "X-Profession" ) ); |
1055 | QString gen = mAddressee.custom( "KADDRESSBOOK", "X-Gender" ); | 1055 | QString gen = mAddressee.custom( "KADDRESSBOOK", "X-Gender" ); |
1056 | if ( gen == "female" ) | 1056 | if ( gen == "female" ) |
1057 | mGenderBox->setCurrentItem ( 1 ); | 1057 | mGenderBox->setCurrentItem ( 1 ); |
1058 | else if ( gen == "male" ) | 1058 | else if ( gen == "male" ) |
1059 | mGenderBox->setCurrentItem ( 2 ); | 1059 | mGenderBox->setCurrentItem ( 2 ); |
1060 | else | 1060 | else |
1061 | mGenderBox->setCurrentItem ( 0 ); | 1061 | mGenderBox->setCurrentItem ( 0 ); |
1062 | blockSignals( block ); | 1062 | blockSignals( block ); |
1063 | mBlockSignals = false; | 1063 | mBlockSignals = false; |
1064 | 1064 | ||
1065 | mDirty = false; | 1065 | mDirty = false; |
1066 | } | 1066 | } |
1067 | 1067 | ||
1068 | void AddresseeEditorWidget::save() | 1068 | void AddresseeEditorWidget::save() |
1069 | { | 1069 | { |
1070 | if ( !dirty() ) { | 1070 | if ( !dirty() ) { |
1071 | return; | 1071 | return; |
1072 | } | 1072 | } |
1073 | 1073 | ||
1074 | mAddressee.setRevision( QDateTime::currentDateTime() ); | 1074 | mAddressee.setRevision( QDateTime::currentDateTime() ); |
1075 | 1075 | ||
1076 | mAddressee.setRole( mRoleEdit->text() ); | 1076 | mAddressee.setRole( mRoleEdit->text() ); |
1077 | mAddressee.setOrganization( mOrgEdit->text() ); | 1077 | mAddressee.setOrganization( mOrgEdit->text() ); |
1078 | mAddressee.setUrl( KURL( mURLEdit->text() ) ); | 1078 | mAddressee.setUrl( KURL( mURLEdit->text() ) ); |
1079 | mAddressee.setNote( mNoteEdit->text() ); | 1079 | mAddressee.setNote( mNoteEdit->text() ); |
1080 | if ( mBirthdayPicker->inputIsValid() ) { | 1080 | if ( mBirthdayPicker->inputIsValid() ) { |
1081 | QDate da = mBirthdayPicker->date(); | 1081 | QDate da = mBirthdayPicker->date(); |
1082 | if ( da > QDate::currentDate() ) | ||
1083 | da.setYMD(da.year()-100, da.month(), da.day() ); | ||
1084 | mAddressee.setBirthday( QDateTime( da ) ); | 1082 | mAddressee.setBirthday( QDateTime( da ) ); |
1085 | //qDebug("bday %s ",da.toString().latin1()); | 1083 | //qDebug("bday %s ",da.toString().latin1()); |
1086 | } | 1084 | } |
1087 | else { | 1085 | else { |
1088 | mAddressee.setBirthday( QDateTime() ); | 1086 | mAddressee.setBirthday( QDateTime() ); |
1089 | mBirthdayPicker->clear(); | 1087 | mBirthdayPicker->clear(); |
1090 | } | 1088 | } |
1091 | mAddressee.setNickName( mNicknameEdit->text() ); | 1089 | mAddressee.setNickName( mNicknameEdit->text() ); |
1092 | mAddressee.setCategories( QStringList::split( ",", mCategoryEdit->text() ) ); | 1090 | mAddressee.setCategories( QStringList::split( ",", mCategoryEdit->text() ) ); |
1093 | 1091 | ||
1094 | mAddressee.setGeo( mGeoWidget->geo() ); | 1092 | mAddressee.setGeo( mGeoWidget->geo() ); |
1095 | mAddressee.setPhoto( mImageWidget->photo() ); | 1093 | mAddressee.setPhoto( mImageWidget->photo() ); |
1096 | mAddressee.setLogo( mImageWidget->logo() ); | 1094 | mAddressee.setLogo( mImageWidget->logo() ); |
1097 | mAddressee.setKeys( mKeyWidget->keys() ); | 1095 | mAddressee.setKeys( mKeyWidget->keys() ); |
1098 | #ifndef KAB_EMBEDDED | 1096 | #ifndef KAB_EMBEDDED |
1099 | mAddressee.setSound( mSoundWidget->sound() ); | 1097 | mAddressee.setSound( mSoundWidget->sound() ); |
1100 | #else //KAB_EMBEDDED | 1098 | #else //KAB_EMBEDDED |
1101 | //US qDebug("AddresseeEditorWidget::save sound not supported"); | 1099 | //US qDebug("AddresseeEditorWidget::save sound not supported"); |
1102 | #endif //KAB_EMBEDDED | 1100 | #endif //KAB_EMBEDDED |
1103 | mAddressee.setSecrecy( mSecrecyWidget->secrecy() ); | 1101 | mAddressee.setSecrecy( mSecrecyWidget->secrecy() ); |
1104 | 1102 | ||
1105 | // save custom fields | 1103 | // save custom fields |
1106 | mAddressee.insertCustom( "KADDRESSBOOK", "X-IMAddress", mIMAddressEdit->text() ); | 1104 | mAddressee.insertCustom( "KADDRESSBOOK", "X-IMAddress", mIMAddressEdit->text() ); |
1107 | mAddressee.insertCustom( "KADDRESSBOOK", "X-SpousesName", mSpouseEdit->text() ); | 1105 | mAddressee.insertCustom( "KADDRESSBOOK", "X-SpousesName", mSpouseEdit->text() ); |
1108 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Children", mChildEdit->text() ); | 1106 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Children", mChildEdit->text() ); |
1109 | mAddressee.insertCustom( "KADDRESSBOOK", "X-ManagersName", mManagerEdit->text() ); | 1107 | mAddressee.insertCustom( "KADDRESSBOOK", "X-ManagersName", mManagerEdit->text() ); |
1110 | mAddressee.insertCustom( "KADDRESSBOOK", "X-AssistantsName", mAssistantEdit->text() ); | 1108 | mAddressee.insertCustom( "KADDRESSBOOK", "X-AssistantsName", mAssistantEdit->text() ); |
1111 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Department", mDepartmentEdit->text() ); | 1109 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Department", mDepartmentEdit->text() ); |
1112 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Office", mOfficeEdit->text() ); | 1110 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Office", mOfficeEdit->text() ); |
1113 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Profession", mProfessionEdit->text() ); | 1111 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Profession", mProfessionEdit->text() ); |
1114 | if ( mAnniversaryPicker->inputIsValid() ) { | 1112 | if ( mAnniversaryPicker->inputIsValid() ) { |
1115 | QString dt = KGlobal::locale()->formatDate(mAnniversaryPicker->date(), true, KLocale::ISODate); | 1113 | QString dt = KGlobal::locale()->formatDate(mAnniversaryPicker->date(), true, KLocale::ISODate); |
1116 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Anniversary", dt); | 1114 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Anniversary", dt); |
1117 | } | 1115 | } |
1118 | else { | 1116 | else { |
1119 | mAddressee.removeCustom( "KADDRESSBOOK", "X-Anniversary" ); | 1117 | mAddressee.removeCustom( "KADDRESSBOOK", "X-Anniversary" ); |
1120 | mAnniversaryPicker->clear(); | 1118 | mAnniversaryPicker->clear(); |
1121 | } | 1119 | } |
1122 | int gen = mGenderBox->currentItem (); | 1120 | int gen = mGenderBox->currentItem (); |
1123 | if ( gen == 1 ) | 1121 | if ( gen == 1 ) |
1124 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Gender", "female"); | 1122 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Gender", "female"); |
1125 | else if ( gen == 2 ) | 1123 | else if ( gen == 2 ) |
1126 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Gender", "male"); | 1124 | mAddressee.insertCustom( "KADDRESSBOOK", "X-Gender", "male"); |
1127 | else | 1125 | else |
1128 | mAddressee.removeCustom( "KADDRESSBOOK", "X-Gender" ); | 1126 | mAddressee.removeCustom( "KADDRESSBOOK", "X-Gender" ); |
1129 | 1127 | ||
1130 | // Save the email addresses | 1128 | // Save the email addresses |
1131 | QStringList emails = mAddressee.emails(); | 1129 | QStringList emails = mAddressee.emails(); |
1132 | QStringList::Iterator iter; | 1130 | QStringList::Iterator iter; |
1133 | for ( iter = emails.begin(); iter != emails.end(); ++iter ) | 1131 | for ( iter = emails.begin(); iter != emails.end(); ++iter ) |
1134 | mAddressee.removeEmail( *iter ); | 1132 | mAddressee.removeEmail( *iter ); |
1135 | 1133 | ||
1136 | emails = mEmailWidget->emails(); | 1134 | emails = mEmailWidget->emails(); |
1137 | bool first = true; | 1135 | bool first = true; |
1138 | for ( iter = emails.begin(); iter != emails.end(); ++iter ) { | 1136 | for ( iter = emails.begin(); iter != emails.end(); ++iter ) { |
1139 | mAddressee.insertEmail( *iter, first ); | 1137 | mAddressee.insertEmail( *iter, first ); |
1140 | first = false; | 1138 | first = false; |
1141 | } | 1139 | } |
1142 | 1140 | ||
1143 | // Save the phone numbers | 1141 | // Save the phone numbers |
1144 | KABC::PhoneNumber::List phoneNumbers; | 1142 | KABC::PhoneNumber::List phoneNumbers; |
1145 | KABC::PhoneNumber::List::Iterator phoneIter; | 1143 | KABC::PhoneNumber::List::Iterator phoneIter; |
1146 | phoneNumbers = mAddressee.phoneNumbers(); | 1144 | phoneNumbers = mAddressee.phoneNumbers(); |
1147 | for ( phoneIter = phoneNumbers.begin(); phoneIter != phoneNumbers.end(); | 1145 | for ( phoneIter = phoneNumbers.begin(); phoneIter != phoneNumbers.end(); |
1148 | ++phoneIter ) | 1146 | ++phoneIter ) |
1149 | mAddressee.removePhoneNumber( *phoneIter ); | 1147 | mAddressee.removePhoneNumber( *phoneIter ); |
1150 | 1148 | ||
1151 | phoneNumbers = mPhoneEditWidget->phoneNumbers(); | 1149 | phoneNumbers = mPhoneEditWidget->phoneNumbers(); |
1152 | for ( phoneIter = phoneNumbers.begin(); phoneIter != phoneNumbers.end(); | 1150 | for ( phoneIter = phoneNumbers.begin(); phoneIter != phoneNumbers.end(); |
1153 | ++phoneIter ) | 1151 | ++phoneIter ) |
1154 | mAddressee.insertPhoneNumber( *phoneIter ); | 1152 | mAddressee.insertPhoneNumber( *phoneIter ); |
1155 | 1153 | ||
1156 | // Save the addresses | 1154 | // Save the addresses |
1157 | KABC::Address::List addresses; | 1155 | KABC::Address::List addresses; |
1158 | KABC::Address::List::Iterator addressIter; | 1156 | KABC::Address::List::Iterator addressIter; |
1159 | addresses = mAddressee.addresses(); | 1157 | addresses = mAddressee.addresses(); |
1160 | for ( addressIter = addresses.begin(); addressIter != addresses.end(); | 1158 | for ( addressIter = addresses.begin(); addressIter != addresses.end(); |
1161 | ++addressIter ) | 1159 | ++addressIter ) |
1162 | mAddressee.removeAddress( *addressIter ); | 1160 | mAddressee.removeAddress( *addressIter ); |
1163 | 1161 | ||
1164 | addresses = mAddressEditWidget->addresses(); | 1162 | addresses = mAddressEditWidget->addresses(); |
1165 | for ( addressIter = addresses.begin(); addressIter != addresses.end(); | 1163 | for ( addressIter = addresses.begin(); addressIter != addresses.end(); |
1166 | ++addressIter ) | 1164 | ++addressIter ) |
1167 | mAddressee.insertAddress( *addressIter ); | 1165 | mAddressee.insertAddress( *addressIter ); |
1168 | mDirty = false; | 1166 | mDirty = false; |
1169 | } | 1167 | } |
1170 | 1168 | ||
1171 | bool AddresseeEditorWidget::dirty() | 1169 | bool AddresseeEditorWidget::dirty() |
1172 | { | 1170 | { |
1173 | 1171 | ||
1174 | if ( ! mDirty ) { | 1172 | if ( ! mDirty ) { |
1175 | if ( mBirthdayPicker->inputIsValid() ) { | 1173 | if ( mBirthdayPicker->inputIsValid() ) { |
1176 | QDate da = mBirthdayPicker->date(); | 1174 | QDate da = mBirthdayPicker->date(); |
1177 | if ( !(da == mAddressee.birthday().date())) | 1175 | if ( !(da == mAddressee.birthday().date())) |
1178 | mDirty = true; | 1176 | mDirty = true; |
1179 | } | 1177 | } |
1180 | else { | 1178 | else { |
1181 | mBirthdayPicker->clear(); | 1179 | mBirthdayPicker->clear(); |
1182 | } | 1180 | } |
1183 | if ( mAnniversaryPicker->inputIsValid() ) { | 1181 | if ( mAnniversaryPicker->inputIsValid() ) { |
1184 | QDate da = mAnniversaryPicker->date(); | 1182 | QDate da = mAnniversaryPicker->date(); |
1185 | if ( da != KGlobal::locale()->readDate( mAddressee.custom("KADDRESSBOOK", "X-Anniversary" ), | 1183 | if ( da != KGlobal::locale()->readDate( mAddressee.custom("KADDRESSBOOK", "X-Anniversary" ), |
1186 | "%Y-%m-%d")) | 1184 | "%Y-%m-%d")) |
1187 | mDirty = true; | 1185 | mDirty = true; |
1188 | } | 1186 | } |
1189 | else { | 1187 | else { |
1190 | mAnniversaryPicker->clear(); | 1188 | mAnniversaryPicker->clear(); |
1191 | } | 1189 | } |
1192 | } | 1190 | } |
1193 | return mDirty; | 1191 | return mDirty; |
1194 | } | 1192 | } |
1195 | 1193 | ||
1196 | void AddresseeEditorWidget::nameTextChanged( const QString &text ) | 1194 | void AddresseeEditorWidget::nameTextChanged( const QString &text ) |
1197 | { | 1195 | { |
1198 | if ( mBlockSignals ) | 1196 | if ( mBlockSignals ) |
1199 | return; | 1197 | return; |
1200 | // use the addressee class to parse the name for us | 1198 | // use the addressee class to parse the name for us |
1201 | mAConfig->setUid( mAddressee.uid() ); | 1199 | mAConfig->setUid( mAddressee.uid() ); |
1202 | if ( mAConfig->automaticNameParsing() ) { | 1200 | if ( mAConfig->automaticNameParsing() ) { |
1203 | if ( !mAddressee.formattedName().isEmpty() ) { | 1201 | if ( !mAddressee.formattedName().isEmpty() ) { |
1204 | QString fn = mAddressee.formattedName(); | 1202 | QString fn = mAddressee.formattedName(); |
1205 | mAddressee.setNameFromString( text ); | 1203 | mAddressee.setNameFromString( text ); |
1206 | mAddressee.setFormattedName( fn ); | 1204 | mAddressee.setFormattedName( fn ); |
1207 | } else { | 1205 | } else { |
1208 | // use extra addressee to avoid a formatted name assignment | 1206 | // use extra addressee to avoid a formatted name assignment |
1209 | Addressee addr; | 1207 | Addressee addr; |
1210 | addr.setNameFromString( text ); | 1208 | addr.setNameFromString( text ); |
1211 | mAddressee.setPrefix( addr.prefix() ); | 1209 | mAddressee.setPrefix( addr.prefix() ); |
1212 | mAddressee.setGivenName( addr.givenName() ); | 1210 | mAddressee.setGivenName( addr.givenName() ); |
1213 | mAddressee.setAdditionalName( addr.additionalName() ); | 1211 | mAddressee.setAdditionalName( addr.additionalName() ); |
1214 | mAddressee.setFamilyName( addr.familyName() ); | 1212 | mAddressee.setFamilyName( addr.familyName() ); |
1215 | mAddressee.setSuffix( addr.suffix() ); | 1213 | mAddressee.setSuffix( addr.suffix() ); |
1216 | } | 1214 | } |
1217 | } | 1215 | } |
1218 | nameBoxChanged(); | 1216 | nameBoxChanged(); |
1219 | 1217 | ||
1220 | 1218 | ||
1221 | emitModified(); | 1219 | emitModified(); |
1222 | } | 1220 | } |
1223 | 1221 | ||
1224 | void AddresseeEditorWidget::nameBoxChanged() | 1222 | void AddresseeEditorWidget::nameBoxChanged() |
1225 | { | 1223 | { |
1226 | KABC::Addressee addr; | 1224 | KABC::Addressee addr; |
1227 | mAConfig->setUid( mAddressee.uid() ); | 1225 | mAConfig->setUid( mAddressee.uid() ); |
1228 | if ( mAConfig->automaticNameParsing() ) { | 1226 | if ( mAConfig->automaticNameParsing() ) { |
1229 | addr.setNameFromString( mNameEdit->text() ); | 1227 | addr.setNameFromString( mNameEdit->text() ); |
1230 | mNameLabel->hide(); | 1228 | mNameLabel->hide(); |
1231 | mNameEdit->show(); | 1229 | mNameEdit->show(); |
1232 | } else { | 1230 | } else { |
1233 | addr = mAddressee; | 1231 | addr = mAddressee; |
1234 | mNameEdit->hide(); | 1232 | mNameEdit->hide(); |
1235 | mNameLabel->setText( mNameEdit->text() ); | 1233 | mNameLabel->setText( mNameEdit->text() ); |
1236 | mNameLabel->show(); | 1234 | mNameLabel->show(); |
1237 | } | 1235 | } |
1238 | 1236 | ||
1239 | if ( mFormattedNameType != NameEditDialog::CustomName ) { | 1237 | if ( mFormattedNameType != NameEditDialog::CustomName ) { |
1240 | mFormattedNameLabel->setText( NameEditDialog::formattedName( mAddressee, mFormattedNameType ) ); | 1238 | mFormattedNameLabel->setText( NameEditDialog::formattedName( mAddressee, mFormattedNameType ) ); |
1241 | mAddressee.setFormattedName( NameEditDialog::formattedName( mAddressee, mFormattedNameType ) ); | 1239 | mAddressee.setFormattedName( NameEditDialog::formattedName( mAddressee, mFormattedNameType ) ); |
1242 | } | 1240 | } |
1243 | } | 1241 | } |
1244 | 1242 | ||
1245 | void AddresseeEditorWidget::nameButtonClicked() | 1243 | void AddresseeEditorWidget::nameButtonClicked() |
1246 | { | 1244 | { |
1247 | // show the name dialog. | 1245 | // show the name dialog. |
1248 | NameEditDialog dialog( mAddressee, mFormattedNameType, this ); | 1246 | NameEditDialog dialog( mAddressee, mFormattedNameType, this ); |
1249 | 1247 | ||
1250 | if ( KApplication::execDialog( &dialog) ) { | 1248 | if ( KApplication::execDialog( &dialog) ) { |
1251 | if ( dialog.changed() ) { | 1249 | if ( dialog.changed() ) { |
1252 | mAddressee.setFamilyName( dialog.familyName() ); | 1250 | mAddressee.setFamilyName( dialog.familyName() ); |
1253 | mAddressee.setGivenName( dialog.givenName() ); | 1251 | mAddressee.setGivenName( dialog.givenName() ); |
1254 | mAddressee.setPrefix( dialog.prefix() ); | 1252 | mAddressee.setPrefix( dialog.prefix() ); |
1255 | mAddressee.setSuffix( dialog.suffix() ); | 1253 | mAddressee.setSuffix( dialog.suffix() ); |
1256 | mAddressee.setAdditionalName( dialog.additionalName() ); | 1254 | mAddressee.setAdditionalName( dialog.additionalName() ); |
1257 | mFormattedNameType = dialog.formattedNameType(); | 1255 | mFormattedNameType = dialog.formattedNameType(); |
1258 | if ( mFormattedNameType == NameEditDialog::CustomName ) { | 1256 | if ( mFormattedNameType == NameEditDialog::CustomName ) { |
1259 | mFormattedNameLabel->setText( dialog.customFormattedName() ); | 1257 | mFormattedNameLabel->setText( dialog.customFormattedName() ); |
1260 | mAddressee.setFormattedName( dialog.customFormattedName() ); | 1258 | mAddressee.setFormattedName( dialog.customFormattedName() ); |
1261 | } | 1259 | } |
1262 | // Update the name edit. | 1260 | // Update the name edit. |
1263 | bool block = mNameEdit->signalsBlocked(); | 1261 | bool block = mNameEdit->signalsBlocked(); |
1264 | mNameEdit->blockSignals( true ); | 1262 | mNameEdit->blockSignals( true ); |
1265 | mNameEdit->setText( mAddressee.assembledName() ); | 1263 | mNameEdit->setText( mAddressee.assembledName() ); |
1266 | mNameEdit->blockSignals( block ); | 1264 | mNameEdit->blockSignals( block ); |
1267 | 1265 | ||
1268 | // Update the combo box. | 1266 | // Update the combo box. |
1269 | nameBoxChanged(); | 1267 | nameBoxChanged(); |
1270 | 1268 | ||
1271 | emitModified(); | 1269 | emitModified(); |
1272 | } | 1270 | } |
1273 | } | 1271 | } |
1274 | } | 1272 | } |
1275 | 1273 | ||
1276 | void AddresseeEditorWidget::categoryButtonClicked() | 1274 | void AddresseeEditorWidget::categoryButtonClicked() |
1277 | { | 1275 | { |
1278 | // Show the category dialog | 1276 | // Show the category dialog |
1279 | if ( mCategoryDialog == 0 ) { | 1277 | if ( mCategoryDialog == 0 ) { |
1280 | mCategoryDialog = new KPIM::CategorySelectDialog( KABPrefs::instance(), this ); | 1278 | mCategoryDialog = new KPIM::CategorySelectDialog( KABPrefs::instance(), this ); |
1281 | connect( mCategoryDialog, SIGNAL( categoriesSelected( const QStringList& ) ), | 1279 | connect( mCategoryDialog, SIGNAL( categoriesSelected( const QStringList& ) ), |
1282 | SLOT(categoriesSelected( const QStringList& ) ) ); | 1280 | SLOT(categoriesSelected( const QStringList& ) ) ); |
1283 | connect( mCategoryDialog, SIGNAL( editCategories() ), SLOT( editCategories() ) ); | 1281 | connect( mCategoryDialog, SIGNAL( editCategories() ), SLOT( editCategories() ) ); |
1284 | } | 1282 | } |
1285 | 1283 | ||
1286 | mCategoryDialog->setCategories(); | 1284 | mCategoryDialog->setCategories(); |
1287 | mCategoryDialog->setSelected( QStringList::split( ",", mCategoryEdit->text() ) ); | 1285 | mCategoryDialog->setSelected( QStringList::split( ",", mCategoryEdit->text() ) ); |
1288 | mCategoryDialog->show(); | 1286 | mCategoryDialog->show(); |
1289 | mCategoryDialog->raise(); | 1287 | mCategoryDialog->raise(); |
1290 | } | 1288 | } |
1291 | 1289 | ||
1292 | void AddresseeEditorWidget::categoriesSelected( const QStringList &list ) | 1290 | void AddresseeEditorWidget::categoriesSelected( const QStringList &list ) |
1293 | { | 1291 | { |
1294 | mCategoryEdit->setText( list.join( "," ) ); | 1292 | mCategoryEdit->setText( list.join( "," ) ); |
1295 | } | 1293 | } |
1296 | 1294 | ||
1297 | void AddresseeEditorWidget::editCategories() | 1295 | void AddresseeEditorWidget::editCategories() |
1298 | { | 1296 | { |
1299 | if ( mCategoryEditDialog == 0 ) { | 1297 | if ( mCategoryEditDialog == 0 ) { |
1300 | mCategoryEditDialog = new KPIM::CategoryEditDialog( KABPrefs::instance(), this ); | 1298 | mCategoryEditDialog = new KPIM::CategoryEditDialog( KABPrefs::instance(), this ); |
1301 | connect( mCategoryEditDialog, SIGNAL( categoryConfigChanged() ), | 1299 | connect( mCategoryEditDialog, SIGNAL( categoryConfigChanged() ), |
1302 | SLOT( categoryButtonClicked() ) ); | 1300 | SLOT( categoryButtonClicked() ) ); |
1303 | } | 1301 | } |
1304 | 1302 | ||
1305 | mCategoryEditDialog->show(); | 1303 | mCategoryEditDialog->show(); |
1306 | mCategoryEditDialog->raise(); | 1304 | mCategoryEditDialog->raise(); |
1307 | } | 1305 | } |
1308 | 1306 | ||
1309 | void AddresseeEditorWidget::emitModified() | 1307 | void AddresseeEditorWidget::emitModified() |
1310 | { | 1308 | { |
1311 | mDirty = true; | 1309 | mDirty = true; |
1312 | 1310 | ||
1313 | KABC::Addressee::List list; | 1311 | KABC::Addressee::List list; |
1314 | 1312 | ||
1315 | if ( mIsExtension && !mBlockSignals ) { | 1313 | if ( mIsExtension && !mBlockSignals ) { |
1316 | save(); | 1314 | save(); |
1317 | list.append( mAddressee ); | 1315 | list.append( mAddressee ); |
1318 | } | 1316 | } |
1319 | 1317 | ||
1320 | emit modified( list ); | 1318 | emit modified( list ); |
1321 | } | 1319 | } |
1322 | 1320 | ||
1323 | void AddresseeEditorWidget::dateChanged( QDate ) | 1321 | void AddresseeEditorWidget::dateChanged( QDate ) |
1324 | { | 1322 | { |
1325 | emitModified(); | 1323 | emitModified(); |
1326 | } | 1324 | } |
1327 | 1325 | ||
1328 | //US invalid dates are handdled by the KDateEdit widget itself | 1326 | //US invalid dates are handdled by the KDateEdit widget itself |
1329 | void AddresseeEditorWidget::invalidDate() | 1327 | void AddresseeEditorWidget::invalidDate() |
1330 | { | 1328 | { |
1331 | KMessageBox::sorry( this, i18n( "You must specify a valid date" ) ); | 1329 | KMessageBox::sorry( this, i18n( "You must specify a valid date" ) ); |
1332 | } | 1330 | } |
1333 | 1331 | ||
1334 | 1332 | ||
1335 | void AddresseeEditorWidget::pageChanged( QWidget *wdg ) | 1333 | void AddresseeEditorWidget::pageChanged( QWidget *wdg ) |
1336 | { | 1334 | { |
1337 | #ifndef KAB_EMBEDDED | 1335 | #ifndef KAB_EMBEDDED |
1338 | if ( wdg ) | 1336 | if ( wdg ) |
1339 | KAcceleratorManager::manage( wdg ); | 1337 | KAcceleratorManager::manage( wdg ); |
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 3715786..046cb63 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -122,512 +122,513 @@ $Id$ | |||
122 | #include <kresources/selectdialog.h> | 122 | #include <kresources/selectdialog.h> |
123 | #include <kmessagebox.h> | 123 | #include <kmessagebox.h> |
124 | 124 | ||
125 | #include <picture.h> | 125 | #include <picture.h> |
126 | #include <resource.h> | 126 | #include <resource.h> |
127 | 127 | ||
128 | //US#include <qsplitter.h> | 128 | //US#include <qsplitter.h> |
129 | #include <qmap.h> | 129 | #include <qmap.h> |
130 | #include <qdir.h> | 130 | #include <qdir.h> |
131 | #include <qfile.h> | 131 | #include <qfile.h> |
132 | #include <qvbox.h> | 132 | #include <qvbox.h> |
133 | #include <qlayout.h> | 133 | #include <qlayout.h> |
134 | #include <qclipboard.h> | 134 | #include <qclipboard.h> |
135 | #include <qtextstream.h> | 135 | #include <qtextstream.h> |
136 | #include <qradiobutton.h> | 136 | #include <qradiobutton.h> |
137 | #include <qbuttongroup.h> | 137 | #include <qbuttongroup.h> |
138 | 138 | ||
139 | #include <libkdepim/categoryselectdialog.h> | 139 | #include <libkdepim/categoryselectdialog.h> |
140 | #include <libkdepim/categoryeditdialog.h> | 140 | #include <libkdepim/categoryeditdialog.h> |
141 | #include <kabc/vcardconverter.h> | 141 | #include <kabc/vcardconverter.h> |
142 | 142 | ||
143 | 143 | ||
144 | #include "addresseeutil.h" | 144 | #include "addresseeutil.h" |
145 | #include "undocmds.h" | 145 | #include "undocmds.h" |
146 | #include "addresseeeditordialog.h" | 146 | #include "addresseeeditordialog.h" |
147 | #include "viewmanager.h" | 147 | #include "viewmanager.h" |
148 | #include "details/detailsviewcontainer.h" | 148 | #include "details/detailsviewcontainer.h" |
149 | #include "kabprefs.h" | 149 | #include "kabprefs.h" |
150 | #include "xxportmanager.h" | 150 | #include "xxportmanager.h" |
151 | #include "incsearchwidget.h" | 151 | #include "incsearchwidget.h" |
152 | #include "jumpbuttonbar.h" | 152 | #include "jumpbuttonbar.h" |
153 | #include "extensionmanager.h" | 153 | #include "extensionmanager.h" |
154 | #include "addresseeconfig.h" | 154 | #include "addresseeconfig.h" |
155 | #include "nameeditdialog.h" | 155 | #include "nameeditdialog.h" |
156 | #include <kcmultidialog.h> | 156 | #include <kcmultidialog.h> |
157 | 157 | ||
158 | #ifdef _WIN32_ | 158 | #ifdef _WIN32_ |
159 | #ifdef _OL_IMPORT_ | 159 | #ifdef _OL_IMPORT_ |
160 | #include "kaimportoldialog.h" | 160 | #include "kaimportoldialog.h" |
161 | #endif | 161 | #endif |
162 | #else | 162 | #else |
163 | #include <unistd.h> | 163 | #include <unistd.h> |
164 | #endif | 164 | #endif |
165 | // sync includes | 165 | // sync includes |
166 | #include <libkdepim/ksyncprofile.h> | 166 | #include <libkdepim/ksyncprofile.h> |
167 | #include <libkdepim/ksyncprefsdialog.h> | 167 | #include <libkdepim/ksyncprefsdialog.h> |
168 | 168 | ||
169 | 169 | ||
170 | class KABCatPrefs : public QDialog | 170 | class KABCatPrefs : public QDialog |
171 | { | 171 | { |
172 | public: | 172 | public: |
173 | KABCatPrefs( QWidget *parent=0, const char *name=0 ) : | 173 | KABCatPrefs( QWidget *parent=0, const char *name=0 ) : |
174 | QDialog( parent, name, true ) | 174 | QDialog( parent, name, true ) |
175 | { | 175 | { |
176 | setCaption( i18n("Manage new Categories") ); | 176 | setCaption( i18n("Manage new Categories") ); |
177 | QVBoxLayout* lay = new QVBoxLayout( this ); | 177 | QVBoxLayout* lay = new QVBoxLayout( this ); |
178 | lay->setSpacing( 3 ); | 178 | lay->setSpacing( 3 ); |
179 | lay->setMargin( 3 ); | 179 | lay->setMargin( 3 ); |
180 | QLabel * lab = new QLabel( i18n("After importing/loading/syncing\nthere may be new categories in\naddressees\nwhich are not in the category list.\nPlease choose what to do:\n "), this ); | 180 | QLabel * lab = new QLabel( i18n("After importing/loading/syncing\nthere may be new categories in\naddressees\nwhich are not in the category list.\nPlease choose what to do:\n "), this ); |
181 | lay->addWidget( lab ); | 181 | lay->addWidget( lab ); |
182 | QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("New categories not in list:"), this ); | 182 | QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("New categories not in list:"), this ); |
183 | lay->addWidget( format ); | 183 | lay->addWidget( format ); |
184 | format->setExclusive ( true ) ; | 184 | format->setExclusive ( true ) ; |
185 | addCatBut = new QRadioButton(i18n("Add to category list"), format ); | 185 | addCatBut = new QRadioButton(i18n("Add to category list"), format ); |
186 | new QRadioButton(i18n("Remove from addressees"), format ); | 186 | new QRadioButton(i18n("Remove from addressees"), format ); |
187 | addCatBut->setChecked( true ); | 187 | addCatBut->setChecked( true ); |
188 | QPushButton * ok = new QPushButton( i18n("OK"), this ); | 188 | QPushButton * ok = new QPushButton( i18n("OK"), this ); |
189 | lay->addWidget( ok ); | 189 | lay->addWidget( ok ); |
190 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | 190 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); |
191 | lay->addWidget( cancel ); | 191 | lay->addWidget( cancel ); |
192 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); | 192 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); |
193 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 193 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); |
194 | resize( 200, 200 ); | 194 | resize( 200, 200 ); |
195 | } | 195 | } |
196 | 196 | ||
197 | bool addCat() { return addCatBut->isChecked(); } | 197 | bool addCat() { return addCatBut->isChecked(); } |
198 | private: | 198 | private: |
199 | QRadioButton* addCatBut; | 199 | QRadioButton* addCatBut; |
200 | }; | 200 | }; |
201 | 201 | ||
202 | class KABFormatPrefs : public QDialog | 202 | class KABFormatPrefs : public QDialog |
203 | { | 203 | { |
204 | public: | 204 | public: |
205 | KABFormatPrefs( QWidget *parent=0, const char *name=0 ) : | 205 | KABFormatPrefs( QWidget *parent=0, const char *name=0 ) : |
206 | QDialog( parent, name, true ) | 206 | QDialog( parent, name, true ) |
207 | { | 207 | { |
208 | setCaption( i18n("Set formatted name") ); | 208 | setCaption( i18n("Set formatted name") ); |
209 | QVBoxLayout* lay = new QVBoxLayout( this ); | 209 | QVBoxLayout* lay = new QVBoxLayout( this ); |
210 | lay->setSpacing( 3 ); | 210 | lay->setSpacing( 3 ); |
211 | lay->setMargin( 3 ); | 211 | lay->setMargin( 3 ); |
212 | QLabel * lab = new QLabel( i18n("You can set the formatted name\nfor a list of contacts in one go."), this ); | 212 | QLabel * lab = new QLabel( i18n("You can set the formatted name\nfor a list of contacts in one go."), this ); |
213 | lay->addWidget( lab ); | 213 | lay->addWidget( lab ); |
214 | QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("Set formatted name to:"), this ); | 214 | QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("Set formatted name to:"), this ); |
215 | lay->addWidget( format ); | 215 | lay->addWidget( format ); |
216 | format->setExclusive ( true ) ; | 216 | format->setExclusive ( true ) ; |
217 | simple = new QRadioButton(i18n("Simple: James Bond"), format ); | 217 | simple = new QRadioButton(i18n("Simple: James Bond"), format ); |
218 | full = new QRadioButton(i18n("Full: Mr. James 007 Bond I"), format ); | 218 | full = new QRadioButton(i18n("Full: Mr. James 007 Bond I"), format ); |
219 | reverse = new QRadioButton(i18n("Reverse: Bond, James"), format ); | 219 | reverse = new QRadioButton(i18n("Reverse: Bond, James"), format ); |
220 | company = new QRadioButton(i18n("Organization: MI6"), format ); | 220 | company = new QRadioButton(i18n("Organization: MI6"), format ); |
221 | simple->setChecked( true ); | 221 | simple->setChecked( true ); |
222 | setCompany = new QCheckBox(i18n("Set formatted name to\norganization, if name empty"), this); | 222 | setCompany = new QCheckBox(i18n("Set formatted name to\norganization, if name empty"), this); |
223 | lay->addWidget( setCompany ); | 223 | lay->addWidget( setCompany ); |
224 | QPushButton * ok = new QPushButton( i18n("Select contact list"), this ); | 224 | QPushButton * ok = new QPushButton( i18n("Select contact list"), this ); |
225 | lay->addWidget( ok ); | 225 | lay->addWidget( ok ); |
226 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | 226 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); |
227 | lay->addWidget( cancel ); | 227 | lay->addWidget( cancel ); |
228 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); | 228 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); |
229 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 229 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); |
230 | //resize( 200, 200 ); | 230 | //resize( 200, 200 ); |
231 | 231 | ||
232 | } | 232 | } |
233 | public: | 233 | public: |
234 | QRadioButton* simple, *full, *reverse, *company; | 234 | QRadioButton* simple, *full, *reverse, *company; |
235 | QCheckBox* setCompany; | 235 | QCheckBox* setCompany; |
236 | }; | 236 | }; |
237 | 237 | ||
238 | 238 | ||
239 | 239 | ||
240 | class KAex2phonePrefs : public QDialog | 240 | class KAex2phonePrefs : public QDialog |
241 | { | 241 | { |
242 | public: | 242 | public: |
243 | KAex2phonePrefs( QWidget *parent=0, const char *name=0 ) : | 243 | KAex2phonePrefs( QWidget *parent=0, const char *name=0 ) : |
244 | QDialog( parent, name, true ) | 244 | QDialog( parent, name, true ) |
245 | { | 245 | { |
246 | setCaption( i18n("Export to phone options") ); | 246 | setCaption( i18n("Export to phone options") ); |
247 | QVBoxLayout* lay = new QVBoxLayout( this ); | 247 | QVBoxLayout* lay = new QVBoxLayout( this ); |
248 | lay->setSpacing( 3 ); | 248 | lay->setSpacing( 3 ); |
249 | lay->setMargin( 3 ); | 249 | lay->setMargin( 3 ); |
250 | QLabel *lab; | 250 | QLabel *lab; |
251 | lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) ); | 251 | lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) ); |
252 | lab->setAlignment (AlignHCenter ); | 252 | lab->setAlignment (AlignHCenter ); |
253 | QHBox* temphb; | 253 | QHBox* temphb; |
254 | temphb = new QHBox( this ); | 254 | temphb = new QHBox( this ); |
255 | new QLabel( i18n("I/O device: "), temphb ); | 255 | new QLabel( i18n("I/O device: "), temphb ); |
256 | mPhoneDevice = new QLineEdit( temphb); | 256 | mPhoneDevice = new QLineEdit( temphb); |
257 | lay->addWidget( temphb ); | 257 | lay->addWidget( temphb ); |
258 | temphb = new QHBox( this ); | 258 | temphb = new QHBox( this ); |
259 | new QLabel( i18n("Connection: "), temphb ); | 259 | new QLabel( i18n("Connection: "), temphb ); |
260 | mPhoneConnection = new QLineEdit( temphb); | 260 | mPhoneConnection = new QLineEdit( temphb); |
261 | lay->addWidget( temphb ); | 261 | lay->addWidget( temphb ); |
262 | temphb = new QHBox( this ); | 262 | temphb = new QHBox( this ); |
263 | new QLabel( i18n("Model(opt.): "), temphb ); | 263 | new QLabel( i18n("Model(opt.): "), temphb ); |
264 | mPhoneModel = new QLineEdit( temphb); | 264 | mPhoneModel = new QLineEdit( temphb); |
265 | lay->addWidget( temphb ); | 265 | lay->addWidget( temphb ); |
266 | // mWriteToSim = new QCheckBox( i18n("Write Contacts to SIM card\n(if not, write to phone memory)"), this ); | 266 | // mWriteToSim = new QCheckBox( i18n("Write Contacts to SIM card\n(if not, write to phone memory)"), this ); |
267 | // lay->addWidget( mWriteToSim ); | 267 | // lay->addWidget( mWriteToSim ); |
268 | lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\ncontact data on phone!"), this ) ); | 268 | lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\ncontact data on phone!"), this ) ); |
269 | lab->setAlignment (AlignHCenter); | 269 | lab->setAlignment (AlignHCenter); |
270 | QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this ); | 270 | QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this ); |
271 | lay->addWidget( ok ); | 271 | lay->addWidget( ok ); |
272 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | 272 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); |
273 | lay->addWidget( cancel ); | 273 | lay->addWidget( cancel ); |
274 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); | 274 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); |
275 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 275 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); |
276 | resize( 220, 240 ); | 276 | resize( 220, 240 ); |
277 | 277 | ||
278 | } | 278 | } |
279 | 279 | ||
280 | public: | 280 | public: |
281 | QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel; | 281 | QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel; |
282 | QCheckBox* mWriteToSim; | 282 | QCheckBox* mWriteToSim; |
283 | }; | 283 | }; |
284 | 284 | ||
285 | 285 | ||
286 | bool pasteWithNewUid = true; | 286 | bool pasteWithNewUid = true; |
287 | 287 | ||
288 | #ifdef KAB_EMBEDDED | 288 | #ifdef KAB_EMBEDDED |
289 | KABCore::KABCore( KAddressBookMain *client, bool readWrite, QWidget *parent, const char *name ) | 289 | KABCore::KABCore( KAddressBookMain *client, bool readWrite, QWidget *parent, const char *name ) |
290 | : QWidget( parent, name ), KSyncInterface(), mGUIClient( client ), mViewManager( 0 ), | 290 | : QWidget( parent, name ), KSyncInterface(), mGUIClient( client ), mViewManager( 0 ), |
291 | mExtensionManager( 0 ),mConfigureDialog( 0 ),/*US mLdapSearchDialog( 0 ),*/ | 291 | mExtensionManager( 0 ),mConfigureDialog( 0 ),/*US mLdapSearchDialog( 0 ),*/ |
292 | mReadWrite( readWrite ), mModified( false ), mMainWindow(client) | 292 | mReadWrite( readWrite ), mModified( false ), mMainWindow(client) |
293 | #else //KAB_EMBEDDED | 293 | #else //KAB_EMBEDDED |
294 | KABCore::KABCore( KXMLGUIClient *client, bool readWrite, QWidget *parent, const char *name ) | 294 | KABCore::KABCore( KXMLGUIClient *client, bool readWrite, QWidget *parent, const char *name ) |
295 | : QWidget( parent, name ), KSyncInterface(), mGUIClient( client ), mViewManager( 0 ), | 295 | : QWidget( parent, name ), KSyncInterface(), mGUIClient( client ), mViewManager( 0 ), |
296 | mExtensionManager( 0 ), mConfigureDialog( 0 ), mLdapSearchDialog( 0 ), | 296 | mExtensionManager( 0 ), mConfigureDialog( 0 ), mLdapSearchDialog( 0 ), |
297 | mReadWrite( readWrite ), mModified( false ) | 297 | mReadWrite( readWrite ), mModified( false ) |
298 | #endif //KAB_EMBEDDED | 298 | #endif //KAB_EMBEDDED |
299 | { | 299 | { |
300 | // syncManager = new KSyncManager((QWidget*)this, (KSyncInterface*)this, KSyncManager::KAPI, KABPrefs::instance(), syncMenu); | 300 | // syncManager = new KSyncManager((QWidget*)this, (KSyncInterface*)this, KSyncManager::KAPI, KABPrefs::instance(), syncMenu); |
301 | // syncManager->setBlockSave(false); | 301 | // syncManager->setBlockSave(false); |
302 | mIncSearchWidget = 0; | 302 | mIncSearchWidget = 0; |
303 | mMiniSplitter = 0; | 303 | mMiniSplitter = 0; |
304 | mExtensionBarSplitter = 0; | 304 | mExtensionBarSplitter = 0; |
305 | mIsPart = !parent->inherits( "KAddressBookMain" ); | 305 | mIsPart = !parent->inherits( "KAddressBookMain" ); |
306 | mAddressBook = KABC::StdAddressBook::self(); | 306 | mAddressBook = KABC::StdAddressBook::self(); |
307 | KABC::StdAddressBook::setAutomaticSave( false ); | 307 | KABC::StdAddressBook::setAutomaticSave( false ); |
308 | 308 | ||
309 | #ifndef KAB_EMBEDDED | 309 | #ifndef KAB_EMBEDDED |
310 | mAddressBook->setErrorHandler( new KABC::GUIErrorHandler ); | 310 | mAddressBook->setErrorHandler( new KABC::GUIErrorHandler ); |
311 | #endif //KAB_EMBEDDED | 311 | #endif //KAB_EMBEDDED |
312 | 312 | ||
313 | connect( mAddressBook, SIGNAL( addressBookChanged( AddressBook * ) ), | 313 | connect( mAddressBook, SIGNAL( addressBookChanged( AddressBook * ) ), |
314 | SLOT( addressBookChanged() ) ); | 314 | SLOT( addressBookChanged() ) ); |
315 | 315 | ||
316 | #if 0 | 316 | #if 0 |
317 | // LR moved to addressbook init method | 317 | // LR moved to addressbook init method |
318 | mAddressBook->addCustomField( i18n( "Department" ), KABC::Field::Organization, | 318 | mAddressBook->addCustomField( i18n( "Department" ), KABC::Field::Organization, |
319 | "X-Department", "KADDRESSBOOK" ); | 319 | "X-Department", "KADDRESSBOOK" ); |
320 | mAddressBook->addCustomField( i18n( "Profession" ), KABC::Field::Organization, | 320 | mAddressBook->addCustomField( i18n( "Profession" ), KABC::Field::Organization, |
321 | "X-Profession", "KADDRESSBOOK" ); | 321 | "X-Profession", "KADDRESSBOOK" ); |
322 | mAddressBook->addCustomField( i18n( "Assistant's Name" ), KABC::Field::Organization, | 322 | mAddressBook->addCustomField( i18n( "Assistant's Name" ), KABC::Field::Organization, |
323 | "X-AssistantsName", "KADDRESSBOOK" ); | 323 | "X-AssistantsName", "KADDRESSBOOK" ); |
324 | mAddressBook->addCustomField( i18n( "Manager's Name" ), KABC::Field::Organization, | 324 | mAddressBook->addCustomField( i18n( "Manager's Name" ), KABC::Field::Organization, |
325 | "X-ManagersName", "KADDRESSBOOK" ); | 325 | "X-ManagersName", "KADDRESSBOOK" ); |
326 | mAddressBook->addCustomField( i18n( "Spouse's Name" ), KABC::Field::Personal, | 326 | mAddressBook->addCustomField( i18n( "Spouse's Name" ), KABC::Field::Personal, |
327 | "X-SpousesName", "KADDRESSBOOK" ); | 327 | "X-SpousesName", "KADDRESSBOOK" ); |
328 | mAddressBook->addCustomField( i18n( "Office" ), KABC::Field::Personal, | 328 | mAddressBook->addCustomField( i18n( "Office" ), KABC::Field::Personal, |
329 | "X-Office", "KADDRESSBOOK" ); | 329 | "X-Office", "KADDRESSBOOK" ); |
330 | mAddressBook->addCustomField( i18n( "IM Address" ), KABC::Field::Personal, | 330 | mAddressBook->addCustomField( i18n( "IM Address" ), KABC::Field::Personal, |
331 | "X-IMAddress", "KADDRESSBOOK" ); | 331 | "X-IMAddress", "KADDRESSBOOK" ); |
332 | mAddressBook->addCustomField( i18n( "Anniversary" ), KABC::Field::Personal, | 332 | mAddressBook->addCustomField( i18n( "Anniversary" ), KABC::Field::Personal, |
333 | "X-Anniversary", "KADDRESSBOOK" ); | 333 | "X-Anniversary", "KADDRESSBOOK" ); |
334 | 334 | ||
335 | //US added this field to become compatible with Opie/qtopia addressbook | 335 | //US added this field to become compatible with Opie/qtopia addressbook |
336 | // values can be "female" or "male" or "". An empty field represents undefined. | 336 | // values can be "female" or "male" or "". An empty field represents undefined. |
337 | mAddressBook->addCustomField( i18n( "Gender" ), KABC::Field::Personal, | 337 | mAddressBook->addCustomField( i18n( "Gender" ), KABC::Field::Personal, |
338 | "X-Gender", "KADDRESSBOOK" ); | 338 | "X-Gender", "KADDRESSBOOK" ); |
339 | mAddressBook->addCustomField( i18n( "Children" ), KABC::Field::Personal, | 339 | mAddressBook->addCustomField( i18n( "Children" ), KABC::Field::Personal, |
340 | "X-Children", "KADDRESSBOOK" ); | 340 | "X-Children", "KADDRESSBOOK" ); |
341 | mAddressBook->addCustomField( i18n( "FreeBusyUrl" ), KABC::Field::Personal, | 341 | mAddressBook->addCustomField( i18n( "FreeBusyUrl" ), KABC::Field::Personal, |
342 | "X-FreeBusyUrl", "KADDRESSBOOK" ); | 342 | "X-FreeBusyUrl", "KADDRESSBOOK" ); |
343 | #endif | 343 | #endif |
344 | initGUI(); | 344 | initGUI(); |
345 | 345 | ||
346 | mIncSearchWidget->setFocus(); | 346 | mIncSearchWidget->setFocus(); |
347 | 347 | ||
348 | 348 | ||
349 | connect( mViewManager, SIGNAL( selected( const QString& ) ), | 349 | connect( mViewManager, SIGNAL( selected( const QString& ) ), |
350 | SLOT( setContactSelected( const QString& ) ) ); | 350 | SLOT( setContactSelected( const QString& ) ) ); |
351 | connect( mViewManager, SIGNAL( executed( const QString& ) ), | 351 | connect( mViewManager, SIGNAL( executed( const QString& ) ), |
352 | SLOT( executeContact( const QString& ) ) ); | 352 | SLOT( executeContact( const QString& ) ) ); |
353 | 353 | ||
354 | connect( mViewManager, SIGNAL( deleteRequest( ) ), | 354 | connect( mViewManager, SIGNAL( deleteRequest( ) ), |
355 | SLOT( deleteContacts( ) ) ); | 355 | SLOT( deleteContacts( ) ) ); |
356 | connect( mViewManager, SIGNAL( modified() ), | 356 | connect( mViewManager, SIGNAL( modified() ), |
357 | SLOT( setModified() ) ); | 357 | SLOT( setModified() ) ); |
358 | 358 | ||
359 | connect( mExtensionManager, SIGNAL( modified( const KABC::Addressee::List& ) ), this, SLOT( extensionModified( const KABC::Addressee::List& ) ) ); | 359 | connect( mExtensionManager, SIGNAL( modified( const KABC::Addressee::List& ) ), this, SLOT( extensionModified( const KABC::Addressee::List& ) ) ); |
360 | connect( mExtensionManager, SIGNAL( changedActiveExtension( int ) ), this, SLOT( extensionChanged( int ) ) ); | 360 | connect( mExtensionManager, SIGNAL( changedActiveExtension( int ) ), this, SLOT( extensionChanged( int ) ) ); |
361 | 361 | ||
362 | connect( mXXPortManager, SIGNAL( modified() ), | 362 | connect( mXXPortManager, SIGNAL( modified() ), |
363 | SLOT( setModified() ) ); | 363 | SLOT( setModified() ) ); |
364 | 364 | ||
365 | connect( mJumpButtonBar, SIGNAL( jumpToLetter( const QString& ) ), | 365 | connect( mJumpButtonBar, SIGNAL( jumpToLetter( const QString& ) ), |
366 | SLOT( incrementalSearchJump( const QString& ) ) ); | 366 | SLOT( incrementalSearchJump( const QString& ) ) ); |
367 | connect( mIncSearchWidget, SIGNAL( fieldChanged() ), | 367 | connect( mIncSearchWidget, SIGNAL( fieldChanged() ), |
368 | mJumpButtonBar, SLOT( recreateButtons() ) ); | 368 | mJumpButtonBar, SLOT( recreateButtons() ) ); |
369 | 369 | ||
370 | connect( mDetails, SIGNAL( sendEmail( const QString& ) ), | 370 | connect( mDetails, SIGNAL( sendEmail( const QString& ) ), |
371 | SLOT( sendMail( const QString& ) ) ); | 371 | SLOT( sendMail( const QString& ) ) ); |
372 | 372 | ||
373 | 373 | ||
374 | connect( ExternalAppHandler::instance(), SIGNAL (requestForNameEmailUidList(const QString&, const QString&)),this, SLOT(requestForNameEmailUidList(const QString&, const QString&))); | 374 | connect( ExternalAppHandler::instance(), SIGNAL (requestForNameEmailUidList(const QString&, const QString&)),this, SLOT(requestForNameEmailUidList(const QString&, const QString&))); |
375 | connect( ExternalAppHandler::instance(), SIGNAL (requestForDetails(const QString&, const QString&, const QString&, const QString&, const QString&)),this, SLOT(requestForDetails(const QString&, const QString&, const QString&, const QString&, const QString&))); | 375 | connect( ExternalAppHandler::instance(), SIGNAL (requestForDetails(const QString&, const QString&, const QString&, const QString&, const QString&)),this, SLOT(requestForDetails(const QString&, const QString&, const QString&, const QString&, const QString&))); |
376 | connect( ExternalAppHandler::instance(), SIGNAL (requestForBirthdayList(const QString&, const QString&)),this, SLOT(requestForBirthdayList(const QString&, const QString&))); | 376 | connect( ExternalAppHandler::instance(), SIGNAL (requestForBirthdayList(const QString&, const QString&)),this, SLOT(requestForBirthdayList(const QString&, const QString&))); |
377 | connect( ExternalAppHandler::instance(), SIGNAL (nextView()),this, SLOT(setDetailsToggle())); | 377 | connect( ExternalAppHandler::instance(), SIGNAL (nextView()),this, SLOT(setDetailsToggle())); |
378 | connect( ExternalAppHandler::instance(), SIGNAL (doRingSync()),this, SLOT( doRingSync())); | ||
378 | connect( ExternalAppHandler::instance(), SIGNAL (callContactdialog()),this, SLOT(callContactdialog())); | 379 | connect( ExternalAppHandler::instance(), SIGNAL (callContactdialog()),this, SLOT(callContactdialog())); |
379 | 380 | ||
380 | 381 | ||
381 | #ifndef KAB_EMBEDDED | 382 | #ifndef KAB_EMBEDDED |
382 | connect( mViewManager, SIGNAL( urlDropped( const KURL& ) ), | 383 | connect( mViewManager, SIGNAL( urlDropped( const KURL& ) ), |
383 | mXXPortManager, SLOT( importVCard( const KURL& ) ) ); | 384 | mXXPortManager, SLOT( importVCard( const KURL& ) ) ); |
384 | 385 | ||
385 | connect( mDetails, SIGNAL( browse( const QString& ) ), | 386 | connect( mDetails, SIGNAL( browse( const QString& ) ), |
386 | SLOT( browse( const QString& ) ) ); | 387 | SLOT( browse( const QString& ) ) ); |
387 | 388 | ||
388 | 389 | ||
389 | mAddressBookService = new KAddressBookService( this ); | 390 | mAddressBookService = new KAddressBookService( this ); |
390 | 391 | ||
391 | #endif //KAB_EMBEDDED | 392 | #endif //KAB_EMBEDDED |
392 | 393 | ||
393 | mMessageTimer = new QTimer( this ); | 394 | mMessageTimer = new QTimer( this ); |
394 | connect( mMessageTimer, SIGNAL( timeout() ), this, SLOT( setCaptionBack() ) ); | 395 | connect( mMessageTimer, SIGNAL( timeout() ), this, SLOT( setCaptionBack() ) ); |
395 | mEditorDialog = 0; | 396 | mEditorDialog = 0; |
396 | createAddresseeEditorDialog( this ); | 397 | createAddresseeEditorDialog( this ); |
397 | setModified( false ); | 398 | setModified( false ); |
398 | mBRdisabled = false; | 399 | mBRdisabled = false; |
399 | #ifndef DESKTOP_VERSION | 400 | #ifndef DESKTOP_VERSION |
400 | infrared = 0; | 401 | infrared = 0; |
401 | #endif | 402 | #endif |
402 | //toggleBeamReceive( ); | 403 | //toggleBeamReceive( ); |
403 | mMainWindow->toolBar()->show(); | 404 | mMainWindow->toolBar()->show(); |
404 | // we have a toolbar repainting error on the Zaurus when starting KA/Pi | 405 | // we have a toolbar repainting error on the Zaurus when starting KA/Pi |
405 | QTimer::singleShot( 10, this , SLOT ( updateToolBar())); | 406 | QTimer::singleShot( 10, this , SLOT ( updateToolBar())); |
406 | } | 407 | } |
407 | 408 | ||
408 | void KABCore::updateToolBar() | 409 | void KABCore::updateToolBar() |
409 | { | 410 | { |
410 | static int iii = 0; | 411 | static int iii = 0; |
411 | ++iii; | 412 | ++iii; |
412 | mMainWindow->toolBar()->repaintMe(); | 413 | mMainWindow->toolBar()->repaintMe(); |
413 | if ( iii < 4 ) | 414 | if ( iii < 4 ) |
414 | QTimer::singleShot( 100*iii, this , SLOT ( updateToolBar())); | 415 | QTimer::singleShot( 100*iii, this , SLOT ( updateToolBar())); |
415 | } | 416 | } |
416 | KABCore::~KABCore() | 417 | KABCore::~KABCore() |
417 | { | 418 | { |
418 | // save(); | 419 | // save(); |
419 | //saveSettings(); | 420 | //saveSettings(); |
420 | //KABPrefs::instance()->writeConfig(); | 421 | //KABPrefs::instance()->writeConfig(); |
421 | delete AddresseeConfig::instance(); | 422 | delete AddresseeConfig::instance(); |
422 | mAddressBook = 0; | 423 | mAddressBook = 0; |
423 | KABC::StdAddressBook::close(); | 424 | KABC::StdAddressBook::close(); |
424 | 425 | ||
425 | delete syncManager; | 426 | delete syncManager; |
426 | #ifndef DESKTOP_VERSION | 427 | #ifndef DESKTOP_VERSION |
427 | if ( infrared ) | 428 | if ( infrared ) |
428 | delete infrared; | 429 | delete infrared; |
429 | #endif | 430 | #endif |
430 | } | 431 | } |
431 | void KABCore::receive( const QCString& cmsg, const QByteArray& data ) | 432 | void KABCore::receive( const QCString& cmsg, const QByteArray& data ) |
432 | { | 433 | { |
433 | //qDebug("KA: QCOP message received: %s ", cmsg.data() ); | 434 | //qDebug("KA: QCOP message received: %s ", cmsg.data() ); |
434 | if ( cmsg == "setDocument(QString)" ) { | 435 | if ( cmsg == "setDocument(QString)" ) { |
435 | QDataStream stream( data, IO_ReadOnly ); | 436 | QDataStream stream( data, IO_ReadOnly ); |
436 | QString fileName; | 437 | QString fileName; |
437 | stream >> fileName; | 438 | stream >> fileName; |
438 | recieve( fileName ); | 439 | recieve( fileName ); |
439 | return; | 440 | return; |
440 | } | 441 | } |
441 | } | 442 | } |
442 | void KABCore::toggleBeamReceive( ) | 443 | void KABCore::toggleBeamReceive( ) |
443 | { | 444 | { |
444 | if ( mBRdisabled ) | 445 | if ( mBRdisabled ) |
445 | return; | 446 | return; |
446 | #ifndef DESKTOP_VERSION | 447 | #ifndef DESKTOP_VERSION |
447 | if ( infrared ) { | 448 | if ( infrared ) { |
448 | qDebug("KA: AB disable BeamReceive "); | 449 | qDebug("KA: AB disable BeamReceive "); |
449 | delete infrared; | 450 | delete infrared; |
450 | infrared = 0; | 451 | infrared = 0; |
451 | mActionBR->setChecked(false); | 452 | mActionBR->setChecked(false); |
452 | return; | 453 | return; |
453 | } | 454 | } |
454 | qDebug("KA: AB enable BeamReceive "); | 455 | qDebug("KA: AB enable BeamReceive "); |
455 | mActionBR->setChecked(true); | 456 | mActionBR->setChecked(true); |
456 | 457 | ||
457 | infrared = new QCopChannel("QPE/Application/addressbook",this, "channelAB" ) ; | 458 | infrared = new QCopChannel("QPE/Application/addressbook",this, "channelAB" ) ; |
458 | QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(receive( const QCString&, const QByteArray& ))); | 459 | QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(receive( const QCString&, const QByteArray& ))); |
459 | #endif | 460 | #endif |
460 | } | 461 | } |
461 | 462 | ||
462 | 463 | ||
463 | void KABCore::disableBR(bool b) | 464 | void KABCore::disableBR(bool b) |
464 | { | 465 | { |
465 | #ifndef DESKTOP_VERSION | 466 | #ifndef DESKTOP_VERSION |
466 | if ( b ) { | 467 | if ( b ) { |
467 | if ( infrared ) { | 468 | if ( infrared ) { |
468 | toggleBeamReceive( ); | 469 | toggleBeamReceive( ); |
469 | } | 470 | } |
470 | mBRdisabled = true; | 471 | mBRdisabled = true; |
471 | } else { | 472 | } else { |
472 | if ( mBRdisabled ) { | 473 | if ( mBRdisabled ) { |
473 | mBRdisabled = false; | 474 | mBRdisabled = false; |
474 | //toggleBeamReceive( ); | 475 | //toggleBeamReceive( ); |
475 | } | 476 | } |
476 | } | 477 | } |
477 | #endif | 478 | #endif |
478 | 479 | ||
479 | } | 480 | } |
480 | void KABCore::recieve( QString fn ) | 481 | void KABCore::recieve( QString fn ) |
481 | { | 482 | { |
482 | //qDebug("KABCore::recieve "); | 483 | //qDebug("KABCore::recieve "); |
483 | int count = mAddressBook->importFromFile( fn, true ); | 484 | int count = mAddressBook->importFromFile( fn, true ); |
484 | if ( count ) | 485 | if ( count ) |
485 | setModified( true ); | 486 | setModified( true ); |
486 | mViewManager->refreshView(); | 487 | mViewManager->refreshView(); |
487 | message(i18n("%1 contact(s) received!").arg( count )); | 488 | message(i18n("%1 contact(s) received!").arg( count )); |
488 | topLevelWidget()->showMaximized(); | 489 | topLevelWidget()->showMaximized(); |
489 | topLevelWidget()->raise(); | 490 | topLevelWidget()->raise(); |
490 | } | 491 | } |
491 | void KABCore::restoreSettings() | 492 | void KABCore::restoreSettings() |
492 | { | 493 | { |
493 | mMultipleViewsAtOnce = KABPrefs::instance()->mMultipleViewsAtOnce; | 494 | mMultipleViewsAtOnce = KABPrefs::instance()->mMultipleViewsAtOnce; |
494 | 495 | ||
495 | bool state; | 496 | bool state; |
496 | 497 | ||
497 | if (mMultipleViewsAtOnce) | 498 | if (mMultipleViewsAtOnce) |
498 | state = KABPrefs::instance()->mDetailsPageVisible; | 499 | state = KABPrefs::instance()->mDetailsPageVisible; |
499 | else | 500 | else |
500 | state = false; | 501 | state = false; |
501 | 502 | ||
502 | mActionDetails->setChecked( state ); | 503 | mActionDetails->setChecked( state ); |
503 | setDetailsVisible( state ); | 504 | setDetailsVisible( state ); |
504 | 505 | ||
505 | state = KABPrefs::instance()->mJumpButtonBarVisible; | 506 | state = KABPrefs::instance()->mJumpButtonBarVisible; |
506 | 507 | ||
507 | mActionJumpBar->setChecked( state ); | 508 | mActionJumpBar->setChecked( state ); |
508 | setJumpButtonBarVisible( state ); | 509 | setJumpButtonBarVisible( state ); |
509 | /*US | 510 | /*US |
510 | QValueList<int> splitterSize = KABPrefs::instance()->mDetailsSplitter; | 511 | QValueList<int> splitterSize = KABPrefs::instance()->mDetailsSplitter; |
511 | if ( splitterSize.count() == 0 ) { | 512 | if ( splitterSize.count() == 0 ) { |
512 | splitterSize.append( width() / 2 ); | 513 | splitterSize.append( width() / 2 ); |
513 | splitterSize.append( width() / 2 ); | 514 | splitterSize.append( width() / 2 ); |
514 | } | 515 | } |
515 | mMiniSplitter->setSizes( splitterSize ); | 516 | mMiniSplitter->setSizes( splitterSize ); |
516 | if ( mExtensionBarSplitter ) { | 517 | if ( mExtensionBarSplitter ) { |
517 | splitterSize = KABPrefs::instance()->mExtensionsSplitter; | 518 | splitterSize = KABPrefs::instance()->mExtensionsSplitter; |
518 | if ( splitterSize.count() == 0 ) { | 519 | if ( splitterSize.count() == 0 ) { |
519 | splitterSize.append( width() / 2 ); | 520 | splitterSize.append( width() / 2 ); |
520 | splitterSize.append( width() / 2 ); | 521 | splitterSize.append( width() / 2 ); |
521 | } | 522 | } |
522 | mExtensionBarSplitter->setSizes( splitterSize ); | 523 | mExtensionBarSplitter->setSizes( splitterSize ); |
523 | 524 | ||
524 | } | 525 | } |
525 | */ | 526 | */ |
526 | mViewManager->restoreSettings(); | 527 | mViewManager->restoreSettings(); |
527 | mIncSearchWidget->setCurrentItem( KABPrefs::instance()->mCurrentIncSearchField ); | 528 | mIncSearchWidget->setCurrentItem( KABPrefs::instance()->mCurrentIncSearchField ); |
528 | mExtensionManager->restoreSettings(); | 529 | mExtensionManager->restoreSettings(); |
529 | #ifdef DESKTOP_VERSION | 530 | #ifdef DESKTOP_VERSION |
530 | int wid = width(); | 531 | int wid = width(); |
531 | if ( wid < 10 ) | 532 | if ( wid < 10 ) |
532 | wid = 400; | 533 | wid = 400; |
533 | #else | 534 | #else |
534 | int wid = QApplication::desktop()->width(); | 535 | int wid = QApplication::desktop()->width(); |
535 | if ( wid < 640 ) | 536 | if ( wid < 640 ) |
536 | wid = QApplication::desktop()->height(); | 537 | wid = QApplication::desktop()->height(); |
537 | #endif | 538 | #endif |
538 | QValueList<int> splitterSize;// = KABPrefs::instance()->mDetailsSplitter; | 539 | QValueList<int> splitterSize;// = KABPrefs::instance()->mDetailsSplitter; |
539 | if ( true /*splitterSize.count() == 0*/ ) { | 540 | if ( true /*splitterSize.count() == 0*/ ) { |
540 | splitterSize.append( wid / 2 ); | 541 | splitterSize.append( wid / 2 ); |
541 | splitterSize.append( wid / 2 ); | 542 | splitterSize.append( wid / 2 ); |
542 | } | 543 | } |
543 | mMiniSplitter->setSizes( splitterSize ); | 544 | mMiniSplitter->setSizes( splitterSize ); |
544 | if ( mExtensionBarSplitter ) { | 545 | if ( mExtensionBarSplitter ) { |
545 | //splitterSize = KABPrefs::instance()->mExtensionsSplitter; | 546 | //splitterSize = KABPrefs::instance()->mExtensionsSplitter; |
546 | if ( true /*splitterSize.count() == 0*/ ) { | 547 | if ( true /*splitterSize.count() == 0*/ ) { |
547 | splitterSize.append( wid / 2 ); | 548 | splitterSize.append( wid / 2 ); |
548 | splitterSize.append( wid / 2 ); | 549 | splitterSize.append( wid / 2 ); |
549 | } | 550 | } |
550 | mExtensionBarSplitter->setSizes( splitterSize ); | 551 | mExtensionBarSplitter->setSizes( splitterSize ); |
551 | 552 | ||
552 | } | 553 | } |
553 | #ifdef DESKTOP_VERSION | 554 | #ifdef DESKTOP_VERSION |
554 | KConfig *config = KABPrefs::instance()->getConfig(); | 555 | KConfig *config = KABPrefs::instance()->getConfig(); |
555 | config->setGroup("WidgetLayout"); | 556 | config->setGroup("WidgetLayout"); |
556 | QStringList list; | 557 | QStringList list; |
557 | list = config->readListEntry("MainLayout"); | 558 | list = config->readListEntry("MainLayout"); |
558 | int x,y,w,h; | 559 | int x,y,w,h; |
559 | if ( ! list.isEmpty() ) { | 560 | if ( ! list.isEmpty() ) { |
560 | x = list[0].toInt(); | 561 | x = list[0].toInt(); |
561 | y = list[1].toInt(); | 562 | y = list[1].toInt(); |
562 | w = list[2].toInt(); | 563 | w = list[2].toInt(); |
563 | h = list[3].toInt(); | 564 | h = list[3].toInt(); |
564 | KApplication::testCoords( &x,&y,&w,&h ); | 565 | KApplication::testCoords( &x,&y,&w,&h ); |
565 | topLevelWidget()->setGeometry(x,y,w,h); | 566 | topLevelWidget()->setGeometry(x,y,w,h); |
566 | 567 | ||
567 | } else { | 568 | } else { |
568 | topLevelWidget()->setGeometry( 40 ,40 , 640, 440); | 569 | topLevelWidget()->setGeometry( 40 ,40 , 640, 440); |
569 | } | 570 | } |
570 | #endif | 571 | #endif |
571 | } | 572 | } |
572 | 573 | ||
573 | void KABCore::saveSettings() | 574 | void KABCore::saveSettings() |
574 | { | 575 | { |
575 | KABPrefs::instance()->mJumpButtonBarVisible = mActionJumpBar->isChecked(); | 576 | KABPrefs::instance()->mJumpButtonBarVisible = mActionJumpBar->isChecked(); |
576 | if ( mExtensionBarSplitter ) | 577 | if ( mExtensionBarSplitter ) |
577 | KABPrefs::instance()->mExtensionsSplitter = mExtensionBarSplitter->sizes(); | 578 | KABPrefs::instance()->mExtensionsSplitter = mExtensionBarSplitter->sizes(); |
578 | KABPrefs::instance()->mDetailsPageVisible = mActionDetails->isChecked(); | 579 | KABPrefs::instance()->mDetailsPageVisible = mActionDetails->isChecked(); |
579 | KABPrefs::instance()->mDetailsSplitter = mMiniSplitter->sizes(); | 580 | KABPrefs::instance()->mDetailsSplitter = mMiniSplitter->sizes(); |
580 | #ifndef KAB_EMBEDDED | 581 | #ifndef KAB_EMBEDDED |
581 | 582 | ||
582 | KABPrefs::instance()->mExtensionsSplitter = mExtensionBarSplitter->sizes(); | 583 | KABPrefs::instance()->mExtensionsSplitter = mExtensionBarSplitter->sizes(); |
583 | KABPrefs::instance()->mDetailsSplitter = mDetailsSplitter->sizes(); | 584 | KABPrefs::instance()->mDetailsSplitter = mDetailsSplitter->sizes(); |
584 | #endif //KAB_EMBEDDED | 585 | #endif //KAB_EMBEDDED |
585 | mExtensionManager->saveSettings(); | 586 | mExtensionManager->saveSettings(); |
586 | mViewManager->saveSettings(); | 587 | mViewManager->saveSettings(); |
587 | 588 | ||
588 | KABPrefs::instance()->mCurrentIncSearchField = mIncSearchWidget->currentItem(); | 589 | KABPrefs::instance()->mCurrentIncSearchField = mIncSearchWidget->currentItem(); |
589 | 590 | ||
590 | KABPrefs::instance()->writeConfig(); | 591 | KABPrefs::instance()->writeConfig(); |
591 | qDebug("KA: KABCore::saveSettings() "); | 592 | qDebug("KA: KABCore::saveSettings() "); |
592 | } | 593 | } |
593 | 594 | ||
594 | KABC::AddressBook *KABCore::addressBook() const | 595 | KABC::AddressBook *KABCore::addressBook() const |
595 | { | 596 | { |
596 | return mAddressBook; | 597 | return mAddressBook; |
597 | } | 598 | } |
598 | 599 | ||
599 | KConfig *KABCore::config() | 600 | KConfig *KABCore::config() |
600 | { | 601 | { |
601 | #ifndef KAB_EMBEDDED | 602 | #ifndef KAB_EMBEDDED |
602 | return KABPrefs::instance()->config(); | 603 | return KABPrefs::instance()->config(); |
603 | #else //KAB_EMBEDDED | 604 | #else //KAB_EMBEDDED |
604 | return KABPrefs::instance()->getConfig(); | 605 | return KABPrefs::instance()->getConfig(); |
605 | #endif //KAB_EMBEDDED | 606 | #endif //KAB_EMBEDDED |
606 | } | 607 | } |
607 | 608 | ||
608 | KActionCollection *KABCore::actionCollection() const | 609 | KActionCollection *KABCore::actionCollection() const |
609 | { | 610 | { |
610 | return mGUIClient->actionCollection(); | 611 | return mGUIClient->actionCollection(); |
611 | } | 612 | } |
612 | 613 | ||
613 | KABC::Field *KABCore::currentSearchField() const | 614 | KABC::Field *KABCore::currentSearchField() const |
614 | { | 615 | { |
615 | if (mIncSearchWidget) | 616 | if (mIncSearchWidget) |
616 | return mIncSearchWidget->currentField(); | 617 | return mIncSearchWidget->currentField(); |
617 | else | 618 | else |
618 | return 0; | 619 | return 0; |
619 | } | 620 | } |
620 | 621 | ||
621 | QStringList KABCore::selectedUIDs() const | 622 | QStringList KABCore::selectedUIDs() const |
622 | { | 623 | { |
623 | return mViewManager->selectedUids(); | 624 | return mViewManager->selectedUids(); |
624 | } | 625 | } |
625 | 626 | ||
626 | KABC::Resource *KABCore::requestResource( QWidget *parent ) | 627 | KABC::Resource *KABCore::requestResource( QWidget *parent ) |
627 | { | 628 | { |
628 | QPtrList<KABC::Resource> kabcResources = addressBook()->resources(); | 629 | QPtrList<KABC::Resource> kabcResources = addressBook()->resources(); |
629 | 630 | ||
630 | QPtrList<KRES::Resource> kresResources; | 631 | QPtrList<KRES::Resource> kresResources; |
631 | QPtrListIterator<KABC::Resource> resIt( kabcResources ); | 632 | QPtrListIterator<KABC::Resource> resIt( kabcResources ); |
632 | KABC::Resource *resource; | 633 | KABC::Resource *resource; |
633 | while ( ( resource = resIt.current() ) != 0 ) { | 634 | while ( ( resource = resIt.current() ) != 0 ) { |
@@ -2327,512 +2328,516 @@ void KABCore::addActionsManually() | |||
2327 | SLOT( incrementalSearch( const QString& ) ) ); | 2328 | SLOT( incrementalSearch( const QString& ) ) ); |
2328 | 2329 | ||
2329 | mJumpButtonBar = new JumpButtonBar( this, this ); | 2330 | mJumpButtonBar = new JumpButtonBar( this, this ); |
2330 | 2331 | ||
2331 | //US topLayout->addWidget( mJumpButtonBar ); | 2332 | //US topLayout->addWidget( mJumpButtonBar ); |
2332 | this->layout()->add( mJumpButtonBar ); | 2333 | this->layout()->add( mJumpButtonBar ); |
2333 | */ | 2334 | */ |
2334 | 2335 | ||
2335 | #endif //KAB_EMBEDDED | 2336 | #endif //KAB_EMBEDDED |
2336 | 2337 | ||
2337 | mActionExport2phone->plug( ExportMenu ); | 2338 | mActionExport2phone->plug( ExportMenu ); |
2338 | connect ( syncMenu, SIGNAL( activated ( int ) ), syncManager, SLOT (slotSyncMenu( int ) ) ); | 2339 | connect ( syncMenu, SIGNAL( activated ( int ) ), syncManager, SLOT (slotSyncMenu( int ) ) ); |
2339 | syncManager->fillSyncMenu(); | 2340 | syncManager->fillSyncMenu(); |
2340 | 2341 | ||
2341 | } | 2342 | } |
2342 | void KABCore::showLicence() | 2343 | void KABCore::showLicence() |
2343 | { | 2344 | { |
2344 | KApplication::showLicence(); | 2345 | KApplication::showLicence(); |
2345 | } | 2346 | } |
2346 | 2347 | ||
2347 | void KABCore::manageCategories( ) | 2348 | void KABCore::manageCategories( ) |
2348 | { | 2349 | { |
2349 | KABCatPrefs* cp = new KABCatPrefs(); | 2350 | KABCatPrefs* cp = new KABCatPrefs(); |
2350 | cp->show(); | 2351 | cp->show(); |
2351 | int w =cp->sizeHint().width() ; | 2352 | int w =cp->sizeHint().width() ; |
2352 | int h = cp->sizeHint().height() ; | 2353 | int h = cp->sizeHint().height() ; |
2353 | int dw = QApplication::desktop()->width(); | 2354 | int dw = QApplication::desktop()->width(); |
2354 | int dh = QApplication::desktop()->height(); | 2355 | int dh = QApplication::desktop()->height(); |
2355 | cp->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); | 2356 | cp->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); |
2356 | if ( !cp->exec() ) { | 2357 | if ( !cp->exec() ) { |
2357 | delete cp; | 2358 | delete cp; |
2358 | return; | 2359 | return; |
2359 | } | 2360 | } |
2360 | int count = 0; | 2361 | int count = 0; |
2361 | int cc = 0; | 2362 | int cc = 0; |
2362 | message( i18n("Please wait, processing categories...")); | 2363 | message( i18n("Please wait, processing categories...")); |
2363 | if ( cp->addCat() ) { | 2364 | if ( cp->addCat() ) { |
2364 | KABC::AddressBook::Iterator it; | 2365 | KABC::AddressBook::Iterator it; |
2365 | QStringList catList = KABPrefs::instance()->mCustomCategories; | 2366 | QStringList catList = KABPrefs::instance()->mCustomCategories; |
2366 | for( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { | 2367 | for( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { |
2367 | ++cc; | 2368 | ++cc; |
2368 | if ( cc %10 == 0) | 2369 | if ( cc %10 == 0) |
2369 | message(i18n("Processing contact #%1").arg(cc)); | 2370 | message(i18n("Processing contact #%1").arg(cc)); |
2370 | QStringList catIncList = (*it).categories(); | 2371 | QStringList catIncList = (*it).categories(); |
2371 | int i; | 2372 | int i; |
2372 | for( i = 0; i< catIncList.count(); ++i ) { | 2373 | for( i = 0; i< catIncList.count(); ++i ) { |
2373 | if ( !catList.contains (catIncList[i])) { | 2374 | if ( !catList.contains (catIncList[i])) { |
2374 | catList.append( catIncList[i] ); | 2375 | catList.append( catIncList[i] ); |
2375 | //qDebug("add cat %s ", catIncList[i].latin1()); | 2376 | //qDebug("add cat %s ", catIncList[i].latin1()); |
2376 | ++count; | 2377 | ++count; |
2377 | } | 2378 | } |
2378 | } | 2379 | } |
2379 | } | 2380 | } |
2380 | catList.sort(); | 2381 | catList.sort(); |
2381 | KABPrefs::instance()->mCustomCategories = catList; | 2382 | KABPrefs::instance()->mCustomCategories = catList; |
2382 | KABPrefs::instance()->writeConfig(); | 2383 | KABPrefs::instance()->writeConfig(); |
2383 | message(QString::number( count )+ i18n(" categories added to list! ")); | 2384 | message(QString::number( count )+ i18n(" categories added to list! ")); |
2384 | } else { | 2385 | } else { |
2385 | QStringList catList = KABPrefs::instance()->mCustomCategories; | 2386 | QStringList catList = KABPrefs::instance()->mCustomCategories; |
2386 | QStringList catIncList; | 2387 | QStringList catIncList; |
2387 | QStringList newCatList; | 2388 | QStringList newCatList; |
2388 | KABC::AddressBook::Iterator it; | 2389 | KABC::AddressBook::Iterator it; |
2389 | for( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { | 2390 | for( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { |
2390 | ++cc; | 2391 | ++cc; |
2391 | if ( cc %10 == 0) | 2392 | if ( cc %10 == 0) |
2392 | message(i18n("Processing contact #%1").arg(cc)); | 2393 | message(i18n("Processing contact #%1").arg(cc)); |
2393 | QStringList catIncList = (*it).categories(); | 2394 | QStringList catIncList = (*it).categories(); |
2394 | int i; | 2395 | int i; |
2395 | if ( catIncList.count() ) { | 2396 | if ( catIncList.count() ) { |
2396 | newCatList.clear(); | 2397 | newCatList.clear(); |
2397 | for( i = 0; i< catIncList.count(); ++i ) { | 2398 | for( i = 0; i< catIncList.count(); ++i ) { |
2398 | if ( catList.contains (catIncList[i])) { | 2399 | if ( catList.contains (catIncList[i])) { |
2399 | newCatList.append( catIncList[i] ); | 2400 | newCatList.append( catIncList[i] ); |
2400 | } | 2401 | } |
2401 | } | 2402 | } |
2402 | newCatList.sort(); | 2403 | newCatList.sort(); |
2403 | (*it).setCategories( newCatList ); | 2404 | (*it).setCategories( newCatList ); |
2404 | mAddressBook->insertAddressee( (*it) ); | 2405 | mAddressBook->insertAddressee( (*it) ); |
2405 | } | 2406 | } |
2406 | } | 2407 | } |
2407 | setModified( true ); | 2408 | setModified( true ); |
2408 | mViewManager->refreshView(); | 2409 | mViewManager->refreshView(); |
2409 | message( i18n("Removing categories done!")); | 2410 | message( i18n("Removing categories done!")); |
2410 | } | 2411 | } |
2411 | delete cp; | 2412 | delete cp; |
2412 | } | 2413 | } |
2413 | void KABCore::removeVoice() | 2414 | void KABCore::removeVoice() |
2414 | { | 2415 | { |
2415 | if ( KMessageBox::questionYesNo( this, i18n("After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as \"other\".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?") ) == KMessageBox::No ) | 2416 | if ( KMessageBox::questionYesNo( this, i18n("After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as \"other\".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?") ) == KMessageBox::No ) |
2416 | return; | 2417 | return; |
2417 | XXPortSelectDialog dlg( this, false, this ); | 2418 | XXPortSelectDialog dlg( this, false, this ); |
2418 | if ( !dlg.exec() ) | 2419 | if ( !dlg.exec() ) |
2419 | return; | 2420 | return; |
2420 | mAddressBook->setUntagged(); | 2421 | mAddressBook->setUntagged(); |
2421 | dlg.tagSelected(); | 2422 | dlg.tagSelected(); |
2422 | message(i18n("Removing voice..."), false ); | 2423 | message(i18n("Removing voice..."), false ); |
2423 | KABC::AddressBook::Iterator it; | 2424 | KABC::AddressBook::Iterator it; |
2424 | for ( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { | 2425 | for ( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { |
2425 | if ( (*it).tagged() ) { | 2426 | if ( (*it).tagged() ) { |
2426 | (*it).removeVoice(); | 2427 | (*it).removeVoice(); |
2427 | } | 2428 | } |
2428 | } | 2429 | } |
2429 | message(i18n("Refreshing view...") ); | 2430 | message(i18n("Refreshing view...") ); |
2430 | qApp->processEvents(); | 2431 | qApp->processEvents(); |
2431 | mViewManager->refreshView( "" ); | 2432 | mViewManager->refreshView( "" ); |
2432 | Addressee add; | 2433 | Addressee add; |
2433 | mDetails->setAddressee( add ); | 2434 | mDetails->setAddressee( add ); |
2434 | message(i18n("Remove voice completed!") ); | 2435 | message(i18n("Remove voice completed!") ); |
2435 | 2436 | ||
2436 | 2437 | ||
2437 | 2438 | ||
2438 | } | 2439 | } |
2439 | 2440 | ||
2440 | void KABCore::setFormattedName() | 2441 | void KABCore::setFormattedName() |
2441 | { | 2442 | { |
2442 | KABFormatPrefs setpref; | 2443 | KABFormatPrefs setpref; |
2443 | if ( !setpref.exec() ) { | 2444 | if ( !setpref.exec() ) { |
2444 | return; | 2445 | return; |
2445 | } | 2446 | } |
2446 | XXPortSelectDialog dlg( this, false, this ); | 2447 | XXPortSelectDialog dlg( this, false, this ); |
2447 | if ( !dlg.exec() ) | 2448 | if ( !dlg.exec() ) |
2448 | return; | 2449 | return; |
2449 | mAddressBook->setUntagged(); | 2450 | mAddressBook->setUntagged(); |
2450 | dlg.tagSelected(); | 2451 | dlg.tagSelected(); |
2451 | int count = 0; | 2452 | int count = 0; |
2452 | KABC::AddressBook::Iterator it; | 2453 | KABC::AddressBook::Iterator it; |
2453 | bool modified = false; | 2454 | bool modified = false; |
2454 | for ( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { | 2455 | for ( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { |
2455 | if ( (*it).tagged() ) { | 2456 | if ( (*it).tagged() ) { |
2456 | if ( (*it).uid().left( 2 ) == "la" ) | 2457 | if ( (*it).uid().left( 2 ) == "la" ) |
2457 | if ( (*it).uid().left( 19 ) == QString("last-syncAddressee-") ) | 2458 | if ( (*it).uid().left( 19 ) == QString("last-syncAddressee-") ) |
2458 | continue; | 2459 | continue; |
2459 | ++count; | 2460 | ++count; |
2460 | if ( count %10 == 0 ) | 2461 | if ( count %10 == 0 ) |
2461 | message(i18n("Changing contact #%1").arg( count ) ); | 2462 | message(i18n("Changing contact #%1").arg( count ) ); |
2462 | qApp->processEvents(); | 2463 | qApp->processEvents(); |
2463 | QString fName; | 2464 | QString fName; |
2464 | if ( setpref.simple->isChecked() ) | 2465 | if ( setpref.simple->isChecked() ) |
2465 | fName = NameEditDialog::formattedName( (*it), NameEditDialog::SimpleName ); | 2466 | fName = NameEditDialog::formattedName( (*it), NameEditDialog::SimpleName ); |
2466 | else if ( setpref.full->isChecked() ) | 2467 | else if ( setpref.full->isChecked() ) |
2467 | fName = NameEditDialog::formattedName( (*it), NameEditDialog::FullName ); | 2468 | fName = NameEditDialog::formattedName( (*it), NameEditDialog::FullName ); |
2468 | else if ( setpref.reverse->isChecked() ) | 2469 | else if ( setpref.reverse->isChecked() ) |
2469 | fName = NameEditDialog::formattedName( (*it), NameEditDialog::ReverseName ); | 2470 | fName = NameEditDialog::formattedName( (*it), NameEditDialog::ReverseName ); |
2470 | else | 2471 | else |
2471 | fName = (*it).organization(); | 2472 | fName = (*it).organization(); |
2472 | if ( setpref.setCompany->isChecked() ) | 2473 | if ( setpref.setCompany->isChecked() ) |
2473 | if ( fName.isEmpty() || fName =="," ) | 2474 | if ( fName.isEmpty() || fName =="," ) |
2474 | fName = (*it).organization(); | 2475 | fName = (*it).organization(); |
2475 | (*it).setFormattedName( fName ); | 2476 | (*it).setFormattedName( fName ); |
2476 | (*it).setChanged( true ); | 2477 | (*it).setChanged( true ); |
2477 | modified = true; | 2478 | modified = true; |
2478 | (*it).setRevision( QDateTime::currentDateTime() ); | 2479 | (*it).setRevision( QDateTime::currentDateTime() ); |
2479 | } | 2480 | } |
2480 | } | 2481 | } |
2481 | message(i18n("Refreshing view...") ); | 2482 | message(i18n("Refreshing view...") ); |
2482 | qApp->processEvents(); | 2483 | qApp->processEvents(); |
2483 | if ( modified ) | 2484 | if ( modified ) |
2484 | setModified( true ); | 2485 | setModified( true ); |
2485 | Addressee add; | 2486 | Addressee add; |
2486 | mDetails->setAddressee( add ); | 2487 | mDetails->setAddressee( add ); |
2487 | if ( count == 0 ) | 2488 | if ( count == 0 ) |
2488 | message(i18n("No contact changed!") ); | 2489 | message(i18n("No contact changed!") ); |
2489 | else | 2490 | else |
2490 | message(i18n("%1 contacts changed!").arg( count ) ); | 2491 | message(i18n("%1 contacts changed!").arg( count ) ); |
2491 | } | 2492 | } |
2492 | 2493 | ||
2493 | void KABCore::clipboardDataChanged() | 2494 | void KABCore::clipboardDataChanged() |
2494 | { | 2495 | { |
2495 | 2496 | ||
2496 | if ( mReadWrite ) | 2497 | if ( mReadWrite ) |
2497 | mActionPaste->setEnabled( !QApplication::clipboard()->text().isEmpty() ); | 2498 | mActionPaste->setEnabled( !QApplication::clipboard()->text().isEmpty() ); |
2498 | 2499 | ||
2499 | } | 2500 | } |
2500 | 2501 | ||
2501 | void KABCore::updateActionMenu() | 2502 | void KABCore::updateActionMenu() |
2502 | { | 2503 | { |
2503 | UndoStack *undo = UndoStack::instance(); | 2504 | UndoStack *undo = UndoStack::instance(); |
2504 | RedoStack *redo = RedoStack::instance(); | 2505 | RedoStack *redo = RedoStack::instance(); |
2505 | 2506 | ||
2506 | if ( undo->isEmpty() ) | 2507 | if ( undo->isEmpty() ) |
2507 | mActionUndo->setText( i18n( "Undo" ) ); | 2508 | mActionUndo->setText( i18n( "Undo" ) ); |
2508 | else | 2509 | else |
2509 | mActionUndo->setText( i18n( "Undo %1" ).arg( undo->top()->name() ) ); | 2510 | mActionUndo->setText( i18n( "Undo %1" ).arg( undo->top()->name() ) ); |
2510 | 2511 | ||
2511 | mActionUndo->setEnabled( !undo->isEmpty() ); | 2512 | mActionUndo->setEnabled( !undo->isEmpty() ); |
2512 | 2513 | ||
2513 | if ( !redo->top() ) | 2514 | if ( !redo->top() ) |
2514 | mActionRedo->setText( i18n( "Redo" ) ); | 2515 | mActionRedo->setText( i18n( "Redo" ) ); |
2515 | else | 2516 | else |
2516 | mActionRedo->setText( i18n( "Redo %1" ).arg( redo->top()->name() ) ); | 2517 | mActionRedo->setText( i18n( "Redo %1" ).arg( redo->top()->name() ) ); |
2517 | 2518 | ||
2518 | mActionRedo->setEnabled( !redo->isEmpty() ); | 2519 | mActionRedo->setEnabled( !redo->isEmpty() ); |
2519 | } | 2520 | } |
2520 | 2521 | ||
2521 | void KABCore::configureKeyBindings() | 2522 | void KABCore::configureKeyBindings() |
2522 | { | 2523 | { |
2523 | #ifndef KAB_EMBEDDED | 2524 | #ifndef KAB_EMBEDDED |
2524 | KKeyDialog::configure( actionCollection(), true ); | 2525 | KKeyDialog::configure( actionCollection(), true ); |
2525 | #else //KAB_EMBEDDED | 2526 | #else //KAB_EMBEDDED |
2526 | qDebug("KABCore::configureKeyBindings() not implemented"); | 2527 | qDebug("KABCore::configureKeyBindings() not implemented"); |
2527 | #endif //KAB_EMBEDDED | 2528 | #endif //KAB_EMBEDDED |
2528 | } | 2529 | } |
2529 | 2530 | ||
2530 | #ifdef KAB_EMBEDDED | 2531 | #ifdef KAB_EMBEDDED |
2531 | void KABCore::configureResources() | 2532 | void KABCore::configureResources() |
2532 | { | 2533 | { |
2533 | KRES::KCMKResources dlg( this, "" , 0 ); | 2534 | KRES::KCMKResources dlg( this, "" , 0 ); |
2534 | 2535 | ||
2535 | if ( !dlg.exec() ) | 2536 | if ( !dlg.exec() ) |
2536 | return; | 2537 | return; |
2537 | KMessageBox::information( this, i18n("Please restart to get the \nchanged resources (re)loaded!\n") ); | 2538 | KMessageBox::information( this, i18n("Please restart to get the \nchanged resources (re)loaded!\n") ); |
2538 | } | 2539 | } |
2539 | #endif //KAB_EMBEDDED | 2540 | #endif //KAB_EMBEDDED |
2540 | 2541 | ||
2541 | 2542 | ||
2542 | /* this method will be called through the QCop interface from Ko/Pi to select addresses | 2543 | /* this method will be called through the QCop interface from Ko/Pi to select addresses |
2543 | * for the attendees list of an event. | 2544 | * for the attendees list of an event. |
2544 | */ | 2545 | */ |
2545 | void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QString& uid) | 2546 | void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QString& uid) |
2546 | { | 2547 | { |
2547 | qDebug("KABCore::requestForNameEmailUidList "); | 2548 | qDebug("KABCore::requestForNameEmailUidList "); |
2548 | bool ok = false; | 2549 | bool ok = false; |
2549 | mEmailSourceChannel = sourceChannel; | 2550 | mEmailSourceChannel = sourceChannel; |
2550 | mEmailSourceUID = uid; | 2551 | mEmailSourceUID = uid; |
2551 | QTimer::singleShot( 10,this, SLOT ( callContactdialog() ) ); | 2552 | QTimer::singleShot( 10,this, SLOT ( callContactdialog() ) ); |
2552 | //callContactdialog(); | 2553 | //callContactdialog(); |
2553 | #if 0 | 2554 | #if 0 |
2554 | int wid = uid.toInt( &ok ); | 2555 | int wid = uid.toInt( &ok ); |
2555 | qDebug("UID %s ", uid.latin1()); | 2556 | qDebug("UID %s ", uid.latin1()); |
2556 | if ( ok ) { | 2557 | if ( ok ) { |
2557 | if ( wid != QApplication::desktop()->width() ) { | 2558 | if ( wid != QApplication::desktop()->width() ) { |
2558 | qDebug("KA/Pi: Request from different desktop geometry. Resizing ..."); | 2559 | qDebug("KA/Pi: Request from different desktop geometry. Resizing ..."); |
2559 | message( i18n("Resizing, please wait...") ); | 2560 | message( i18n("Resizing, please wait...") ); |
2560 | mMainWindow->showMinimized(); | 2561 | mMainWindow->showMinimized(); |
2561 | /* | 2562 | /* |
2562 | { | 2563 | { |
2563 | QCopEnvelope e("QPE/Application/kapi", "callContactdialog()"); | 2564 | QCopEnvelope e("QPE/Application/kapi", "callContactdialog()"); |
2564 | } | 2565 | } |
2565 | */ | 2566 | */ |
2566 | QTimer::singleShot( 1,this, SLOT ( resizeAndCallContactdialog() ) ); | 2567 | QTimer::singleShot( 1,this, SLOT ( resizeAndCallContactdialog() ) ); |
2567 | return; | 2568 | return; |
2568 | } | 2569 | } |
2569 | 2570 | ||
2570 | } else { | 2571 | } else { |
2571 | qDebug("KABCore::requestForNameEmailUidList:: Got invalid uid "); | 2572 | qDebug("KABCore::requestForNameEmailUidList:: Got invalid uid "); |
2572 | } | 2573 | } |
2573 | callContactdialog(); | 2574 | callContactdialog(); |
2574 | //QCopEnvelope e("QPE/Application/kapi", "callContactdialog()"); | 2575 | //QCopEnvelope e("QPE/Application/kapi", "callContactdialog()"); |
2575 | #endif | 2576 | #endif |
2576 | } | 2577 | } |
2577 | void KABCore::resizeAndCallContactdialog() | 2578 | void KABCore::resizeAndCallContactdialog() |
2578 | { | 2579 | { |
2579 | updateMainWindow(); | 2580 | updateMainWindow(); |
2580 | QTimer::singleShot( 10,this, SLOT ( callContactdialog() ) ); | 2581 | QTimer::singleShot( 10,this, SLOT ( callContactdialog() ) ); |
2581 | } | 2582 | } |
2582 | 2583 | ||
2584 | void KABCore::doRingSync() | ||
2585 | { | ||
2586 | syncManager->multiSync( false ); | ||
2587 | } | ||
2583 | void KABCore::callContactdialog() | 2588 | void KABCore::callContactdialog() |
2584 | { | 2589 | { |
2585 | static bool running = false; | 2590 | static bool running = false; |
2586 | if (running) return; | 2591 | if (running) return; |
2587 | running = true; | 2592 | running = true; |
2588 | QStringList nameList; | 2593 | QStringList nameList; |
2589 | QStringList emailList; | 2594 | QStringList emailList; |
2590 | QStringList uidList; | 2595 | QStringList uidList; |
2591 | qDebug(" KABCore::callContactdialog:DESKTOP WIDTH %d ", QApplication::desktop()->width() ); | 2596 | qDebug(" KABCore::callContactdialog:DESKTOP WIDTH %d ", QApplication::desktop()->width() ); |
2592 | KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); | 2597 | KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); |
2593 | uint i=0; | 2598 | uint i=0; |
2594 | for (i=0; i < list.count(); i++) | 2599 | for (i=0; i < list.count(); i++) |
2595 | { | 2600 | { |
2596 | nameList.append(list[i].realName()); | 2601 | nameList.append(list[i].realName()); |
2597 | emailList.append(list[i].preferredEmail()); | 2602 | emailList.append(list[i].preferredEmail()); |
2598 | uidList.append(list[i].uid()); | 2603 | uidList.append(list[i].uid()); |
2599 | } | 2604 | } |
2600 | QString uid = mEmailSourceUID; | 2605 | QString uid = mEmailSourceUID; |
2601 | //qDebug("%s %s ", sourceChannel.latin1(), uid.latin1()); | 2606 | //qDebug("%s %s ", sourceChannel.latin1(), uid.latin1()); |
2602 | bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI(mEmailSourceChannel, uid, nameList, emailList, uidList); | 2607 | bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI(mEmailSourceChannel, uid, nameList, emailList, uidList); |
2603 | running = false; | 2608 | running = false; |
2604 | } | 2609 | } |
2605 | /* this method will be called through the QCop interface from Ko/Pi to select birthdays | 2610 | /* this method will be called through the QCop interface from Ko/Pi to select birthdays |
2606 | * to put them into the calendar. | 2611 | * to put them into the calendar. |
2607 | */ | 2612 | */ |
2608 | void KABCore::requestForBirthdayList(const QString& sourceChannel, const QString& uid) | 2613 | void KABCore::requestForBirthdayList(const QString& sourceChannel, const QString& uid) |
2609 | { | 2614 | { |
2610 | // qDebug("KABCore::requestForBirthdayList"); | 2615 | // qDebug("KABCore::requestForBirthdayList"); |
2611 | QStringList birthdayList; | 2616 | QStringList birthdayList; |
2612 | QStringList anniversaryList; | 2617 | QStringList anniversaryList; |
2613 | QStringList realNameList; | 2618 | QStringList realNameList; |
2614 | QStringList preferredEmailList; | 2619 | QStringList preferredEmailList; |
2615 | QStringList assembledNameList; | 2620 | QStringList assembledNameList; |
2616 | QStringList uidList; | 2621 | QStringList uidList; |
2617 | 2622 | ||
2618 | KABC::AddressBook::Iterator it; | 2623 | KABC::AddressBook::Iterator it; |
2619 | 2624 | ||
2620 | int count = 0; | 2625 | int count = 0; |
2621 | for( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { | 2626 | for( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { |
2622 | ++count; | 2627 | ++count; |
2623 | } | 2628 | } |
2624 | QProgressBar bar(count,0 ); | 2629 | QProgressBar bar(count,0 ); |
2625 | int w = 300; | 2630 | int w = 300; |
2626 | if ( QApplication::desktop()->width() < 320 ) | 2631 | if ( QApplication::desktop()->width() < 320 ) |
2627 | w = 220; | 2632 | w = 220; |
2628 | int h = bar.sizeHint().height() ; | 2633 | int h = bar.sizeHint().height() ; |
2629 | int dw = QApplication::desktop()->width(); | 2634 | int dw = QApplication::desktop()->width(); |
2630 | int dh = QApplication::desktop()->height(); | 2635 | int dh = QApplication::desktop()->height(); |
2631 | bar.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); | 2636 | bar.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); |
2632 | bar.show(); | 2637 | bar.show(); |
2633 | bar.setCaption (i18n("Collecting birthdays - close to abort!") ); | 2638 | bar.setCaption (i18n("Collecting birthdays - close to abort!") ); |
2634 | qApp->processEvents(); | 2639 | qApp->processEvents(); |
2635 | 2640 | ||
2636 | QDate bday; | 2641 | QDate bday; |
2637 | QString anni; | 2642 | QString anni; |
2638 | QString formattedbday; | 2643 | QString formattedbday; |
2639 | 2644 | ||
2640 | for( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) | 2645 | for( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) |
2641 | { | 2646 | { |
2642 | if ( ! bar.isVisible() ) | 2647 | if ( ! bar.isVisible() ) |
2643 | return; | 2648 | return; |
2644 | bar.setProgress( count++ ); | 2649 | bar.setProgress( count++ ); |
2645 | qApp->processEvents(); | 2650 | qApp->processEvents(); |
2646 | bday = (*it).birthday().date(); | 2651 | bday = (*it).birthday().date(); |
2647 | anni = (*it).custom("KADDRESSBOOK", "X-Anniversary" ); | 2652 | anni = (*it).custom("KADDRESSBOOK", "X-Anniversary" ); |
2648 | 2653 | ||
2649 | if ( bday.isValid() || !anni.isEmpty()) | 2654 | if ( bday.isValid() || !anni.isEmpty()) |
2650 | { | 2655 | { |
2651 | if (bday.isValid()) | 2656 | if (bday.isValid()) |
2652 | formattedbday = KGlobal::locale()->formatDate(bday, true, KLocale::ISODate); | 2657 | formattedbday = KGlobal::locale()->formatDate(bday, true, KLocale::ISODate); |
2653 | else | 2658 | else |
2654 | formattedbday = "NOTVALID"; | 2659 | formattedbday = "NOTVALID"; |
2655 | if (anni.isEmpty()) | 2660 | if (anni.isEmpty()) |
2656 | anni = "INVALID"; | 2661 | anni = "INVALID"; |
2657 | 2662 | ||
2658 | birthdayList.append(formattedbday); | 2663 | birthdayList.append(formattedbday); |
2659 | anniversaryList.append(anni); //should be ISODate | 2664 | anniversaryList.append(anni); //should be ISODate |
2660 | realNameList.append((*it).realName()); | 2665 | realNameList.append((*it).realName()); |
2661 | preferredEmailList.append((*it).preferredEmail()); | 2666 | preferredEmailList.append((*it).preferredEmail()); |
2662 | assembledNameList.append((*it).assembledName()); | 2667 | assembledNameList.append((*it).assembledName()); |
2663 | uidList.append((*it).uid()); | 2668 | uidList.append((*it).uid()); |
2664 | 2669 | ||
2665 | //qDebug("found birthday in KA/Pi: %s,%s,%s,%s: %s, %s", (*it).realName().latin1(), (*it).preferredEmail().latin1(), (*it).assembledName().latin1(), (*it).uid().latin1(), formattedbday.latin1(), anni.latin1() ); | 2670 | //qDebug("found birthday in KA/Pi: %s,%s,%s,%s: %s, %s", (*it).realName().latin1(), (*it).preferredEmail().latin1(), (*it).assembledName().latin1(), (*it).uid().latin1(), formattedbday.latin1(), anni.latin1() ); |
2666 | } | 2671 | } |
2667 | } | 2672 | } |
2668 | 2673 | ||
2669 | bool res = ExternalAppHandler::instance()->returnBirthdayListFromKAPI(sourceChannel, uid, birthdayList, anniversaryList, realNameList, preferredEmailList, assembledNameList, uidList); | 2674 | bool res = ExternalAppHandler::instance()->returnBirthdayListFromKAPI(sourceChannel, uid, birthdayList, anniversaryList, realNameList, preferredEmailList, assembledNameList, uidList); |
2670 | 2675 | ||
2671 | } | 2676 | } |
2672 | 2677 | ||
2673 | /* this method will be called through the QCop interface from other apps to show details of a contact. | 2678 | /* this method will be called through the QCop interface from other apps to show details of a contact. |
2674 | */ | 2679 | */ |
2675 | void KABCore::requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid) | 2680 | void KABCore::requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid) |
2676 | { | 2681 | { |
2677 | //qDebug("KABCore::requestForDetails %s %s %s %s %s", sourceChannel.latin1(), sessionuid.latin1(), name.latin1(), email.latin1(), uid.latin1()); | 2682 | //qDebug("KABCore::requestForDetails %s %s %s %s %s", sourceChannel.latin1(), sessionuid.latin1(), name.latin1(), email.latin1(), uid.latin1()); |
2678 | 2683 | ||
2679 | QString foundUid = QString::null; | 2684 | QString foundUid = QString::null; |
2680 | if ( ! uid.isEmpty() ) { | 2685 | if ( ! uid.isEmpty() ) { |
2681 | Addressee adrr = mAddressBook->findByUid( uid ); | 2686 | Addressee adrr = mAddressBook->findByUid( uid ); |
2682 | if ( !adrr.isEmpty() ) { | 2687 | if ( !adrr.isEmpty() ) { |
2683 | foundUid = uid; | 2688 | foundUid = uid; |
2684 | } | 2689 | } |
2685 | if ( email == "sendbacklist" ) { | 2690 | if ( email == "sendbacklist" ) { |
2686 | //qDebug("ssssssssssssssssssssssend "); | 2691 | //qDebug("ssssssssssssssssssssssend "); |
2687 | QStringList nameList; | 2692 | QStringList nameList; |
2688 | QStringList emailList; | 2693 | QStringList emailList; |
2689 | QStringList uidList; | 2694 | QStringList uidList; |
2690 | nameList.append(adrr.realName()); | 2695 | nameList.append(adrr.realName()); |
2691 | emailList = adrr.emails(); | 2696 | emailList = adrr.emails(); |
2692 | uidList.append( adrr.preferredEmail()); | 2697 | uidList.append( adrr.preferredEmail()); |
2693 | bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI("QPE/Application/ompi", uid, nameList, emailList, uidList); | 2698 | bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI("QPE/Application/ompi", uid, nameList, emailList, uidList); |
2694 | return; | 2699 | return; |
2695 | } | 2700 | } |
2696 | 2701 | ||
2697 | } | 2702 | } |
2698 | 2703 | ||
2699 | if ( email == "sendbacklist" ) | 2704 | if ( email == "sendbacklist" ) |
2700 | return; | 2705 | return; |
2701 | if (foundUid.isEmpty()) | 2706 | if (foundUid.isEmpty()) |
2702 | { | 2707 | { |
2703 | //find the uid of the person first | 2708 | //find the uid of the person first |
2704 | Addressee::List namelist; | 2709 | Addressee::List namelist; |
2705 | Addressee::List emaillist; | 2710 | Addressee::List emaillist; |
2706 | 2711 | ||
2707 | if (!name.isEmpty()) | 2712 | if (!name.isEmpty()) |
2708 | namelist = mAddressBook->findByName( name ); | 2713 | namelist = mAddressBook->findByName( name ); |
2709 | 2714 | ||
2710 | if (!email.isEmpty()) | 2715 | if (!email.isEmpty()) |
2711 | emaillist = mAddressBook->findByEmail( email ); | 2716 | emaillist = mAddressBook->findByEmail( email ); |
2712 | //qDebug("count %d %d ", namelist.count(),emaillist.count() ); | 2717 | //qDebug("count %d %d ", namelist.count(),emaillist.count() ); |
2713 | //check if we have a match in Namelist and Emaillist | 2718 | //check if we have a match in Namelist and Emaillist |
2714 | if ((namelist.count() == 0) && (emaillist.count() > 0)) { | 2719 | if ((namelist.count() == 0) && (emaillist.count() > 0)) { |
2715 | foundUid = emaillist[0].uid(); | 2720 | foundUid = emaillist[0].uid(); |
2716 | } | 2721 | } |
2717 | else if ((namelist.count() > 0) && (emaillist.count() == 0)) | 2722 | else if ((namelist.count() > 0) && (emaillist.count() == 0)) |
2718 | foundUid = namelist[0].uid(); | 2723 | foundUid = namelist[0].uid(); |
2719 | else | 2724 | else |
2720 | { | 2725 | { |
2721 | for (int i = 0; i < namelist.count(); i++) | 2726 | for (int i = 0; i < namelist.count(); i++) |
2722 | { | 2727 | { |
2723 | for (int j = 0; j < emaillist.count(); j++) | 2728 | for (int j = 0; j < emaillist.count(); j++) |
2724 | { | 2729 | { |
2725 | if (namelist[i] == emaillist[j]) | 2730 | if (namelist[i] == emaillist[j]) |
2726 | { | 2731 | { |
2727 | foundUid = namelist[i].uid(); | 2732 | foundUid = namelist[i].uid(); |
2728 | } | 2733 | } |
2729 | } | 2734 | } |
2730 | } | 2735 | } |
2731 | } | 2736 | } |
2732 | } | 2737 | } |
2733 | else | 2738 | else |
2734 | { | 2739 | { |
2735 | foundUid = uid; | 2740 | foundUid = uid; |
2736 | } | 2741 | } |
2737 | 2742 | ||
2738 | if (!foundUid.isEmpty()) | 2743 | if (!foundUid.isEmpty()) |
2739 | { | 2744 | { |
2740 | 2745 | ||
2741 | // raise Ka/Pi if it is in the background | 2746 | // raise Ka/Pi if it is in the background |
2742 | #ifndef DESKTOP_VERSION | 2747 | #ifndef DESKTOP_VERSION |
2743 | #ifndef KORG_NODCOP | 2748 | #ifndef KORG_NODCOP |
2744 | //QCopEnvelope e("QPE/Application/kapi", "raise()"); | 2749 | //QCopEnvelope e("QPE/Application/kapi", "raise()"); |
2745 | #endif | 2750 | #endif |
2746 | #endif | 2751 | #endif |
2747 | 2752 | ||
2748 | mMainWindow->showMaximized(); | 2753 | mMainWindow->showMaximized(); |
2749 | mMainWindow-> raise(); | 2754 | mMainWindow-> raise(); |
2750 | 2755 | ||
2751 | mViewManager->setSelected( "", false); | 2756 | mViewManager->setSelected( "", false); |
2752 | mViewManager->refreshView( "" ); | 2757 | mViewManager->refreshView( "" ); |
2753 | mViewManager->setSelected( foundUid, true ); | 2758 | mViewManager->setSelected( foundUid, true ); |
2754 | mViewManager->refreshView( foundUid ); | 2759 | mViewManager->refreshView( foundUid ); |
2755 | 2760 | ||
2756 | if ( !mMultipleViewsAtOnce ) | 2761 | if ( !mMultipleViewsAtOnce ) |
2757 | { | 2762 | { |
2758 | setDetailsVisible( true ); | 2763 | setDetailsVisible( true ); |
2759 | mActionDetails->setChecked(true); | 2764 | mActionDetails->setChecked(true); |
2760 | } | 2765 | } |
2761 | } | 2766 | } |
2762 | } | 2767 | } |
2763 | void KABCore::storagehowto() | 2768 | void KABCore::storagehowto() |
2764 | { | 2769 | { |
2765 | KApplication::showFile( "KDE-Pim/Pi Storage HowTo", "kdepim/storagehowto.txt" ); | 2770 | KApplication::showFile( "KDE-Pim/Pi Storage HowTo", "kdepim/storagehowto.txt" ); |
2766 | } | 2771 | } |
2767 | void KABCore::whatsnew() | 2772 | void KABCore::whatsnew() |
2768 | { | 2773 | { |
2769 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); | 2774 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); |
2770 | } | 2775 | } |
2771 | void KABCore::synchowto() | 2776 | void KABCore::synchowto() |
2772 | { | 2777 | { |
2773 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); | 2778 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); |
2774 | } | 2779 | } |
2775 | void KABCore::kdesynchowto() | 2780 | void KABCore::kdesynchowto() |
2776 | { | 2781 | { |
2777 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); | 2782 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); |
2778 | } | 2783 | } |
2779 | void KABCore::multisynchowto() | 2784 | void KABCore::multisynchowto() |
2780 | { | 2785 | { |
2781 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); | 2786 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); |
2782 | } | 2787 | } |
2783 | void KABCore::faq() | 2788 | void KABCore::faq() |
2784 | { | 2789 | { |
2785 | KApplication::showFile( "KA/Pi FAQ", "kdepim/kaddressbook/kapiFAQ.txt" ); | 2790 | KApplication::showFile( "KA/Pi FAQ", "kdepim/kaddressbook/kapiFAQ.txt" ); |
2786 | } | 2791 | } |
2787 | 2792 | ||
2788 | #include <libkcal/syncdefines.h> | 2793 | #include <libkcal/syncdefines.h> |
2789 | 2794 | ||
2790 | KABC::Addressee KABCore::getLastSyncAddressee() | 2795 | KABC::Addressee KABCore::getLastSyncAddressee() |
2791 | { | 2796 | { |
2792 | Addressee lse; | 2797 | Addressee lse; |
2793 | QString mCurrentSyncDevice = syncManager->getCurrentSyncDevice(); | 2798 | QString mCurrentSyncDevice = syncManager->getCurrentSyncDevice(); |
2794 | 2799 | ||
2795 | //qDebug("CurrentSyncDevice %s ",mCurrentSyncDevice .latin1() ); | 2800 | //qDebug("CurrentSyncDevice %s ",mCurrentSyncDevice .latin1() ); |
2796 | lse = mAddressBook->findByUid( "last-syncAddressee-"+mCurrentSyncDevice ); | 2801 | lse = mAddressBook->findByUid( "last-syncAddressee-"+mCurrentSyncDevice ); |
2797 | if (lse.isEmpty()) { | 2802 | if (lse.isEmpty()) { |
2798 | qDebug("KA: Creating new last-syncAddressee "); | 2803 | qDebug("KA: Creating new last-syncAddressee "); |
2799 | lse.setUid( "last-syncAddressee-"+mCurrentSyncDevice ); | 2804 | lse.setUid( "last-syncAddressee-"+mCurrentSyncDevice ); |
2800 | QString sum = ""; | 2805 | QString sum = ""; |
2801 | if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL ) | 2806 | if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL ) |
2802 | sum = "E: "; | 2807 | sum = "E: "; |
2803 | lse.setFamilyName("!"+sum+mCurrentSyncDevice + i18n(" - sync event")); | 2808 | lse.setFamilyName("!"+sum+mCurrentSyncDevice + i18n(" - sync event")); |
2804 | lse.setRevision( mLastAddressbookSync ); | 2809 | lse.setRevision( mLastAddressbookSync ); |
2805 | lse.setCategories( i18n("SyncEvent") ); | 2810 | lse.setCategories( i18n("SyncEvent") ); |
2806 | mAddressBook->insertAddressee( lse ); | 2811 | mAddressBook->insertAddressee( lse ); |
2807 | } | 2812 | } |
2808 | return lse; | 2813 | return lse; |
2809 | } | 2814 | } |
2810 | int KABCore::takeAddressee( KABC::Addressee* local, KABC::Addressee* remote, int mode , bool full ) | 2815 | int KABCore::takeAddressee( KABC::Addressee* local, KABC::Addressee* remote, int mode , bool full ) |
2811 | { | 2816 | { |
2812 | 2817 | ||
2813 | //void setZaurusId(int id); | 2818 | //void setZaurusId(int id); |
2814 | // int zaurusId() const; | 2819 | // int zaurusId() const; |
2815 | // void setZaurusUid(int id); | 2820 | // void setZaurusUid(int id); |
2816 | // int zaurusUid() const; | 2821 | // int zaurusUid() const; |
2817 | // void setZaurusStat(int id); | 2822 | // void setZaurusStat(int id); |
2818 | // int zaurusStat() const; | 2823 | // int zaurusStat() const; |
2819 | // 0 equal | 2824 | // 0 equal |
2820 | // 1 take local | 2825 | // 1 take local |
2821 | // 2 take remote | 2826 | // 2 take remote |
2822 | // 3 cancel | 2827 | // 3 cancel |
2823 | QDateTime lastSync = mLastAddressbookSync; | 2828 | QDateTime lastSync = mLastAddressbookSync; |
2824 | QDateTime localMod = local->revision(); | 2829 | QDateTime localMod = local->revision(); |
2825 | QDateTime remoteMod = remote->revision(); | 2830 | QDateTime remoteMod = remote->revision(); |
2826 | 2831 | ||
2827 | QString mCurrentSyncDevice = syncManager->getCurrentSyncDevice(); | 2832 | QString mCurrentSyncDevice = syncManager->getCurrentSyncDevice(); |
2828 | 2833 | ||
2829 | if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL ) { | 2834 | if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL ) { |
2830 | bool remCh, locCh; | 2835 | bool remCh, locCh; |
2831 | remCh = ( remote->getCsum(mCurrentSyncDevice) != local->getCsum(mCurrentSyncDevice) ); | 2836 | remCh = ( remote->getCsum(mCurrentSyncDevice) != local->getCsum(mCurrentSyncDevice) ); |
2832 | //if ( remCh ) | 2837 | //if ( remCh ) |
2833 | // qDebug("loc %s rem %s", local->getCsum(mCurrentSyncDevice).latin1(), remote->getCsum(mCurrentSyncDevice).latin1() ); | 2838 | // qDebug("loc %s rem %s", local->getCsum(mCurrentSyncDevice).latin1(), remote->getCsum(mCurrentSyncDevice).latin1() ); |
2834 | locCh = ( localMod > mLastAddressbookSync ); | 2839 | locCh = ( localMod > mLastAddressbookSync ); |
2835 | //qDebug("cahnged rem %d loc %d",remCh, locCh ); | 2840 | //qDebug("cahnged rem %d loc %d",remCh, locCh ); |
2836 | if ( !remCh && ! locCh ) { | 2841 | if ( !remCh && ! locCh ) { |
2837 | //qDebug("both not changed "); | 2842 | //qDebug("both not changed "); |
2838 | lastSync = localMod.addDays(1); | 2843 | lastSync = localMod.addDays(1); |
diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index 6479a58..ceeeda7 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h | |||
@@ -120,411 +120,412 @@ class KABCore : public QWidget, public KSyncInterface | |||
120 | 120 | ||
121 | /** | 121 | /** |
122 | Returns the uid list of the currently selected contacts. | 122 | Returns the uid list of the currently selected contacts. |
123 | */ | 123 | */ |
124 | QStringList selectedUIDs() const; | 124 | QStringList selectedUIDs() const; |
125 | 125 | ||
126 | /** | 126 | /** |
127 | Displays the ResourceSelectDialog and returns the selected | 127 | Displays the ResourceSelectDialog and returns the selected |
128 | resource or a null pointer if no resource was selected by | 128 | resource or a null pointer if no resource was selected by |
129 | the user. | 129 | the user. |
130 | */ | 130 | */ |
131 | KABC::Resource *requestResource( QWidget *parent ); | 131 | KABC::Resource *requestResource( QWidget *parent ); |
132 | 132 | ||
133 | #ifndef KAB_EMBEDDED | 133 | #ifndef KAB_EMBEDDED |
134 | static KAboutData *createAboutData(); | 134 | static KAboutData *createAboutData(); |
135 | #endif //KAB_EMBEDDED | 135 | #endif //KAB_EMBEDDED |
136 | 136 | ||
137 | #ifdef KAB_EMBEDDED | 137 | #ifdef KAB_EMBEDDED |
138 | inline QPopupMenu* getImportMenu() { return ImportMenu;} | 138 | inline QPopupMenu* getImportMenu() { return ImportMenu;} |
139 | inline QPopupMenu* getExportMenu() { return ExportMenu;} | 139 | inline QPopupMenu* getExportMenu() { return ExportMenu;} |
140 | #endif //KAB_EMBEDDED | 140 | #endif //KAB_EMBEDDED |
141 | 141 | ||
142 | public slots: | 142 | public slots: |
143 | #ifdef KAB_EMBEDDED | 143 | #ifdef KAB_EMBEDDED |
144 | void createAboutData(); | 144 | void createAboutData(); |
145 | #endif //KAB_EMBEDDED | 145 | #endif //KAB_EMBEDDED |
146 | void setDetailsToggle(); | 146 | void setDetailsToggle(); |
147 | 147 | ||
148 | void showLicence(); | 148 | void showLicence(); |
149 | void faq(); | 149 | void faq(); |
150 | void whatsnew() ; | 150 | void whatsnew() ; |
151 | void synchowto() ; | 151 | void synchowto() ; |
152 | void storagehowto() ; | 152 | void storagehowto() ; |
153 | void multisynchowto() ; | 153 | void multisynchowto() ; |
154 | void kdesynchowto() ; | 154 | void kdesynchowto() ; |
155 | void writeToPhone(); | 155 | void writeToPhone(); |
156 | 156 | ||
157 | /** | 157 | /** |
158 | Is called whenever a contact is selected in the view. | 158 | Is called whenever a contact is selected in the view. |
159 | */ | 159 | */ |
160 | void setContactSelected( const QString &uid ); | 160 | void setContactSelected( const QString &uid ); |
161 | 161 | ||
162 | /** | 162 | /** |
163 | Opens the preferred mail composer with all selected contacts as | 163 | Opens the preferred mail composer with all selected contacts as |
164 | arguments. | 164 | arguments. |
165 | */ | 165 | */ |
166 | void sendMail(); | 166 | void sendMail(); |
167 | 167 | ||
168 | /** | 168 | /** |
169 | Opens the preferred mail composer with the given contacts as | 169 | Opens the preferred mail composer with the given contacts as |
170 | arguments. | 170 | arguments. |
171 | */ | 171 | */ |
172 | void sendMail( const QString& email ); | 172 | void sendMail( const QString& email ); |
173 | 173 | ||
174 | 174 | ||
175 | void mailVCard(); | 175 | void mailVCard(); |
176 | void mailVCard(const QStringList& uids); | 176 | void mailVCard(const QStringList& uids); |
177 | 177 | ||
178 | /** | 178 | /** |
179 | Beams the "WhoAmI contact. | 179 | Beams the "WhoAmI contact. |
180 | */ | 180 | */ |
181 | void beamMySelf(); | 181 | void beamMySelf(); |
182 | 182 | ||
183 | void beamVCard(); | 183 | void beamVCard(); |
184 | void export2phone(); | 184 | void export2phone(); |
185 | void beamVCard(const QStringList& uids); | 185 | void beamVCard(const QStringList& uids); |
186 | void beamDone( Ir *ir ); | 186 | void beamDone( Ir *ir ); |
187 | 187 | ||
188 | 188 | ||
189 | /** | 189 | /** |
190 | Starts the preferred web browser with the given URL as argument. | 190 | Starts the preferred web browser with the given URL as argument. |
191 | */ | 191 | */ |
192 | void browse( const QString& url ); | 192 | void browse( const QString& url ); |
193 | 193 | ||
194 | /** | 194 | /** |
195 | Select all contacts in the view. | 195 | Select all contacts in the view. |
196 | */ | 196 | */ |
197 | void selectAllContacts(); | 197 | void selectAllContacts(); |
198 | 198 | ||
199 | /** | 199 | /** |
200 | Deletes all selected contacts from the address book. | 200 | Deletes all selected contacts from the address book. |
201 | */ | 201 | */ |
202 | void deleteContacts(); | 202 | void deleteContacts(); |
203 | 203 | ||
204 | /** | 204 | /** |
205 | Deletes given contacts from the address book. | 205 | Deletes given contacts from the address book. |
206 | 206 | ||
207 | @param uids The uids of the contacts, which shall be deleted. | 207 | @param uids The uids of the contacts, which shall be deleted. |
208 | */ | 208 | */ |
209 | void deleteContacts( const QStringList &uids ); | 209 | void deleteContacts( const QStringList &uids ); |
210 | 210 | ||
211 | /** | 211 | /** |
212 | Copys the selected contacts into clipboard for later pasting. | 212 | Copys the selected contacts into clipboard for later pasting. |
213 | */ | 213 | */ |
214 | void copyContacts(); | 214 | void copyContacts(); |
215 | 215 | ||
216 | /** | 216 | /** |
217 | Cuts the selected contacts and stores them for later pasting. | 217 | Cuts the selected contacts and stores them for later pasting. |
218 | */ | 218 | */ |
219 | void cutContacts(); | 219 | void cutContacts(); |
220 | 220 | ||
221 | /** | 221 | /** |
222 | Paste contacts from clipboard into the address book. | 222 | Paste contacts from clipboard into the address book. |
223 | */ | 223 | */ |
224 | void pasteContacts(); | 224 | void pasteContacts(); |
225 | 225 | ||
226 | /** | 226 | /** |
227 | Paste given contacts into the address book. | 227 | Paste given contacts into the address book. |
228 | 228 | ||
229 | @param list The list of addressee, which shall be pasted. | 229 | @param list The list of addressee, which shall be pasted. |
230 | */ | 230 | */ |
231 | void pasteContacts( KABC::Addressee::List &list ); | 231 | void pasteContacts( KABC::Addressee::List &list ); |
232 | 232 | ||
233 | /** | 233 | /** |
234 | Sets the whoAmI contact, that is used by many other programs to | 234 | Sets the whoAmI contact, that is used by many other programs to |
235 | get personal information about the current user. | 235 | get personal information about the current user. |
236 | */ | 236 | */ |
237 | void setWhoAmI(); | 237 | void setWhoAmI(); |
238 | 238 | ||
239 | /** | 239 | /** |
240 | Displays the category dialog and applies the result to all | 240 | Displays the category dialog and applies the result to all |
241 | selected contacts. | 241 | selected contacts. |
242 | */ | 242 | */ |
243 | void setCategories(); | 243 | void setCategories(); |
244 | void manageCategories(); | 244 | void manageCategories(); |
245 | void editCategories(); | 245 | void editCategories(); |
246 | 246 | ||
247 | /** | 247 | /** |
248 | Sets the field list of the Incremental Search Widget. | 248 | Sets the field list of the Incremental Search Widget. |
249 | */ | 249 | */ |
250 | void setSearchFields( const KABC::Field::List &fields ); | 250 | void setSearchFields( const KABC::Field::List &fields ); |
251 | 251 | ||
252 | /** | 252 | /** |
253 | Search with the current search field for a contact, that matches | 253 | Search with the current search field for a contact, that matches |
254 | the given text, and selects it in the view. | 254 | the given text, and selects it in the view. |
255 | */ | 255 | */ |
256 | void incrementalSearch( const QString& text ); | 256 | void incrementalSearch( const QString& text ); |
257 | void incrementalSearchJump( const QString& text ); | 257 | void incrementalSearchJump( const QString& text ); |
258 | 258 | ||
259 | /** | 259 | /** |
260 | Marks the address book as modified. | 260 | Marks the address book as modified. |
261 | */ | 261 | */ |
262 | void setModified(); | 262 | void setModified(); |
263 | /** | 263 | /** |
264 | Marks the address book as modified without refreshing the view. | 264 | Marks the address book as modified without refreshing the view. |
265 | */ | 265 | */ |
266 | void setModifiedWOrefresh(); | 266 | void setModifiedWOrefresh(); |
267 | 267 | ||
268 | /** | 268 | /** |
269 | Marks the address book as modified concerning the argument. | 269 | Marks the address book as modified concerning the argument. |
270 | */ | 270 | */ |
271 | void setModified( bool modified ); | 271 | void setModified( bool modified ); |
272 | 272 | ||
273 | /** | 273 | /** |
274 | Returns whether the address book is modified. | 274 | Returns whether the address book is modified. |
275 | */ | 275 | */ |
276 | bool modified() const; | 276 | bool modified() const; |
277 | 277 | ||
278 | /** | 278 | /** |
279 | Called whenever an contact is modified in the contact editor | 279 | Called whenever an contact is modified in the contact editor |
280 | dialog or the quick edit. | 280 | dialog or the quick edit. |
281 | */ | 281 | */ |
282 | void contactModified( const KABC::Addressee &addr ); | 282 | void contactModified( const KABC::Addressee &addr ); |
283 | void addrModified( const KABC::Addressee &addr, bool updateDetails = true ); | 283 | void addrModified( const KABC::Addressee &addr, bool updateDetails = true ); |
284 | 284 | ||
285 | /** | 285 | /** |
286 | DCOP METHODS. | 286 | DCOP METHODS. |
287 | */ | 287 | */ |
288 | void addEmail( QString addr ); | 288 | void addEmail( QString addr ); |
289 | void importVCard( const KURL& url, bool showPreview ); | 289 | void importVCard( const KURL& url, bool showPreview ); |
290 | void importVCard( const QString& vCard, bool showPreview ); | 290 | void importVCard( const QString& vCard, bool showPreview ); |
291 | void newContact(); | 291 | void newContact(); |
292 | QString getNameByPhone( const QString& phone ); | 292 | QString getNameByPhone( const QString& phone ); |
293 | /** | 293 | /** |
294 | END DCOP METHODS | 294 | END DCOP METHODS |
295 | */ | 295 | */ |
296 | 296 | ||
297 | /** | 297 | /** |
298 | Saves the contents of the AddressBook back to disk. | 298 | Saves the contents of the AddressBook back to disk. |
299 | */ | 299 | */ |
300 | void save(); | 300 | void save(); |
301 | 301 | ||
302 | /** | 302 | /** |
303 | Undos the last command using the undo stack. | 303 | Undos the last command using the undo stack. |
304 | */ | 304 | */ |
305 | void undo(); | 305 | void undo(); |
306 | 306 | ||
307 | /** | 307 | /** |
308 | Redos the last command that was undone, using the redo stack. | 308 | Redos the last command that was undone, using the redo stack. |
309 | */ | 309 | */ |
310 | void redo(); | 310 | void redo(); |
311 | 311 | ||
312 | /** | 312 | /** |
313 | Shows the edit dialog for the given uid. If the uid is QString::null, | 313 | Shows the edit dialog for the given uid. If the uid is QString::null, |
314 | the method will try to find a selected addressee in the view. | 314 | the method will try to find a selected addressee in the view. |
315 | */ | 315 | */ |
316 | void editContact( const QString &uid /*US = QString::null*/ ); | 316 | void editContact( const QString &uid /*US = QString::null*/ ); |
317 | //US added a second method without defaultparameter | 317 | //US added a second method without defaultparameter |
318 | void editContact2(); | 318 | void editContact2(); |
319 | 319 | ||
320 | /** | 320 | /** |
321 | Shows or edits the detail view for the given uid. If the uid is QString::null, | 321 | Shows or edits the detail view for the given uid. If the uid is QString::null, |
322 | the method will try to find a selected addressee in the view. | 322 | the method will try to find a selected addressee in the view. |
323 | */ | 323 | */ |
324 | void executeContact( const QString &uid /*US = QString::null*/ ); | 324 | void executeContact( const QString &uid /*US = QString::null*/ ); |
325 | 325 | ||
326 | /** | 326 | /** |
327 | Launches the configuration dialog. | 327 | Launches the configuration dialog. |
328 | */ | 328 | */ |
329 | void openConfigDialog(); | 329 | void openConfigDialog(); |
330 | void openConfigGlobalDialog(); | 330 | void openConfigGlobalDialog(); |
331 | 331 | ||
332 | /** | 332 | /** |
333 | Launches the ldap search dialog. | 333 | Launches the ldap search dialog. |
334 | */ | 334 | */ |
335 | void openLDAPDialog(); | 335 | void openLDAPDialog(); |
336 | 336 | ||
337 | /** | 337 | /** |
338 | Creates a KAddressBookPrinter, which will display the print | 338 | Creates a KAddressBookPrinter, which will display the print |
339 | dialog and do the printing. | 339 | dialog and do the printing. |
340 | */ | 340 | */ |
341 | void print(); | 341 | void print(); |
342 | 342 | ||
343 | /** | 343 | /** |
344 | Registers a new GUI client, so plugins can register its actions. | 344 | Registers a new GUI client, so plugins can register its actions. |
345 | */ | 345 | */ |
346 | void addGUIClient( KXMLGUIClient *client ); | 346 | void addGUIClient( KXMLGUIClient *client ); |
347 | 347 | ||
348 | void requestForNameEmailUidList(const QString& sourceChannel, const QString& sessionuid); | 348 | void requestForNameEmailUidList(const QString& sourceChannel, const QString& sessionuid); |
349 | void requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid); | 349 | void requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid); |
350 | void requestForBirthdayList(const QString& sourceChannel, const QString& sessionuid); | 350 | void requestForBirthdayList(const QString& sourceChannel, const QString& sessionuid); |
351 | 351 | ||
352 | 352 | ||
353 | signals: | 353 | signals: |
354 | void contactSelected( const QString &name ); | 354 | void contactSelected( const QString &name ); |
355 | void contactSelected( const QPixmap &pixmap ); | 355 | void contactSelected( const QPixmap &pixmap ); |
356 | public slots: | 356 | public slots: |
357 | void recieve(QString cmsg ); | 357 | void recieve(QString cmsg ); |
358 | void getFile( bool success ); | 358 | void getFile( bool success ); |
359 | void syncFileRequest(); | 359 | void syncFileRequest(); |
360 | void setDetailsVisible( bool visible ); | 360 | void setDetailsVisible( bool visible ); |
361 | void setDetailsToState(); | 361 | void setDetailsToState(); |
362 | 362 | ||
363 | void saveSettings(); | 363 | void saveSettings(); |
364 | 364 | ||
365 | private slots: | 365 | private slots: |
366 | void updateToolBar(); | 366 | void updateToolBar(); |
367 | void updateMainWindow(); | 367 | void updateMainWindow(); |
368 | void receive( const QCString& cmsg, const QByteArray& data ); | 368 | void receive( const QCString& cmsg, const QByteArray& data ); |
369 | void toggleBeamReceive( ); | 369 | void toggleBeamReceive( ); |
370 | void disableBR(bool); | 370 | void disableBR(bool); |
371 | void setJumpButtonBarVisible( bool visible ); | 371 | void setJumpButtonBarVisible( bool visible ); |
372 | void setJumpButtonBar( bool visible ); | 372 | void setJumpButtonBar( bool visible ); |
373 | void setCaptionBack(); | 373 | void setCaptionBack(); |
374 | void resizeAndCallContactdialog(); | 374 | void resizeAndCallContactdialog(); |
375 | void callContactdialog(); | 375 | void callContactdialog(); |
376 | void doRingSync(); | ||
376 | 377 | ||
377 | void importFromOL(); | 378 | void importFromOL(); |
378 | void extensionModified( const KABC::Addressee::List &list ); | 379 | void extensionModified( const KABC::Addressee::List &list ); |
379 | void extensionChanged( int id ); | 380 | void extensionChanged( int id ); |
380 | void clipboardDataChanged(); | 381 | void clipboardDataChanged(); |
381 | void updateActionMenu(); | 382 | void updateActionMenu(); |
382 | void configureKeyBindings(); | 383 | void configureKeyBindings(); |
383 | void removeVoice(); | 384 | void removeVoice(); |
384 | void setFormattedName(); | 385 | void setFormattedName(); |
385 | #ifdef KAB_EMBEDDED | 386 | #ifdef KAB_EMBEDDED |
386 | void configureResources(); | 387 | void configureResources(); |
387 | #endif //KAB_EMBEDDED | 388 | #endif //KAB_EMBEDDED |
388 | 389 | ||
389 | void slotEditorDestroyed( const QString &uid ); | 390 | void slotEditorDestroyed( const QString &uid ); |
390 | void configurationChanged(); | 391 | void configurationChanged(); |
391 | void addressBookChanged(); | 392 | void addressBookChanged(); |
392 | 393 | ||
393 | private: | 394 | private: |
394 | QString mEmailSourceChannel; | 395 | QString mEmailSourceChannel; |
395 | QString mEmailSourceUID; | 396 | QString mEmailSourceUID; |
396 | void resizeEvent(QResizeEvent* e ); | 397 | void resizeEvent(QResizeEvent* e ); |
397 | bool mBRdisabled; | 398 | bool mBRdisabled; |
398 | #ifndef DESKTOP_VERSION | 399 | #ifndef DESKTOP_VERSION |
399 | QCopChannel* infrared; | 400 | QCopChannel* infrared; |
400 | #endif | 401 | #endif |
401 | QTimer *mMessageTimer; | 402 | QTimer *mMessageTimer; |
402 | void initGUI(); | 403 | void initGUI(); |
403 | void initActions(); | 404 | void initActions(); |
404 | QString getPhoneFile(); | 405 | QString getPhoneFile(); |
405 | 406 | ||
406 | AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent, | 407 | AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent, |
407 | const char *name = 0 ); | 408 | const char *name = 0 ); |
408 | 409 | ||
409 | KXMLGUIClient *mGUIClient; | 410 | KXMLGUIClient *mGUIClient; |
410 | 411 | ||
411 | KABC::AddressBook *mAddressBook; | 412 | KABC::AddressBook *mAddressBook; |
412 | 413 | ||
413 | ViewManager *mViewManager; | 414 | ViewManager *mViewManager; |
414 | // QSplitter *mDetailsSplitter; | 415 | // QSplitter *mDetailsSplitter; |
415 | KDGanttMinimizeSplitter *mExtensionBarSplitter; | 416 | KDGanttMinimizeSplitter *mExtensionBarSplitter; |
416 | ViewContainer *mDetails; | 417 | ViewContainer *mDetails; |
417 | KDGanttMinimizeSplitter* mMiniSplitter; | 418 | KDGanttMinimizeSplitter* mMiniSplitter; |
418 | XXPortManager *mXXPortManager; | 419 | XXPortManager *mXXPortManager; |
419 | JumpButtonBar *mJumpButtonBar; | 420 | JumpButtonBar *mJumpButtonBar; |
420 | IncSearchWidget *mIncSearchWidget; | 421 | IncSearchWidget *mIncSearchWidget; |
421 | ExtensionManager *mExtensionManager; | 422 | ExtensionManager *mExtensionManager; |
422 | 423 | ||
423 | KCMultiDialog *mConfigureDialog; | 424 | KCMultiDialog *mConfigureDialog; |
424 | 425 | ||
425 | #ifndef KAB_EMBEDDED | 426 | #ifndef KAB_EMBEDDED |
426 | LDAPSearchDialog *mLdapSearchDialog; | 427 | LDAPSearchDialog *mLdapSearchDialog; |
427 | #endif //KAB_EMBEDDED | 428 | #endif //KAB_EMBEDDED |
428 | // QDict<AddresseeEditorDialog> mEditorDict; | 429 | // QDict<AddresseeEditorDialog> mEditorDict; |
429 | AddresseeEditorDialog *mEditorDialog; | 430 | AddresseeEditorDialog *mEditorDialog; |
430 | bool mReadWrite; | 431 | bool mReadWrite; |
431 | bool mModified; | 432 | bool mModified; |
432 | bool mIsPart; | 433 | bool mIsPart; |
433 | bool mMultipleViewsAtOnce; | 434 | bool mMultipleViewsAtOnce; |
434 | 435 | ||
435 | 436 | ||
436 | //US file menu | 437 | //US file menu |
437 | KAction *mActionMail; | 438 | KAction *mActionMail; |
438 | KAction *mActionBeam; | 439 | KAction *mActionBeam; |
439 | KToggleAction *mActionBR; | 440 | KToggleAction *mActionBR; |
440 | KAction *mActionExport2phone; | 441 | KAction *mActionExport2phone; |
441 | KAction* mActionPrint; | 442 | KAction* mActionPrint; |
442 | KAction* mActionPrintDetails; | 443 | KAction* mActionPrintDetails; |
443 | KAction* mActionNewContact; | 444 | KAction* mActionNewContact; |
444 | KAction *mActionSave; | 445 | KAction *mActionSave; |
445 | KAction *mActionEditAddressee; | 446 | KAction *mActionEditAddressee; |
446 | KAction *mActionMailVCard; | 447 | KAction *mActionMailVCard; |
447 | KAction *mActionBeamVCard; | 448 | KAction *mActionBeamVCard; |
448 | 449 | ||
449 | KAction *mActionQuit; | 450 | KAction *mActionQuit; |
450 | 451 | ||
451 | //US edit menu | 452 | //US edit menu |
452 | KAction *mActionCopy; | 453 | KAction *mActionCopy; |
453 | KAction *mActionCut; | 454 | KAction *mActionCut; |
454 | KAction *mActionPaste; | 455 | KAction *mActionPaste; |
455 | KAction *mActionSelectAll; | 456 | KAction *mActionSelectAll; |
456 | KAction *mActionUndo; | 457 | KAction *mActionUndo; |
457 | KAction *mActionRedo; | 458 | KAction *mActionRedo; |
458 | KAction *mActionDelete; | 459 | KAction *mActionDelete; |
459 | 460 | ||
460 | //US settings menu | 461 | //US settings menu |
461 | KAction *mActionConfigResources; | 462 | KAction *mActionConfigResources; |
462 | KAction *mActionConfigGlobal; | 463 | KAction *mActionConfigGlobal; |
463 | KAction *mActionConfigKAddressbook; | 464 | KAction *mActionConfigKAddressbook; |
464 | KAction *mActionConfigShortcuts; | 465 | KAction *mActionConfigShortcuts; |
465 | KAction *mActionConfigureToolbars; | 466 | KAction *mActionConfigureToolbars; |
466 | KAction *mActionKeyBindings; | 467 | KAction *mActionKeyBindings; |
467 | KToggleAction *mActionJumpBar; | 468 | KToggleAction *mActionJumpBar; |
468 | KToggleAction *mActionDetails; | 469 | KToggleAction *mActionDetails; |
469 | KAction *mActionWhoAmI; | 470 | KAction *mActionWhoAmI; |
470 | KAction *mActionCategories; | 471 | KAction *mActionCategories; |
471 | KAction *mActionEditCategories; | 472 | KAction *mActionEditCategories; |
472 | KAction *mActionManageCategories; | 473 | KAction *mActionManageCategories; |
473 | KAction *mActionAboutKAddressbook; | 474 | KAction *mActionAboutKAddressbook; |
474 | KAction *mActionLicence; | 475 | KAction *mActionLicence; |
475 | KAction *mActionFaq; | 476 | KAction *mActionFaq; |
476 | KAction *mActionWN; | 477 | KAction *mActionWN; |
477 | KAction *mActionSyncHowto; | 478 | KAction *mActionSyncHowto; |
478 | KAction *mActionStorageHowto; | 479 | KAction *mActionStorageHowto; |
479 | KAction *mActionKdeSyncHowto; | 480 | KAction *mActionKdeSyncHowto; |
480 | KAction *mActionMultiSyncHowto; | 481 | KAction *mActionMultiSyncHowto; |
481 | 482 | ||
482 | KAction *mActionDeleteView; | 483 | KAction *mActionDeleteView; |
483 | 484 | ||
484 | QPopupMenu *viewMenu; | 485 | QPopupMenu *viewMenu; |
485 | QPopupMenu *filterMenu; | 486 | QPopupMenu *filterMenu; |
486 | QPopupMenu *settingsMenu; | 487 | QPopupMenu *settingsMenu; |
487 | QPopupMenu *changeMenu; | 488 | QPopupMenu *changeMenu; |
488 | QPopupMenu *beamMenu; | 489 | QPopupMenu *beamMenu; |
489 | //US QAction *mActionSave; | 490 | //US QAction *mActionSave; |
490 | QPopupMenu *ImportMenu; | 491 | QPopupMenu *ImportMenu; |
491 | QPopupMenu *ExportMenu; | 492 | QPopupMenu *ExportMenu; |
492 | //LR additional methods | 493 | //LR additional methods |
493 | KAction *mActionRemoveVoice; | 494 | KAction *mActionRemoveVoice; |
494 | KAction *mActionSetFormattedName; | 495 | KAction *mActionSetFormattedName; |
495 | KAction * mActionImportOL; | 496 | KAction * mActionImportOL; |
496 | 497 | ||
497 | #ifndef KAB_EMBEDDED | 498 | #ifndef KAB_EMBEDDED |
498 | KAddressBookService *mAddressBookService; | 499 | KAddressBookService *mAddressBookService; |
499 | #endif //KAB_EMBEDDED | 500 | #endif //KAB_EMBEDDED |
500 | 501 | ||
501 | class KABCorePrivate; | 502 | class KABCorePrivate; |
502 | KABCorePrivate *d; | 503 | KABCorePrivate *d; |
503 | //US bool mBlockSaveFlag; | 504 | //US bool mBlockSaveFlag; |
504 | 505 | ||
505 | #ifdef KAB_EMBEDDED | 506 | #ifdef KAB_EMBEDDED |
506 | KAddressBookMain *mMainWindow; // should be the same like mGUIClient | 507 | KAddressBookMain *mMainWindow; // should be the same like mGUIClient |
507 | #endif //KAB_EMBEDDED | 508 | #endif //KAB_EMBEDDED |
508 | 509 | ||
509 | //this are the overwritten callbackmethods from the syncinterface | 510 | //this are the overwritten callbackmethods from the syncinterface |
510 | virtual bool sync(KSyncManager* manager, QString filename, int mode); | 511 | virtual bool sync(KSyncManager* manager, QString filename, int mode); |
511 | virtual bool syncExternal(KSyncManager* manager, QString resource); | 512 | virtual bool syncExternal(KSyncManager* manager, QString resource); |
512 | virtual void removeSyncInfo( QString syncProfile); | 513 | virtual void removeSyncInfo( QString syncProfile); |
513 | bool syncPhone(); | 514 | bool syncPhone(); |
514 | void message( QString m , bool startTimer = true); | 515 | void message( QString m , bool startTimer = true); |
515 | 516 | ||
516 | // LR ******************************* | 517 | // LR ******************************* |
517 | // sync stuff! | 518 | // sync stuff! |
518 | QString sentSyncFile(); | 519 | QString sentSyncFile(); |
519 | QPopupMenu *syncMenu; | 520 | QPopupMenu *syncMenu; |
520 | KSyncManager* syncManager; | 521 | KSyncManager* syncManager; |
521 | int mGlobalSyncMode; | 522 | int mGlobalSyncMode; |
522 | bool synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBook* remote,int mode); | 523 | bool synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBook* remote,int mode); |
523 | KABC::Addressee getLastSyncAddressee(); | 524 | KABC::Addressee getLastSyncAddressee(); |
524 | QDateTime mLastAddressbookSync; | 525 | QDateTime mLastAddressbookSync; |
525 | int takeAddressee( KABC::Addressee* local, KABC::Addressee* remote, int mode , bool full ); | 526 | int takeAddressee( KABC::Addressee* local, KABC::Addressee* remote, int mode , bool full ); |
526 | // ********************* | 527 | // ********************* |
527 | 528 | ||
528 | }; | 529 | }; |
529 | 530 | ||
530 | #endif | 531 | #endif |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 68233e8..d8373a6 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -312,567 +312,580 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : | |||
312 | //mView->setMaximumSize( splash->size() ); | 312 | //mView->setMaximumSize( splash->size() ); |
313 | //mView->resize( splash->size() ); | 313 | //mView->resize( splash->size() ); |
314 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); | 314 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); |
315 | mView->readSettings(); | 315 | mView->readSettings(); |
316 | bool newFile = false; | 316 | bool newFile = false; |
317 | if( !QFile::exists( defaultFileName() ) ) { | 317 | if( !QFile::exists( defaultFileName() ) ) { |
318 | QFileInfo finfo ( defaultFileName() ); | 318 | QFileInfo finfo ( defaultFileName() ); |
319 | QString oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/Applications/korganizer/mycalendar.ics"); | 319 | QString oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/Applications/korganizer/mycalendar.ics"); |
320 | QString message = "You are starting KO/Pi for the\nfirst time after updating to a\nversion >= 1.9.1. The location of the\ndefault calendar file has changed.\nA mycalendar.ics file was detected\nat the old location.\nThis file will be loaded now\nand stored at the new location!\n(Config file location has changed, too!)\nPlease read menu Help-What's New!\n"; | 320 | QString message = "You are starting KO/Pi for the\nfirst time after updating to a\nversion >= 1.9.1. The location of the\ndefault calendar file has changed.\nA mycalendar.ics file was detected\nat the old location.\nThis file will be loaded now\nand stored at the new location!\n(Config file location has changed, too!)\nPlease read menu Help-What's New!\n"; |
321 | finfo.setFile( oldFile ); | 321 | finfo.setFile( oldFile ); |
322 | if (finfo.exists() ) { | 322 | if (finfo.exists() ) { |
323 | KMessageBox::information( this, message); | 323 | KMessageBox::information( this, message); |
324 | mView->openCalendar( oldFile ); | 324 | mView->openCalendar( oldFile ); |
325 | qApp->processEvents(); | 325 | qApp->processEvents(); |
326 | } else { | 326 | } else { |
327 | oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/korganizer/mycalendar.ics"); | 327 | oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/korganizer/mycalendar.ics"); |
328 | finfo.setFile( oldFile ); | 328 | finfo.setFile( oldFile ); |
329 | if (finfo.exists() ) { | 329 | if (finfo.exists() ) { |
330 | KMessageBox::information( this, message); | 330 | KMessageBox::information( this, message); |
331 | mView->openCalendar( oldFile ); | 331 | mView->openCalendar( oldFile ); |
332 | qApp->processEvents(); | 332 | qApp->processEvents(); |
333 | } | 333 | } |
334 | } | 334 | } |
335 | mView->saveCalendar( defaultFileName() ); | 335 | mView->saveCalendar( defaultFileName() ); |
336 | newFile = true; | 336 | newFile = true; |
337 | } | 337 | } |
338 | 338 | ||
339 | QTime neededSaveTime = QDateTime::currentDateTime().time(); | 339 | QTime neededSaveTime = QDateTime::currentDateTime().time(); |
340 | mView->loadCalendars(); | 340 | mView->loadCalendars(); |
341 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); | 341 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); |
342 | qDebug("KO: Calendar loading time: %d ms",msNeeded ); | 342 | qDebug("KO: Calendar loading time: %d ms",msNeeded ); |
343 | 343 | ||
344 | if ( KPimGlobalPrefs::instance()->mPreferredLanguage != KOPrefs::instance()->mOldLoadedLanguage ) { | 344 | if ( KPimGlobalPrefs::instance()->mPreferredLanguage != KOPrefs::instance()->mOldLoadedLanguage ) { |
345 | KOPrefs::instance()->setAllDefaults(); | 345 | KOPrefs::instance()->setAllDefaults(); |
346 | int count = mView->addCategories(); | 346 | int count = mView->addCategories(); |
347 | } | 347 | } |
348 | processIncidenceSelection( 0 ); | 348 | processIncidenceSelection( 0 ); |
349 | connect( mView, SIGNAL( incidenceSelected( Incidence * ) ), | 349 | connect( mView, SIGNAL( incidenceSelected( Incidence * ) ), |
350 | SLOT( processIncidenceSelection( Incidence * ) ) ); | 350 | SLOT( processIncidenceSelection( Incidence * ) ) ); |
351 | connect( mView, SIGNAL( modifiedChanged( bool ) ), | 351 | connect( mView, SIGNAL( modifiedChanged( bool ) ), |
352 | SLOT( slotModifiedChanged( bool ) ) ); | 352 | SLOT( slotModifiedChanged( bool ) ) ); |
353 | 353 | ||
354 | 354 | ||
355 | connect( mView, SIGNAL( tempDisableBR(bool) ), | 355 | connect( mView, SIGNAL( tempDisableBR(bool) ), |
356 | SLOT( disableBR(bool) ) ); | 356 | SLOT( disableBR(bool) ) ); |
357 | connect( &mSaveTimer, SIGNAL( timeout() ), SLOT( save() ) ); | 357 | connect( &mSaveTimer, SIGNAL( timeout() ), SLOT( save() ) ); |
358 | mView->setModified( false ); | 358 | mView->setModified( false ); |
359 | mBlockAtStartup = false; | 359 | mBlockAtStartup = false; |
360 | mView->setModified( false ); | 360 | mView->setModified( false ); |
361 | setCentralWidget( mView ); | 361 | setCentralWidget( mView ); |
362 | globalFlagBlockStartup = 0; | 362 | globalFlagBlockStartup = 0; |
363 | mView->show(); | 363 | mView->show(); |
364 | delete splash; | 364 | delete splash; |
365 | if ( newFile ) | 365 | if ( newFile ) |
366 | mView->updateConfig(); | 366 | mView->updateConfig(); |
367 | // qApp->processEvents(); | 367 | // qApp->processEvents(); |
368 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); | 368 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); |
369 | //fillSyncMenu(); | 369 | //fillSyncMenu(); |
370 | 370 | ||
371 | 371 | ||
372 | connect(mSyncManager , SIGNAL( save() ), this, SLOT( save() ) ); | 372 | connect(mSyncManager , SIGNAL( save() ), this, SLOT( save() ) ); |
373 | connect(mView , SIGNAL( save() ), this, SLOT( save() ) ); | 373 | connect(mView , SIGNAL( save() ), this, SLOT( save() ) ); |
374 | connect(mView , SIGNAL( saveStopTimer() ), this, SLOT( saveStopTimer() ) ); | 374 | connect(mView , SIGNAL( saveStopTimer() ), this, SLOT( saveStopTimer() ) ); |
375 | connect(mSyncManager , SIGNAL( request_file() ), this, SLOT( syncFileRequest() ) ); | 375 | connect(mSyncManager , SIGNAL( request_file() ), this, SLOT( syncFileRequest() ) ); |
376 | connect(mSyncManager , SIGNAL( getFile( bool )), this, SLOT(getFile( bool ) ) ); | 376 | connect(mSyncManager , SIGNAL( getFile( bool )), this, SLOT(getFile( bool ) ) ); |
377 | mSyncManager->setDefaultFileName( sentSyncFile()); | 377 | mSyncManager->setDefaultFileName( sentSyncFile()); |
378 | connect ( syncMenu, SIGNAL( activated ( int ) ), mSyncManager, SLOT (slotSyncMenu( int ) ) ); | 378 | connect ( syncMenu, SIGNAL( activated ( int ) ), mSyncManager, SLOT (slotSyncMenu( int ) ) ); |
379 | mSyncManager->fillSyncMenu(); | 379 | mSyncManager->fillSyncMenu(); |
380 | 380 | ||
381 | 381 | ||
382 | 382 | ||
383 | mView->viewManager()->agendaView()->setStartHour( KOPrefs::instance()->mDayBegins ); | 383 | mView->viewManager()->agendaView()->setStartHour( KOPrefs::instance()->mDayBegins ); |
384 | if ( showWarning ) { | 384 | if ( showWarning ) { |
385 | KMessageBox::information( this, | 385 | KMessageBox::information( this, |
386 | "You are starting KO/Pi for the first time.\nPlease read menu: Help-What's New,\nif you did an update!\nPlease choose your timezone in the \nConfigure Dialog TAB Time Zone!\nPlease choose your language\nin the TAB Locale!\nYou get the Configure Dialog\nvia Menu: Actions - Configure....\nClick OK to show the Configure Dialog!\n", "KO/Pi information"); | 386 | "You are starting KO/Pi for the first time.\nPlease read menu: Help-What's New,\nif you did an update!\nPlease choose your timezone in the \nConfigure Dialog TAB Time Zone!\nPlease choose your language\nin the TAB Locale!\nYou get the Configure Dialog\nvia Menu: Actions - Configure....\nClick OK to show the Configure Dialog!\n", "KO/Pi information"); |
387 | qApp->processEvents(); | 387 | qApp->processEvents(); |
388 | mView->dialogManager()->showSyncOptions(); | 388 | mView->dialogManager()->showSyncOptions(); |
389 | } | 389 | } |
390 | 390 | ||
391 | //US listen for result adressed from Ka/Pi | 391 | //US listen for result adressed from Ka/Pi |
392 | #ifndef DESKTOP_VERSION | 392 | #ifndef DESKTOP_VERSION |
393 | connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); | 393 | connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); |
394 | #endif | 394 | #endif |
395 | #ifndef DESKTOP_VERSION | 395 | #ifndef DESKTOP_VERSION |
396 | infrared = 0; | 396 | infrared = 0; |
397 | #endif | 397 | #endif |
398 | updateFilterToolbar(); | 398 | updateFilterToolbar(); |
399 | updateWeek( mView->startDate() ); | 399 | updateWeek( mView->startDate() ); |
400 | connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), | 400 | connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), |
401 | SLOT( updateWeekNum( const KCal::DateList & ) ) ); | 401 | SLOT( updateWeekNum( const KCal::DateList & ) ) ); |
402 | mBRdisabled = false; | 402 | mBRdisabled = false; |
403 | //toggleBeamReceive(); | 403 | //toggleBeamReceive(); |
404 | int tiint= 3000; | 404 | int tiint= 3000; |
405 | #ifndef DESKTOP_VERSION | 405 | #ifndef DESKTOP_VERSION |
406 | tiint = 5000; | 406 | tiint = 5000; |
407 | #endif | 407 | #endif |
408 | QTimer::singleShot( tiint, mView, SLOT ( checkAlarms() )); | 408 | QTimer::singleShot( tiint, mView, SLOT ( checkAlarms() )); |
409 | } | 409 | } |
410 | MainWindow::~MainWindow() | 410 | MainWindow::~MainWindow() |
411 | { | 411 | { |
412 | //qDebug("MainWindow::~MainWindow() "); | 412 | //qDebug("MainWindow::~MainWindow() "); |
413 | //save toolbar location | 413 | //save toolbar location |
414 | delete mCalendar; | 414 | delete mCalendar; |
415 | delete mSyncManager; | 415 | delete mSyncManager; |
416 | #ifndef DESKTOP_VERSION | 416 | #ifndef DESKTOP_VERSION |
417 | if ( infrared ) | 417 | if ( infrared ) |
418 | delete infrared; | 418 | delete infrared; |
419 | #endif | 419 | #endif |
420 | 420 | ||
421 | 421 | ||
422 | } | 422 | } |
423 | 423 | ||
424 | void MainWindow::disableBR(bool b) | 424 | void MainWindow::disableBR(bool b) |
425 | { | 425 | { |
426 | #ifndef DESKTOP_VERSION | 426 | #ifndef DESKTOP_VERSION |
427 | if ( b ) { | 427 | if ( b ) { |
428 | if ( infrared ) { | 428 | if ( infrared ) { |
429 | toggleBeamReceive(); | 429 | toggleBeamReceive(); |
430 | mBRdisabled = true; | 430 | mBRdisabled = true; |
431 | } | 431 | } |
432 | mBRdisabled = true; | 432 | mBRdisabled = true; |
433 | } else { | 433 | } else { |
434 | if ( mBRdisabled ) { | 434 | if ( mBRdisabled ) { |
435 | mBRdisabled = false; | 435 | mBRdisabled = false; |
436 | //makes no sense,because other cal ap is probably running | 436 | //makes no sense,because other cal ap is probably running |
437 | // toggleBeamReceive(); | 437 | // toggleBeamReceive(); |
438 | } | 438 | } |
439 | } | 439 | } |
440 | #endif | 440 | #endif |
441 | 441 | ||
442 | } | 442 | } |
443 | bool MainWindow::beamReceiveEnabled() | 443 | bool MainWindow::beamReceiveEnabled() |
444 | { | 444 | { |
445 | #ifndef DESKTOP_VERSION | 445 | #ifndef DESKTOP_VERSION |
446 | return ( infrared != 0 ); | 446 | return ( infrared != 0 ); |
447 | #endif | 447 | #endif |
448 | return false; | 448 | return false; |
449 | } | 449 | } |
450 | 450 | ||
451 | void MainWindow::toggleBeamReceive() | 451 | void MainWindow::toggleBeamReceive() |
452 | { | 452 | { |
453 | if ( mBRdisabled ) | 453 | if ( mBRdisabled ) |
454 | return; | 454 | return; |
455 | #ifndef DESKTOP_VERSION | 455 | #ifndef DESKTOP_VERSION |
456 | if ( infrared ) { | 456 | if ( infrared ) { |
457 | qDebug("KO: Disable BeamReceive "); | 457 | qDebug("KO: Disable BeamReceive "); |
458 | delete infrared; | 458 | delete infrared; |
459 | infrared = 0; | 459 | infrared = 0; |
460 | brAction->setOn(false); | 460 | brAction->setOn(false); |
461 | return; | 461 | return; |
462 | } | 462 | } |
463 | qDebug("KO: Enable BeamReceive "); | 463 | qDebug("KO: Enable BeamReceive "); |
464 | brAction->setOn(true); | 464 | brAction->setOn(true); |
465 | infrared = new QCopChannel("QPE/Application/datebook",this, "channel" ) ; | 465 | infrared = new QCopChannel("QPE/Application/datebook",this, "channel" ) ; |
466 | QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(recieve( const QCString&, const QByteArray& ))); | 466 | QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(recieve( const QCString&, const QByteArray& ))); |
467 | #endif | 467 | #endif |
468 | } | 468 | } |
469 | void MainWindow::showMaximized () | 469 | void MainWindow::showMaximized () |
470 | { | 470 | { |
471 | #ifndef DESKTOP_VERSION | 471 | #ifndef DESKTOP_VERSION |
472 | if ( ! globalFlagBlockStartup ) | 472 | if ( ! globalFlagBlockStartup ) |
473 | if ( mClosed ) | 473 | if ( mClosed ) |
474 | mView->goToday(); | 474 | mView->goToday(); |
475 | #endif | 475 | #endif |
476 | QWidget::showMaximized () ; | 476 | QWidget::showMaximized () ; |
477 | mClosed = false; | 477 | mClosed = false; |
478 | } | 478 | } |
479 | void MainWindow::closeEvent( QCloseEvent* ce ) | 479 | void MainWindow::closeEvent( QCloseEvent* ce ) |
480 | { | 480 | { |
481 | 481 | ||
482 | 482 | ||
483 | 483 | ||
484 | if ( ! KOPrefs::instance()->mAskForQuit ) { | 484 | if ( ! KOPrefs::instance()->mAskForQuit ) { |
485 | saveOnClose(); | 485 | saveOnClose(); |
486 | mClosed = true; | 486 | mClosed = true; |
487 | ce->accept(); | 487 | ce->accept(); |
488 | return; | 488 | return; |
489 | 489 | ||
490 | } | 490 | } |
491 | 491 | ||
492 | switch( QMessageBox::information( this, "KO/Pi", | 492 | switch( QMessageBox::information( this, "KO/Pi", |
493 | i18n("Do you really want\nto close KO/Pi?"), | 493 | i18n("Do you really want\nto close KO/Pi?"), |
494 | i18n("Close"), i18n("No"), | 494 | i18n("Close"), i18n("No"), |
495 | 0, 0 ) ) { | 495 | 0, 0 ) ) { |
496 | case 0: | 496 | case 0: |
497 | saveOnClose(); | 497 | saveOnClose(); |
498 | mClosed = true; | 498 | mClosed = true; |
499 | ce->accept(); | 499 | ce->accept(); |
500 | break; | 500 | break; |
501 | case 1: | 501 | case 1: |
502 | ce->ignore(); | 502 | ce->ignore(); |
503 | break; | 503 | break; |
504 | case 2: | 504 | case 2: |
505 | 505 | ||
506 | default: | 506 | default: |
507 | break; | 507 | break; |
508 | } | 508 | } |
509 | 509 | ||
510 | 510 | ||
511 | } | 511 | } |
512 | 512 | ||
513 | void MainWindow::recieve( const QCString& cmsg, const QByteArray& data ) | 513 | void MainWindow::recieve( const QCString& cmsg, const QByteArray& data ) |
514 | { | 514 | { |
515 | QDataStream stream( data, IO_ReadOnly ); | 515 | QDataStream stream( data, IO_ReadOnly ); |
516 | // QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" ); | 516 | // QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" ); |
517 | //QString datamess; | 517 | //QString datamess; |
518 | //qDebug("message "); | 518 | //qDebug("message "); |
519 | qDebug("KO: QCOP message received: %s ", cmsg.data() ); | 519 | qDebug("KO: QCOP message received: %s ", cmsg.data() ); |
520 | 520 | ||
521 | if ( cmsg == "setDocument(QString)" ) { | 521 | if ( cmsg == "setDocument(QString)" ) { |
522 | QDataStream stream( data, IO_ReadOnly ); | 522 | QDataStream stream( data, IO_ReadOnly ); |
523 | QString fileName; | 523 | QString fileName; |
524 | stream >> fileName; | 524 | stream >> fileName; |
525 | //qDebug("filename %s ", fileName.latin1()); | 525 | //qDebug("filename %s ", fileName.latin1()); |
526 | showMaximized(); | 526 | showMaximized(); |
527 | raise(); | 527 | raise(); |
528 | KOPrefs::instance()->mLastSyncedLocalFile = fileName ; | 528 | KOPrefs::instance()->mLastSyncedLocalFile = fileName ; |
529 | mSyncManager->slotSyncMenu( 1002 ); | 529 | mSyncManager->slotSyncMenu( 1002 ); |
530 | return; | 530 | return; |
531 | } | 531 | } |
532 | 532 | ||
533 | if ( cmsg == "-writeFile" ) { | 533 | if ( cmsg == "-writeFile" ) { |
534 | // I made from the "-writeFile" an "-writeAlarm" | 534 | // I made from the "-writeFile" an "-writeAlarm" |
535 | mView->viewManager()->showWhatsNextView(); | 535 | mView->viewManager()->showWhatsNextView(); |
536 | mCalendar->checkAlarmForIncidence( 0, true); | 536 | mCalendar->checkAlarmForIncidence( 0, true); |
537 | showMaximized(); | 537 | showMaximized(); |
538 | raise(); | 538 | raise(); |
539 | return; | 539 | return; |
540 | 540 | ||
541 | } | 541 | } |
542 | if ( cmsg == "-writeFileSilent" ) { | 542 | if ( cmsg == "-writeFileSilent" ) { |
543 | // I made from the "-writeFile" an "-writeAlarm" | 543 | // I made from the "-writeFile" an "-writeAlarm" |
544 | // mView->viewManager()->showWhatsNextView(); | 544 | // mView->viewManager()->showWhatsNextView(); |
545 | mCalendar->checkAlarmForIncidence( 0, true); | 545 | mCalendar->checkAlarmForIncidence( 0, true); |
546 | //showMaximized(); | 546 | //showMaximized(); |
547 | //raise(); | 547 | //raise(); |
548 | hide(); | 548 | hide(); |
549 | return; | 549 | return; |
550 | } | 550 | } |
551 | if ( cmsg == "-newCountdown" ) { | 551 | if ( cmsg == "-newCountdown" ) { |
552 | qDebug("newCountdown "); | 552 | qDebug("newCountdown "); |
553 | 553 | ||
554 | } | 554 | } |
555 | QString msg ; | 555 | QString msg ; |
556 | QString allmsg = cmsg; | 556 | QString allmsg = cmsg; |
557 | while ( allmsg.length() > 0 ) { | 557 | while ( allmsg.length() > 0 ) { |
558 | int nextC = allmsg.find( "-", 1 ); | 558 | int nextC = allmsg.find( "-", 1 ); |
559 | if ( nextC == -1 ) { | 559 | if ( nextC == -1 ) { |
560 | msg = allmsg; | 560 | msg = allmsg; |
561 | allmsg = ""; | 561 | allmsg = ""; |
562 | } else{ | 562 | } else{ |
563 | msg = allmsg.left( nextC ); | 563 | msg = allmsg.left( nextC ); |
564 | allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); | 564 | allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); |
565 | } | 565 | } |
566 | //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); | 566 | //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); |
567 | if ( msg == "-newEvent" ) { | 567 | if ( msg == "-newEvent" ) { |
568 | mView->newEvent(); | 568 | QTimer::singleShot( 0, mView, SLOT ( newEvent())); |
569 | } | 569 | } |
570 | if ( msg == "-newTodo" ) { | 570 | if ( msg == "-newTodo" ) { |
571 | mView->newTodo(); | 571 | QTimer::singleShot( 0, mView, SLOT ( newTodo())); |
572 | |||
573 | } | 572 | } |
574 | if ( msg == "-showWN" ) { | 573 | if ( msg == "-showWN" ) { |
575 | mView->viewManager()->showWhatsNextView(); | 574 | mView->viewManager()->showWhatsNextView(); |
576 | } | 575 | } |
577 | if ( msg == "-showTodo" ) { | 576 | if ( msg == "-showTodo" ) { |
578 | mView->viewManager()->showTodoView(); | 577 | mView->viewManager()->showTodoView(); |
579 | } | 578 | } |
580 | if ( msg == "-showList" ) { | 579 | if ( msg == "-showList" ) { |
581 | mView->viewManager()->showListView(); | 580 | mView->viewManager()->showListView(); |
582 | } | 581 | } |
583 | else if ( msg == "-showDay" ) { | 582 | else if ( msg == "-showDay" ) { |
584 | mView->viewManager()->showDayView(); | 583 | mView->viewManager()->showDayView(); |
585 | } | 584 | } |
586 | else if ( msg == "-showWWeek" ) { | 585 | else if ( msg == "-showWWeek" ) { |
587 | mView->viewManager()->showWorkWeekView(); | 586 | mView->viewManager()->showWorkWeekView(); |
588 | } | 587 | } |
589 | else if ( msg == "-ringSync" ) { | 588 | else if ( msg == "-ringSync" ) { |
590 | mSyncManager->multiSync( false ); | 589 | QTimer::singleShot( 0, this, SLOT (startMultiSync())); |
591 | } | 590 | } |
592 | else if ( msg == "-showWeek" ) { | 591 | else if ( msg == "-showWeek" ) { |
593 | mView->viewManager()->showWeekView(); | 592 | mView->viewManager()->showWeekView(); |
594 | } | 593 | } |
595 | else if ( msg == "-showTodo" ) { | 594 | else if ( msg == "-showTodo" ) { |
596 | mView->viewManager()->showTodoView(); | 595 | mView->viewManager()->showTodoView(); |
597 | } | 596 | } |
598 | else if ( msg == "-showJournal" ) { | 597 | else if ( msg == "-showJournal" ) { |
599 | mView->dateNavigator()->selectDates( 1 ); | 598 | mView->dateNavigator()->selectDates( 1 ); |
600 | mView->dateNavigator()->selectToday(); | 599 | mView->dateNavigator()->selectToday(); |
601 | mView->viewManager()->showJournalView(); | 600 | mView->viewManager()->showJournalView(); |
602 | } | 601 | } |
603 | else if ( msg == "-showKO" ) { | 602 | else if ( msg == "-showKO" ) { |
604 | mView->viewManager()->showNextXView(); | 603 | mView->viewManager()->showNextXView(); |
605 | } | 604 | } |
606 | else if ( msg == "-showWNext" ) { | 605 | else if ( msg == "-showWNext" ) { |
607 | mView->viewManager()->showWhatsNextView(); | 606 | mView->viewManager()->showWhatsNextView(); |
608 | } | 607 | } |
609 | else if ( msg == "nextView()" ) { | 608 | else if ( msg == "nextView()" ) { |
610 | mView->viewManager()->showNextView(); | 609 | mView->viewManager()->showNextView(); |
611 | } | 610 | } |
612 | else if ( msg == "-showNextXView" ) { | 611 | else if ( msg == "-showNextXView" ) { |
613 | mView->viewManager()->showNextXView(); | 612 | mView->viewManager()->showNextXView(); |
614 | } | 613 | } |
615 | 614 | ||
616 | 615 | ||
617 | } | 616 | } |
618 | 617 | ||
619 | showMaximized(); | 618 | showMaximized(); |
620 | raise(); | 619 | raise(); |
621 | } | 620 | } |
622 | 621 | void MainWindow::startMultiSync() | |
622 | { | ||
623 | QString question = i18n("Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!"); | ||
624 | if ( QMessageBox::information( this, i18n("KDE-Pim Sync"), | ||
625 | question, | ||
626 | i18n("Yes"), i18n("No"), | ||
627 | 0, 0 ) != 0 ) { | ||
628 | setCaption(i18n("Aborted! Nothing synced!")); | ||
629 | return; | ||
630 | } | ||
631 | mSyncManager->multiSync( false ); | ||
632 | #ifndef DESKTOP_VERSION | ||
633 | QCopEnvelope e("QPE/Application/kapi", "doRingSync"); | ||
634 | #endif | ||
635 | } | ||
623 | QPixmap MainWindow::loadPixmap( QString name ) | 636 | QPixmap MainWindow::loadPixmap( QString name ) |
624 | { | 637 | { |
625 | return SmallIcon( name ); | 638 | return SmallIcon( name ); |
626 | 639 | ||
627 | } | 640 | } |
628 | void MainWindow::setUsesBigPixmaps ( bool b ) | 641 | void MainWindow::setUsesBigPixmaps ( bool b ) |
629 | { | 642 | { |
630 | qDebug("KO: MainWindow::setUsesBigPixmaps %d called", b); | 643 | qDebug("KO: MainWindow::setUsesBigPixmaps %d called", b); |
631 | if ( b ) | 644 | if ( b ) |
632 | qDebug("KO: BigPixmaps are not supported "); | 645 | qDebug("KO: BigPixmaps are not supported "); |
633 | } | 646 | } |
634 | void MainWindow::initActions() | 647 | void MainWindow::initActions() |
635 | { | 648 | { |
636 | //KOPrefs::instance()->mShowFullMenu | 649 | //KOPrefs::instance()->mShowFullMenu |
637 | iconToolBar->clear(); | 650 | iconToolBar->clear(); |
638 | KOPrefs *p = KOPrefs::instance(); | 651 | KOPrefs *p = KOPrefs::instance(); |
639 | //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); | 652 | //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); |
640 | 653 | ||
641 | QPopupMenu *viewMenu = new QPopupMenu( this ); | 654 | QPopupMenu *viewMenu = new QPopupMenu( this ); |
642 | QPopupMenu *actionMenu = new QPopupMenu( this ); | 655 | QPopupMenu *actionMenu = new QPopupMenu( this ); |
643 | QPopupMenu *importMenu = new QPopupMenu( this ); | 656 | QPopupMenu *importMenu = new QPopupMenu( this ); |
644 | QPopupMenu *importMenu_X = new QPopupMenu( this ); | 657 | QPopupMenu *importMenu_X = new QPopupMenu( this ); |
645 | QPopupMenu *exportMenu_X = new QPopupMenu( this ); | 658 | QPopupMenu *exportMenu_X = new QPopupMenu( this ); |
646 | QPopupMenu *beamMenu_X = new QPopupMenu( this ); | 659 | QPopupMenu *beamMenu_X = new QPopupMenu( this ); |
647 | selectFilterMenu = new QPopupMenu( this ); | 660 | selectFilterMenu = new QPopupMenu( this ); |
648 | selectFilterMenu->setCheckable( true ); | 661 | selectFilterMenu->setCheckable( true ); |
649 | syncMenu = new QPopupMenu( this ); | 662 | syncMenu = new QPopupMenu( this ); |
650 | configureAgendaMenu = new QPopupMenu( this ); | 663 | configureAgendaMenu = new QPopupMenu( this ); |
651 | configureToolBarMenu = new QPopupMenu( this ); | 664 | configureToolBarMenu = new QPopupMenu( this ); |
652 | QPopupMenu *helpMenu = new QPopupMenu( this ); | 665 | QPopupMenu *helpMenu = new QPopupMenu( this ); |
653 | QIconSet icon; | 666 | QIconSet icon; |
654 | int pixWid = 22, pixHei = 22; | 667 | int pixWid = 22, pixHei = 22; |
655 | QString pathString = ""; | 668 | QString pathString = ""; |
656 | if ( !p->mToolBarMiniIcons ) { | 669 | if ( !p->mToolBarMiniIcons ) { |
657 | if ( QApplication::desktop()->width() < 480 /*|| QApplication::desktop()->height() < 320*/) { | 670 | if ( QApplication::desktop()->width() < 480 /*|| QApplication::desktop()->height() < 320*/) { |
658 | pathString += "icons16/"; | 671 | pathString += "icons16/"; |
659 | pixWid = 18; pixHei = 16; | 672 | pixWid = 18; pixHei = 16; |
660 | } | 673 | } |
661 | } else { | 674 | } else { |
662 | pathString += "iconsmini/"; | 675 | pathString += "iconsmini/"; |
663 | pixWid = 18; pixHei = 16; | 676 | pixWid = 18; pixHei = 16; |
664 | } | 677 | } |
665 | if ( KOPrefs::instance()->mShowFullMenu ) { | 678 | if ( KOPrefs::instance()->mShowFullMenu ) { |
666 | QMenuBar *menuBar1; | 679 | QMenuBar *menuBar1; |
667 | menuBar1 = menuBar(); | 680 | menuBar1 = menuBar(); |
668 | menuBar1->insertItem( i18n("File"), importMenu ); | 681 | menuBar1->insertItem( i18n("File"), importMenu ); |
669 | menuBar1->insertItem( i18n("View"), viewMenu ); | 682 | menuBar1->insertItem( i18n("View"), viewMenu ); |
670 | menuBar1->insertItem( i18n("Actions"), actionMenu ); | 683 | menuBar1->insertItem( i18n("Actions"), actionMenu ); |
671 | #ifdef DESKTOP_VERSION | 684 | #ifdef DESKTOP_VERSION |
672 | menuBar1->insertItem( i18n("Synchronize"), syncMenu ); | 685 | menuBar1->insertItem( i18n("Synchronize"), syncMenu ); |
673 | menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu ); | 686 | menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu ); |
674 | #else | 687 | #else |
675 | menuBar1->insertItem( i18n("Sync"), syncMenu ); | 688 | menuBar1->insertItem( i18n("Sync"), syncMenu ); |
676 | menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu ); | 689 | menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu ); |
677 | #endif | 690 | #endif |
678 | //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu ); | 691 | //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu ); |
679 | menuBar1->insertItem( i18n("Filter"),selectFilterMenu ); | 692 | menuBar1->insertItem( i18n("Filter"),selectFilterMenu ); |
680 | menuBar1->insertItem( i18n("Help"), helpMenu ); | 693 | menuBar1->insertItem( i18n("Help"), helpMenu ); |
681 | } else { | 694 | } else { |
682 | QPEMenuBar *menuBar1; | 695 | QPEMenuBar *menuBar1; |
683 | menuBar1 = new QPEMenuBar( iconToolBar ); | 696 | menuBar1 = new QPEMenuBar( iconToolBar ); |
684 | QPopupMenu *menuBar = new QPopupMenu( this ); | 697 | QPopupMenu *menuBar = new QPopupMenu( this ); |
685 | icon = loadPixmap( pathString + "z_menu" ); | 698 | icon = loadPixmap( pathString + "z_menu" ); |
686 | menuBar1->insertItem( icon.pixmap(), menuBar); | 699 | menuBar1->insertItem( icon.pixmap(), menuBar); |
687 | //menuBar1->insertItem( i18n("ME"), menuBar); | 700 | //menuBar1->insertItem( i18n("ME"), menuBar); |
688 | menuBar->insertItem( i18n("File"), importMenu ); | 701 | menuBar->insertItem( i18n("File"), importMenu ); |
689 | menuBar->insertItem( i18n("View"), viewMenu ); | 702 | menuBar->insertItem( i18n("View"), viewMenu ); |
690 | menuBar->insertItem( i18n("Actions"), actionMenu ); | 703 | menuBar->insertItem( i18n("Actions"), actionMenu ); |
691 | menuBar->insertItem( i18n("Synchronize"), syncMenu ); | 704 | menuBar->insertItem( i18n("Synchronize"), syncMenu ); |
692 | menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu ); | 705 | menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu ); |
693 | menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu ); | 706 | menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu ); |
694 | menuBar->insertItem( i18n("Filter"),selectFilterMenu ); | 707 | menuBar->insertItem( i18n("Filter"),selectFilterMenu ); |
695 | menuBar->insertItem( i18n("Help"), helpMenu ); | 708 | menuBar->insertItem( i18n("Help"), helpMenu ); |
696 | //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() ); | 709 | //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() ); |
697 | menuBar1->setMaximumSize( menuBar1->sizeHint( )); | 710 | menuBar1->setMaximumSize( menuBar1->sizeHint( )); |
698 | } | 711 | } |
699 | connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); | 712 | connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); |
700 | connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); | 713 | connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); |
701 | 714 | ||
702 | 715 | ||
703 | mWeekBgColor = iconToolBar->backgroundColor(); | 716 | mWeekBgColor = iconToolBar->backgroundColor(); |
704 | mWeekPixmap.resize( pixWid , pixHei ); | 717 | mWeekPixmap.resize( pixWid , pixHei ); |
705 | mWeekPixmap.fill( mWeekBgColor ); | 718 | mWeekPixmap.fill( mWeekBgColor ); |
706 | icon = mWeekPixmap; | 719 | icon = mWeekPixmap; |
707 | mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this ); | 720 | mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this ); |
708 | if ( p-> mShowIconWeekNum ) | 721 | if ( p-> mShowIconWeekNum ) |
709 | mWeekAction->addTo( iconToolBar ); | 722 | mWeekAction->addTo( iconToolBar ); |
710 | mWeekFont = font(); | 723 | mWeekFont = font(); |
711 | 724 | ||
712 | int fontPoint = mWeekFont.pointSize(); | 725 | int fontPoint = mWeekFont.pointSize(); |
713 | QFontMetrics f( mWeekFont ); | 726 | QFontMetrics f( mWeekFont ); |
714 | int fontWid = f.width( "30" ); | 727 | int fontWid = f.width( "30" ); |
715 | while ( fontWid > pixWid ) { | 728 | while ( fontWid > pixWid ) { |
716 | --fontPoint; | 729 | --fontPoint; |
717 | mWeekFont.setPointSize( fontPoint ); | 730 | mWeekFont.setPointSize( fontPoint ); |
718 | QFontMetrics f( mWeekFont ); | 731 | QFontMetrics f( mWeekFont ); |
719 | fontWid = f.width( "30" ); | 732 | fontWid = f.width( "30" ); |
720 | //qDebug("dec-- "); | 733 | //qDebug("dec-- "); |
721 | } | 734 | } |
722 | 735 | ||
723 | connect( mWeekAction, SIGNAL( activated() ), | 736 | connect( mWeekAction, SIGNAL( activated() ), |
724 | this, SLOT( weekAction() ) ); | 737 | this, SLOT( weekAction() ) ); |
725 | 738 | ||
726 | connect( this, SIGNAL( selectWeek ( int ) ), mView->dateNavigator(), SLOT( selectWeek ( int ) ) ); | 739 | connect( this, SIGNAL( selectWeek ( int ) ), mView->dateNavigator(), SLOT( selectWeek ( int ) ) ); |
727 | if ( p->mShowIconFilterview ) { | 740 | if ( p->mShowIconFilterview ) { |
728 | icon = loadPixmap( pathString + "filter" ); | 741 | icon = loadPixmap( pathString + "filter" ); |
729 | actionFilterMenuTB = new QAction( i18n("Filter selector"), icon, i18n("Filter selector"), 0, this ); | 742 | actionFilterMenuTB = new QAction( i18n("Filter selector"), icon, i18n("Filter selector"), 0, this ); |
730 | connect( actionFilterMenuTB, SIGNAL( activated() ), | 743 | connect( actionFilterMenuTB, SIGNAL( activated() ), |
731 | this, SLOT( fillFilterMenuTB() ) ); | 744 | this, SLOT( fillFilterMenuTB() ) ); |
732 | actionFilterMenuTB->addTo( iconToolBar ); | 745 | actionFilterMenuTB->addTo( iconToolBar ); |
733 | selectFilterMenuTB = new QPopupMenu( this ); | 746 | selectFilterMenuTB = new QPopupMenu( this ); |
734 | selectFilterMenuTB->setCheckable( true ); | 747 | selectFilterMenuTB->setCheckable( true ); |
735 | connect ( selectFilterMenuTB, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); | 748 | connect ( selectFilterMenuTB, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); |
736 | } | 749 | } |
737 | 750 | ||
738 | //#endif | 751 | //#endif |
739 | // ****************** | 752 | // ****************** |
740 | QAction *action; | 753 | QAction *action; |
741 | // QPopupMenu *configureMenu= new QPopupMenu( menuBar ); | 754 | // QPopupMenu *configureMenu= new QPopupMenu( menuBar ); |
742 | configureToolBarMenu->setCheckable( true ); | 755 | configureToolBarMenu->setCheckable( true ); |
743 | 756 | ||
744 | 757 | ||
745 | configureAgendaMenu->setCheckable( true ); | 758 | configureAgendaMenu->setCheckable( true ); |
746 | int iii ; | 759 | int iii ; |
747 | for ( iii = 1;iii<= 10 ;++iii ){ | 760 | for ( iii = 1;iii<= 10 ;++iii ){ |
748 | configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 ); | 761 | configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 ); |
749 | } | 762 | } |
750 | //configureMenu->insertItem( "AgendaSize",configureAgendaMenu ); | 763 | //configureMenu->insertItem( "AgendaSize",configureAgendaMenu ); |
751 | 764 | ||
752 | connect( configureAgendaMenu, SIGNAL( aboutToShow()), | 765 | connect( configureAgendaMenu, SIGNAL( aboutToShow()), |
753 | this, SLOT( showConfigureAgenda( ) ) ); | 766 | this, SLOT( showConfigureAgenda( ) ) ); |
754 | 767 | ||
755 | icon = loadPixmap( pathString + "configure" ); | 768 | icon = loadPixmap( pathString + "configure" ); |
756 | action = new QAction( i18n("Configure"),icon, i18n("Configure KO/Pi..."), 0, this ); | 769 | action = new QAction( i18n("Configure"),icon, i18n("Configure KO/Pi..."), 0, this ); |
757 | action->addTo( actionMenu ); | 770 | action->addTo( actionMenu ); |
758 | connect( action, SIGNAL( activated() ), | 771 | connect( action, SIGNAL( activated() ), |
759 | mView, SLOT( edit_options() ) ); | 772 | mView, SLOT( edit_options() ) ); |
760 | icon = loadPixmap( pathString + "configure" ); | 773 | icon = loadPixmap( pathString + "configure" ); |
761 | action = new QAction( i18n("Configure"),icon, i18n("Global Settings..."), 0, this ); | 774 | action = new QAction( i18n("Configure"),icon, i18n("Global Settings..."), 0, this ); |
762 | action->addTo( actionMenu ); | 775 | action->addTo( actionMenu ); |
763 | connect( action, SIGNAL( activated() ), | 776 | connect( action, SIGNAL( activated() ), |
764 | mView, SLOT( edit_global_options() ) ); | 777 | mView, SLOT( edit_global_options() ) ); |
765 | actionMenu->insertSeparator(); | 778 | actionMenu->insertSeparator(); |
766 | 779 | ||
767 | action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); | 780 | action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); |
768 | action->addTo( actionMenu ); | 781 | action->addTo( actionMenu ); |
769 | connect( action, SIGNAL( activated() ), | 782 | connect( action, SIGNAL( activated() ), |
770 | mView, SLOT( undo_delete() ) ); | 783 | mView, SLOT( undo_delete() ) ); |
771 | actionMenu->insertSeparator(); | 784 | actionMenu->insertSeparator(); |
772 | 785 | ||
773 | icon = loadPixmap( pathString + "newevent" ); | 786 | icon = loadPixmap( pathString + "newevent" ); |
774 | configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); | 787 | configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); |
775 | configureToolBarMenu->insertItem(i18n("Only one toolbar"), 6 ); | 788 | configureToolBarMenu->insertItem(i18n("Only one toolbar"), 6 ); |
776 | configureToolBarMenu->insertSeparator(); | 789 | configureToolBarMenu->insertSeparator(); |
777 | configureToolBarMenu->insertItem(i18n("Filtermenu"), 7 ); | 790 | configureToolBarMenu->insertItem(i18n("Filtermenu"), 7 ); |
778 | configureToolBarMenu->insertSeparator(); | 791 | configureToolBarMenu->insertSeparator(); |
779 | configureToolBarMenu->insertItem(i18n("Week Number"), 400); | 792 | configureToolBarMenu->insertItem(i18n("Week Number"), 400); |
780 | configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); | 793 | configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); |
781 | QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); | 794 | QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); |
782 | ne_action->addTo( actionMenu ); | 795 | ne_action->addTo( actionMenu ); |
783 | connect( ne_action, SIGNAL( activated() ), | 796 | connect( ne_action, SIGNAL( activated() ), |
784 | mView, SLOT( newEvent() ) ); | 797 | mView, SLOT( newEvent() ) ); |
785 | icon = loadPixmap( pathString + "newtodo" ); | 798 | icon = loadPixmap( pathString + "newtodo" ); |
786 | configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); | 799 | configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); |
787 | QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); | 800 | QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); |
788 | nt_action->addTo( actionMenu ); | 801 | nt_action->addTo( actionMenu ); |
789 | connect( nt_action, SIGNAL( activated() ), | 802 | connect( nt_action, SIGNAL( activated() ), |
790 | mView, SLOT( newTodo() ) ); | 803 | mView, SLOT( newTodo() ) ); |
791 | 804 | ||
792 | icon = loadPixmap( pathString + "today" ); | 805 | icon = loadPixmap( pathString + "today" ); |
793 | QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); | 806 | QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); |
794 | today_action->addTo( viewMenu ); | 807 | today_action->addTo( viewMenu ); |
795 | connect( today_action, SIGNAL( activated() ), | 808 | connect( today_action, SIGNAL( activated() ), |
796 | mView, SLOT( goToday() ) ); | 809 | mView, SLOT( goToday() ) ); |
797 | viewMenu->insertSeparator(); | 810 | viewMenu->insertSeparator(); |
798 | 811 | ||
799 | // *********************** | 812 | // *********************** |
800 | if ( KOPrefs::instance()->mVerticalScreen ) { | 813 | if ( KOPrefs::instance()->mVerticalScreen ) { |
801 | icon = SmallIcon( "1updownarrow" ); | 814 | icon = SmallIcon( "1updownarrow" ); |
802 | } else { | 815 | } else { |
803 | icon = SmallIcon("1leftrightarrow" ); | 816 | icon = SmallIcon("1leftrightarrow" ); |
804 | } | 817 | } |
805 | configureToolBarMenu->insertItem(icon, i18n("Toggle Fullscreen"), 28 ); | 818 | configureToolBarMenu->insertItem(icon, i18n("Toggle Fullscreen"), 28 ); |
806 | QAction* FSaction = new QAction( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this ); | 819 | QAction* FSaction = new QAction( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this ); |
807 | FSaction->addTo( viewMenu ); | 820 | FSaction->addTo( viewMenu ); |
808 | connect( FSaction, SIGNAL( activated() ), mView, SLOT( toggleExpand() )); | 821 | connect( FSaction, SIGNAL( activated() ), mView, SLOT( toggleExpand() )); |
809 | 822 | ||
810 | 823 | ||
811 | icon = loadPixmap( pathString + "filter" ); | 824 | icon = loadPixmap( pathString + "filter" ); |
812 | configureToolBarMenu->insertItem(icon, i18n("Filter menu icon"), 26 ); | 825 | configureToolBarMenu->insertItem(icon, i18n("Filter menu icon"), 26 ); |
813 | icon = loadPixmap( pathString + "configure" ); | 826 | icon = loadPixmap( pathString + "configure" ); |
814 | action = new QAction( i18n("Toggle Resource View"), icon, i18n("Toggle Resource View"), 0, this ); | 827 | action = new QAction( i18n("Toggle Resource View"), icon, i18n("Toggle Resource View"), 0, this ); |
815 | action->addTo( viewMenu ); | 828 | action->addTo( viewMenu ); |
816 | connect( action, SIGNAL( activated() ), | 829 | connect( action, SIGNAL( activated() ), |
817 | mView, SLOT( toggleFilter() ) ); | 830 | mView, SLOT( toggleFilter() ) ); |
818 | mToggleFilter = action; | 831 | mToggleFilter = action; |
819 | icon = loadPixmap( pathString + "navi" ); | 832 | icon = loadPixmap( pathString + "navi" ); |
820 | configureToolBarMenu->insertItem(icon, i18n("Toggle DateNavigator"), 22 ); | 833 | configureToolBarMenu->insertItem(icon, i18n("Toggle DateNavigator"), 22 ); |
821 | action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); | 834 | action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); |
822 | action->addTo( viewMenu ); | 835 | action->addTo( viewMenu ); |
823 | connect( action, SIGNAL( activated() ), | 836 | connect( action, SIGNAL( activated() ), |
824 | mView, SLOT( toggleDateNavigatorWidget() ) ); | 837 | mView, SLOT( toggleDateNavigatorWidget() ) ); |
825 | mToggleNav = action ; | 838 | mToggleNav = action ; |
826 | icon = loadPixmap( pathString + "allday" ); | 839 | icon = loadPixmap( pathString + "allday" ); |
827 | configureToolBarMenu->insertItem(icon, i18n("Toggle Allday"), 24 ); | 840 | configureToolBarMenu->insertItem(icon, i18n("Toggle Allday"), 24 ); |
828 | action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); | 841 | action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); |
829 | action->addTo( viewMenu ); | 842 | action->addTo( viewMenu ); |
830 | connect( action, SIGNAL( activated() ), | 843 | connect( action, SIGNAL( activated() ), |
831 | mView, SLOT( toggleAllDaySize() ) ); | 844 | mView, SLOT( toggleAllDaySize() ) ); |
832 | mToggleAllday = action; | 845 | mToggleAllday = action; |
833 | 846 | ||
834 | 847 | ||
835 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), | 848 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), |
836 | mToggleNav, SLOT( setEnabled ( bool ) ) ); | 849 | mToggleNav, SLOT( setEnabled ( bool ) ) ); |
837 | //connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), | 850 | //connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), |
838 | // mToggleFilter, SLOT( setEnabled ( bool ) ) ); | 851 | // mToggleFilter, SLOT( setEnabled ( bool ) ) ); |
839 | connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), | 852 | connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), |
840 | mToggleAllday, SLOT( setEnabled ( bool ) ) ); | 853 | mToggleAllday, SLOT( setEnabled ( bool ) ) ); |
841 | // connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), | 854 | // connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), |
842 | // configureAgendaMenu, SLOT( setEnabled ( bool ) ) ); | 855 | // configureAgendaMenu, SLOT( setEnabled ( bool ) ) ); |
843 | 856 | ||
844 | viewMenu->insertSeparator(); | 857 | viewMenu->insertSeparator(); |
845 | icon = loadPixmap( pathString + "picker" ); | 858 | icon = loadPixmap( pathString + "picker" ); |
846 | action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this ); | 859 | action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this ); |
847 | action->addTo( viewMenu ); | 860 | action->addTo( viewMenu ); |
848 | connect( action, SIGNAL( activated() ), | 861 | connect( action, SIGNAL( activated() ), |
849 | mView, SLOT( showDatePicker() ) ); | 862 | mView, SLOT( showDatePicker() ) ); |
850 | action->addTo( iconToolBar ); | 863 | action->addTo( iconToolBar ); |
851 | viewMenu->insertSeparator(); | 864 | viewMenu->insertSeparator(); |
852 | 865 | ||
853 | if ( p-> mShowIconToggleFull ) | 866 | if ( p-> mShowIconToggleFull ) |
854 | FSaction->addTo( iconToolBar ); | 867 | FSaction->addTo( iconToolBar ); |
855 | if ( p->mShowIconNavigator ) mToggleNav ->addTo( iconToolBar ); | 868 | if ( p->mShowIconNavigator ) mToggleNav ->addTo( iconToolBar ); |
856 | 869 | ||
857 | //******************** | 870 | //******************** |
858 | if ( p->mShowIconAllday ) mToggleAllday->addTo( iconToolBar ); | 871 | if ( p->mShowIconAllday ) mToggleAllday->addTo( iconToolBar ); |
859 | 872 | ||
860 | 873 | ||
861 | icon = loadPixmap( pathString + "whatsnext" ); | 874 | icon = loadPixmap( pathString + "whatsnext" ); |
862 | configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110 ); | 875 | configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110 ); |
863 | QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this ); | 876 | QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this ); |
864 | whatsnext_action->addTo( viewMenu ); | 877 | whatsnext_action->addTo( viewMenu ); |
865 | connect( whatsnext_action, SIGNAL( activated() ), | 878 | connect( whatsnext_action, SIGNAL( activated() ), |
866 | mView->viewManager(), SLOT( showWhatsNextView() ) ); | 879 | mView->viewManager(), SLOT( showWhatsNextView() ) ); |
867 | 880 | ||
868 | icon = loadPixmap( pathString + "xdays" ); | 881 | icon = loadPixmap( pathString + "xdays" ); |
869 | configureToolBarMenu->insertItem(icon, i18n("Next days"), 100 ); | 882 | configureToolBarMenu->insertItem(icon, i18n("Next days"), 100 ); |
870 | QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this ); | 883 | QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this ); |
871 | xdays_action->addTo( viewMenu ); | 884 | xdays_action->addTo( viewMenu ); |
872 | connect( xdays_action, SIGNAL( activated() ), | 885 | connect( xdays_action, SIGNAL( activated() ), |
873 | mView->viewManager(), SLOT( showNextXView() ) ); | 886 | mView->viewManager(), SLOT( showNextXView() ) ); |
874 | 887 | ||
875 | 888 | ||
876 | icon = loadPixmap( pathString + "journal" ); | 889 | icon = loadPixmap( pathString + "journal" ); |
877 | configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 ); | 890 | configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 ); |
878 | QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this ); | 891 | QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this ); |
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index c9817c3..a4d0523 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -1,170 +1,171 @@ | |||
1 | #ifndef KORGE_MAINWINDOW_H | 1 | #ifndef KORGE_MAINWINDOW_H |
2 | #define KORGE_MAINWINDOW_H | 2 | #define KORGE_MAINWINDOW_H |
3 | 3 | ||
4 | #include <qmainwindow.h> | 4 | #include <qmainwindow.h> |
5 | #include <qtimer.h> | 5 | #include <qtimer.h> |
6 | #include <qdict.h> | 6 | #include <qdict.h> |
7 | #include <qfile.h> | 7 | #include <qfile.h> |
8 | #include <qmenubar.h> | 8 | #include <qmenubar.h> |
9 | #include <qtextstream.h> | 9 | #include <qtextstream.h> |
10 | #include <qregexp.h> | 10 | #include <qregexp.h> |
11 | 11 | ||
12 | #include <libkcal/incidence.h> | 12 | #include <libkcal/incidence.h> |
13 | #include <ksyncmanager.h> | 13 | #include <ksyncmanager.h> |
14 | #ifndef DESKTOP_VERSION | 14 | #ifndef DESKTOP_VERSION |
15 | #include <qcopchannel_qws.h> | 15 | #include <qcopchannel_qws.h> |
16 | #endif | 16 | #endif |
17 | class QAction; | 17 | class QAction; |
18 | class CalendarView; | 18 | class CalendarView; |
19 | class KSyncProfile; | 19 | class KSyncProfile; |
20 | #ifdef DESKTOP_VERSION | 20 | #ifdef DESKTOP_VERSION |
21 | 21 | ||
22 | #define QPEToolBar QToolBar | 22 | #define QPEToolBar QToolBar |
23 | #define QPEMenuBar QMenuBar | 23 | #define QPEMenuBar QMenuBar |
24 | #endif | 24 | #endif |
25 | class QPEToolBar; | 25 | class QPEToolBar; |
26 | class QPEMenuBar; | 26 | class QPEMenuBar; |
27 | 27 | ||
28 | 28 | ||
29 | namespace KCal { | 29 | namespace KCal { |
30 | class CalendarLocal; | 30 | class CalendarLocal; |
31 | } | 31 | } |
32 | 32 | ||
33 | using namespace KCal; | 33 | using namespace KCal; |
34 | 34 | ||
35 | class MainWindow : public QMainWindow | 35 | class MainWindow : public QMainWindow |
36 | { | 36 | { |
37 | Q_OBJECT | 37 | Q_OBJECT |
38 | public: | 38 | public: |
39 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); | 39 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); |
40 | ~MainWindow(); | 40 | ~MainWindow(); |
41 | bool beamReceiveEnabled(); | 41 | bool beamReceiveEnabled(); |
42 | static QString defaultFileName(); | 42 | static QString defaultFileName(); |
43 | static QString syncFileName(); | 43 | static QString syncFileName(); |
44 | static QString resourcePath(); | 44 | static QString resourcePath(); |
45 | public slots: | 45 | public slots: |
46 | void setUsesBigPixmaps ( bool ); | 46 | void setUsesBigPixmaps ( bool ); |
47 | void setCaption ( const QString & ); | 47 | void setCaption ( const QString & ); |
48 | void updateWeekNum(const KCal::DateList &); | 48 | void updateWeekNum(const KCal::DateList &); |
49 | void updateWeek(QDate); | 49 | void updateWeek(QDate); |
50 | void updateFilterToolbar(); | 50 | void updateFilterToolbar(); |
51 | virtual void showMaximized (); | 51 | virtual void showMaximized (); |
52 | void configureAgenda( int ); | 52 | void configureAgenda( int ); |
53 | void recieve( const QCString& msg, const QByteArray& data ); | 53 | void recieve( const QCString& msg, const QByteArray& data ); |
54 | protected slots: | 54 | protected slots: |
55 | void startMultiSync(); | ||
55 | void setCaptionToDates(); | 56 | void setCaptionToDates(); |
56 | void weekAction(); | 57 | void weekAction(); |
57 | void about(); | 58 | void about(); |
58 | void licence(); | 59 | void licence(); |
59 | void faq(); | 60 | void faq(); |
60 | void usertrans(); | 61 | void usertrans(); |
61 | void features(); | 62 | void features(); |
62 | void synchowto(); | 63 | void synchowto(); |
63 | void storagehowto(); | 64 | void storagehowto(); |
64 | void timetrackinghowto(); | 65 | void timetrackinghowto(); |
65 | void kdesynchowto(); | 66 | void kdesynchowto(); |
66 | void multisynchowto(); | 67 | void multisynchowto(); |
67 | void whatsNew(); | 68 | void whatsNew(); |
68 | void keyBindings(); | 69 | void keyBindings(); |
69 | void aboutAutoSaving();; | 70 | void aboutAutoSaving();; |
70 | void aboutKnownBugs(); | 71 | void aboutKnownBugs(); |
71 | 72 | ||
72 | void processIncidenceSelection( Incidence * ); | 73 | void processIncidenceSelection( Incidence * ); |
73 | 74 | ||
74 | void importQtopia(); | 75 | void importQtopia(); |
75 | void importBday(); | 76 | void importBday(); |
76 | void importOL(); | 77 | void importOL(); |
77 | void importIcal(); | 78 | void importIcal(); |
78 | void importFile( QString, bool ); | 79 | void importFile( QString, bool ); |
79 | void quickImportIcal(); | 80 | void quickImportIcal(); |
80 | 81 | ||
81 | void slotModifiedChanged( bool ); | 82 | void slotModifiedChanged( bool ); |
82 | 83 | ||
83 | void save(); | 84 | void save(); |
84 | void backupAllFiles(); | 85 | void backupAllFiles(); |
85 | void saveStopTimer(); | 86 | void saveStopTimer(); |
86 | void configureToolBar( int ); | 87 | void configureToolBar( int ); |
87 | void printSel(); | 88 | void printSel(); |
88 | void printCal(); | 89 | void printCal(); |
89 | void printListView(); | 90 | void printListView(); |
90 | void saveCalendar(); | 91 | void saveCalendar(); |
91 | void loadCalendar(); | 92 | void loadCalendar(); |
92 | void exportVCalendar(); | 93 | void exportVCalendar(); |
93 | void fillFilterMenu(); | 94 | void fillFilterMenu(); |
94 | void fillFilterMenuTB(); | 95 | void fillFilterMenuTB(); |
95 | void selectFilter( int ); | 96 | void selectFilter( int ); |
96 | void fillFilterMenuPopup(); | 97 | void fillFilterMenuPopup(); |
97 | void selectFilterPopup( int ); | 98 | void selectFilterPopup( int ); |
98 | void exportToPhone( int ); | 99 | void exportToPhone( int ); |
99 | void toggleBeamReceive(); | 100 | void toggleBeamReceive(); |
100 | void disableBR(bool); | 101 | void disableBR(bool); |
101 | signals: | 102 | signals: |
102 | void selectWeek ( int ); | 103 | void selectWeek ( int ); |
103 | private slots: | 104 | private slots: |
104 | void showConfigureAgenda(); | 105 | void showConfigureAgenda(); |
105 | void getFile( bool ); | 106 | void getFile( bool ); |
106 | void syncFileRequest(); | 107 | void syncFileRequest(); |
107 | 108 | ||
108 | protected: | 109 | protected: |
109 | void hideEvent ( QHideEvent * ); | 110 | void hideEvent ( QHideEvent * ); |
110 | QString sentSyncFile(); | 111 | QString sentSyncFile(); |
111 | void displayText( QString, QString); | 112 | void displayText( QString, QString); |
112 | void enableIncidenceActions( bool ); | 113 | void enableIncidenceActions( bool ); |
113 | 114 | ||
114 | private: | 115 | private: |
115 | bool mBRdisabled; | 116 | bool mBRdisabled; |
116 | #ifndef DESKTOP_VERSION | 117 | #ifndef DESKTOP_VERSION |
117 | QCopChannel* infrared; | 118 | QCopChannel* infrared; |
118 | #endif | 119 | #endif |
119 | QAction* brAction; | 120 | QAction* brAction; |
120 | KSyncManager* mSyncManager; | 121 | KSyncManager* mSyncManager; |
121 | bool mClosed; | 122 | bool mClosed; |
122 | void saveOnClose(); | 123 | void saveOnClose(); |
123 | bool mFlagKeyPressed; | 124 | bool mFlagKeyPressed; |
124 | bool mBlockAtStartup; | 125 | bool mBlockAtStartup; |
125 | QPEToolBar *iconToolBar; | 126 | QPEToolBar *iconToolBar; |
126 | QPEToolBar *viewToolBar; | 127 | QPEToolBar *viewToolBar; |
127 | QPEToolBar *navigatorToolBar; | 128 | QPEToolBar *navigatorToolBar; |
128 | QPEToolBar *filterToolBar; | 129 | QPEToolBar *filterToolBar; |
129 | QMenuBar *filterMenubar; | 130 | QMenuBar *filterMenubar; |
130 | QPopupMenu * filterPopupMenu; | 131 | QPopupMenu * filterPopupMenu; |
131 | void initActions(); | 132 | void initActions(); |
132 | void setDefaultPreferences(); | 133 | void setDefaultPreferences(); |
133 | void resizeEvent( QResizeEvent* e); | 134 | void resizeEvent( QResizeEvent* e); |
134 | void keyPressEvent ( QKeyEvent * ) ; | 135 | void keyPressEvent ( QKeyEvent * ) ; |
135 | void keyReleaseEvent ( QKeyEvent * ) ; | 136 | void keyReleaseEvent ( QKeyEvent * ) ; |
136 | QPopupMenu *configureToolBarMenu; | 137 | QPopupMenu *configureToolBarMenu; |
137 | QPopupMenu *selectFilterMenu; | 138 | QPopupMenu *selectFilterMenu; |
138 | QPopupMenu *selectFilterMenuTB; | 139 | QPopupMenu *selectFilterMenuTB; |
139 | QPopupMenu *configureAgendaMenu, *syncMenu; | 140 | QPopupMenu *configureAgendaMenu, *syncMenu; |
140 | CalendarLocal *mCalendar; | 141 | CalendarLocal *mCalendar; |
141 | CalendarView *mView; | 142 | CalendarView *mView; |
142 | QAction *mNewSubTodoAction; | 143 | QAction *mNewSubTodoAction; |
143 | QAction *mWeekAction; | 144 | QAction *mWeekAction; |
144 | QFont mWeekFont; | 145 | QFont mWeekFont; |
145 | QPixmap mWeekPixmap; | 146 | QPixmap mWeekPixmap; |
146 | QColor mWeekBgColor; | 147 | QColor mWeekBgColor; |
147 | 148 | ||
148 | QAction *mShowAction; | 149 | QAction *mShowAction; |
149 | QAction *mEditAction; | 150 | QAction *mEditAction; |
150 | QAction *mDeleteAction; | 151 | QAction *mDeleteAction; |
151 | QAction *mCloneAction; | 152 | QAction *mCloneAction; |
152 | QAction *mMoveAction; | 153 | QAction *mMoveAction; |
153 | QAction *mBeamAction; | 154 | QAction *mBeamAction; |
154 | QAction *mCancelAction; | 155 | QAction *mCancelAction; |
155 | 156 | ||
156 | QAction *mToggleNav; | 157 | QAction *mToggleNav; |
157 | QAction *mToggleFilter; | 158 | QAction *mToggleFilter; |
158 | QAction *mToggleAllday; | 159 | QAction *mToggleAllday; |
159 | QAction *actionFilterMenuTB; | 160 | QAction *actionFilterMenuTB; |
160 | 161 | ||
161 | void closeEvent( QCloseEvent* ce ); | 162 | void closeEvent( QCloseEvent* ce ); |
162 | QTimer mSaveTimer; | 163 | QTimer mSaveTimer; |
163 | //bool mBlockSaveFlag; | 164 | //bool mBlockSaveFlag; |
164 | bool mCalendarModifiedFlag; | 165 | bool mCalendarModifiedFlag; |
165 | QPixmap loadPixmap( QString ); | 166 | QPixmap loadPixmap( QString ); |
166 | QPixmap listviewPix, listviewPix0, listviewPix20, listviewPix40, listviewPix60, listviewPix80; | 167 | QPixmap listviewPix, listviewPix0, listviewPix20, listviewPix40, listviewPix60, listviewPix80; |
167 | }; | 168 | }; |
168 | 169 | ||
169 | 170 | ||
170 | #endif | 171 | #endif |
diff --git a/libkdepim/externalapphandler.cpp b/libkdepim/externalapphandler.cpp index 0e9c5e5..2ce6926 100644 --- a/libkdepim/externalapphandler.cpp +++ b/libkdepim/externalapphandler.cpp | |||
@@ -1,288 +1,289 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkdepim. | 2 | This file is part of libkdepim. |
3 | Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | /* | 24 | /* |
25 | Enhanced Version of the file for platform independent KDE tools. | 25 | Enhanced Version of the file for platform independent KDE tools. |
26 | Copyright (c) 2004 Ulf Schenk | 26 | Copyright (c) 2004 Ulf Schenk |
27 | 27 | ||
28 | $Id$ | 28 | $Id$ |
29 | */ | 29 | */ |
30 | #include <stdlib.h> | 30 | #include <stdlib.h> |
31 | 31 | ||
32 | #include <qfile.h> | 32 | #include <qfile.h> |
33 | #include <qtimer.h> | ||
33 | #include <qmap.h> | 34 | #include <qmap.h> |
34 | #include <qregexp.h> | 35 | #include <qregexp.h> |
35 | 36 | ||
36 | #ifndef DESKTOP_VERSION | 37 | #ifndef DESKTOP_VERSION |
37 | #include <qpe/qpeapplication.h> | 38 | #include <qpe/qpeapplication.h> |
38 | #include <qtopia/qcopenvelope_qws.h> | 39 | #include <qtopia/qcopenvelope_qws.h> |
39 | #else | 40 | #else |
40 | #include <qapplication.h> | 41 | #include <qapplication.h> |
41 | #endif | 42 | #endif |
42 | 43 | ||
43 | #include <kstaticdeleter.h> | 44 | #include <kstaticdeleter.h> |
44 | #include <kmessagebox.h> | 45 | #include <kmessagebox.h> |
45 | 46 | ||
46 | 47 | ||
47 | #include "externalapphandler.h" | 48 | #include "externalapphandler.h" |
48 | 49 | ||
49 | #include "kpimglobalprefs.h" | 50 | #include "kpimglobalprefs.h" |
50 | 51 | ||
51 | //uncomment line to get debug output | 52 | //uncomment line to get debug output |
52 | //#define DEBUG_EXT_APP_HANDLER | 53 | //#define DEBUG_EXT_APP_HANDLER |
53 | 54 | ||
54 | /********************************************************************************* | 55 | /********************************************************************************* |
55 | * | 56 | * |
56 | ********************************************************************************/ | 57 | ********************************************************************************/ |
57 | 58 | ||
58 | 59 | ||
59 | QCopTransferItem::QCopTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage) | 60 | QCopTransferItem::QCopTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage) |
60 | : _usedSourceParameters(usedSourceParameters), _sourceMessage(sourceMessage), _targetChannel(targetChannel), _targetMessage(targetMessage) | 61 | : _usedSourceParameters(usedSourceParameters), _sourceMessage(sourceMessage), _targetChannel(targetChannel), _targetMessage(targetMessage) |
61 | { | 62 | { |
62 | //sourceMessage passes later three parameters: sourceChannel, uid, param1 | 63 | //sourceMessage passes later three parameters: sourceChannel, uid, param1 |
63 | if (_usedSourceParameters == 0) | 64 | if (_usedSourceParameters == 0) |
64 | _sourceMessageParameters = "QString,QString)"; | 65 | _sourceMessageParameters = "QString,QString)"; |
65 | else if (_usedSourceParameters == 1) | 66 | else if (_usedSourceParameters == 1) |
66 | _sourceMessageParameters = "(QString,QString,QString)"; | 67 | _sourceMessageParameters = "(QString,QString,QString)"; |
67 | else if (_usedSourceParameters == 2) | 68 | else if (_usedSourceParameters == 2) |
68 | _sourceMessageParameters = "(QString,QString,QString,QString)"; | 69 | _sourceMessageParameters = "(QString,QString,QString,QString)"; |
69 | else if (_usedSourceParameters == 3) | 70 | else if (_usedSourceParameters == 3) |
70 | _sourceMessageParameters = "(QString,QString,QString,QString,QString)"; | 71 | _sourceMessageParameters = "(QString,QString,QString,QString,QString)"; |
71 | } | 72 | } |
72 | 73 | ||
73 | /*********************************************************************************/ | 74 | /*********************************************************************************/ |
74 | 75 | ||
75 | QCopTransferItem::QCopTransferItem() | 76 | QCopTransferItem::QCopTransferItem() |
76 | { | 77 | { |
77 | } | 78 | } |
78 | 79 | ||
79 | /*********************************************************************************/ | 80 | /*********************************************************************************/ |
80 | bool QCopTransferItem::sendMessageToTarget(const QString& uid, const QString& param1, const QString& param2, const QString& param3) | 81 | bool QCopTransferItem::sendMessageToTarget(const QString& uid, const QString& param1, const QString& param2, const QString& param3) |
81 | { | 82 | { |
82 | 83 | ||
83 | #ifndef DESKTOP_VERSION | 84 | #ifndef DESKTOP_VERSION |
84 | //sourceMessage passes two parameters: sourceChannel, uid | 85 | //sourceMessage passes two parameters: sourceChannel, uid |
85 | QString sourceMessage = _sourceMessage + _sourceMessageParameters; | 86 | QString sourceMessage = _sourceMessage + _sourceMessageParameters; |
86 | #ifdef DEBUG_EXT_APP_HANDLER | 87 | #ifdef DEBUG_EXT_APP_HANDLER |
87 | qDebug("1Using QCopEnvelope e(\"%s\",\"%s\")", _targetChannel.latin1(), sourceMessage.latin1()); | 88 | qDebug("1Using QCopEnvelope e(\"%s\",\"%s\")", _targetChannel.latin1(), sourceMessage.latin1()); |
88 | qDebug("passing sourcechannel(%s), uid(%s), param1(%s), param2(%s), param3(%s) as parameter to QCopEnvelope", _sourceChannel.latin1(), uid.latin1(), param1.latin1(), param2.latin1(), param3.latin1()); | 89 | qDebug("passing sourcechannel(%s), uid(%s), param1(%s), param2(%s), param3(%s) as parameter to QCopEnvelope", _sourceChannel.latin1(), uid.latin1(), param1.latin1(), param2.latin1(), param3.latin1()); |
89 | #endif | 90 | #endif |
90 | 91 | ||
91 | QCopEnvelope e(_targetChannel.latin1(), sourceMessage.latin1()); | 92 | QCopEnvelope e(_targetChannel.latin1(), sourceMessage.latin1()); |
92 | 93 | ||
93 | e << _sourceChannel << uid; | 94 | e << _sourceChannel << uid; |
94 | 95 | ||
95 | if (_usedSourceParameters == 1) | 96 | if (_usedSourceParameters == 1) |
96 | e << param1; | 97 | e << param1; |
97 | else if (_usedSourceParameters == 2) | 98 | else if (_usedSourceParameters == 2) |
98 | e << param1 << param2; | 99 | e << param1 << param2; |
99 | else if (_usedSourceParameters == 3) | 100 | else if (_usedSourceParameters == 3) |
100 | e << param1 << param2 << param3; | 101 | e << param1 << param2 << param3; |
101 | 102 | ||
102 | qApp->processEvents(); | 103 | qApp->processEvents(); |
103 | 104 | ||
104 | return true; | 105 | return true; |
105 | 106 | ||
106 | #else | 107 | #else |
107 | KMessageBox::sorry( 0, i18n( "This version does not support QCop." ) ); | 108 | KMessageBox::sorry( 0, i18n( "This version does not support QCop." ) ); |
108 | return false; | 109 | return false; |
109 | #endif | 110 | #endif |
110 | 111 | ||
111 | } | 112 | } |
112 | 113 | ||
113 | 114 | ||
114 | /*********************************************************************************/ | 115 | /*********************************************************************************/ |
115 | void QCopTransferItem::setSourceChannel(const QString& sourceChannel) | 116 | void QCopTransferItem::setSourceChannel(const QString& sourceChannel) |
116 | { | 117 | { |
117 | 118 | ||
118 | if ( !sourceChannel.isEmpty()) | 119 | if ( !sourceChannel.isEmpty()) |
119 | _sourceChannel = sourceChannel; | 120 | _sourceChannel = sourceChannel; |
120 | } | 121 | } |
121 | 122 | ||
122 | 123 | ||
123 | /*********************************************************************************/ | 124 | /*********************************************************************************/ |
124 | bool QCopTransferItem::appMessage( const QCString& cmsg, const QByteArray& data ) | 125 | bool QCopTransferItem::appMessage( const QCString& cmsg, const QByteArray& data ) |
125 | { | 126 | { |
126 | 127 | ||
127 | // copied from old mail2 | 128 | // copied from old mail2 |
128 | /* | 129 | /* |
129 | static int ii = 0; | 130 | static int ii = 0; |
130 | 131 | ||
131 | // block second call | 132 | // block second call |
132 | if ( ii < 2 ) { | 133 | if ( ii < 2 ) { |
133 | ++ii; | 134 | ++ii; |
134 | if ( ii > 1 ) { | 135 | if ( ii > 1 ) { |
135 | qDebug("qcop call blocked "); | 136 | qDebug("qcop call blocked "); |
136 | return true; | 137 | return true; |
137 | } | 138 | } |
138 | } | 139 | } |
139 | */ | 140 | */ |
140 | 141 | ||
141 | // qDebug("QCopTransferItem- QCOP message received: %s ", cmsg.data() ); | 142 | // qDebug("QCopTransferItem- QCOP message received: %s ", cmsg.data() ); |
142 | 143 | ||
143 | //we are in the target and get a request from the source | 144 | //we are in the target and get a request from the source |
144 | if ( (_sourceMessage + _sourceMessageParameters) == cmsg.data()) | 145 | if ( (_sourceMessage + _sourceMessageParameters) == cmsg.data()) |
145 | { | 146 | { |
146 | 147 | ||
147 | QDataStream stream( data, IO_ReadOnly ); | 148 | QDataStream stream( data, IO_ReadOnly ); |
148 | 149 | ||
149 | 150 | ||
150 | QString sourceChannel; | 151 | QString sourceChannel; |
151 | QString uid; | 152 | QString uid; |
152 | QString param1; | 153 | QString param1; |
153 | QString param2; | 154 | QString param2; |
154 | QString param3; | 155 | QString param3; |
155 | 156 | ||
156 | stream >> sourceChannel >> uid; | 157 | stream >> sourceChannel >> uid; |
157 | 158 | ||
158 | if (_usedSourceParameters == 0) | 159 | if (_usedSourceParameters == 0) |
159 | { | 160 | { |
160 | emit receivedMessageFromSource(sourceChannel, uid); | 161 | emit receivedMessageFromSource(sourceChannel, uid); |
161 | } | 162 | } |
162 | else if (_usedSourceParameters == 1) | 163 | else if (_usedSourceParameters == 1) |
163 | { | 164 | { |
164 | stream >> param1; | 165 | stream >> param1; |
165 | emit receivedMessageFromSource(sourceChannel, uid, param1); | 166 | emit receivedMessageFromSource(sourceChannel, uid, param1); |
166 | } | 167 | } |
167 | else if (_usedSourceParameters == 2) | 168 | else if (_usedSourceParameters == 2) |
168 | { | 169 | { |
169 | stream >> param1 >> param2; | 170 | stream >> param1 >> param2; |
170 | emit receivedMessageFromSource(sourceChannel, uid, param1, param2); | 171 | emit receivedMessageFromSource(sourceChannel, uid, param1, param2); |
171 | } | 172 | } |
172 | else if (_usedSourceParameters == 3) | 173 | else if (_usedSourceParameters == 3) |
173 | { | 174 | { |
174 | stream >> param1 >> param2 >> param3; | 175 | stream >> param1 >> param2 >> param3; |
175 | emit receivedMessageFromSource(sourceChannel, uid, param1, param2, param3); | 176 | emit receivedMessageFromSource(sourceChannel, uid, param1, param2, param3); |
176 | } | 177 | } |
177 | 178 | ||
178 | return true; | 179 | return true; |
179 | } | 180 | } |
180 | 181 | ||
181 | return false; | 182 | return false; |
182 | } | 183 | } |
183 | 184 | ||
184 | 185 | ||
185 | /********************************************************************************* | 186 | /********************************************************************************* |
186 | * | 187 | * |
187 | ********************************************************************************/ | 188 | ********************************************************************************/ |
188 | 189 | ||
189 | 190 | ||
190 | QCopMapTransferItem::QCopMapTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage) | 191 | QCopMapTransferItem::QCopMapTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage) |
191 | : QCopTransferItem(usedSourceParameters, sourceMessage, targetChannel,targetMessage) | 192 | : QCopTransferItem(usedSourceParameters, sourceMessage, targetChannel,targetMessage) |
192 | { | 193 | { |
193 | //targetMessage returns later two parameters: uid, and map<qstring,qstring> | 194 | //targetMessage returns later two parameters: uid, and map<qstring,qstring> |
194 | _targetMessageParameters = "(QString,QMAP<QString,QString>)"; | 195 | _targetMessageParameters = "(QString,QMAP<QString,QString>)"; |
195 | } | 196 | } |
196 | 197 | ||
197 | /*********************************************************************************/ | 198 | /*********************************************************************************/ |
198 | bool QCopMapTransferItem::sendMessageToSource(const QString& uid, const QMap<QString,QString>& nameEmailMap) | 199 | bool QCopMapTransferItem::sendMessageToSource(const QString& uid, const QMap<QString,QString>& nameEmailMap) |
199 | { | 200 | { |
200 | #ifndef DESKTOP_VERSION | 201 | #ifndef DESKTOP_VERSION |
201 | //targetMessage passes two parameters: uid, map | 202 | //targetMessage passes two parameters: uid, map |
202 | QString targetMessage = _targetMessage + _targetMessageParameters; | 203 | QString targetMessage = _targetMessage + _targetMessageParameters; |
203 | 204 | ||
204 | #ifdef DEBUG_EXT_APP_HANDLER | 205 | #ifdef DEBUG_EXT_APP_HANDLER |
205 | qDebug("2Using QCopEnvelope e(\"%s\",\"%s\")", _sourceChannel.latin1(), targetMessage.latin1()); | 206 | qDebug("2Using QCopEnvelope e(\"%s\",\"%s\")", _sourceChannel.latin1(), targetMessage.latin1()); |
206 | qDebug("passing uid(%s) and map as parameter to QCopEnvelope", uid.latin1()); | 207 | qDebug("passing uid(%s) and map as parameter to QCopEnvelope", uid.latin1()); |
207 | #endif | 208 | #endif |
208 | 209 | ||
209 | QCopEnvelope e(_sourceChannel.latin1(), targetMessage.latin1()); | 210 | QCopEnvelope e(_sourceChannel.latin1(), targetMessage.latin1()); |
210 | //US we need no names in the To field. The emailadresses are enough | 211 | //US we need no names in the To field. The emailadresses are enough |
211 | 212 | ||
212 | e << uid << nameEmailMap; | 213 | e << uid << nameEmailMap; |
213 | 214 | ||
214 | qApp->processEvents(); | 215 | qApp->processEvents(); |
215 | 216 | ||
216 | return true; | 217 | return true; |
217 | 218 | ||
218 | #else | 219 | #else |
219 | KMessageBox::sorry( 0, i18n( "This version does not support QCop." ) ); | 220 | KMessageBox::sorry( 0, i18n( "This version does not support QCop." ) ); |
220 | return false; | 221 | return false; |
221 | #endif | 222 | #endif |
222 | 223 | ||
223 | } | 224 | } |
224 | 225 | ||
225 | 226 | ||
226 | /*********************************************************************************/ | 227 | /*********************************************************************************/ |
227 | bool QCopMapTransferItem::appMessage( const QCString& cmsg, const QByteArray& data ) | 228 | bool QCopMapTransferItem::appMessage( const QCString& cmsg, const QByteArray& data ) |
228 | { | 229 | { |
229 | bool res = QCopTransferItem::appMessage( cmsg, data ); | 230 | bool res = QCopTransferItem::appMessage( cmsg, data ); |
230 | 231 | ||
231 | if (res == false) | 232 | if (res == false) |
232 | { | 233 | { |
233 | QDataStream stream( data, IO_ReadOnly ); | 234 | QDataStream stream( data, IO_ReadOnly ); |
234 | 235 | ||
235 | // qDebug("QCopMapTransferItem- QCOP message received: %s ", cmsg.data() ); | 236 | // qDebug("QCopMapTransferItem- QCOP message received: %s ", cmsg.data() ); |
236 | 237 | ||
237 | //we are in the source and get an answer from the target | 238 | //we are in the source and get an answer from the target |
238 | if ((_targetMessage + _targetMessageParameters) == cmsg.data()) | 239 | if ((_targetMessage + _targetMessageParameters) == cmsg.data()) |
239 | { | 240 | { |
240 | QMap<QString,QString> adrMap; | 241 | QMap<QString,QString> adrMap; |
241 | QString uid; | 242 | QString uid; |
242 | 243 | ||
243 | stream >> uid >> adrMap; | 244 | stream >> uid >> adrMap; |
244 | 245 | ||
245 | emit receivedMessageFromTarget(uid, adrMap); | 246 | emit receivedMessageFromTarget(uid, adrMap); |
246 | 247 | ||
247 | 248 | ||
248 | return true; | 249 | return true; |
249 | } | 250 | } |
250 | } | 251 | } |
251 | 252 | ||
252 | return false; | 253 | return false; |
253 | } | 254 | } |
254 | 255 | ||
255 | 256 | ||
256 | /********************************************************************************* | 257 | /********************************************************************************* |
257 | * | 258 | * |
258 | ********************************************************************************/ | 259 | ********************************************************************************/ |
259 | 260 | ||
260 | QCopListTransferItem::~QCopListTransferItem() | 261 | QCopListTransferItem::~QCopListTransferItem() |
261 | { | 262 | { |
262 | 263 | ||
263 | } | 264 | } |
264 | 265 | ||
265 | QCopListTransferItem::QCopListTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage) | 266 | QCopListTransferItem::QCopListTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage) |
266 | : QCopTransferItem(usedSourceParameters, sourceMessage, targetChannel,targetMessage) | 267 | : QCopTransferItem(usedSourceParameters, sourceMessage, targetChannel,targetMessage) |
267 | { | 268 | { |
268 | //targetMessage returns later two parameters: uid, and three lists | 269 | //targetMessage returns later two parameters: uid, and three lists |
269 | _targetMessageParameters = "(QString,QStringList,QStringList,QStringList,QStringList,QStringList,QStringList)"; | 270 | _targetMessageParameters = "(QString,QStringList,QStringList,QStringList,QStringList,QStringList,QStringList)"; |
270 | } | 271 | } |
271 | 272 | ||
272 | /*********************************************************************************/ | 273 | /*********************************************************************************/ |
273 | bool QCopListTransferItem::sendMessageToSource(const QString& uid, const QStringList& list1, const QStringList& list2, const QStringList& list3, const QStringList& list4, const QStringList& list5, const QStringList& list6) | 274 | bool QCopListTransferItem::sendMessageToSource(const QString& uid, const QStringList& list1, const QStringList& list2, const QStringList& list3, const QStringList& list4, const QStringList& list5, const QStringList& list6) |
274 | { | 275 | { |
275 | #ifndef DESKTOP_VERSION | 276 | #ifndef DESKTOP_VERSION |
276 | //targetMessage passes two parameters: uid, map | 277 | //targetMessage passes two parameters: uid, map |
277 | QString targetMessage = _targetMessage + _targetMessageParameters; | 278 | QString targetMessage = _targetMessage + _targetMessageParameters; |
278 | 279 | ||
279 | #ifdef DEBUG_EXT_APP_HANDLER | 280 | #ifdef DEBUG_EXT_APP_HANDLER |
280 | qDebug("3Using QCopEnvelope e(\"%s\",\"%s\")", _sourceChannel.latin1(), targetMessage.latin1()); | 281 | qDebug("3Using QCopEnvelope e(\"%s\",\"%s\")", _sourceChannel.latin1(), targetMessage.latin1()); |
281 | qDebug("passing uid(%s) and list1, list2, list3, list4, list5, list6 as parameter to QCopEnvelope", uid.latin1()); | 282 | qDebug("passing uid(%s) and list1, list2, list3, list4, list5, list6 as parameter to QCopEnvelope", uid.latin1()); |
282 | 283 | ||
283 | 284 | ||
284 | for ( int i = 0; i < list3.count(); i++) | 285 | for ( int i = 0; i < list3.count(); i++) |
285 | qDebug("listentry list3: %s",list3[i].latin1()); | 286 | qDebug("listentry list3: %s",list3[i].latin1()); |
286 | #endif | 287 | #endif |
287 | 288 | ||
288 | QCopEnvelope e(_sourceChannel.latin1(), targetMessage.latin1()); | 289 | QCopEnvelope e(_sourceChannel.latin1(), targetMessage.latin1()); |
@@ -876,336 +877,341 @@ bool ExternalAppHandler::callBySMS( const QString& phonenumber ) | |||
876 | QCopEnvelope e(channel.latin1(), message.latin1()); | 877 | QCopEnvelope e(channel.latin1(), message.latin1()); |
877 | //US we need no names in the To field. The emailadresses are enough | 878 | //US we need no names in the To field. The emailadresses are enough |
878 | 879 | ||
879 | passParameters(&e, parameters, phonenumber, ""); | 880 | passParameters(&e, parameters, phonenumber, ""); |
880 | 881 | ||
881 | 882 | ||
882 | #else | 883 | #else |
883 | KMessageBox::sorry( 0, i18n( "This version does not support the sending of sms." ) ); | 884 | KMessageBox::sorry( 0, i18n( "This version does not support the sending of sms." ) ); |
884 | #endif | 885 | #endif |
885 | 886 | ||
886 | 887 | ||
887 | return true; | 888 | return true; |
888 | } | 889 | } |
889 | 890 | ||
890 | /************************************************************************** | 891 | /************************************************************************** |
891 | * | 892 | * |
892 | **************************************************************************/ | 893 | **************************************************************************/ |
893 | 894 | ||
894 | //calls the pagerapplication with the number | 895 | //calls the pagerapplication with the number |
895 | bool ExternalAppHandler::callByPager( const QString& pagernumber ) | 896 | bool ExternalAppHandler::callByPager( const QString& pagernumber ) |
896 | { | 897 | { |
897 | #ifndef DESKTOP_VERSION | 898 | #ifndef DESKTOP_VERSION |
898 | QString channel; | 899 | QString channel; |
899 | QString message; | 900 | QString message; |
900 | QString parameters; | 901 | QString parameters; |
901 | 902 | ||
902 | 903 | ||
903 | int client = KPimGlobalPrefs::instance()->mPagerClient; | 904 | int client = KPimGlobalPrefs::instance()->mPagerClient; |
904 | if (client == KPimGlobalPrefs::OTHER_PAC) | 905 | if (client == KPimGlobalPrefs::OTHER_PAC) |
905 | { | 906 | { |
906 | channel = KPimGlobalPrefs::instance()->mPagerOtherChannel; | 907 | channel = KPimGlobalPrefs::instance()->mPagerOtherChannel; |
907 | message = KPimGlobalPrefs::instance()->mPagerOtherMessage; | 908 | message = KPimGlobalPrefs::instance()->mPagerOtherMessage; |
908 | parameters = KPimGlobalPrefs::instance()->mPagerOtherMessageParameters; | 909 | parameters = KPimGlobalPrefs::instance()->mPagerOtherMessageParameters; |
909 | } | 910 | } |
910 | else | 911 | else |
911 | { | 912 | { |
912 | DefaultAppItem* dai = ExternalAppHandler::getDefaultItem(PAGER, client); | 913 | DefaultAppItem* dai = ExternalAppHandler::getDefaultItem(PAGER, client); |
913 | if (!dai) | 914 | if (!dai) |
914 | { | 915 | { |
915 | qDebug("could not find configured pager application."); | 916 | qDebug("could not find configured pager application."); |
916 | return false; | 917 | return false; |
917 | } | 918 | } |
918 | channel = dai->_channel; | 919 | channel = dai->_channel; |
919 | message = dai->_message; | 920 | message = dai->_message; |
920 | parameters = dai->_parameters; | 921 | parameters = dai->_parameters; |
921 | } | 922 | } |
922 | 923 | ||
923 | 924 | ||
924 | //first check if one of the mailers need the emails right in the message. | 925 | //first check if one of the mailers need the emails right in the message. |
925 | message = translateMessage(message, pagernumber, ""); | 926 | message = translateMessage(message, pagernumber, ""); |
926 | 927 | ||
927 | 928 | ||
928 | #ifdef DEBUG_EXT_APP_HANDLER | 929 | #ifdef DEBUG_EXT_APP_HANDLER |
929 | qDebug("8Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); | 930 | qDebug("8Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); |
930 | qDebug("passing pagernumber(%s) as parameter in the form %s to QCopEnvelope", pagernumber.latin1(), parameters.latin1()); | 931 | qDebug("passing pagernumber(%s) as parameter in the form %s to QCopEnvelope", pagernumber.latin1(), parameters.latin1()); |
931 | #endif | 932 | #endif |
932 | 933 | ||
933 | QCopEnvelope e(channel.latin1(), message.latin1()); | 934 | QCopEnvelope e(channel.latin1(), message.latin1()); |
934 | //US we need no names in the To field. The emailadresses are enough | 935 | //US we need no names in the To field. The emailadresses are enough |
935 | 936 | ||
936 | passParameters(&e, parameters, pagernumber, ""); | 937 | passParameters(&e, parameters, pagernumber, ""); |
937 | 938 | ||
938 | 939 | ||
939 | #else | 940 | #else |
940 | KMessageBox::sorry( 0, i18n( "This version does not support paging." ) ); | 941 | KMessageBox::sorry( 0, i18n( "This version does not support paging." ) ); |
941 | #endif | 942 | #endif |
942 | 943 | ||
943 | 944 | ||
944 | return true; | 945 | return true; |
945 | } | 946 | } |
946 | 947 | ||
947 | /************************************************************************** | 948 | /************************************************************************** |
948 | * | 949 | * |
949 | **************************************************************************/ | 950 | **************************************************************************/ |
950 | 951 | ||
951 | //calls the faxapplication with the number | 952 | //calls the faxapplication with the number |
952 | bool ExternalAppHandler::callByFax( const QString& faxnumber ) | 953 | bool ExternalAppHandler::callByFax( const QString& faxnumber ) |
953 | { | 954 | { |
954 | #ifndef DESKTOP_VERSION | 955 | #ifndef DESKTOP_VERSION |
955 | QString channel; | 956 | QString channel; |
956 | QString message; | 957 | QString message; |
957 | QString parameters; | 958 | QString parameters; |
958 | 959 | ||
959 | 960 | ||
960 | int client = KPimGlobalPrefs::instance()->mFaxClient; | 961 | int client = KPimGlobalPrefs::instance()->mFaxClient; |
961 | if (client == KPimGlobalPrefs::OTHER_FAC) | 962 | if (client == KPimGlobalPrefs::OTHER_FAC) |
962 | { | 963 | { |
963 | channel = KPimGlobalPrefs::instance()->mFaxOtherChannel; | 964 | channel = KPimGlobalPrefs::instance()->mFaxOtherChannel; |
964 | message = KPimGlobalPrefs::instance()->mFaxOtherMessage; | 965 | message = KPimGlobalPrefs::instance()->mFaxOtherMessage; |
965 | parameters = KPimGlobalPrefs::instance()->mFaxOtherMessageParameters; | 966 | parameters = KPimGlobalPrefs::instance()->mFaxOtherMessageParameters; |
966 | } | 967 | } |
967 | else | 968 | else |
968 | { | 969 | { |
969 | DefaultAppItem* dai = ExternalAppHandler::getDefaultItem(FAX, client); | 970 | DefaultAppItem* dai = ExternalAppHandler::getDefaultItem(FAX, client); |
970 | if (!dai) | 971 | if (!dai) |
971 | { | 972 | { |
972 | qDebug("could not find configured fax application."); | 973 | qDebug("could not find configured fax application."); |
973 | return false; | 974 | return false; |
974 | } | 975 | } |
975 | channel = dai->_channel; | 976 | channel = dai->_channel; |
976 | message = dai->_message; | 977 | message = dai->_message; |
977 | parameters = dai->_parameters; | 978 | parameters = dai->_parameters; |
978 | } | 979 | } |
979 | 980 | ||
980 | 981 | ||
981 | //first check if one of the mailers need the emails right in the message. | 982 | //first check if one of the mailers need the emails right in the message. |
982 | message = translateMessage(message, faxnumber, ""); | 983 | message = translateMessage(message, faxnumber, ""); |
983 | 984 | ||
984 | 985 | ||
985 | #ifdef DEBUG_EXT_APP_HANDLER | 986 | #ifdef DEBUG_EXT_APP_HANDLER |
986 | qDebug("9Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); | 987 | qDebug("9Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); |
987 | qDebug("passing faxnumber(%s) as parameter in the form %s to QCopEnvelope", faxnumber.latin1(), parameters.latin1()); | 988 | qDebug("passing faxnumber(%s) as parameter in the form %s to QCopEnvelope", faxnumber.latin1(), parameters.latin1()); |
988 | #endif | 989 | #endif |
989 | 990 | ||
990 | QCopEnvelope e(channel.latin1(), message.latin1()); | 991 | QCopEnvelope e(channel.latin1(), message.latin1()); |
991 | //US we need no names in the To field. The emailadresses are enough | 992 | //US we need no names in the To field. The emailadresses are enough |
992 | 993 | ||
993 | passParameters(&e, parameters, faxnumber, ""); | 994 | passParameters(&e, parameters, faxnumber, ""); |
994 | 995 | ||
995 | 996 | ||
996 | #else | 997 | #else |
997 | KMessageBox::sorry( 0, i18n( "This version does not support the sending of faxes." ) ); | 998 | KMessageBox::sorry( 0, i18n( "This version does not support the sending of faxes." ) ); |
998 | #endif | 999 | #endif |
999 | 1000 | ||
1000 | 1001 | ||
1001 | return true; | 1002 | return true; |
1002 | } | 1003 | } |
1003 | 1004 | ||
1004 | /************************************************************************** | 1005 | /************************************************************************** |
1005 | * | 1006 | * |
1006 | **************************************************************************/ | 1007 | **************************************************************************/ |
1007 | 1008 | ||
1008 | //calls the sipapplication with the number | 1009 | //calls the sipapplication with the number |
1009 | bool ExternalAppHandler::callBySIP( const QString& sipnumber ) | 1010 | bool ExternalAppHandler::callBySIP( const QString& sipnumber ) |
1010 | { | 1011 | { |
1011 | #ifndef DESKTOP_VERSION | 1012 | #ifndef DESKTOP_VERSION |
1012 | QString channel; | 1013 | QString channel; |
1013 | QString message; | 1014 | QString message; |
1014 | QString parameters; | 1015 | QString parameters; |
1015 | 1016 | ||
1016 | 1017 | ||
1017 | int client = KPimGlobalPrefs::instance()->mSipClient; | 1018 | int client = KPimGlobalPrefs::instance()->mSipClient; |
1018 | if (client == KPimGlobalPrefs::OTHER_SIC) | 1019 | if (client == KPimGlobalPrefs::OTHER_SIC) |
1019 | { | 1020 | { |
1020 | channel = KPimGlobalPrefs::instance()->mSipOtherChannel; | 1021 | channel = KPimGlobalPrefs::instance()->mSipOtherChannel; |
1021 | message = KPimGlobalPrefs::instance()->mSipOtherMessage; | 1022 | message = KPimGlobalPrefs::instance()->mSipOtherMessage; |
1022 | parameters = KPimGlobalPrefs::instance()->mSipOtherMessageParameters; | 1023 | parameters = KPimGlobalPrefs::instance()->mSipOtherMessageParameters; |
1023 | } | 1024 | } |
1024 | else | 1025 | else |
1025 | { | 1026 | { |
1026 | DefaultAppItem* dai = ExternalAppHandler::getDefaultItem(SIP, client); | 1027 | DefaultAppItem* dai = ExternalAppHandler::getDefaultItem(SIP, client); |
1027 | if (!dai) | 1028 | if (!dai) |
1028 | { | 1029 | { |
1029 | qDebug("could not find configured sip application."); | 1030 | qDebug("could not find configured sip application."); |
1030 | return false; | 1031 | return false; |
1031 | } | 1032 | } |
1032 | channel = dai->_channel; | 1033 | channel = dai->_channel; |
1033 | message = dai->_message; | 1034 | message = dai->_message; |
1034 | parameters = dai->_parameters; | 1035 | parameters = dai->_parameters; |
1035 | } | 1036 | } |
1036 | 1037 | ||
1037 | 1038 | ||
1038 | //first check if one of the sip apps need the emails right in the message. | 1039 | //first check if one of the sip apps need the emails right in the message. |
1039 | message = translateMessage(message, sipnumber, ""); | 1040 | message = translateMessage(message, sipnumber, ""); |
1040 | 1041 | ||
1041 | 1042 | ||
1042 | #ifdef DEBUG_EXT_APP_HANDLER | 1043 | #ifdef DEBUG_EXT_APP_HANDLER |
1043 | qDebug("10Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); | 1044 | qDebug("10Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); |
1044 | qDebug("passing sipnumber(%s) as parameter in the form %s to QCopEnvelope", sipnumber.latin1(), parameters.latin1()); | 1045 | qDebug("passing sipnumber(%s) as parameter in the form %s to QCopEnvelope", sipnumber.latin1(), parameters.latin1()); |
1045 | #endif | 1046 | #endif |
1046 | 1047 | ||
1047 | QCopEnvelope e(channel.latin1(), message.latin1()); | 1048 | QCopEnvelope e(channel.latin1(), message.latin1()); |
1048 | //US we need no names in the To field. The emailadresses are enough | 1049 | //US we need no names in the To field. The emailadresses are enough |
1049 | 1050 | ||
1050 | passParameters(&e, parameters, sipnumber, ""); | 1051 | passParameters(&e, parameters, sipnumber, ""); |
1051 | 1052 | ||
1052 | 1053 | ||
1053 | #else | 1054 | #else |
1054 | KMessageBox::sorry( 0, i18n( "This version does not support sip." ) ); | 1055 | KMessageBox::sorry( 0, i18n( "This version does not support sip." ) ); |
1055 | #endif | 1056 | #endif |
1056 | 1057 | ||
1057 | 1058 | ||
1058 | return true; | 1059 | return true; |
1059 | } | 1060 | } |
1060 | 1061 | ||
1061 | 1062 | ||
1062 | /************************************************************************** | 1063 | /************************************************************************** |
1063 | * | 1064 | * |
1064 | **************************************************************************/ | 1065 | **************************************************************************/ |
1065 | 1066 | ||
1066 | 1067 | ||
1067 | QString& ExternalAppHandler::translateMessage(QString& message, const QString& param1, const QString& param2 ) const | 1068 | QString& ExternalAppHandler::translateMessage(QString& message, const QString& param1, const QString& param2 ) const |
1068 | { | 1069 | { |
1069 | message = message.replace( QRegExp("%1"), param1 ); | 1070 | message = message.replace( QRegExp("%1"), param1 ); |
1070 | return message.replace( QRegExp("%2"), param2 ); | 1071 | return message.replace( QRegExp("%2"), param2 ); |
1071 | } | 1072 | } |
1072 | 1073 | ||
1073 | /************************************************************************** | 1074 | /************************************************************************** |
1074 | * | 1075 | * |
1075 | **************************************************************************/ | 1076 | **************************************************************************/ |
1076 | 1077 | ||
1077 | void ExternalAppHandler::passParameters(QCopEnvelope* e, const QString& parameters, const QString& param1 , const QString& param2) const | 1078 | void ExternalAppHandler::passParameters(QCopEnvelope* e, const QString& parameters, const QString& param1 , const QString& param2) const |
1078 | { | 1079 | { |
1079 | #ifndef DESKTOP_VERSION | 1080 | #ifndef DESKTOP_VERSION |
1080 | QMap<QString, QString> valmap; | 1081 | QMap<QString, QString> valmap; |
1081 | bool useValMap = false; | 1082 | bool useValMap = false; |
1082 | 1083 | ||
1083 | // first extract all parts of the parameters. | 1084 | // first extract all parts of the parameters. |
1084 | QStringList paramlist = QStringList::split(";", parameters); | 1085 | QStringList paramlist = QStringList::split(";", parameters); |
1085 | 1086 | ||
1086 | //Now check how many parts we have. | 1087 | //Now check how many parts we have. |
1087 | //=0 :no params to pass | 1088 | //=0 :no params to pass |
1088 | //>0 :parameters to pass | 1089 | //>0 :parameters to pass |
1089 | for ( QStringList::Iterator it = paramlist.begin(); it != paramlist.end(); ++it ) | 1090 | for ( QStringList::Iterator it = paramlist.begin(); it != paramlist.end(); ++it ) |
1090 | { | 1091 | { |
1091 | QString param = (*it); | 1092 | QString param = (*it); |
1092 | QStringList keyvallist = QStringList::split("=", param); | 1093 | QStringList keyvallist = QStringList::split("=", param); |
1093 | 1094 | ||
1094 | //if we have keyvalue pairs, we assume that we pass a map to the envelope | 1095 | //if we have keyvalue pairs, we assume that we pass a map to the envelope |
1095 | QStringList::Iterator it2 = keyvallist.begin(); | 1096 | QStringList::Iterator it2 = keyvallist.begin(); |
1096 | QString key = (*it2); | 1097 | QString key = (*it2); |
1097 | key = key.replace( QRegExp("%1"), param1 ); | 1098 | key = key.replace( QRegExp("%1"), param1 ); |
1098 | key = key.replace( QRegExp("%2"), param2 ); | 1099 | key = key.replace( QRegExp("%2"), param2 ); |
1099 | ++it2; | 1100 | ++it2; |
1100 | 1101 | ||
1101 | if(it2 != keyvallist.end()) | 1102 | if(it2 != keyvallist.end()) |
1102 | { | 1103 | { |
1103 | QString value = (*it2); | 1104 | QString value = (*it2); |
1104 | value = value.replace( QRegExp("%1"), param1 ); | 1105 | value = value.replace( QRegExp("%1"), param1 ); |
1105 | value = value.replace( QRegExp("%2"), param2 ); | 1106 | value = value.replace( QRegExp("%2"), param2 ); |
1106 | 1107 | ||
1107 | valmap.insert(key, value); | 1108 | valmap.insert(key, value); |
1108 | useValMap = true; | 1109 | useValMap = true; |
1109 | } | 1110 | } |
1110 | else | 1111 | else |
1111 | { | 1112 | { |
1112 | // qDebug("pass parameter << %s", key.latin1()); | 1113 | // qDebug("pass parameter << %s", key.latin1()); |
1113 | (*e) << key; | 1114 | (*e) << key; |
1114 | } | 1115 | } |
1115 | } | 1116 | } |
1116 | 1117 | ||
1117 | if (useValMap == true) | 1118 | if (useValMap == true) |
1118 | (*e) << valmap; | 1119 | (*e) << valmap; |
1119 | 1120 | ||
1120 | #endif | 1121 | #endif |
1121 | 1122 | ||
1122 | } | 1123 | } |
1123 | 1124 | ||
1124 | 1125 | ||
1125 | 1126 | ||
1126 | /************************************************************************** | 1127 | /************************************************************************** |
1127 | * | 1128 | * |
1128 | **************************************************************************/ | 1129 | **************************************************************************/ |
1129 | 1130 | ||
1130 | void ExternalAppHandler::appMessage( const QCString& cmsg, const QByteArray& data ) | 1131 | void ExternalAppHandler::appMessage( const QCString& cmsg, const QByteArray& data ) |
1131 | { | 1132 | { |
1132 | 1133 | qDebug("ExternalAppHandler::appMessage %s %x", cmsg.data(), this); | |
1133 | if ( cmsg == "nextView()" ) { | 1134 | if ( cmsg == "nextView()" ) { |
1134 | qDebug("nextView()"); | 1135 | qDebug("nextView()"); |
1135 | emit nextView(); | 1136 | QTimer::singleShot( 0, this, SIGNAL ( nextView() )); |
1136 | return; | 1137 | return; |
1137 | } | 1138 | } |
1138 | if ( cmsg == "callContactdialog()" ) { | 1139 | if ( cmsg == "callContactdialog()" ) { |
1139 | qDebug("callContactdialog()"); | 1140 | qDebug("callContactdialog()"); |
1140 | emit callContactdialog(); | 1141 | QTimer::singleShot( 0, this, SIGNAL ( callContactdialog() )); |
1142 | return; | ||
1143 | } | ||
1144 | if ( cmsg == "doRingSync" ) { | ||
1145 | qDebug("doRingSync"); | ||
1146 | QTimer::singleShot( 0, this, SIGNAL ( doRingSync() )); | ||
1141 | return; | 1147 | return; |
1142 | } | 1148 | } |
1143 | 1149 | ||
1144 | bool res = mNameEmailUidListFromKAPITransfer->appMessage( cmsg, data ); | 1150 | bool res = mNameEmailUidListFromKAPITransfer->appMessage( cmsg, data ); |
1145 | if (!res) | 1151 | if (!res) |
1146 | res = mBirthdayListFromKAPITransfer->appMessage( cmsg, data ); | 1152 | res = mBirthdayListFromKAPITransfer->appMessage( cmsg, data ); |
1147 | 1153 | ||
1148 | if (!res) | 1154 | if (!res) |
1149 | res = mDisplayDetails->appMessage( cmsg, data ); | 1155 | res = mDisplayDetails->appMessage( cmsg, data ); |
1150 | 1156 | ||
1151 | // if (!res) | 1157 | // if (!res) |
1152 | // res = mNameEmailUidListFromKAPITransfer->appMessage( cmsg, data ); | 1158 | // res = mNameEmailUidListFromKAPITransfer->appMessage( cmsg, data ); |
1153 | } | 1159 | } |
1154 | 1160 | ||
1155 | 1161 | ||
1156 | 1162 | ||
1157 | bool ExternalAppHandler::requestNameEmailUidListFromKAPI(const QString& sourceChannel, const QString& sessionuid) | 1163 | bool ExternalAppHandler::requestNameEmailUidListFromKAPI(const QString& sourceChannel, const QString& sessionuid) |
1158 | { | 1164 | { |
1159 | mNameEmailUidListFromKAPITransfer->setSourceChannel(sourceChannel); | 1165 | mNameEmailUidListFromKAPITransfer->setSourceChannel(sourceChannel); |
1160 | // maybe we are sending to KA/Pi fom a different worldd... | 1166 | // maybe we are sending to KA/Pi fom a different worldd... |
1161 | // it may be that the QAplication::desktop()->width() values in KA/Pi are not the same as in our application | 1167 | // it may be that the QAplication::desktop()->width() values in KA/Pi are not the same as in our application |
1162 | // for that reason we send the current QApplication::desktop()->width() to KA/Pi | 1168 | // for that reason we send the current QApplication::desktop()->width() to KA/Pi |
1163 | //qDebug("UID %s ", sessionuid.latin1()); | 1169 | //qDebug("UID %s ", sessionuid.latin1()); |
1164 | //return mNameEmailUidListFromKAPITransfer->sendMessageToTarget(QString::number ( QApplication::desktop()->width() )); | 1170 | //return mNameEmailUidListFromKAPITransfer->sendMessageToTarget(QString::number ( QApplication::desktop()->width() )); |
1165 | return mNameEmailUidListFromKAPITransfer->sendMessageToTarget(sessionuid); | 1171 | return mNameEmailUidListFromKAPITransfer->sendMessageToTarget(sessionuid); |
1166 | } | 1172 | } |
1167 | 1173 | ||
1168 | bool ExternalAppHandler::returnNameEmailUidListFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QStringList& list1, const QStringList& list2, const QStringList& list3) | 1174 | bool ExternalAppHandler::returnNameEmailUidListFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QStringList& list1, const QStringList& list2, const QStringList& list3) |
1169 | { | 1175 | { |
1170 | QStringList list4, list5, list6; | 1176 | QStringList list4, list5, list6; |
1171 | 1177 | ||
1172 | mNameEmailUidListFromKAPITransfer->setSourceChannel(sourceChannel); | 1178 | mNameEmailUidListFromKAPITransfer->setSourceChannel(sourceChannel); |
1173 | return mNameEmailUidListFromKAPITransfer->sendMessageToSource(sessionuid, list1, list2, list3, list4, list5, list6); | 1179 | return mNameEmailUidListFromKAPITransfer->sendMessageToSource(sessionuid, list1, list2, list3, list4, list5, list6); |
1174 | } | 1180 | } |
1175 | 1181 | ||
1176 | bool ExternalAppHandler::requestFindByEmailFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QString& email) | 1182 | bool ExternalAppHandler::requestFindByEmailFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QString& email) |
1177 | { | 1183 | { |
1178 | mFindByEmailFromKAPITransfer->setSourceChannel(sourceChannel); | 1184 | mFindByEmailFromKAPITransfer->setSourceChannel(sourceChannel); |
1179 | return mFindByEmailFromKAPITransfer->sendMessageToTarget(sessionuid, email); | 1185 | return mFindByEmailFromKAPITransfer->sendMessageToTarget(sessionuid, email); |
1180 | } | 1186 | } |
1181 | 1187 | ||
1182 | bool ExternalAppHandler::returnFindByEmailFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QStringList& list1, const QStringList& list2, const QStringList& list3) | 1188 | bool ExternalAppHandler::returnFindByEmailFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QStringList& list1, const QStringList& list2, const QStringList& list3) |
1183 | { | 1189 | { |
1184 | QStringList list4, list5, list6; | 1190 | QStringList list4, list5, list6; |
1185 | 1191 | ||
1186 | mFindByEmailFromKAPITransfer->setSourceChannel(sourceChannel); | 1192 | mFindByEmailFromKAPITransfer->setSourceChannel(sourceChannel); |
1187 | return mFindByEmailFromKAPITransfer->sendMessageToSource(sessionuid, list1, list2, list3, list4, list5, list6); | 1193 | return mFindByEmailFromKAPITransfer->sendMessageToSource(sessionuid, list1, list2, list3, list4, list5, list6); |
1188 | } | 1194 | } |
1189 | 1195 | ||
1190 | bool ExternalAppHandler::requestDetailsFromKAPI(const QString& name, const QString& email, const QString& uid) | 1196 | bool ExternalAppHandler::requestDetailsFromKAPI(const QString& name, const QString& email, const QString& uid) |
1191 | { | 1197 | { |
1192 | mDisplayDetails->setSourceChannel(""); | 1198 | mDisplayDetails->setSourceChannel(""); |
1193 | return mDisplayDetails->sendMessageToTarget("", name, email, uid); | 1199 | return mDisplayDetails->sendMessageToTarget("", name, email, uid); |
1194 | } | 1200 | } |
1195 | 1201 | ||
1196 | bool ExternalAppHandler::requestBirthdayListFromKAPI(const QString& sourceChannel, const QString& sessionuid) | 1202 | bool ExternalAppHandler::requestBirthdayListFromKAPI(const QString& sourceChannel, const QString& sessionuid) |
1197 | { | 1203 | { |
1198 | mBirthdayListFromKAPITransfer->setSourceChannel(sourceChannel); | 1204 | mBirthdayListFromKAPITransfer->setSourceChannel(sourceChannel); |
1199 | return mBirthdayListFromKAPITransfer->sendMessageToTarget(sessionuid); | 1205 | return mBirthdayListFromKAPITransfer->sendMessageToTarget(sessionuid); |
1200 | } | 1206 | } |
1201 | 1207 | ||
1202 | bool ExternalAppHandler::returnBirthdayListFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QStringList& list1, const QStringList& list2, const QStringList& list3, const QStringList& list4, const QStringList& list5, const QStringList& list6) | 1208 | bool ExternalAppHandler::returnBirthdayListFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QStringList& list1, const QStringList& list2, const QStringList& list3, const QStringList& list4, const QStringList& list5, const QStringList& list6) |
1203 | { | 1209 | { |
1204 | mBirthdayListFromKAPITransfer->setSourceChannel(sourceChannel); | 1210 | mBirthdayListFromKAPITransfer->setSourceChannel(sourceChannel); |
1205 | return mBirthdayListFromKAPITransfer->sendMessageToSource(sessionuid, list1, list2, list3, list4, list5, list6); | 1211 | return mBirthdayListFromKAPITransfer->sendMessageToSource(sessionuid, list1, list2, list3, list4, list5, list6); |
1206 | } | 1212 | } |
1207 | 1213 | ||
1208 | 1214 | ||
1209 | 1215 | ||
1210 | 1216 | ||
1211 | 1217 | ||
diff --git a/libkdepim/externalapphandler.h b/libkdepim/externalapphandler.h index 097f306..b899ad7 100644 --- a/libkdepim/externalapphandler.h +++ b/libkdepim/externalapphandler.h | |||
@@ -1,293 +1,294 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkdepim. | 2 | This file is part of libkdepim. |
3 | Copyright (c) 2004 Ulf Schenk | 3 | Copyright (c) 2004 Ulf Schenk |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | /* | 24 | /* |
25 | Enhanced Version of the file for platform independent KDE tools. | 25 | Enhanced Version of the file for platform independent KDE tools. |
26 | Copyright (c) 2004 Ulf Schenk | 26 | Copyright (c) 2004 Ulf Schenk |
27 | 27 | ||
28 | $Id$ | 28 | $Id$ |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #ifndef EXTERNALAPPHANDLER_H | 31 | #ifndef EXTERNALAPPHANDLER_H |
32 | #define EXTERNALAPPHANDLER_H | 32 | #define EXTERNALAPPHANDLER_H |
33 | 33 | ||
34 | #include <qobject.h> | 34 | #include <qobject.h> |
35 | #include <qlist.h> | 35 | #include <qlist.h> |
36 | #include <qmap.h> | 36 | #include <qmap.h> |
37 | 37 | ||
38 | class QCopEnvelope; | 38 | class QCopEnvelope; |
39 | 39 | ||
40 | 40 | ||
41 | class ExternalAppHandler; | 41 | class ExternalAppHandler; |
42 | class QCopTransferItem : public QObject | 42 | class QCopTransferItem : public QObject |
43 | { | 43 | { |
44 | Q_OBJECT | 44 | Q_OBJECT |
45 | public: | 45 | public: |
46 | QCopTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage); | 46 | QCopTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage); |
47 | QCopTransferItem(); | 47 | QCopTransferItem(); |
48 | 48 | ||
49 | bool sendMessageToTarget(const QString& uid, const QString& param1 = QString::null, const QString& param2 = QString::null, const QString& param3 = QString::null); | 49 | bool sendMessageToTarget(const QString& uid, const QString& param1 = QString::null, const QString& param2 = QString::null, const QString& param3 = QString::null); |
50 | 50 | ||
51 | void setSourceChannel(const QString& sourceChannel); | 51 | void setSourceChannel(const QString& sourceChannel); |
52 | 52 | ||
53 | virtual bool appMessage( const QCString& msg, const QByteArray& data ); | 53 | virtual bool appMessage( const QCString& msg, const QByteArray& data ); |
54 | 54 | ||
55 | 55 | ||
56 | signals: | 56 | signals: |
57 | void receivedMessageFromSource(const QString& sourceChannel, const QString& uid); | 57 | void receivedMessageFromSource(const QString& sourceChannel, const QString& uid); |
58 | void receivedMessageFromSource(const QString& sourceChannel, const QString& uid, const QString& param1); | 58 | void receivedMessageFromSource(const QString& sourceChannel, const QString& uid, const QString& param1); |
59 | void receivedMessageFromSource(const QString& sourceChannel, const QString& uid, const QString& param1, const QString& param2); | 59 | void receivedMessageFromSource(const QString& sourceChannel, const QString& uid, const QString& param1, const QString& param2); |
60 | void receivedMessageFromSource(const QString& sourceChannel, const QString& uid, const QString& param1, const QString& param2, const QString& param3); | 60 | void receivedMessageFromSource(const QString& sourceChannel, const QString& uid, const QString& param1, const QString& param2, const QString& param3); |
61 | 61 | ||
62 | public: | 62 | public: |
63 | int _usedSourceParameters; | 63 | int _usedSourceParameters; |
64 | QString _sourceChannel; | 64 | QString _sourceChannel; |
65 | QString _sourceMessage; | 65 | QString _sourceMessage; |
66 | QString _sourceMessageParameters; | 66 | QString _sourceMessageParameters; |
67 | QString _targetChannel; | 67 | QString _targetChannel; |
68 | QString _targetMessage; | 68 | QString _targetMessage; |
69 | QString _targetMessageParameters; | 69 | QString _targetMessageParameters; |
70 | 70 | ||
71 | }; | 71 | }; |
72 | 72 | ||
73 | /********************************************************************************* | 73 | /********************************************************************************* |
74 | * | 74 | * |
75 | ********************************************************************************/ | 75 | ********************************************************************************/ |
76 | 76 | ||
77 | class QCopMapTransferItem : public QCopTransferItem | 77 | class QCopMapTransferItem : public QCopTransferItem |
78 | { | 78 | { |
79 | Q_OBJECT | 79 | Q_OBJECT |
80 | public: | 80 | public: |
81 | QCopMapTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage); | 81 | QCopMapTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage); |
82 | 82 | ||
83 | bool sendMessageToSource(const QString& uid, const QMap<QString,QString>& nameEmailMap); | 83 | bool sendMessageToSource(const QString& uid, const QMap<QString,QString>& nameEmailMap); |
84 | 84 | ||
85 | 85 | ||
86 | virtual bool appMessage( const QCString& msg, const QByteArray& data ); | 86 | virtual bool appMessage( const QCString& msg, const QByteArray& data ); |
87 | 87 | ||
88 | 88 | ||
89 | signals: | 89 | signals: |
90 | void receivedMessageFromTarget(const QString& uid, const QMap<QString,QString>& nameEmailMap); | 90 | void receivedMessageFromTarget(const QString& uid, const QMap<QString,QString>& nameEmailMap); |
91 | 91 | ||
92 | }; | 92 | }; |
93 | 93 | ||
94 | /********************************************************************************* | 94 | /********************************************************************************* |
95 | * | 95 | * |
96 | ********************************************************************************/ | 96 | ********************************************************************************/ |
97 | 97 | ||
98 | class QCopListTransferItem : public QCopTransferItem | 98 | class QCopListTransferItem : public QCopTransferItem |
99 | { | 99 | { |
100 | Q_OBJECT | 100 | Q_OBJECT |
101 | public: | 101 | public: |
102 | QCopListTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage); | 102 | QCopListTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage); |
103 | ~QCopListTransferItem(); | 103 | ~QCopListTransferItem(); |
104 | bool sendMessageToSource(const QString& uid, const QStringList& list1, const QStringList& list2, const QStringList& list3, const QStringList& list4, const QStringList& list5, const QStringList& list6); | 104 | bool sendMessageToSource(const QString& uid, const QStringList& list1, const QStringList& list2, const QStringList& list3, const QStringList& list4, const QStringList& list5, const QStringList& list6); |
105 | 105 | ||
106 | 106 | ||
107 | virtual bool appMessage( const QCString& msg, const QByteArray& data ); | 107 | virtual bool appMessage( const QCString& msg, const QByteArray& data ); |
108 | 108 | ||
109 | 109 | ||
110 | signals: | 110 | signals: |
111 | void receivedMessageFromTarget(const QString& uid, const QStringList& list1, const QStringList& list2, const QStringList& list3, const QStringList& list4 , const QStringList& list5, const QStringList& list6); | 111 | void receivedMessageFromTarget(const QString& uid, const QStringList& list1, const QStringList& list2, const QStringList& list3, const QStringList& list4 , const QStringList& list5, const QStringList& list6); |
112 | 112 | ||
113 | }; | 113 | }; |
114 | 114 | ||
115 | /********************************************************************************* | 115 | /********************************************************************************* |
116 | * | 116 | * |
117 | ********************************************************************************/ | 117 | ********************************************************************************/ |
118 | 118 | ||
119 | 119 | ||
120 | class DefaultAppItem | 120 | class DefaultAppItem |
121 | { | 121 | { |
122 | public: | 122 | public: |
123 | DefaultAppItem(int type, int id, const QString& label, const QString& channel, const QString& message, const QString& parameters, const QString& message2, const QString& parameters2) | 123 | DefaultAppItem(int type, int id, const QString& label, const QString& channel, const QString& message, const QString& parameters, const QString& message2, const QString& parameters2) |
124 | : _type(type), _id(id), _label(label), _channel(channel), _message(message), _parameters(parameters), _message2(message2), _parameters2(parameters2) | 124 | : _type(type), _id(id), _label(label), _channel(channel), _message(message), _parameters(parameters), _message2(message2), _parameters2(parameters2) |
125 | {} | 125 | {} |
126 | 126 | ||
127 | DefaultAppItem() | 127 | DefaultAppItem() |
128 | { } | 128 | { } |
129 | 129 | ||
130 | public: | 130 | public: |
131 | int _type; | 131 | int _type; |
132 | int _id; | 132 | int _id; |
133 | QString _label; | 133 | QString _label; |
134 | QString _channel; | 134 | QString _channel; |
135 | QString _message; | 135 | QString _message; |
136 | QString _parameters;// a list of parameters in stringrepresentation. Delimiter is ; | 136 | QString _parameters;// a list of parameters in stringrepresentation. Delimiter is ; |
137 | QString _message2; | 137 | QString _message2; |
138 | QString _parameters2; // a list of parameters in stringrepresentation. Delimiter is ; | 138 | QString _parameters2; // a list of parameters in stringrepresentation. Delimiter is ; |
139 | 139 | ||
140 | }; | 140 | }; |
141 | 141 | ||
142 | /********************************************************************************* | 142 | /********************************************************************************* |
143 | * | 143 | * |
144 | ********************************************************************************/ | 144 | ********************************************************************************/ |
145 | 145 | ||
146 | class ExternalAppHandler : public QObject | 146 | class ExternalAppHandler : public QObject |
147 | { | 147 | { |
148 | Q_OBJECT | 148 | Q_OBJECT |
149 | public: | 149 | public: |
150 | virtual ~ExternalAppHandler(); | 150 | virtual ~ExternalAppHandler(); |
151 | 151 | ||
152 | static ExternalAppHandler *instance(); | 152 | static ExternalAppHandler *instance(); |
153 | 153 | ||
154 | enum Types { | 154 | enum Types { |
155 | EMAIL = 0, | 155 | EMAIL = 0, |
156 | PHONE = 1, | 156 | PHONE = 1, |
157 | SMS = 2, | 157 | SMS = 2, |
158 | FAX = 3, | 158 | FAX = 3, |
159 | PAGER = 4, | 159 | PAGER = 4, |
160 | SIP = 5 | 160 | SIP = 5 |
161 | }; | 161 | }; |
162 | 162 | ||
163 | enum Availability { | 163 | enum Availability { |
164 | UNDEFINED = -1, | 164 | UNDEFINED = -1, |
165 | UNAVAILABLE = 0, | 165 | UNAVAILABLE = 0, |
166 | AVAILABLE = 1 | 166 | AVAILABLE = 1 |
167 | }; | 167 | }; |
168 | 168 | ||
169 | //calls the emailapplication with a number of attachments that need to be send. | 169 | //calls the emailapplication with a number of attachments that need to be send. |
170 | //either parameter can be left empty. | 170 | //either parameter can be left empty. |
171 | bool mailToMultipleContacts( const QString& recipients, const QString& attachmenturls ); | 171 | bool mailToMultipleContacts( const QString& recipients, const QString& attachmenturls ); |
172 | 172 | ||
173 | //calls the emailapplication and creates a mail with parameter emailadress as recipients | 173 | //calls the emailapplication and creates a mail with parameter emailadress as recipients |
174 | bool mailToOneContact( const QString& name, const QString& emailadress ); | 174 | bool mailToOneContact( const QString& name, const QString& emailadress ); |
175 | 175 | ||
176 | //calls the emailapplication and creates a mail with parameter as recipients | 176 | //calls the emailapplication and creates a mail with parameter as recipients |
177 | // parameters format is | 177 | // parameters format is |
178 | // NAME <EMAIL>:SUBJECT | 178 | // NAME <EMAIL>:SUBJECT |
179 | bool mailToOneContact( const QString& adressline ); | 179 | bool mailToOneContact( const QString& adressline ); |
180 | 180 | ||
181 | //calls the phoneapplication with the number | 181 | //calls the phoneapplication with the number |
182 | bool callByPhone( const QString& phonenumber ); | 182 | bool callByPhone( const QString& phonenumber ); |
183 | 183 | ||
184 | //calls the smsapplication with the number | 184 | //calls the smsapplication with the number |
185 | bool callBySMS( const QString& phonenumber ); | 185 | bool callBySMS( const QString& phonenumber ); |
186 | 186 | ||
187 | //calls the pagerapplication with the number | 187 | //calls the pagerapplication with the number |
188 | bool callByPager( const QString& pagernumber ); | 188 | bool callByPager( const QString& pagernumber ); |
189 | 189 | ||
190 | //calls the faxapplication with the number | 190 | //calls the faxapplication with the number |
191 | bool callByFax( const QString& faxnumber ); | 191 | bool callByFax( const QString& faxnumber ); |
192 | 192 | ||
193 | //calls the sipapplication with the number | 193 | //calls the sipapplication with the number |
194 | bool callBySIP( const QString& sipnumber ); | 194 | bool callBySIP( const QString& sipnumber ); |
195 | 195 | ||
196 | bool isEmailAppAvailable(); | 196 | bool isEmailAppAvailable(); |
197 | bool isSMSAppAvailable(); | 197 | bool isSMSAppAvailable(); |
198 | bool isPhoneAppAvailable(); | 198 | bool isPhoneAppAvailable(); |
199 | bool isFaxAppAvailable(); | 199 | bool isFaxAppAvailable(); |
200 | bool isPagerAppAvailable(); | 200 | bool isPagerAppAvailable(); |
201 | bool isSIPAppAvailable(); | 201 | bool isSIPAppAvailable(); |
202 | 202 | ||
203 | 203 | ||
204 | //Call this method on the source when you want to select names from the addressbook by using QCop | 204 | //Call this method on the source when you want to select names from the addressbook by using QCop |
205 | bool requestNameEmailUidListFromKAPI(const QString& sourceChannel, const QString& sessionuid); | 205 | bool requestNameEmailUidListFromKAPI(const QString& sourceChannel, const QString& sessionuid); |
206 | //Call this method on the target when you want to return the name/email map to the source (client). | 206 | //Call this method on the target when you want to return the name/email map to the source (client). |
207 | bool returnNameEmailUidListFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QStringList& name, const QStringList& email, const QStringList& uid); | 207 | bool returnNameEmailUidListFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QStringList& name, const QStringList& email, const QStringList& uid); |
208 | 208 | ||
209 | 209 | ||
210 | 210 | ||
211 | bool requestFindByEmailFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QString& email); | 211 | bool requestFindByEmailFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QString& email); |
212 | bool returnFindByEmailFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QStringList& name, const QStringList& email, const QStringList& uid); | 212 | bool returnFindByEmailFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QStringList& name, const QStringList& email, const QStringList& uid); |
213 | 213 | ||
214 | bool requestDetailsFromKAPI(const QString& name, const QString& email, const QString& uid); | 214 | bool requestDetailsFromKAPI(const QString& name, const QString& email, const QString& uid); |
215 | 215 | ||
216 | 216 | ||
217 | 217 | ||
218 | bool requestBirthdayListFromKAPI(const QString& sourceChannel, const QString& sessionuid); | 218 | bool requestBirthdayListFromKAPI(const QString& sourceChannel, const QString& sessionuid); |
219 | bool returnBirthdayListFromKAPI(const QString& sourceChannel, const QString& sessionuid, | 219 | bool returnBirthdayListFromKAPI(const QString& sourceChannel, const QString& sessionuid, |
220 | const QStringList& birthdayList, const QStringList& anniversaryList, | 220 | const QStringList& birthdayList, const QStringList& anniversaryList, |
221 | const QStringList& realNameList, const QStringList& emailList, | 221 | const QStringList& realNameList, const QStringList& emailList, |
222 | const QStringList& assembledNameList, const QStringList& uidList); | 222 | const QStringList& assembledNameList, const QStringList& uidList); |
223 | 223 | ||
224 | 224 | ||
225 | //loadConfig clears the cache and checks again if the applications are available or not | 225 | //loadConfig clears the cache and checks again if the applications are available or not |
226 | void loadConfig(); | 226 | void loadConfig(); |
227 | 227 | ||
228 | QList<DefaultAppItem> getAvailableDefaultItems(Types); | 228 | QList<DefaultAppItem> getAvailableDefaultItems(Types); |
229 | DefaultAppItem* getDefaultItem(Types, int); | 229 | DefaultAppItem* getDefaultItem(Types, int); |
230 | 230 | ||
231 | public slots: | 231 | public slots: |
232 | void appMessage( const QCString& msg, const QByteArray& data ); | 232 | void appMessage( const QCString& msg, const QByteArray& data ); |
233 | 233 | ||
234 | 234 | ||
235 | signals: | 235 | signals: |
236 | void callContactdialog(); | 236 | void callContactdialog(); |
237 | void nextView(); | 237 | void nextView(); |
238 | void doRingSync(); | ||
238 | // Emmitted when the target app receives a request from the source app | 239 | // Emmitted when the target app receives a request from the source app |
239 | void requestForNameEmailUidList(const QString& sourceChannel, const QString& uid); | 240 | void requestForNameEmailUidList(const QString& sourceChannel, const QString& uid); |
240 | 241 | ||
241 | // Emitted when the source app recieves a list of name/email pairs (=addresses) from another target app. Usually Ka/Pi | 242 | // Emitted when the source app recieves a list of name/email pairs (=addresses) from another target app. Usually Ka/Pi |
242 | // The first parameter is a uniqueid. It can be used to identify the event | 243 | // The first parameter is a uniqueid. It can be used to identify the event |
243 | void receivedNameEmailUidListEvent(const QString& uid, const QStringList& nameList, const QStringList& emailList, const QStringList& uidList); | 244 | void receivedNameEmailUidListEvent(const QString& uid, const QStringList& nameList, const QStringList& emailList, const QStringList& uidList); |
244 | 245 | ||
245 | void requestFindByEmail(const QString& sourceChannel, const QString& uid, const QString& email); | 246 | void requestFindByEmail(const QString& sourceChannel, const QString& uid, const QString& email); |
246 | void receivedFindByEmailEvent(const QString& uid, const QStringList& nameList, const QStringList& emailList, const QStringList& uidList); | 247 | void receivedFindByEmailEvent(const QString& uid, const QStringList& nameList, const QStringList& emailList, const QStringList& uidList); |
247 | 248 | ||
248 | void requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid); | 249 | void requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid); |
249 | 250 | ||
250 | 251 | ||
251 | // Emmitted when the target app receives a request from the source app | 252 | // Emmitted when the target app receives a request from the source app |
252 | void requestForBirthdayList(const QString& sourceChannel, const QString& uid); | 253 | void requestForBirthdayList(const QString& sourceChannel, const QString& uid); |
253 | 254 | ||
254 | // Emitted when the source app recieves a list of name/email pairs (=addresses) from another target app. Usually Ka/Pi | 255 | // Emitted when the source app recieves a list of name/email pairs (=addresses) from another target app. Usually Ka/Pi |
255 | // The first parameter is a uniqueid. It can be used to identify the event | 256 | // The first parameter is a uniqueid. It can be used to identify the event |
256 | void receivedBirthdayListEvent(const QString& uid, const QStringList& birthdayList, | 257 | void receivedBirthdayListEvent(const QString& uid, const QStringList& birthdayList, |
257 | const QStringList& anniversaryList, const QStringList& realNameList, | 258 | const QStringList& anniversaryList, const QStringList& realNameList, |
258 | const QStringList& emailList, const QStringList& assembledNameList, | 259 | const QStringList& emailList, const QStringList& assembledNameList, |
259 | const QStringList& uidList); | 260 | const QStringList& uidList); |
260 | 261 | ||
261 | 262 | ||
262 | private: | 263 | private: |
263 | ExternalAppHandler(); | 264 | ExternalAppHandler(); |
264 | QList<DefaultAppItem> mDefaultItems; | 265 | QList<DefaultAppItem> mDefaultItems; |
265 | 266 | ||
266 | Availability mEmailAppAvailable; | 267 | Availability mEmailAppAvailable; |
267 | Availability mPhoneAppAvailable; | 268 | Availability mPhoneAppAvailable; |
268 | Availability mFaxAppAvailable; | 269 | Availability mFaxAppAvailable; |
269 | Availability mSMSAppAvailable; | 270 | Availability mSMSAppAvailable; |
270 | Availability mPagerAppAvailable; | 271 | Availability mPagerAppAvailable; |
271 | Availability mSIPAppAvailable; | 272 | Availability mSIPAppAvailable; |
272 | 273 | ||
273 | QCopListTransferItem* mNameEmailUidListFromKAPITransfer; | 274 | QCopListTransferItem* mNameEmailUidListFromKAPITransfer; |
274 | QCopListTransferItem* mFindByEmailFromKAPITransfer; | 275 | QCopListTransferItem* mFindByEmailFromKAPITransfer; |
275 | QCopTransferItem* mDisplayDetails; | 276 | QCopTransferItem* mDisplayDetails; |
276 | QCopListTransferItem* mBirthdayListFromKAPITransfer; | 277 | QCopListTransferItem* mBirthdayListFromKAPITransfer; |
277 | 278 | ||
278 | 279 | ||
279 | void addDefaultAppItem(Types type, int id, const QString& label, const QString& channel, const QString& message, const QString& parameters, const QString& message2, const QString& parameters2); | 280 | void addDefaultAppItem(Types type, int id, const QString& label, const QString& channel, const QString& message, const QString& parameters, const QString& message2, const QString& parameters2); |
280 | 281 | ||
281 | QString& translateMessage(QString& message, const QString& param1, const QString& param2) const; | 282 | QString& translateMessage(QString& message, const QString& param1, const QString& param2) const; |
282 | void passParameters(QCopEnvelope* e, const QString& parameters, const QString& param1, const QString& param2) const; | 283 | void passParameters(QCopEnvelope* e, const QString& parameters, const QString& param1, const QString& param2) const; |
283 | 284 | ||
284 | 285 | ||
285 | static ExternalAppHandler *sInstance; | 286 | static ExternalAppHandler *sInstance; |
286 | 287 | ||
287 | private slots: | 288 | private slots: |
288 | void receivedNameEmailUidList_Slot(const QString& uid, const QStringList& nameList, const QStringList& emailList, const QStringList& uidList, const QStringList&, const QStringList&, const QStringList& ); | 289 | void receivedNameEmailUidList_Slot(const QString& uid, const QStringList& nameList, const QStringList& emailList, const QStringList& uidList, const QStringList&, const QStringList&, const QStringList& ); |
289 | 290 | ||
290 | }; | 291 | }; |
291 | 292 | ||
292 | 293 | ||
293 | #endif | 294 | #endif |
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp index db815d6..038e032 100644 --- a/libkdepim/ksyncmanager.cpp +++ b/libkdepim/ksyncmanager.cpp | |||
@@ -268,520 +268,522 @@ void KSyncManager::slotSyncMenu( int action ) | |||
268 | mFilterOutAB = temp->getFilterOutAB(); | 268 | mFilterOutAB = temp->getFilterOutAB(); |
269 | 269 | ||
270 | if ( action == 1000 ) { | 270 | if ( action == 1000 ) { |
271 | mIsKapiFile = false; | 271 | mIsKapiFile = false; |
272 | #ifdef DESKTOP_VERSION | 272 | #ifdef DESKTOP_VERSION |
273 | syncKDE(); | 273 | syncKDE(); |
274 | #else | 274 | #else |
275 | syncSharp(); | 275 | syncSharp(); |
276 | #endif | 276 | #endif |
277 | 277 | ||
278 | } else if ( action == 1001 ) { | 278 | } else if ( action == 1001 ) { |
279 | syncLocalFile(); | 279 | syncLocalFile(); |
280 | 280 | ||
281 | } else if ( action == 1002 ) { | 281 | } else if ( action == 1002 ) { |
282 | mWriteBackFile = false; | 282 | mWriteBackFile = false; |
283 | mAskForPreferences = false; | 283 | mAskForPreferences = false; |
284 | mShowSyncSummary = false; | 284 | mShowSyncSummary = false; |
285 | mSyncAlgoPrefs = 3; | 285 | mSyncAlgoPrefs = 3; |
286 | quickSyncLocalFile(); | 286 | quickSyncLocalFile(); |
287 | 287 | ||
288 | } else if ( action >= 1003 ) { | 288 | } else if ( action >= 1003 ) { |
289 | if ( temp->getIsLocalFileSync() ) { | 289 | if ( temp->getIsLocalFileSync() ) { |
290 | switch(mTargetApp) | 290 | switch(mTargetApp) |
291 | { | 291 | { |
292 | case (KAPI): | 292 | case (KAPI): |
293 | if ( syncWithFile( temp->getRemoteFileNameAB( ), false ) ) | 293 | if ( syncWithFile( temp->getRemoteFileNameAB( ), false ) ) |
294 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNameAB(); | 294 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNameAB(); |
295 | break; | 295 | break; |
296 | case (KOPI): | 296 | case (KOPI): |
297 | if ( syncWithFile( temp->getRemoteFileName( ), false ) ) | 297 | if ( syncWithFile( temp->getRemoteFileName( ), false ) ) |
298 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileName(); | 298 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileName(); |
299 | break; | 299 | break; |
300 | case (PWMPI): | 300 | case (PWMPI): |
301 | if ( syncWithFile( temp->getRemoteFileNamePWM( ), false ) ) | 301 | if ( syncWithFile( temp->getRemoteFileNamePWM( ), false ) ) |
302 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNamePWM(); | 302 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNamePWM(); |
303 | break; | 303 | break; |
304 | default: | 304 | default: |
305 | qDebug("KSM::slotSyncMenu: invalid apptype selected"); | 305 | qDebug("KSM::slotSyncMenu: invalid apptype selected"); |
306 | break; | 306 | break; |
307 | 307 | ||
308 | } | 308 | } |
309 | } else { | 309 | } else { |
310 | if ( temp->getIsPhoneSync() ) { | 310 | if ( temp->getIsPhoneSync() ) { |
311 | mPhoneDevice = temp->getPhoneDevice( ) ; | 311 | mPhoneDevice = temp->getPhoneDevice( ) ; |
312 | mPhoneConnection = temp->getPhoneConnection( ); | 312 | mPhoneConnection = temp->getPhoneConnection( ); |
313 | mPhoneModel = temp->getPhoneModel( ); | 313 | mPhoneModel = temp->getPhoneModel( ); |
314 | syncPhone(); | 314 | syncPhone(); |
315 | } else if ( temp->getIsPiSync() ) { | 315 | } else if ( temp->getIsPiSync() ) { |
316 | if ( mTargetApp == KAPI ) { | 316 | if ( mTargetApp == KAPI ) { |
317 | mPassWordPiSync = temp->getRemotePwAB(); | 317 | mPassWordPiSync = temp->getRemotePwAB(); |
318 | mActiveSyncPort = temp->getRemotePortAB(); | 318 | mActiveSyncPort = temp->getRemotePortAB(); |
319 | mActiveSyncIP = temp->getRemoteIPAB(); | 319 | mActiveSyncIP = temp->getRemoteIPAB(); |
320 | } else if ( mTargetApp == KOPI ) { | 320 | } else if ( mTargetApp == KOPI ) { |
321 | mPassWordPiSync = temp->getRemotePw(); | 321 | mPassWordPiSync = temp->getRemotePw(); |
322 | mActiveSyncPort = temp->getRemotePort(); | 322 | mActiveSyncPort = temp->getRemotePort(); |
323 | mActiveSyncIP = temp->getRemoteIP(); | 323 | mActiveSyncIP = temp->getRemoteIP(); |
324 | } else { | 324 | } else { |
325 | mPassWordPiSync = temp->getRemotePwPWM(); | 325 | mPassWordPiSync = temp->getRemotePwPWM(); |
326 | mActiveSyncPort = temp->getRemotePortPWM(); | 326 | mActiveSyncPort = temp->getRemotePortPWM(); |
327 | mActiveSyncIP = temp->getRemoteIPPWM(); | 327 | mActiveSyncIP = temp->getRemoteIPPWM(); |
328 | } | 328 | } |
329 | syncPi(); | 329 | syncPi(); |
330 | while ( !mPisyncFinished ) { | 330 | while ( !mPisyncFinished ) { |
331 | //qDebug("waiting "); | 331 | //qDebug("waiting "); |
332 | qApp->processEvents(); | 332 | qApp->processEvents(); |
333 | } | 333 | } |
334 | } else | 334 | } else |
335 | syncRemote( temp ); | 335 | syncRemote( temp ); |
336 | 336 | ||
337 | } | 337 | } |
338 | } | 338 | } |
339 | delete temp; | 339 | delete temp; |
340 | setBlockSave(false); | 340 | setBlockSave(false); |
341 | } | 341 | } |
342 | 342 | ||
343 | void KSyncManager::enableQuick( bool ask ) | 343 | void KSyncManager::enableQuick( bool ask ) |
344 | { | 344 | { |
345 | bool autoStart; | 345 | bool autoStart; |
346 | bool changed = false; | 346 | bool changed = false; |
347 | if ( ask ) { | 347 | if ( ask ) { |
348 | QDialog dia ( 0, "input-dialog", true ); | 348 | QDialog dia ( 0, "input-dialog", true ); |
349 | QLineEdit lab ( &dia ); | 349 | QLineEdit lab ( &dia ); |
350 | QVBoxLayout lay( &dia ); | 350 | QVBoxLayout lay( &dia ); |
351 | lab.setText( mPrefs->mPassiveSyncPort ); | 351 | lab.setText( mPrefs->mPassiveSyncPort ); |
352 | lay.setMargin(7); | 352 | lay.setMargin(7); |
353 | lay.setSpacing(7); | 353 | lay.setSpacing(7); |
354 | int po = 9197+mTargetApp; | 354 | int po = 9197+mTargetApp; |
355 | QLabel label ( i18n("Port number (Default: %1)").arg(po), &dia ); | 355 | QLabel label ( i18n("Port number (Default: %1)").arg(po), &dia ); |
356 | lay.addWidget( &label); | 356 | lay.addWidget( &label); |
357 | lay.addWidget( &lab); | 357 | lay.addWidget( &lab); |
358 | 358 | ||
359 | QLineEdit lepw ( &dia ); | 359 | QLineEdit lepw ( &dia ); |
360 | lepw.setText( mPrefs->mPassiveSyncPw ); | 360 | lepw.setText( mPrefs->mPassiveSyncPw ); |
361 | QLabel label2 ( i18n("Password to enable\naccess from remote:"), &dia ); | 361 | QLabel label2 ( i18n("Password to enable\naccess from remote:"), &dia ); |
362 | lay.addWidget( &label2); | 362 | lay.addWidget( &label2); |
363 | lay.addWidget( &lepw); | 363 | lay.addWidget( &lepw); |
364 | QCheckBox autostart(i18n("Automatically start\nat application startup"), &dia ); | 364 | QCheckBox autostart(i18n("Automatically start\nat application startup"), &dia ); |
365 | lay.addWidget( &autostart); | 365 | lay.addWidget( &autostart); |
366 | autostart.setChecked( mPrefs->mPassiveSyncAutoStart ); | 366 | autostart.setChecked( mPrefs->mPassiveSyncAutoStart ); |
367 | #ifdef DESKTOP_VERSION | 367 | #ifdef DESKTOP_VERSION |
368 | #ifdef _WIN32_ | 368 | #ifdef _WIN32_ |
369 | QCheckBox syncdesktop( i18n("Automatically sync with Outlook\nwhen receiving sync request"),&dia ); | 369 | QCheckBox syncdesktop( i18n("Automatically sync with Outlook\nwhen receiving sync request"),&dia ); |
370 | syncdesktop.hide();// not implemented! | 370 | syncdesktop.hide();// not implemented! |
371 | #else | 371 | #else |
372 | QCheckBox syncdesktop( i18n("Automatically sync with KDE-Desktop\nwhen receiving sync request"),&dia ); | 372 | QCheckBox syncdesktop( i18n("Automatically sync with KDE-Desktop\nwhen receiving sync request"),&dia ); |
373 | #endif | 373 | #endif |
374 | lay.addWidget( &syncdesktop); | 374 | lay.addWidget( &syncdesktop); |
375 | #else | 375 | #else |
376 | mPrefs->mPassiveSyncWithDesktop = false; | 376 | mPrefs->mPassiveSyncWithDesktop = false; |
377 | QCheckBox syncdesktop( i18n("Automatically sync\nwith KDE-Desktop"),&dia ); | 377 | QCheckBox syncdesktop( i18n("Automatically sync\nwith KDE-Desktop"),&dia ); |
378 | syncdesktop.hide(); | 378 | syncdesktop.hide(); |
379 | #endif | 379 | #endif |
380 | syncdesktop.setChecked( mPrefs->mPassiveSyncWithDesktop ); | 380 | syncdesktop.setChecked( mPrefs->mPassiveSyncWithDesktop ); |
381 | 381 | ||
382 | QPushButton pb ( "OK", &dia); | 382 | QPushButton pb ( "OK", &dia); |
383 | lay.addWidget( &pb ); | 383 | lay.addWidget( &pb ); |
384 | connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) ); | 384 | connect(&pb, SIGNAL( clicked() ), &dia, SLOT ( accept() ) ); |
385 | dia.resize( 230,120 ); | 385 | dia.resize( 230,120 ); |
386 | dia.setCaption( i18n("Enter port for Pi-Sync") ); | 386 | dia.setCaption( i18n("Enter port for Pi-Sync") ); |
387 | dia.show(); | 387 | dia.show(); |
388 | #ifndef DESKTOP_VERSION | 388 | #ifndef DESKTOP_VERSION |
389 | int dw = QApplication::desktop()->width(); | 389 | int dw = QApplication::desktop()->width(); |
390 | int dh = QApplication::desktop()->height(); | 390 | int dh = QApplication::desktop()->height(); |
391 | dia.move( (dw-dia.width())/2, (dh - dia.height() )/2 ); | 391 | dia.move( (dw-dia.width())/2, (dh - dia.height() )/2 ); |
392 | #endif | 392 | #endif |
393 | if ( ! dia.exec() ) | 393 | if ( ! dia.exec() ) |
394 | return; | 394 | return; |
395 | dia.hide(); | 395 | dia.hide(); |
396 | qApp->processEvents(); | 396 | qApp->processEvents(); |
397 | if ( mPrefs->mPassiveSyncPw != lepw.text() ) { | 397 | if ( mPrefs->mPassiveSyncPw != lepw.text() ) { |
398 | changed = true; | 398 | changed = true; |
399 | mPrefs->mPassiveSyncPw = lepw.text(); | 399 | mPrefs->mPassiveSyncPw = lepw.text(); |
400 | } | 400 | } |
401 | if ( mPrefs->mPassiveSyncPort != lab.text() ) { | 401 | if ( mPrefs->mPassiveSyncPort != lab.text() ) { |
402 | mPrefs->mPassiveSyncPort = lab.text(); | 402 | mPrefs->mPassiveSyncPort = lab.text(); |
403 | changed = true; | 403 | changed = true; |
404 | } | 404 | } |
405 | autoStart = autostart.isChecked(); | 405 | autoStart = autostart.isChecked(); |
406 | if (mPrefs->mPassiveSyncWithDesktop != syncdesktop.isChecked() ) { | 406 | if (mPrefs->mPassiveSyncWithDesktop != syncdesktop.isChecked() ) { |
407 | changed = true; | 407 | changed = true; |
408 | mPrefs->mPassiveSyncWithDesktop = syncdesktop.isChecked(); | 408 | mPrefs->mPassiveSyncWithDesktop = syncdesktop.isChecked(); |
409 | } | 409 | } |
410 | } | 410 | } |
411 | else | 411 | else |
412 | autoStart = mPrefs->mPassiveSyncAutoStart; | 412 | autoStart = mPrefs->mPassiveSyncAutoStart; |
413 | if ( autoStart != mPrefs->mPassiveSyncAutoStart ) | 413 | if ( autoStart != mPrefs->mPassiveSyncAutoStart ) |
414 | changed = true; | 414 | changed = true; |
415 | bool ok; | 415 | bool ok; |
416 | mPrefs->mPassiveSyncAutoStart = false; | 416 | mPrefs->mPassiveSyncAutoStart = false; |
417 | Q_UINT16 port = mPrefs->mPassiveSyncPort.toUInt(&ok); | 417 | Q_UINT16 port = mPrefs->mPassiveSyncPort.toUInt(&ok); |
418 | if ( ! ok ) { | 418 | if ( ! ok ) { |
419 | KMessageBox::information( 0, i18n("No valid port")); | 419 | KMessageBox::information( 0, i18n("No valid port")); |
420 | return; | 420 | return; |
421 | } | 421 | } |
422 | //qDebug("port %d ", port); | 422 | //qDebug("port %d ", port); |
423 | mServerSocket = new KServerSocket ( mPrefs->mPassiveSyncPw, port ,1 ); | 423 | mServerSocket = new KServerSocket ( mPrefs->mPassiveSyncPw, port ,1 ); |
424 | mServerSocket->setFileName( defaultFileName() );//bbb | 424 | mServerSocket->setFileName( defaultFileName() );//bbb |
425 | if ( !mServerSocket->ok() ) { | 425 | if ( !mServerSocket->ok() ) { |
426 | KMessageBox::information( 0, i18n("Failed to bind or\nlisten to the port!")); | 426 | KMessageBox::information( 0, i18n("Failed to bind or\nlisten to the port!")); |
427 | delete mServerSocket; | 427 | delete mServerSocket; |
428 | mServerSocket = 0; | 428 | mServerSocket = 0; |
429 | return; | 429 | return; |
430 | } | 430 | } |
431 | mPrefs->mPassiveSyncAutoStart = autoStart; | 431 | mPrefs->mPassiveSyncAutoStart = autoStart; |
432 | if ( changed ) { | 432 | if ( changed ) { |
433 | mPrefs->writeConfig(); | 433 | mPrefs->writeConfig(); |
434 | } | 434 | } |
435 | connect( mServerSocket, SIGNAL ( request_file() ),this, SIGNAL ( request_file() ) ); | 435 | connect( mServerSocket, SIGNAL ( request_file() ),this, SIGNAL ( request_file() ) ); |
436 | connect( mServerSocket, SIGNAL ( file_received( bool ) ), this, SIGNAL ( getFile( bool ) ) ); | 436 | connect( mServerSocket, SIGNAL ( file_received( bool ) ), this, SIGNAL ( getFile( bool ) ) ); |
437 | } | 437 | } |
438 | 438 | ||
439 | void KSyncManager::syncLocalFile() | 439 | void KSyncManager::syncLocalFile() |
440 | { | 440 | { |
441 | 441 | ||
442 | QString fn =mPrefs->mLastSyncedLocalFile; | 442 | QString fn =mPrefs->mLastSyncedLocalFile; |
443 | QString ext; | 443 | QString ext; |
444 | 444 | ||
445 | switch(mTargetApp) | 445 | switch(mTargetApp) |
446 | { | 446 | { |
447 | case (KAPI): | 447 | case (KAPI): |
448 | ext = "(*.vcf)"; | 448 | ext = "(*.vcf)"; |
449 | break; | 449 | break; |
450 | case (KOPI): | 450 | case (KOPI): |
451 | ext = "(*.ics/*.vcs)"; | 451 | ext = "(*.ics/*.vcs)"; |
452 | break; | 452 | break; |
453 | case (PWMPI): | 453 | case (PWMPI): |
454 | ext = "(*.pwm)"; | 454 | ext = "(*.pwm)"; |
455 | break; | 455 | break; |
456 | default: | 456 | default: |
457 | qDebug("KSM::syncLocalFile: invalid apptype selected"); | 457 | qDebug("KSM::syncLocalFile: invalid apptype selected"); |
458 | break; | 458 | break; |
459 | 459 | ||
460 | } | 460 | } |
461 | 461 | ||
462 | fn =KFileDialog:: getOpenFileName( fn, i18n("Sync filename"+ext), mParent ); | 462 | fn =KFileDialog:: getOpenFileName( fn, i18n("Sync filename"+ext), mParent ); |
463 | if ( fn == "" ) | 463 | if ( fn == "" ) |
464 | return; | 464 | return; |
465 | if ( syncWithFile( fn, false ) ) { | 465 | if ( syncWithFile( fn, false ) ) { |
466 | qDebug("KSM::syncLocalFile() successful "); | 466 | qDebug("KSM::syncLocalFile() successful "); |
467 | } | 467 | } |
468 | 468 | ||
469 | } | 469 | } |
470 | 470 | ||
471 | bool KSyncManager::syncWithFile( QString fn , bool quick ) | 471 | bool KSyncManager::syncWithFile( QString fn , bool quick ) |
472 | { | 472 | { |
473 | bool ret = false; | 473 | bool ret = false; |
474 | QFileInfo info; | 474 | QFileInfo info; |
475 | info.setFile( fn ); | 475 | info.setFile( fn ); |
476 | QString mess; | 476 | QString mess; |
477 | if ( !info. exists() ) { | 477 | if ( !info. exists() ) { |
478 | mess = i18n( "Sync file \n...%1\ndoes not exist!\nNothing synced!\n").arg(fn.right( 30) ); | 478 | mess = i18n( "Sync file \n...%1\ndoes not exist!\nNothing synced!\n").arg(fn.right( 30) ); |
479 | QMessageBox::warning( mParent, i18n("Warning!"), | 479 | QMessageBox::warning( mParent, i18n("Warning!"), |
480 | mess ); | 480 | mess ); |
481 | return ret; | 481 | return ret; |
482 | } | 482 | } |
483 | int result = 0; | 483 | int result = 0; |
484 | if ( !quick ) { | 484 | if ( !quick ) { |
485 | mess = i18n("Sync with file \n...%1\nfrom:\n%2\n").arg(fn.right( 25)).arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); | 485 | mess = i18n("Sync with file \n...%1\nfrom:\n%2\n").arg(fn.right( 25)).arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); |
486 | result = QMessageBox::warning( mParent, i18n("Warning!"), | 486 | result = QMessageBox::warning( mParent, i18n("Warning!"), |
487 | mess, | 487 | mess, |
488 | i18n("Sync"), i18n("Cancel"), 0, | 488 | i18n("Sync"), i18n("Cancel"), 0, |
489 | 0, 1 ); | 489 | 0, 1 ); |
490 | if ( result ) | 490 | if ( result ) |
491 | return false; | 491 | return false; |
492 | } | 492 | } |
493 | if ( mAskForPreferences ) | 493 | if ( mAskForPreferences ) |
494 | if ( !edit_sync_options()) { | 494 | if ( !edit_sync_options()) { |
495 | mParent->topLevelWidget()->setCaption( i18n("Syncing aborted. Nothing synced.") ); | 495 | mParent->topLevelWidget()->setCaption( i18n("Syncing aborted. Nothing synced.") ); |
496 | return false; | 496 | return false; |
497 | } | 497 | } |
498 | if ( result == 0 ) { | 498 | if ( result == 0 ) { |
499 | //qDebug("Now sycing ... "); | 499 | //qDebug("Now sycing ... "); |
500 | if ( ret = mImplementation->sync( this, fn, mSyncAlgoPrefs ) ) | 500 | if ( ret = mImplementation->sync( this, fn, mSyncAlgoPrefs ) ) |
501 | mParent->topLevelWidget()->setCaption( i18n("Synchronization successful") ); | 501 | mParent->topLevelWidget()->setCaption( i18n("Synchronization successful") ); |
502 | else | 502 | else |
503 | mParent->topLevelWidget()->setCaption( i18n("Sync cancelled or failed.") ); | 503 | mParent->topLevelWidget()->setCaption( i18n("Sync cancelled or failed.") ); |
504 | if ( ! quick ) | 504 | if ( ! quick ) |
505 | mPrefs->mLastSyncedLocalFile = fn; | 505 | mPrefs->mLastSyncedLocalFile = fn; |
506 | } | 506 | } |
507 | return ret; | 507 | return ret; |
508 | } | 508 | } |
509 | 509 | ||
510 | void KSyncManager::quickSyncLocalFile() | 510 | void KSyncManager::quickSyncLocalFile() |
511 | { | 511 | { |
512 | 512 | ||
513 | if ( syncWithFile( mPrefs->mLastSyncedLocalFile, true ) ) { | 513 | if ( syncWithFile( mPrefs->mLastSyncedLocalFile, true ) ) { |
514 | qDebug("KSM::quick syncLocalFile() successful "); | 514 | qDebug("KSM::quick syncLocalFile() successful "); |
515 | 515 | ||
516 | } | 516 | } |
517 | } | 517 | } |
518 | 518 | ||
519 | void KSyncManager::multiSync( bool askforPrefs ) | 519 | void KSyncManager::multiSync( bool askforPrefs ) |
520 | { | 520 | { |
521 | if (blockSave()) | 521 | if (blockSave()) |
522 | return; | 522 | return; |
523 | setBlockSave(true); | 523 | setBlockSave(true); |
524 | QString question = i18n("Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!"); | 524 | if ( askforPrefs ) { |
525 | if ( QMessageBox::information( mParent, i18n("KDE-Pim Sync"), | 525 | QString question = i18n("Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!"); |
526 | question, | 526 | if ( QMessageBox::information( mParent, i18n("KDE-Pim Sync"), |
527 | i18n("Yes"), i18n("No"), | 527 | question, |
528 | 0, 0 ) != 0 ) { | 528 | i18n("Yes"), i18n("No"), |
529 | setBlockSave(false); | 529 | 0, 0 ) != 0 ) { |
530 | mParent->topLevelWidget()->setCaption(i18n("Aborted! Nothing synced!")); | 530 | setBlockSave(false); |
531 | return; | 531 | mParent->topLevelWidget()->setCaption(i18n("Aborted! Nothing synced!")); |
532 | return; | ||
533 | } | ||
532 | } | 534 | } |
533 | mCurrentSyncDevice = i18n("Multiple profiles") ; | 535 | mCurrentSyncDevice = i18n("Multiple profiles") ; |
534 | mSyncAlgoPrefs = mPrefs->mRingSyncAlgoPrefs; | 536 | mSyncAlgoPrefs = mPrefs->mRingSyncAlgoPrefs; |
535 | if ( askforPrefs ) { | 537 | if ( askforPrefs ) { |
536 | if ( !edit_sync_options()) { | 538 | if ( !edit_sync_options()) { |
537 | mParent->topLevelWidget()->setCaption( i18n("Syncing aborted.") ); | 539 | mParent->topLevelWidget()->setCaption( i18n("Syncing aborted.") ); |
538 | return; | 540 | return; |
539 | } | 541 | } |
540 | mPrefs->mRingSyncAlgoPrefs = mSyncAlgoPrefs; | 542 | mPrefs->mRingSyncAlgoPrefs = mSyncAlgoPrefs; |
541 | } | 543 | } |
542 | mParent->topLevelWidget()->setCaption(i18n("Multiple sync started.") ); | 544 | mParent->topLevelWidget()->setCaption(i18n("Multiple sync started.") ); |
543 | qApp->processEvents(); | 545 | qApp->processEvents(); |
544 | int num = ringSync() ; | 546 | int num = ringSync() ; |
545 | if ( num > 1 ) | 547 | if ( num > 1 ) |
546 | ringSync(); | 548 | ringSync(); |
547 | setBlockSave(false); | 549 | setBlockSave(false); |
548 | if ( num ) | 550 | if ( num ) |
549 | emit save(); | 551 | emit save(); |
550 | if ( num ) | 552 | if ( num ) |
551 | mParent->topLevelWidget()->setCaption(i18n("%1 profiles synced. Multiple sync complete!").arg(num) ); | 553 | mParent->topLevelWidget()->setCaption(i18n("%1 profiles synced. Multiple sync complete!").arg(num) ); |
552 | else | 554 | else |
553 | mParent->topLevelWidget()->setCaption(i18n("Nothing synced! No profiles defined for multisync!")); | 555 | mParent->topLevelWidget()->setCaption(i18n("Nothing synced! No profiles defined for multisync!")); |
554 | return; | 556 | return; |
555 | } | 557 | } |
556 | 558 | ||
557 | int KSyncManager::ringSync() | 559 | int KSyncManager::ringSync() |
558 | { | 560 | { |
559 | 561 | ||
560 | int syncedProfiles = 0; | 562 | int syncedProfiles = 0; |
561 | unsigned int i; | 563 | unsigned int i; |
562 | QTime timer; | 564 | QTime timer; |
563 | KConfig config ( locateLocal( "config","ksyncprofilesrc" ) ); | 565 | KConfig config ( locateLocal( "config","ksyncprofilesrc" ) ); |
564 | QStringList syncProfileNames = mSyncProfileNames; | 566 | QStringList syncProfileNames = mSyncProfileNames; |
565 | KSyncProfile* temp = new KSyncProfile (); | 567 | KSyncProfile* temp = new KSyncProfile (); |
566 | mAskForPreferences = false; | 568 | mAskForPreferences = false; |
567 | for ( i = 0; i < syncProfileNames.count(); ++i ) { | 569 | for ( i = 0; i < syncProfileNames.count(); ++i ) { |
568 | mCurrentSyncProfile = i; | 570 | mCurrentSyncProfile = i; |
569 | temp->setName(syncProfileNames[mCurrentSyncProfile]); | 571 | temp->setName(syncProfileNames[mCurrentSyncProfile]); |
570 | temp->readConfig(&config); | 572 | temp->readConfig(&config); |
571 | 573 | ||
572 | bool includeInRingSync = false; | 574 | bool includeInRingSync = false; |
573 | switch(mTargetApp) | 575 | switch(mTargetApp) |
574 | { | 576 | { |
575 | case (KAPI): | 577 | case (KAPI): |
576 | includeInRingSync = temp->getIncludeInRingSyncAB(); | 578 | includeInRingSync = temp->getIncludeInRingSyncAB(); |
577 | break; | 579 | break; |
578 | case (KOPI): | 580 | case (KOPI): |
579 | includeInRingSync = temp->getIncludeInRingSync(); | 581 | includeInRingSync = temp->getIncludeInRingSync(); |
580 | break; | 582 | break; |
581 | case (PWMPI): | 583 | case (PWMPI): |
582 | includeInRingSync = temp->getIncludeInRingSyncPWM(); | 584 | includeInRingSync = temp->getIncludeInRingSyncPWM(); |
583 | break; | 585 | break; |
584 | default: | 586 | default: |
585 | qDebug("KSM::ringSync: invalid apptype selected"); | 587 | qDebug("KSM::ringSync: invalid apptype selected"); |
586 | break; | 588 | break; |
587 | 589 | ||
588 | } | 590 | } |
589 | 591 | ||
590 | 592 | ||
591 | if ( includeInRingSync && ( i < 1 || i > 2 )) { | 593 | if ( includeInRingSync && ( i < 1 || i > 2 )) { |
592 | mParent->topLevelWidget()->setCaption(i18n("Profile ")+syncProfileNames[mCurrentSyncProfile]+ i18n(" is synced ... ")); | 594 | mParent->topLevelWidget()->setCaption(i18n("Profile ")+syncProfileNames[mCurrentSyncProfile]+ i18n(" is synced ... ")); |
593 | ++syncedProfiles; | 595 | ++syncedProfiles; |
594 | mSyncWithDesktop = false; | 596 | mSyncWithDesktop = false; |
595 | // mAskForPreferences = temp->getAskForPreferences(); | 597 | // mAskForPreferences = temp->getAskForPreferences(); |
596 | mWriteBackFile = temp->getWriteBackFile(); | 598 | mWriteBackFile = temp->getWriteBackFile(); |
597 | mWriteBackExistingOnly = temp->getWriteBackExisting(); | 599 | mWriteBackExistingOnly = temp->getWriteBackExisting(); |
598 | mIsKapiFile = temp->getIsKapiFile(); | 600 | mIsKapiFile = temp->getIsKapiFile(); |
599 | mWriteBackInFuture = 0; | 601 | mWriteBackInFuture = 0; |
600 | if ( temp->getWriteBackFuture() ) { | 602 | if ( temp->getWriteBackFuture() ) { |
601 | mWriteBackInFuture = temp->getWriteBackFutureWeeks( ); | 603 | mWriteBackInFuture = temp->getWriteBackFutureWeeks( ); |
602 | mWriteBackInPast = temp->getWriteBackPastWeeks( ); | 604 | mWriteBackInPast = temp->getWriteBackPastWeeks( ); |
603 | } | 605 | } |
604 | mFilterInCal = temp->getFilterInCal(); | 606 | mFilterInCal = temp->getFilterInCal(); |
605 | mFilterOutCal = temp->getFilterOutCal(); | 607 | mFilterOutCal = temp->getFilterOutCal(); |
606 | mFilterInAB = temp->getFilterInAB(); | 608 | mFilterInAB = temp->getFilterInAB(); |
607 | mFilterOutAB = temp->getFilterOutAB(); | 609 | mFilterOutAB = temp->getFilterOutAB(); |
608 | mShowSyncSummary = false; | 610 | mShowSyncSummary = false; |
609 | mCurrentSyncDevice = syncProfileNames[i] ; | 611 | mCurrentSyncDevice = syncProfileNames[i] ; |
610 | mCurrentSyncName = mLocalMachineName; | 612 | mCurrentSyncName = mLocalMachineName; |
611 | if ( i == 0 ) { | 613 | if ( i == 0 ) { |
612 | mIsKapiFile = false; | 614 | mIsKapiFile = false; |
613 | #ifdef DESKTOP_VERSION | 615 | #ifdef DESKTOP_VERSION |
614 | syncKDE(); | 616 | syncKDE(); |
615 | #else | 617 | #else |
616 | syncSharp(); | 618 | syncSharp(); |
617 | #endif | 619 | #endif |
618 | } else { | 620 | } else { |
619 | if ( temp->getIsLocalFileSync() ) { | 621 | if ( temp->getIsLocalFileSync() ) { |
620 | switch(mTargetApp) | 622 | switch(mTargetApp) |
621 | { | 623 | { |
622 | case (KAPI): | 624 | case (KAPI): |
623 | if ( syncWithFile( temp->getRemoteFileNameAB( ), false ) ) | 625 | if ( syncWithFile( temp->getRemoteFileNameAB( ), false ) ) |
624 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNameAB(); | 626 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNameAB(); |
625 | break; | 627 | break; |
626 | case (KOPI): | 628 | case (KOPI): |
627 | if ( syncWithFile( temp->getRemoteFileName( ), false ) ) | 629 | if ( syncWithFile( temp->getRemoteFileName( ), false ) ) |
628 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileName(); | 630 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileName(); |
629 | break; | 631 | break; |
630 | case (PWMPI): | 632 | case (PWMPI): |
631 | if ( syncWithFile( temp->getRemoteFileNamePWM( ), false ) ) | 633 | if ( syncWithFile( temp->getRemoteFileNamePWM( ), false ) ) |
632 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNamePWM(); | 634 | mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNamePWM(); |
633 | break; | 635 | break; |
634 | default: | 636 | default: |
635 | qDebug("KSM: invalid apptype selected"); | 637 | qDebug("KSM: invalid apptype selected"); |
636 | break; | 638 | break; |
637 | } | 639 | } |
638 | } else { | 640 | } else { |
639 | if ( temp->getIsPhoneSync() ) { | 641 | if ( temp->getIsPhoneSync() ) { |
640 | mPhoneDevice = temp->getPhoneDevice( ) ; | 642 | mPhoneDevice = temp->getPhoneDevice( ) ; |
641 | mPhoneConnection = temp->getPhoneConnection( ); | 643 | mPhoneConnection = temp->getPhoneConnection( ); |
642 | mPhoneModel = temp->getPhoneModel( ); | 644 | mPhoneModel = temp->getPhoneModel( ); |
643 | syncPhone(); | 645 | syncPhone(); |
644 | } else if ( temp->getIsPiSync() ) { | 646 | } else if ( temp->getIsPiSync() ) { |
645 | if ( mTargetApp == KAPI ) { | 647 | if ( mTargetApp == KAPI ) { |
646 | mPassWordPiSync = temp->getRemotePwAB(); | 648 | mPassWordPiSync = temp->getRemotePwAB(); |
647 | mActiveSyncPort = temp->getRemotePortAB(); | 649 | mActiveSyncPort = temp->getRemotePortAB(); |
648 | mActiveSyncIP = temp->getRemoteIPAB(); | 650 | mActiveSyncIP = temp->getRemoteIPAB(); |
649 | } else if ( mTargetApp == KOPI ) { | 651 | } else if ( mTargetApp == KOPI ) { |
650 | mPassWordPiSync = temp->getRemotePw(); | 652 | mPassWordPiSync = temp->getRemotePw(); |
651 | mActiveSyncPort = temp->getRemotePort(); | 653 | mActiveSyncPort = temp->getRemotePort(); |
652 | mActiveSyncIP = temp->getRemoteIP(); | 654 | mActiveSyncIP = temp->getRemoteIP(); |
653 | } else { | 655 | } else { |
654 | mPassWordPiSync = temp->getRemotePwPWM(); | 656 | mPassWordPiSync = temp->getRemotePwPWM(); |
655 | mActiveSyncPort = temp->getRemotePortPWM(); | 657 | mActiveSyncPort = temp->getRemotePortPWM(); |
656 | mActiveSyncIP = temp->getRemoteIPPWM(); | 658 | mActiveSyncIP = temp->getRemoteIPPWM(); |
657 | } | 659 | } |
658 | syncPi(); | 660 | syncPi(); |
659 | while ( !mPisyncFinished ) { | 661 | while ( !mPisyncFinished ) { |
660 | //qDebug("waiting "); | 662 | //qDebug("waiting "); |
661 | qApp->processEvents(); | 663 | qApp->processEvents(); |
662 | } | 664 | } |
663 | timer.start(); | 665 | timer.start(); |
664 | while ( timer.elapsed () < 2000 ) { | 666 | while ( timer.elapsed () < 2000 ) { |
665 | qApp->processEvents(); | 667 | qApp->processEvents(); |
666 | } | 668 | } |
667 | } else | 669 | } else |
668 | syncRemote( temp, false ); | 670 | syncRemote( temp, false ); |
669 | 671 | ||
670 | } | 672 | } |
671 | } | 673 | } |
672 | timer.start(); | 674 | timer.start(); |
673 | mParent->topLevelWidget()->setCaption(i18n("Multiple sync in progress ... please wait!") ); | 675 | mParent->topLevelWidget()->setCaption(i18n("Multiple sync in progress ... please wait!") ); |
674 | while ( timer.elapsed () < 2000 ) { | 676 | while ( timer.elapsed () < 2000 ) { |
675 | qApp->processEvents(); | 677 | qApp->processEvents(); |
676 | #ifndef _WIN32_ | 678 | #ifndef _WIN32_ |
677 | sleep (1); | 679 | sleep (1); |
678 | #endif | 680 | #endif |
679 | } | 681 | } |
680 | 682 | ||
681 | } | 683 | } |
682 | 684 | ||
683 | } | 685 | } |
684 | delete temp; | 686 | delete temp; |
685 | return syncedProfiles; | 687 | return syncedProfiles; |
686 | } | 688 | } |
687 | 689 | ||
688 | void KSyncManager::syncRemote( KSyncProfile* prof, bool ask) | 690 | void KSyncManager::syncRemote( KSyncProfile* prof, bool ask) |
689 | { | 691 | { |
690 | QString question; | 692 | QString question; |
691 | if ( ask ) { | 693 | if ( ask ) { |
692 | question = i18n("Do you really want\nto remote sync\nwith profile \n")+ prof->getName()+" ?\n"; | 694 | question = i18n("Do you really want\nto remote sync\nwith profile \n")+ prof->getName()+" ?\n"; |
693 | if ( QMessageBox::information( mParent, i18n("Sync"), | 695 | if ( QMessageBox::information( mParent, i18n("Sync"), |
694 | question, | 696 | question, |
695 | i18n("Yes"), i18n("No"), | 697 | i18n("Yes"), i18n("No"), |
696 | 0, 0 ) != 0 ) | 698 | 0, 0 ) != 0 ) |
697 | return; | 699 | return; |
698 | } | 700 | } |
699 | 701 | ||
700 | QString preCommand; | 702 | QString preCommand; |
701 | QString localTempFile; | 703 | QString localTempFile; |
702 | QString postCommand; | 704 | QString postCommand; |
703 | 705 | ||
704 | switch(mTargetApp) | 706 | switch(mTargetApp) |
705 | { | 707 | { |
706 | case (KAPI): | 708 | case (KAPI): |
707 | preCommand = prof->getPreSyncCommandAB(); | 709 | preCommand = prof->getPreSyncCommandAB(); |
708 | postCommand = prof->getPostSyncCommandAB(); | 710 | postCommand = prof->getPostSyncCommandAB(); |
709 | localTempFile = prof->getLocalTempFileAB(); | 711 | localTempFile = prof->getLocalTempFileAB(); |
710 | break; | 712 | break; |
711 | case (KOPI): | 713 | case (KOPI): |
712 | preCommand = prof->getPreSyncCommand(); | 714 | preCommand = prof->getPreSyncCommand(); |
713 | postCommand = prof->getPostSyncCommand(); | 715 | postCommand = prof->getPostSyncCommand(); |
714 | localTempFile = prof->getLocalTempFile(); | 716 | localTempFile = prof->getLocalTempFile(); |
715 | break; | 717 | break; |
716 | case (PWMPI): | 718 | case (PWMPI): |
717 | preCommand = prof->getPreSyncCommandPWM(); | 719 | preCommand = prof->getPreSyncCommandPWM(); |
718 | postCommand = prof->getPostSyncCommandPWM(); | 720 | postCommand = prof->getPostSyncCommandPWM(); |
719 | localTempFile = prof->getLocalTempFilePWM(); | 721 | localTempFile = prof->getLocalTempFilePWM(); |
720 | break; | 722 | break; |
721 | default: | 723 | default: |
722 | qDebug("KSM::syncRemote: invalid apptype selected"); | 724 | qDebug("KSM::syncRemote: invalid apptype selected"); |
723 | break; | 725 | break; |
724 | } | 726 | } |
725 | 727 | ||
726 | 728 | ||
727 | int fi; | 729 | int fi; |
728 | if ( (fi = preCommand.find("$PWD$")) > 0 ) { | 730 | if ( (fi = preCommand.find("$PWD$")) > 0 ) { |
729 | QString pwd = getPassword(); | 731 | QString pwd = getPassword(); |
730 | preCommand = preCommand.left( fi )+ pwd + preCommand.mid( fi+5 ); | 732 | preCommand = preCommand.left( fi )+ pwd + preCommand.mid( fi+5 ); |
731 | 733 | ||
732 | } | 734 | } |
733 | int maxlen = 30; | 735 | int maxlen = 30; |
734 | if ( QApplication::desktop()->width() > 320 ) | 736 | if ( QApplication::desktop()->width() > 320 ) |
735 | maxlen += 25; | 737 | maxlen += 25; |
736 | mParent->topLevelWidget()->setCaption ( i18n( "Copy remote file to local machine..." ) ); | 738 | mParent->topLevelWidget()->setCaption ( i18n( "Copy remote file to local machine..." ) ); |
737 | int fileSize = 0; | 739 | int fileSize = 0; |
738 | int result = system ( preCommand ); | 740 | int result = system ( preCommand ); |
739 | // 0 : okay | 741 | // 0 : okay |
740 | // 256: no such file or dir | 742 | // 256: no such file or dir |
741 | // | 743 | // |
742 | qDebug("KSM::Sync: Remote copy result(0 = okay): %d ",result ); | 744 | qDebug("KSM::Sync: Remote copy result(0 = okay): %d ",result ); |
743 | if ( result != 0 ) { | 745 | if ( result != 0 ) { |
744 | unsigned int len = maxlen; | 746 | unsigned int len = maxlen; |
745 | while ( len < preCommand.length() ) { | 747 | while ( len < preCommand.length() ) { |
746 | preCommand.insert( len , "\n" ); | 748 | preCommand.insert( len , "\n" ); |
747 | len += maxlen +2; | 749 | len += maxlen +2; |
748 | } | 750 | } |
749 | question = i18n("Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n").arg (preCommand) ; | 751 | question = i18n("Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n").arg (preCommand) ; |
750 | QMessageBox::information( mParent, i18n("Sync - ERROR"), | 752 | QMessageBox::information( mParent, i18n("Sync - ERROR"), |
751 | question, | 753 | question, |
752 | i18n("Okay!")) ; | 754 | i18n("Okay!")) ; |
753 | mParent->topLevelWidget()->setCaption ("KDE-Pim"); | 755 | mParent->topLevelWidget()->setCaption ("KDE-Pim"); |
754 | return; | 756 | return; |
755 | } | 757 | } |
756 | mParent->topLevelWidget()->setCaption ( i18n( "Copying succeed." ) ); | 758 | mParent->topLevelWidget()->setCaption ( i18n( "Copying succeed." ) ); |
757 | //qDebug(" file **%s** ",prof->getLocalTempFile().latin1() ); | 759 | //qDebug(" file **%s** ",prof->getLocalTempFile().latin1() ); |
758 | 760 | ||
759 | if ( syncWithFile( localTempFile, true ) ) { | 761 | if ( syncWithFile( localTempFile, true ) ) { |
760 | 762 | ||
761 | if ( mWriteBackFile ) { | 763 | if ( mWriteBackFile ) { |
762 | int fi; | 764 | int fi; |
763 | if ( (fi = postCommand.find("$PWD$")) > 0 ) { | 765 | if ( (fi = postCommand.find("$PWD$")) > 0 ) { |
764 | QString pwd = getPassword(); | 766 | QString pwd = getPassword(); |
765 | postCommand = postCommand.left( fi )+ pwd + postCommand.mid( fi+5 ); | 767 | postCommand = postCommand.left( fi )+ pwd + postCommand.mid( fi+5 ); |
766 | 768 | ||
767 | } | 769 | } |
768 | mParent->topLevelWidget()->setCaption ( i18n( "Writing back file ..." ) ); | 770 | mParent->topLevelWidget()->setCaption ( i18n( "Writing back file ..." ) ); |
769 | result = system ( postCommand ); | 771 | result = system ( postCommand ); |
770 | qDebug("KSM::Sync:Writing back file result: %d ", result); | 772 | qDebug("KSM::Sync:Writing back file result: %d ", result); |
771 | if ( result != 0 ) { | 773 | if ( result != 0 ) { |
772 | mParent->topLevelWidget()->setCaption ( i18n( "Writing back file result: " )+QString::number( result ) ); | 774 | mParent->topLevelWidget()->setCaption ( i18n( "Writing back file result: " )+QString::number( result ) ); |
773 | return; | 775 | return; |
774 | } else { | 776 | } else { |
775 | mParent->topLevelWidget()->setCaption ( i18n( "Syncronization sucessfully completed" ) ); | 777 | mParent->topLevelWidget()->setCaption ( i18n( "Syncronization sucessfully completed" ) ); |
776 | } | 778 | } |
777 | } | 779 | } |
778 | } | 780 | } |
779 | return; | 781 | return; |
780 | } | 782 | } |
781 | bool KSyncManager::edit_pisync_options() | 783 | bool KSyncManager::edit_pisync_options() |
782 | { | 784 | { |
783 | QDialog dia( mParent, "dia", true ); | 785 | QDialog dia( mParent, "dia", true ); |
784 | dia.setCaption( i18n("Pi-Sync options for device: " ) +mCurrentSyncDevice ); | 786 | dia.setCaption( i18n("Pi-Sync options for device: " ) +mCurrentSyncDevice ); |
785 | QVBoxLayout lay ( &dia ); | 787 | QVBoxLayout lay ( &dia ); |
786 | lay.setSpacing( 5 ); | 788 | lay.setSpacing( 5 ); |
787 | lay.setMargin( 3 ); | 789 | lay.setMargin( 3 ); |