author | zautrix <zautrix> | 2005-02-17 10:52:04 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-17 10:52:04 (UTC) |
commit | 002e4f8cea2352e4b9a046b98f66be946fbeb5fc (patch) (unidiff) | |
tree | 7dde06f92ed54ec8ee40e68eaa312d2a2d379fb1 | |
parent | ec18172021a9adc0f6fa1fe80aec71e9a905a351 (diff) | |
download | kdepimpi-002e4f8cea2352e4b9a046b98f66be946fbeb5fc.zip kdepimpi-002e4f8cea2352e4b9a046b98f66be946fbeb5fc.tar.gz kdepimpi-002e4f8cea2352e4b9a046b98f66be946fbeb5fc.tar.bz2 |
desktop fix
-rw-r--r-- | bin/kdepim/kopiemail/germantranslation.txt | 2 | ||||
-rw-r--r-- | kmicromail/composemail.cpp | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/bin/kdepim/kopiemail/germantranslation.txt b/bin/kdepim/kopiemail/germantranslation.txt index 58f4ea8..0d858a8 100644 --- a/bin/kdepim/kopiemail/germantranslation.txt +++ b/bin/kdepim/kopiemail/germantranslation.txt | |||
@@ -1,274 +1,274 @@ | |||
1 | { " Local Time"," Locale Zeit" }, | 1 | { " Local Time"," Locale Zeit" }, |
2 | { "Preferences","Vorlieben" }, | 2 | { "Preferences","Vorlieben" }, |
3 | { "Ok","Ok" }, | 3 | { "Ok","Ok" }, |
4 | { "Default","Standard" }, | 4 | { "Default","Standard" }, |
5 | { "Cancel","Abbrechen" }, | 5 | { "Cancel","Abbrechen" }, |
6 | { "Global","Global" }, | 6 | { "Global","Global" }, |
7 | { "Email","Email" }, | 7 | { "Email","Email" }, |
8 | { "Phone","Phone" }, | 8 | { "Phone","Phone" }, |
9 | { "SMS","SMS" }, | 9 | { "SMS","SMS" }, |
10 | { "Fax","Fax" }, | 10 | { "Fax","Fax" }, |
11 | { "Pager","Pager" }, | 11 | { "Pager","Pager" }, |
12 | { "SIP","SIP" }, | 12 | { "SIP","SIP" }, |
13 | { "Language:(needs restart)","Sprache (Neustart!)" }, | 13 | { "Language:(needs restart)","Sprache (Neustart!)" }, |
14 | { "English","Englisch" }, | 14 | { "English","Englisch" }, |
15 | { "German","Deutsch" }, | 15 | { "German","Deutsch" }, |
16 | { "French","Französich" }, | 16 | { "French","Französich" }, |
17 | { "Italian","Italienisch" }, | 17 | { "Italian","Italienisch" }, |
18 | { "User defined (usertranslation.txt)","Benutzerdef.(usertranslation.txt)" }, | 18 | { "User defined (usertranslation.txt)","Benutzerdef.(usertranslation.txt)" }, |
19 | { "Time Format(nr):","Zeit Format(Neustart!)" }, | 19 | { "Time Format(nr):","Zeit Format(Neustart!)" }, |
20 | { "24:00","24:00" }, | 20 | { "24:00","24:00" }, |
21 | { "12:00am","12:00am" }, | 21 | { "12:00am","12:00am" }, |
22 | { "Week starts on Sunday","Woche beginnt Sonntags" }, | 22 | { "Week starts on Sunday","Woche beginnt Sonntags" }, |
23 | { "Locale","Localisation" }, | 23 | { "Locale","Localisation" }, |
24 | { "Date Format:","Datums Format:" }, | 24 | { "Date Format:","Datums Format:" }, |
25 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, | 25 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, |
26 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, | 26 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, |
27 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, | 27 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, |
28 | { "User defined","Benutzerdefiniert" }, | 28 | { "User defined","Benutzerdefiniert" }, |
29 | { "User long date:","Format langes Datum:" }, | 29 | { "User long date:","Format langes Datum:" }, |
30 | { "User short date:","Format kurzes Datum:" }, | 30 | { "User short date:","Format kurzes Datum:" }, |
31 | { "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, | 31 | { "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, |
32 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, | 32 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, |
33 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, | 33 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, |
34 | { "Date Format","Datums Format" }, | 34 | { "Date Format","Datums Format" }, |
35 | { "Timezone:","Zeitzone:" }, | 35 | { "Timezone:","Zeitzone:" }, |
36 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, | 36 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, |
37 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, | 37 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, |
38 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, | 38 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, |
39 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, | 39 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, |
40 | { "Daylight start:","Sommerzeit Beginn:" }, | 40 | { "Daylight start:","Sommerzeit Beginn:" }, |
41 | { "Mon","Mo" }, | 41 | { "Mon","Mo" }, |
42 | { "Tue","Di" }, | 42 | { "Tue","Di" }, |
43 | { "Wed","Mi" }, | 43 | { "Wed","Mi" }, |
44 | { "Thu","Do" }, | 44 | { "Thu","Do" }, |
45 | { "Fri","Fr" }, | 45 | { "Fri","Fr" }, |
46 | { "Sat","Sa" }, | 46 | { "Sat","Sa" }, |
47 | { "Sun","So" }, | 47 | { "Sun","So" }, |
48 | { "January","Januar" }, | 48 | { "January","Januar" }, |
49 | { "February","Februar" }, | 49 | { "February","Februar" }, |
50 | { "March","März" }, | 50 | { "March","März" }, |
51 | { "April","April" }, | 51 | { "April","April" }, |
52 | { "May","Mai" }, | 52 | { "May","Mai" }, |
53 | { "June","Juni" }, | 53 | { "June","Juni" }, |
54 | { "July","Juli" }, | 54 | { "July","Juli" }, |
55 | { "August","August" }, | 55 | { "August","August" }, |
56 | { "September","September" }, | 56 | { "September","September" }, |
57 | { "October","Oktober" }, | 57 | { "October","Oktober" }, |
58 | { "November","November" }, | 58 | { "November","November" }, |
59 | { "December","Dezember" }, | 59 | { "December","Dezember" }, |
60 | { "tomorrow","morgen" }, | 60 | { "tomorrow","morgen" }, |
61 | { "today","heute" }, | 61 | { "today","heute" }, |
62 | { "yesterday","gestern" }, | 62 | { "yesterday","gestern" }, |
63 | { "Monday","Montag" }, | 63 | { "Monday","Montag" }, |
64 | { "Tuesday","Dienstag" }, | 64 | { "Tuesday","Dienstag" }, |
65 | { "Wednesday","Mittwoch" }, | 65 | { "Wednesday","Mittwoch" }, |
66 | { "Thursday","Donnerstag" }, | 66 | { "Thursday","Donnerstag" }, |
67 | { "Friday","Freitag" }, | 67 | { "Friday","Freitag" }, |
68 | { "Saturday","Samstag" }, | 68 | { "Saturday","Samstag" }, |
69 | { "Sunday","Sonntag" }, | 69 | { "Sunday","Sonntag" }, |
70 | { "Daylight end:","Sommerzeit Ende:" }, | 70 | { "Daylight end:","Sommerzeit Ende:" }, |
71 | { "Time Zone","Zeitzone" }, | 71 | { "Time Zone","Zeitzone" }, |
72 | { "Used Mail Client","Benutzter Mail Client" }, | 72 | { "Used Mail Client","Benutzter Mail Client" }, |
73 | { "Channel:","Channel:" }, | 73 | { "Channel:","Channel:" }, |
74 | { "Message:","Message:" }, | 74 | { "Message:","Message:" }, |
75 | { "Parameters:","Parameter:" }, | 75 | { "Parameters:","Parameter:" }, |
76 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, | 76 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, |
77 | { "extra Message:","extra Message:" }, | 77 | { "extra Message:","extra Message:" }, |
78 | { "extra Parameters:","extra Parameter:" }, | 78 | { "extra Parameters:","extra Parameter:" }, |
79 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, | 79 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, |
80 | { "External Apps.","Externe Appl." }, | 80 | { "External Apps.","Externe Appl." }, |
81 | { "General","Allgemein" }, | 81 | { "General","Allgemein" }, |
82 | { "Full &name:","Vor- und &Nachname:" }, | 82 | { "Full &name:","Vor- und &Nachname:" }, |
83 | { "E&mail address:","E&mail Adresse:" }, | 83 | { "E&mail address:","E&mail Adresse:" }, |
84 | { "Fonts","Schriftart" }, | 84 | { "Fonts","Schriftart" }, |
85 | { "Choose...","Wähle..." }, | 85 | { "Choose...","Wähle..." }, |
86 | { "Used %1 Client","Benutzter %1 Client" }, | 86 | { "Used %1 Client","Benutzter %1 Client" }, |
87 | { "No email client installed","Kein Email Klient installiert" }, | 87 | { "No email client installed","Kein Email Klient installiert" }, |
88 | { "Userdefined email client","Benutzerdef. Email Klient" }, | 88 | { "Userdefined email client","Benutzerdef. Email Klient" }, |
89 | { "OM/Pi email client","OM/Pi Email Klient" }, | 89 | { "OM/Pi email client","OM/Pi Email Klient" }, |
90 | { "Delete","Löschen" }, | 90 | { "Delete","Löschen" }, |
91 | { "New","Neu" }, | 91 | { "New","Neu" }, |
92 | { "Edit","Bearbeite" }, | 92 | { "Edit","Bearbeite" }, |
93 | { "Close","Schließen" }, | 93 | { "Close","Schließen" }, |
94 | { "Size","Größe" }, | 94 | { "Size","Größe" }, |
95 | { "Date","Datum" }, | 95 | { "Date","Datum" }, |
96 | { "Please set at","Bitte einstellen in" }, | 96 | { "Please set at","Bitte einstellen in" }, |
97 | { "Settings@General TAB","Einstellungen@Allgemein TAB" }, | 97 | { "Settings@General TAB","Einstellungen@Allgemein TAB" }, |
98 | { "KOpieMail/Pi","KOpieMail/Pi" }, | 98 | { "KOpieMail/Pi","KOpieMail/Pi" }, |
99 | { "Mail","Mail" }, | 99 | { "Mail","Mail" }, |
100 | { "Settings","Konfig" }, | 100 | { "Settings","Konfig" }, |
101 | { "Get all new mails","Hole alle neuen Mails" }, | 101 | { "Get all new mails","Hole alle neuen Mails" }, |
102 | { "Get new messages","Hole neue mails" }, | 102 | { "Get new messages","Hole neue mails" }, |
103 | { "Compose new mail","Schreibe neue Mail" }, | 103 | { "Compose new mail","Schreibe neue Mail" }, |
104 | { "Send queued mails","Sende gespeicherte Mails" }, | 104 | { "Send queued mails","Sende gespeicherte Mails" }, |
105 | { "Show/Hide folders","Zeige Verzeichnisse" }, | 105 | { "Show/Hide folders","Zeige Verzeichnisse" }, |
106 | { "Delete Mail","Lösche Mail" }, | 106 | { "Delete Mail","Lösche Mail" }, |
107 | { "Edit settings","Ändere Einstellungen" }, | 107 | { "Edit settings","Ändere Einstellungen" }, |
108 | { "Configure accounts","Konfiguriere Zugänge" }, | 108 | { "Configure accounts","Konfiguriere Zugänge" }, |
109 | { "Mailbox","Mailbox" }, | 109 | { "Mailbox","Mailbox" }, |
110 | { "Subject","Betreff" }, | 110 | { "Subject","Betreff" }, |
111 | { "Sender","Sender" }, | 111 | { "Sender","Sender" }, |
112 | { "Size","Größe" }, | 112 | { "Size","Größe" }, |
113 | { "Date","Datum" }, | 113 | { "Date","Datum" }, |
114 | { "Close","Schliessen" }, | 114 | { "Close","Schliessen" }, |
115 | { "Help","Hilfe" }, | 115 | { "Help","Hilfe" }, |
116 | { "About","Über" }, | 116 | { "About","Über" }, |
117 | { "Licence","Lizenz" }, | 117 | { "Licence","Lizenz" }, |
118 | { "LibEtPan Licence","LibEtPan Lizenz" }, | 118 | { "LibEtPan Licence","LibEtPan Lizenz" }, |
119 | { "Settings - some need a restart (nr)","Einstellungen - manche benötigen einen Neustart (nr)" }, | 119 | { "Settings - some need a restart (nr)","Einstellungen - manche benötigen einen Neustart (nr)" }, |
120 | { "HINT: Separate multiple\neMail addresses by ";"","Hinweis:Trenne mehrere\nAddressen mit einem ";"" }, | 120 | { "HINT: Separate multiple\neMail addresses by ";"","Hinweis:Trenne mehrere\nAddressen mit einem ";"" }, |
121 | { "Ignore above settings and\nuse KA/Pi "Who am I" instead!","Ignoriere obige Einstellungen und\nbenutze KA/Pi "Wer bin ich"\nstattdessen!" }, | 121 | { "Ignore above settings and\nuse KA/Pi "Who am I" instead!","Ignoriere obige Einstellungen und\nbenutze KA/Pi "Wer bin ich"\nstattdessen!" }, |
122 | { "View mail as html","Zeige Mails als html" }, | 122 | { "View mail as html","Zeige Mails als html" }, |
123 | { "Send mails later","Sende Mails später" }, | 123 | { "Send mails later","Sende Mails später" }, |
124 | { "Application(nr)","Applikation(nr)" }, | 124 | { "Application(nr)","Applikation(nr)" }, |
125 | { "OK","OK" }, | 125 | { "OK","OK" }, |
126 | { "Compose mail:","Verfasse Mail:" }, | 126 | { "Compose mail:","Verfasse Mail:" }, |
127 | { "Dear Mr.","Hallo Herr" }, | 127 | { "Dear Mr.","Hallo Herr" }, |
128 | { "Read mail:","Lese Mail:" }, | 128 | { "Read mail:","Lese Mail:" }, |
129 | { "Hello","Hallo" }, | 129 | { "Hello","Hallo" }, |
130 | { "Configure Accounts","Konfigure Zugänge" }, | 130 | { "Configure Accounts","Konfigure Zugänge" }, |
131 | { "Name of the Account","Name des Zugangs" }, | 131 | { "Name of the Account","Name des Zugangs" }, |
132 | { "News","News" }, | 132 | { "News","News" }, |
133 | { "Account","Zugang" }, | 133 | { "Account","Zugang" }, |
134 | { "Type","Typ" }, | 134 | { "Type","Typ" }, |
135 | { "<p>Please select an account.</p>","<p>Bitte wähle einen Zugang.</p>" }, | 135 | { "<p>Please select an account.</p>","<p>Bitte wähle einen Zugang.</p>" }, |
136 | { "Error","Fehler" }, | 136 | { "Error","Fehler" }, |
137 | { "Configure NNTP","Konfiguriere News" }, | 137 | { "Configure NNTP","Konfiguriere News" }, |
138 | { "Port","Port" }, | 138 | { "Port","Port" }, |
139 | { "Server","Server" }, | 139 | { "Server","Server" }, |
140 | { "Use SSL","Benutze SSL" }, | 140 | { "Use SSL","Benutze SSL" }, |
141 | { "User","Benutzer" }, | 141 | { "User","Benutzer" }, |
142 | { "Password","Passwort" }, | 142 | { "Password","Passwort" }, |
143 | { "Use Login","Benutze Login" }, | 143 | { "Use Login","Benutze Login" }, |
144 | { "Newsgroup","Newsgroup" }, | 144 | { "Newsgroup","Newsgroup" }, |
145 | { "Get newsgroup list from server","Hole Newsgroup Liste vom Server" }, | 145 | { "Get newsgroup list from server","Hole Newsgroup Liste vom Server" }, |
146 | { "Filter:","Filter:" }, | 146 | { "Filter:","Filter:" }, |
147 | { "Show subscribed","Zeige abbonnierte" }, | 147 | { "Show subscribed","Zeige abbonnierte" }, |
148 | { "Groups","NewsGroups" }, | 148 | { "Groups","NewsGroups" }, |
149 | { "Configure IMAP","Konfiguriere IMAP" }, | 149 | { "Configure IMAP","Konfiguriere IMAP" }, |
150 | { "Use secure sockets:","Benutze sichere Verbindung:" }, | 150 | { "Use secure sockets:","Benutze sichere Verbindung:" }, |
151 | { "ssh $SERVER exec","ssh $SERVER exec" }, | 151 | { "ssh $SERVER exec","ssh $SERVER exec" }, |
152 | { "Prefix","Prefix" }, | 152 | { "Prefix","Prefix" }, |
153 | { "Local storage folder:","Lokales Verzeichnis:" }, | 153 | { "Local storage folder:","Lokales Verzeichnis:" }, |
154 | { "Get only messages smaller","Hole nur Nachrichten kleiner" }, | 154 | { "Get only messages smaller","Hole nur Nachrichten kleiner" }, |
155 | { "kB","kB" }, | 155 | { "kB","kB" }, |
156 | { "Leave Messages on Server","Belasse Nachrichten auf dem Server" }, | 156 | { "Leave Messages on Server","Belasse Nachrichten auf dem Server" }, |
157 | { "Configure POP3","Konfiguriere POP3" }, | 157 | { "Configure POP3","Konfiguriere POP3" }, |
158 | { "ssh $SERVER exec imapd","ssh $SERVER exec imapd" }, | 158 | { "ssh $SERVER exec imapd","ssh $SERVER exec imapd" }, |
159 | { "Configure SMTP","Konfiguriere SMTP" }, | 159 | { "Configure SMTP","Konfiguriere SMTP" }, |
160 | { "Name of the SMTP Server","Name des SMTP Servers" }, | 160 | { "Name of the SMTP Server","Name des SMTP Servers" }, |
161 | { "Port of the SMTP Server","Port des SMTP Servers" }, | 161 | { "Port of the SMTP Server","Port des SMTP Servers" }, |
162 | { "Fetching folder list","Hole Verzeichnis Liste" }, | 162 | { "Fetching folder list","Hole Verzeichnis Liste" }, |
163 | { "Fetch ","Hole " }, | 163 | { "Fetch ","Hole " }, |
164 | { "Fetching header list","Hole Titel Liste" }, | 164 | { "Fetching header list","Hole Titel Liste" }, |
165 | { "Mailbox has %1 mails","Mailbox hat %1 Mails" }, | 165 | { "Mailbox has %1 mails","Mailbox hat %1 Mails" }, |
166 | { "Read this mail","Lies diese Mail" }, | 166 | { "Read this mail","Lies diese Mail" }, |
167 | { "Move/Copy this mail","Verschiebe/kopiere diese Mail" }, | 167 | { "Move/Copy this mail","Verschiebe/kopiere diese Mail" }, |
168 | { "Delete this mail","Lösche diese Mail" }, | 168 | { "Delete this mail","Lösche diese Mail" }, |
169 | { "Move/Copy all selected mail","Verschiebe/kopiere selektierte Mails" }, | 169 | { "Move/Copy all selected mail","Verschiebe/kopiere selektierte Mails" }, |
170 | { "Delete all selected mails","Lösche alle selektierten Mails" }, | 170 | { "Delete all selected mails","Lösche alle selektierten Mails" }, |
171 | { "Clear selection","Selektion aufheben" }, | 171 | { "Clear selection","Selektion aufheben" }, |
172 | { "Reply","Antworten" }, | 172 | { "Reply","Antworten" }, |
173 | { "Forward","Weiterleiten" }, | 173 | { "Forward","Weiterleiten" }, |
174 | { "Attachments","Anhang" }, | 174 | { "Attachments","Anhang" }, |
175 | { "Show Html","Zeige in html" }, | 175 | { "Show Html","Zeige in html" }, |
176 | { "Description","Beschreibung" }, | 176 | { "Description","Beschreibung" }, |
177 | { "Filename","Dateiname" }, | 177 | { "Filename","Dateiname" }, |
178 | { "E-Mail by %1","E-Mail von %1" }, | 178 | { "E-Mail by %1","E-Mail von %1" }, |
179 | { "Cc","Kopie" }, | 179 | { "Cc","Kopie" }, |
180 | { "To","An" }, | 180 | { "To","An" }, |
181 | { "From","Von" }, | 181 | { "From","Von" }, |
182 | { "<p>Do you really want to delete this mail? <br><br>","<p>Wollen Sie diese Mail wirklich löschen? <br><br>" }, | 182 | { "<p>Do you really want to delete this mail? <br><br>","<p>Wollen Sie diese Mail wirklich löschen? <br><br>" }, |
183 | { "Mailbox has %1 mail(s)","Mailbox hat %1 Mail(s)" }, | 183 | { "Mailbox has %1 mail(s)","Mailbox hat %1 Mail(s)" }, |
184 | { "Move/Copie all mails","Verschiebe/kopiere alle Mails" }, | 184 | { "Move/Copie all mails","Verschiebe/kopiere alle Mails" }, |
185 | { "Delete all mails","Lösche alle Mails" }, | 185 | { "Delete all mails","Lösche alle Mails" }, |
186 | { "Create new subfolder","Neues Unterverzeichnis" }, | 186 | { "Create new subfolder","Neues Unterverzeichnis" }, |
187 | { "Delete folder","Lösche Verzeichnis" }, | 187 | { "Delete folder","Lösche Verzeichnis" }, |
188 | { "Refresh folder list","Aktualisiere Liste" }, | 188 | { "Refresh folder list","Aktualisiere Liste" }, |
189 | { "Create new folder","Neues Verzeichnis" }, | 189 | { "Create new folder","Neues Verzeichnis" }, |
190 | { "Disconnect","Diskonnect" }, | 190 | { "Disconnect","Diskonnect" }, |
191 | { "Set offline","Gehe offline" }, | 191 | { "Set offline","Gehe offline" }, |
192 | { "Select target box","Wähle Ziel Box" }, | 192 | { "Select target box","Wähle Ziel Box" }, |
193 | { "<b>Store mail(s) to</b>","<b>Speichere Mail(s) nach</b>" }, | 193 | { "<b>Store mail(s) to</b>","<b>Speichere Mail(s) nach</b>" }, |
194 | { "Folder:","Verzeichnis:" }, | 194 | { "Folder:","Verzeichnis:" }, |
195 | { "Account:","Zugang:" }, | 195 | { "Account:","Zugang:" }, |
196 | { "Prefix will prepend, do not enter","Pfad-Prefix wird vorangestellt" }, | 196 | { "Prefix will prepend, do not enter","Pfad-Prefix wird vorangestellt" }, |
197 | { "Move mail(s)","Verschiebe Mail(s)" }, | 197 | { "Move mail(s)","Verschiebe Mail(s)" }, |
198 | { "only mails smaller","nur Mails kleiner" }, | 198 | { "only mails smaller","nur Mails kleiner" }, |
199 | { " kB"," kB" }, | 199 | { " kB"," kB" }, |
200 | { " message %1 of %2"," Nachricht %1 von %2" }, | 200 | { " message %1 of %2"," Nachricht %1 von %2" }, |
201 | { "Copying...","Am Kopieren..." }, | 201 | { "Copying...","Am Kopieren..." }, |
202 | { "Copy message %1 of %2","Kopiere Nachricht %1 von %2" }, | 202 | { "Copy message %1 of %2","Kopiere Nachricht %1 von %2" }, |
203 | { "Do you really want to delete\nall selected mails?","Wollen Sie wirklich alle\nselektierten Mails Löschen?" }, | 203 | { "Do you really want to delete\nall selected mails?","Wollen Sie wirklich alle\nselektierten Mails Löschen?" }, |
204 | { "Delete All Mails","Lösche alle Mails" }, | 204 | { "Delete All Mails","Lösche alle Mails" }, |
205 | { "Deleting ...","Am Löschen..." }, | 205 | { "Deleting ...","Am Löschen..." }, |
206 | { "Delete message %1 of %2","Lösche Nachricht %1 von %2" }, | 206 | { "Delete message %1 of %2","Lösche Nachricht %1 von %2" }, |
207 | { "Compose Message","Verfasse Nachricht" }, | 207 | { "Compose Message","Verfasse Nachricht" }, |
208 | { "Reply-To","Antwort-An" }, | 208 | { "Reply-To","Antwort-An" }, |
209 | { "BCC","BCC" }, | 209 | { "BCC","BCC" }, |
210 | { "Signature","Signatur" }, | 210 | { "Signature","Signatur" }, |
211 | { "CC","Kopie" }, | 211 | { "CC","Kopie" }, |
212 | { "Options","Optionen" }, | 212 | { "Options","Optionen" }, |
213 | { "Delete File","Lösche Datei" }, | 213 | { "Delete File","Lösche Datei" }, |
214 | { "Add File","Füge Datei hinzu" }, | 214 | { "Add File","Füge Datei hinzu" }, |
215 | { "Attachment","Anhang" }, | 215 | { "Attachment","Anhang" }, |
216 | { "send later","sende später" }, | 216 | { "send later","sende später" }, |
217 | { "use:","via:" }, | 217 | { "use:","via:" }, |
218 | { "Save","Speichern" }, | 218 | { "Save","Speichern" }, |
219 | { "Name","Name" }, | 219 | { "Name","Name" }, |
220 | { "No Receiver spezified","Kein Empfänger angegeben" }, | 220 | { "No Receiver spezified","Kein Empfänger angegeben" }, |
221 | { "Sending mail","Sende Mail" }, | 221 | { "Sending mail","Sende Mail" }, |
222 | { "No","Nein" }, | 222 | { "No","Nein" }, |
223 | { "Yes","Ja" }, | 223 | { "Yes","Ja" }, |
224 | { "Store message into drafts?\n","Speichere Nachricht in Entwürfe?\n" }, | 224 | { "Store message into drafts?\n","Speichere Nachricht in Entwürfe?\n" }, |
225 | { "Store message?","Nachricht speichern?" }, | 225 | { "Store message?","Nachricht speichern?" }, |
226 | { "Select Type","Selektiere Typ" }, | 226 | { "Select Type","Selektiere Typ" }, |
227 | { "Select Account Type","Wähle Art des Zugangs" }, | 227 | { "Select Account Type","Wähle Art des Zugangs" }, |
228 | { "IMAP","IMAP (online lesen)" }, | 228 | { "IMAP","IMAP (online lesen)" }, |
229 | { "POP3","POP3 (holen)" }, | 229 | { "POP3","POP3 (holen)" }, |
230 | { "SMTP","SMTP (senden)" }, | 230 | { "SMTP","SMTP (senden)" }, |
231 | { "<p>Do you really want to delete the selected Account?</p>","<p>Möchten Sie wirklich den ausgewählten Account löschen?</p>" }, | 231 | { "<p>Do you really want to delete the selected Account?</p>","<p>Möchten Sie wirklich den ausgewählten Account löschen?</p>" }, |
232 | { "Question","Eine Frage..." }, | 232 | { "Question","Eine Frage..." }, |
233 | { "Send this message?","Nachricht wirklich senden?" }, | 233 | { "Send this message?","Nachricht wirklich senden?" }, |
234 | { "Stop editing message","Stop editing message" }, | 234 | { "Stop editing message","Stop editing message" }, |
235 | { "Sending mail %1 of %2","Sende Mail %1 von %2" }, | 235 | { "Sending mail %1 of %2","Sende Mail %1 von %2" }, |
236 | { "%1 of %2 bytes send","%1 von %2 Bytes gesendet" }, | 236 | { "%1 of %2 bytes send","%1 von %2 Bytes gesendet" }, |
237 | { "Refresh header list","Aktualisiere Titel Liste" }, | 237 | { "Refresh header list","Aktualisiere Titel Liste" }, |
238 | { "Define a smtp\n account first!\n","Bitte zuerst einen\nSMTP Account anlegen!\n" }, | 238 | { "Define a smtp\n account first!\n","Bitte zuerst einen\nSMTP Account anlegen!\n" }, |
239 | { "Mail queue flushed","Gespeicherte Mails gesendet!" }, | 239 | { "Mail queue flushed","Gespeicherte Mails gesendet!" }, |
240 | { "Please create an\nSMTP account first.\nThe SMTP is needed\nfor sending mail.\n","Bitte legen Sie einen\nSMTP Account an.\nDer SMTP Account wird\nfür das Versenden von\nMails benötigt!" }, | 240 | { "Please create an\nSMTP account first.\nThe SMTP is needed\nfor sending mail.\n","Bitte legen Sie einen\nSMTP Account an.\nDer SMTP Account wird\nfür das Versenden von\nMails benötigt!" }, |
241 | { "Show next mail","Zeige nächste Mail" }, | 241 | { "Show next mail","Zeige nächste Mail" }, |
242 | { "End of List","Ende der Liste" }, | 242 | { "End of List","Ende der Liste" }, |
243 | { "Language","Sprache" }, | 243 | { "Language","Sprache" }, |
244 | { "Time Format","Zeit Format" }, | 244 | { "Time Format","Zeit Format" }, |
245 | { "%1 groups subscribed","%1 Guppen abboniert" }, | 245 | { "%1 groups subscribed","%1 Guppen abboniert" }, |
246 | { "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" }, | 246 | { "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" }, |
247 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, | 247 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, |
248 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, | 248 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, |
249 | { "Save settings","Speichere Einstellungen" }, | 249 | { "Save settings","Speichere Einstellungen" }, |
250 | { "Save standard","Speichere Standard" }, | 250 | { "Save standard","Speichere Standard" }, |
251 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, | 251 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, |
252 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, | 252 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, |
253 | { "Data storage path","Daten Speicherpfad" }, | 253 | { "Data storage path","Daten Speicherpfad" }, |
254 | { "userdefined","benutzerdefiniert" }, | 254 | { "userdefined","benutzerdefiniert" }, |
255 | { "Reply to this mail","Beantworte diese Mail" }, | 255 | { "Reply to this mail","Beantworte diese Mail" }, |
256 | { "Su:","Be:" }, | 256 | { "Su:","Be:" }, |
257 | { "Fr:","Vo:" }, | 257 | { "Fr:","Vo:" }, |
258 | { "To:","An:" }, | 258 | { "To:","An:" }, |
259 | { "Download Mail","Mail runterladen" }, | 259 | { "Download Mail","Mail runterladen" }, |
260 | { "View Source","Zeige Source" }, | 260 | { "View Source","Zeige Source" }, |
261 | { "Show "To" field in list view","Zeige "An" Feld in Listenansicht" }, | 261 | { "Show "To" field in list view","Zeige "An" Feld in Listenansicht" }, |
262 | { "Show info fields at startup","Zeige Info Felder beim Start" }, | 262 | { "Show info fields at startup","Zeige Info Felder beim Start" }, |
263 | { "Show "Subject" info field","Zeige "Betreff" Info Feld" }, | 263 | { "Show "Subject" info field","Zeige "Betreff" Info Feld" }, |
264 | { "Show "From" info field","Zeige "Von" Info Feld" }, | 264 | { "Show "From" info field","Zeige "Von" Info Feld" }, |
265 | { "Show "To" info field","Zeige "An" Info Feld" }, | 265 | { "Show "To" info field","Zeige "An" Info Feld" }, |
266 | { "Mail saved as draft!","Mail als Entwurf gespeichert!" }, | 266 | { "Mail saved as draft!","Mail als Entwurf gespeichert!" }, |
267 | { "","" }, | 267 | { "Save signature","Speichere Signatur" }, |
268 | { "","" }, | 268 | { "","" }, |
269 | { "","" }, | 269 | { "","" }, |
270 | { "","" }, | 270 | { "","" }, |
271 | { "","" }, | 271 | { "","" }, |
272 | { "","" }, | 272 | { "","" }, |
273 | { "","" }, | 273 | { "","" }, |
274 | { "","" }, | 274 | { "","" }, |
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp index 3231b45..7b609fc 100644 --- a/kmicromail/composemail.cpp +++ b/kmicromail/composemail.cpp | |||
@@ -1,538 +1,545 @@ | |||
1 | // CHANGED 2004-08-06 Lutz Rogowski | 1 | // CHANGED 2004-08-06 Lutz Rogowski |
2 | 2 | ||
3 | 3 | ||
4 | #ifdef DESKTOP_VERSION | 4 | #ifdef DESKTOP_VERSION |
5 | #include <qapplication.h> | 5 | #include <qapplication.h> |
6 | #include <kabc/addresseedialog.h> | 6 | #include <kabc/addresseedialog.h> |
7 | #include <kabc/stdaddressbook.h> | 7 | #include <kabc/stdaddressbook.h> |
8 | #include <kabc/addressee.h> | 8 | #include <kabc/addressee.h> |
9 | #else | 9 | #else |
10 | #include <qpe/qpeapplication.h> | 10 | #include <qpe/qpeapplication.h> |
11 | #endif //DESKTOP_VERSION | 11 | #endif //DESKTOP_VERSION |
12 | #include <libkdepim/externalapphandler.h> | 12 | #include <libkdepim/externalapphandler.h> |
13 | 13 | ||
14 | #include "koprefs.h" | 14 | #include "koprefs.h" |
15 | #include <klocale.h> | 15 | #include <klocale.h> |
16 | #include <kglobal.h> | 16 | #include <kglobal.h> |
17 | 17 | ||
18 | #ifdef MINIKDE_KDIALOG_H | 18 | #ifdef MINIKDE_KDIALOG_H |
19 | #undef MINIKDE_KDIALOG_H | 19 | #undef MINIKDE_KDIALOG_H |
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | 22 | ||
23 | #include "composemail.h" | 23 | #include "composemail.h" |
24 | 24 | ||
25 | #include <libmailwrapper/smtpwrapper.h> | 25 | #include <libmailwrapper/smtpwrapper.h> |
26 | #include <libmailwrapper/storemail.h> | 26 | #include <libmailwrapper/storemail.h> |
27 | #include <libmailwrapper/abstractmail.h> | 27 | #include <libmailwrapper/abstractmail.h> |
28 | #include <libmailwrapper/mailtypes.h> | 28 | #include <libmailwrapper/mailtypes.h> |
29 | 29 | ||
30 | /* OPIE */ | 30 | /* OPIE */ |
31 | //#include <opie2/ofiledialog.h> | 31 | //#include <opie2/ofiledialog.h> |
32 | //#include <opie2/odebug.h> | 32 | //#include <opie2/odebug.h> |
33 | #include <kfiledialog.h> | 33 | #include <kfiledialog.h> |
34 | //#include <qpe/resource.h> | 34 | //#include <qpe/resource.h> |
35 | #include <qpe/global.h> | 35 | #include <qpe/global.h> |
36 | //#include <qpe/contact.h> | 36 | //#include <qpe/contact.h> |
37 | 37 | ||
38 | 38 | ||
39 | #include <qcombobox.h> | 39 | #include <qcombobox.h> |
40 | #include <qcheckbox.h> | 40 | #include <qcheckbox.h> |
41 | #include <qiconset.h> | 41 | #include <qiconset.h> |
42 | #include <qtimer.h> | 42 | #include <qtimer.h> |
43 | #include <qmessagebox.h> | 43 | #include <qmessagebox.h> |
44 | #include <qpushbutton.h> | 44 | #include <qpushbutton.h> |
45 | #include <qmultilineedit.h> | 45 | #include <qmultilineedit.h> |
46 | #include <qlabel.h> | 46 | #include <qlabel.h> |
47 | #include <qtabwidget.h> | 47 | #include <qtabwidget.h> |
48 | #include <qlistview.h> | 48 | #include <qlistview.h> |
49 | 49 | ||
50 | //using namespace Opie::Core; | 50 | //using namespace Opie::Core; |
51 | //using namespace Opie::Ui; | 51 | //using namespace Opie::Ui; |
52 | ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, bool modal ) | 52 | ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, bool modal ) |
53 | : ComposeMailUI( parent, name, modal ) | 53 | : ComposeMailUI( parent, name, modal ) |
54 | { | 54 | { |
55 | 55 | ||
56 | mPickLineEdit = 0; | 56 | mPickLineEdit = 0; |
57 | mEncoding = KOPrefs::instance()->mCurrentCodeName; | 57 | mEncoding = KOPrefs::instance()->mCurrentCodeName; |
58 | //managed from opiemail now | 58 | //managed from opiemail now |
59 | //connect(ExternalAppHandler::instance(), SIGNAL(receivedNameEmailUidListEvent(const QString&, const QStringList&, const QStringList&, const QStringList&)), | 59 | //connect(ExternalAppHandler::instance(), SIGNAL(receivedNameEmailUidListEvent(const QString&, const QStringList&, const QStringList&, const QStringList&)), |
60 | // this, SLOT(insertAttendees(const QString&, const QStringList&, const QStringList&, const QStringList&))); | 60 | // this, SLOT(insertAttendees(const QString&, const QStringList&, const QStringList&, const QStringList&))); |
61 | settings = sett; | 61 | settings = sett; |
62 | m_replyid = ""; | 62 | m_replyid = ""; |
63 | if ( KOPrefs::instance()->mUseKapi) { | 63 | if ( KOPrefs::instance()->mUseKapi) { |
64 | KConfig config( locateLocal("config", "kabcrc") ); | 64 | KConfig config( locateLocal("config", "kabcrc") ); |
65 | config.setGroup( "General" ); | 65 | config.setGroup( "General" ); |
66 | QString whoami_uid = config.readEntry( "WhoAmI" ); | 66 | QString whoami_uid = config.readEntry( "WhoAmI" ); |
67 | 67 | ||
68 | if ( whoami_uid.isEmpty() ) { | 68 | if ( whoami_uid.isEmpty() ) { |
69 | QMessageBox::information( 0, i18n( "Hint" ), | 69 | QMessageBox::information( 0, i18n( "Hint" ), |
70 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), | 70 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), |
71 | i18n( "Ok" ) ); | 71 | i18n( "Ok" ) ); |
72 | 72 | ||
73 | 73 | ||
74 | fillSettings(); | 74 | fillSettings(); |
75 | } else | 75 | } else |
76 | ExternalAppHandler::instance()->requestDetailsFromKAPI("", "sendbacklist", whoami_uid); | 76 | ExternalAppHandler::instance()->requestDetailsFromKAPI("", "sendbacklist", whoami_uid); |
77 | 77 | ||
78 | 78 | ||
79 | #ifdef DESKTOP_VERSION | 79 | #ifdef DESKTOP_VERSION |
80 | KABC::Addressee con = KABC::StdAddressBook::self()->whoAmI( ); | 80 | KABC::Addressee con = KABC::StdAddressBook::self()->whoAmI( ); |
81 | QStringList mails = con.emails(); | 81 | QStringList mails = con.emails(); |
82 | QString defmail = con.preferredEmail(); | 82 | QString defmail = con.preferredEmail(); |
83 | if ( mails.count() == 0) | 83 | if ( mails.count() == 0) |
84 | QMessageBox::information( 0, i18n( "Hint" ), | 84 | QMessageBox::information( 0, i18n( "Hint" ), |
85 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), | 85 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), |
86 | i18n( "Ok" ) ); | 86 | i18n( "Ok" ) ); |
87 | if (defmail.length()!=0) { | 87 | if (defmail.length()!=0) { |
88 | fromBox->insertItem(defmail); | 88 | fromBox->insertItem(defmail); |
89 | } | 89 | } |
90 | QStringList::ConstIterator sit = mails.begin(); | 90 | QStringList::ConstIterator sit = mails.begin(); |
91 | for (;sit!=mails.end();++sit) { | 91 | for (;sit!=mails.end();++sit) { |
92 | if ( (*sit)==defmail) | 92 | if ( (*sit)==defmail) |
93 | continue; | 93 | continue; |
94 | fromBox->insertItem((*sit)); | 94 | fromBox->insertItem((*sit)); |
95 | } | 95 | } |
96 | senderNameEdit->setText(con.formattedName()); | 96 | senderNameEdit->setText(con.formattedName()); |
97 | #endif | 97 | #endif |
98 | 98 | ||
99 | } else { | 99 | } else { |
100 | fillSettings(); | 100 | fillSettings(); |
101 | } | 101 | } |
102 | checkBoxLater->setChecked( KOPrefs::instance()->mSendLater ); | 102 | checkBoxLater->setChecked( KOPrefs::instance()->mSendLater ); |
103 | 103 | ||
104 | attList->addColumn( i18n( "Name" ) ); | 104 | attList->addColumn( i18n( "Name" ) ); |
105 | attList->addColumn( i18n( "Size" ) ); | 105 | attList->addColumn( i18n( "Size" ) ); |
106 | QList<Account> accounts = settings->getAccounts(); | 106 | QList<Account> accounts = settings->getAccounts(); |
107 | 107 | ||
108 | if ( QApplication::desktop()->width() < 320 ) | 108 | if ( QApplication::desktop()->width() < 320 ) |
109 | smtpAccountBox->setMaximumWidth( 80 ); | 109 | smtpAccountBox->setMaximumWidth( 80 ); |
110 | Account *it; | 110 | Account *it; |
111 | for ( it = accounts.first(); it; it = accounts.next() ) { | 111 | for ( it = accounts.first(); it; it = accounts.next() ) { |
112 | if ( it->getType()==MAILLIB::A_SMTP ) { | 112 | if ( it->getType()==MAILLIB::A_SMTP ) { |
113 | SMTPaccount *smtp = static_cast<SMTPaccount *>(it); | 113 | SMTPaccount *smtp = static_cast<SMTPaccount *>(it); |
114 | smtpAccountBox->insertItem( smtp->getAccountName() ); | 114 | smtpAccountBox->insertItem( smtp->getAccountName() ); |
115 | smtpAccounts.append( smtp ); | 115 | smtpAccounts.append( smtp ); |
116 | } | 116 | } |
117 | } | 117 | } |
118 | connect( toButton, SIGNAL( clicked() ), SLOT( pickAddressTo() ) ); | 118 | connect( toButton, SIGNAL( clicked() ), SLOT( pickAddressTo() ) ); |
119 | connect( ccButton, SIGNAL( clicked() ), SLOT( pickAddressCC() ) ); | 119 | connect( ccButton, SIGNAL( clicked() ), SLOT( pickAddressCC() ) ); |
120 | connect( bccButton, SIGNAL( clicked() ), SLOT( pickAddressBCC() ) ); | 120 | connect( bccButton, SIGNAL( clicked() ), SLOT( pickAddressBCC() ) ); |
121 | connect( replyButton, SIGNAL( clicked() ), SLOT( pickAddressReply() ) ); | 121 | connect( replyButton, SIGNAL( clicked() ), SLOT( pickAddressReply() ) ); |
122 | connect( addButton, SIGNAL( clicked() ), SLOT( addAttachment() ) ); | 122 | connect( addButton, SIGNAL( clicked() ), SLOT( addAttachment() ) ); |
123 | connect( deleteButton, SIGNAL( clicked() ), SLOT( removeAttachment() ) ); | 123 | connect( deleteButton, SIGNAL( clicked() ), SLOT( removeAttachment() ) ); |
124 | connect( SaveButton, SIGNAL( clicked() ), SLOT( saveAsDraft()) ); | 124 | connect( SaveButton, SIGNAL( clicked() ), SLOT( saveAsDraft()) ); |
125 | mMail = 0; | 125 | mMail = 0; |
126 | warnAttach = true; | 126 | warnAttach = true; |
127 | QIconSet icon; | 127 | QIconSet icon; |
128 | //icon = SmallIcon("fileexport"); | 128 | //icon = SmallIcon("fileexport"); |
129 | icon = SmallIcon("filesave"); | 129 | icon = SmallIcon("filesave"); |
130 | SaveButton->setIconSet (icon ) ; | 130 | SaveButton->setIconSet (icon ) ; |
131 | if ( QApplication::desktop()->width() < 320 ) { | 131 | if ( QApplication::desktop()->width() < 320 ) { |
132 | SaveButton->setText ("") ; | 132 | SaveButton->setText ("") ; |
133 | SaveButton->setMaximumSize ( SaveButton->sizeHint().height(),SaveButton->sizeHint().height()) ; | 133 | SaveButton->setMaximumSize ( SaveButton->sizeHint().height(),SaveButton->sizeHint().height()) ; |
134 | } | 134 | } |
135 | else | 135 | else |
136 | SaveButton->setText (i18n("Save")); | 136 | SaveButton->setText (i18n("Save")); |
137 | #ifndef DESKTOP_VERSION | 137 | #ifndef DESKTOP_VERSION |
138 | QPEApplication::setStylusOperation( message, QPEApplication::RightOnHold ); | 138 | QPEApplication::setStylusOperation( message, QPEApplication::RightOnHold ); |
139 | QPEApplication::setStylusOperation( senderNameEdit, QPEApplication::RightOnHold ); | 139 | QPEApplication::setStylusOperation( senderNameEdit, QPEApplication::RightOnHold ); |
140 | QPEApplication::setStylusOperation( subjectLine, QPEApplication::RightOnHold ); | 140 | QPEApplication::setStylusOperation( subjectLine, QPEApplication::RightOnHold ); |
141 | #endif | 141 | #endif |
142 | message->setFont ( KOPrefs::instance()->mComposeFont ); | 142 | message->setFont ( KOPrefs::instance()->mComposeFont ); |
143 | message->setWordWrap (QMultiLineEdit::WidgetWidth); | 143 | message->setWordWrap (QMultiLineEdit::WidgetWidth); |
144 | if ( smtpAccounts.count() > 0 ) { | 144 | if ( smtpAccounts.count() > 0 ) { |
145 | fillValues( smtpAccountBox->currentItem() ); | 145 | fillValues( smtpAccountBox->currentItem() ); |
146 | } else { | 146 | } else { |
147 | QMessageBox::information( 0, i18n( "Problem" ), | 147 | QMessageBox::information( 0, i18n( "Problem" ), |
148 | i18n( "Please create an\nSMTP account first.\nThe SMTP is needed\nfor sending mail.\n" ), | 148 | i18n( "Please create an\nSMTP account first.\nThe SMTP is needed\nfor sending mail.\n" ), |
149 | i18n( "Ok" ) ); | 149 | i18n( "Ok" ) ); |
150 | return; | 150 | return; |
151 | } | 151 | } |
152 | connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); | 152 | connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); |
153 | connect( SaveSigButton, SIGNAL( clicked() ), SLOT( saveSig()) ); | 153 | connect( SaveSigButton, SIGNAL( clicked() ), SLOT( saveSig()) ); |
154 | if ( smtpAccountBox->count()) | 154 | if ( smtpAccountBox->count()) |
155 | fillValues(0); | 155 | fillValues(0); |
156 | 156 | #ifdef DESKTOP_VERSION | |
157 | if ( QApplication::desktop()->width() <= 800 ) { | ||
158 | resize( QApplication::desktop()->size() ); | ||
159 | } else | ||
160 | resize( 800, 600 ); | ||
161 | if ( QApplication::desktop()->width() >= 640 ) | ||
162 | senderNameEdit->setFixedWidth( 200 ); | ||
163 | #endif | ||
157 | } | 164 | } |
158 | 165 | ||
159 | void ComposeMail::fillSettings() | 166 | void ComposeMail::fillSettings() |
160 | { | 167 | { |
161 | if ( QApplication::desktop()->width() < 320 ) | 168 | if ( QApplication::desktop()->width() < 320 ) |
162 | fromBox->setMaximumWidth( 100 ); | 169 | fromBox->setMaximumWidth( 100 ); |
163 | QStringList mailList = QStringList::split(";",KOPrefs::instance()->mEmail); | 170 | QStringList mailList = QStringList::split(";",KOPrefs::instance()->mEmail); |
164 | QStringList::ConstIterator sit = mailList.begin(); | 171 | QStringList::ConstIterator sit = mailList.begin(); |
165 | int pref = 0; | 172 | int pref = 0; |
166 | for (;sit!=mailList.end();++sit) { | 173 | for (;sit!=mailList.end();++sit) { |
167 | fromBox->insertItem((*sit)); | 174 | fromBox->insertItem((*sit)); |
168 | } | 175 | } |
169 | senderNameEdit->setText(KOPrefs::instance()->mName); | 176 | senderNameEdit->setText(KOPrefs::instance()->mName); |
170 | } | 177 | } |
171 | void ComposeMail::saveSig() | 178 | void ComposeMail::saveSig() |
172 | { | 179 | { |
173 | if ( smtpAccountBox->count()) { | 180 | if ( smtpAccountBox->count()) { |
174 | int cur = smtpAccountBox->currentItem (); | 181 | int cur = smtpAccountBox->currentItem (); |
175 | SMTPaccount *smtp = smtpAccounts.at( cur ); | 182 | SMTPaccount *smtp = smtpAccounts.at( cur ); |
176 | if ( smtp ) | 183 | if ( smtp ) |
177 | smtp->setSignature( sigMultiLine->text()); | 184 | smtp->setSignature( sigMultiLine->text()); |
178 | } | 185 | } |
179 | } | 186 | } |
180 | void ComposeMail::saveAsDraft() | 187 | void ComposeMail::saveAsDraft() |
181 | { | 188 | { |
182 | 189 | ||
183 | Opie::Core::OSmartPointer<Mail> mail= new Mail(); | 190 | Opie::Core::OSmartPointer<Mail> mail= new Mail(); |
184 | mail->setMail(fromBox->currentText()); | 191 | mail->setMail(fromBox->currentText()); |
185 | mail->setTo( toLine->text() ); | 192 | mail->setTo( toLine->text() ); |
186 | mail->setName(senderNameEdit->text()); | 193 | mail->setName(senderNameEdit->text()); |
187 | mail->setCC( ccLine->text() ); | 194 | mail->setCC( ccLine->text() ); |
188 | mail->setBCC( bccLine->text() ); | 195 | mail->setBCC( bccLine->text() ); |
189 | mail->setReply( replyLine->text() ); | 196 | mail->setReply( replyLine->text() ); |
190 | mail->setSubject( subjectLine->text() ); | 197 | mail->setSubject( subjectLine->text() ); |
191 | if (!m_replyid.isEmpty()) { | 198 | if (!m_replyid.isEmpty()) { |
192 | QStringList ids; | 199 | QStringList ids; |
193 | ids.append(m_replyid); | 200 | ids.append(m_replyid); |
194 | mail->setInreply(ids); | 201 | mail->setInreply(ids); |
195 | } | 202 | } |
196 | QString txt = message->text(); | 203 | QString txt = message->text(); |
197 | if ( !sigMultiLine->text().isEmpty() ) { | 204 | if ( !sigMultiLine->text().isEmpty() ) { |
198 | txt.append( "\n--\n" ); | 205 | txt.append( "\n--\n" ); |
199 | txt.append( sigMultiLine->text() ); | 206 | txt.append( sigMultiLine->text() ); |
200 | } | 207 | } |
201 | mail->setMessage( txt ); | 208 | mail->setMessage( txt ); |
202 | mail->setCharset (mEncoding); | 209 | mail->setCharset (mEncoding); |
203 | /* only use the default drafts folder name! */ | 210 | /* only use the default drafts folder name! */ |
204 | Storemail wrapper(AbstractMail::draftFolder()); | 211 | Storemail wrapper(AbstractMail::draftFolder()); |
205 | wrapper.storeMail(mail); | 212 | wrapper.storeMail(mail); |
206 | 213 | ||
207 | AttachViewItem *it = (AttachViewItem *) attList->firstChild(); | 214 | AttachViewItem *it = (AttachViewItem *) attList->firstChild(); |
208 | /* attachments we will ignore! */ | 215 | /* attachments we will ignore! */ |
209 | if ( it != 0 ) { | 216 | if ( it != 0 ) { |
210 | if ( warnAttach ) | 217 | if ( warnAttach ) |
211 | QMessageBox::warning(0,i18n("Store message"), | 218 | QMessageBox::warning(0,i18n("Store message"), |
212 | i18n("<center>Attachments will not be stored in \"Draft\" folder</center>")); | 219 | i18n("<center>Attachments will not be stored in \"Draft\" folder</center>")); |
213 | warnAttach = false; | 220 | warnAttach = false; |
214 | } | 221 | } |
215 | setStatus( i18n("Mail saved as draft!") ); | 222 | setStatus( i18n("Mail saved as draft!") ); |
216 | } | 223 | } |
217 | void ComposeMail::clearStatus() | 224 | void ComposeMail::clearStatus() |
218 | { | 225 | { |
219 | topLevelWidget()->setCaption( i18n("Compose mail") ); | 226 | topLevelWidget()->setCaption( i18n("Compose mail") ); |
220 | } | 227 | } |
221 | void ComposeMail::setStatus( QString status ) | 228 | void ComposeMail::setStatus( QString status ) |
222 | { | 229 | { |
223 | topLevelWidget()->setCaption( status ); | 230 | topLevelWidget()->setCaption( status ); |
224 | QTimer::singleShot ( 10000, this, SLOT( clearStatus() ) ) ; | 231 | QTimer::singleShot ( 10000, this, SLOT( clearStatus() ) ) ; |
225 | } | 232 | } |
226 | void ComposeMail::pickAddress( ) | 233 | void ComposeMail::pickAddress( ) |
227 | { | 234 | { |
228 | 235 | ||
229 | QLineEdit *line = mPickLineEdit; | 236 | QLineEdit *line = mPickLineEdit; |
230 | if ( line == 0 ) | 237 | if ( line == 0 ) |
231 | return; | 238 | return; |
232 | #ifdef DESKTOP_VERSION | 239 | #ifdef DESKTOP_VERSION |
233 | //qDebug(" ComposeMail::pickAddress "); | 240 | //qDebug(" ComposeMail::pickAddress "); |
234 | QString names ;//= AddressPicker::getNames(); | 241 | QString names ;//= AddressPicker::getNames(); |
235 | 242 | ||
236 | KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); | 243 | KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); |
237 | uint i=0; | 244 | uint i=0; |
238 | for (i=0; i < list.count(); i++) { | 245 | for (i=0; i < list.count(); i++) { |
239 | if ( !list[i].preferredEmail().isEmpty()) { | 246 | if ( !list[i].preferredEmail().isEmpty()) { |
240 | if ( ! names.isEmpty() ) | 247 | if ( ! names.isEmpty() ) |
241 | names+= ","; | 248 | names+= ","; |
242 | names+= "\""+list[i].realName() +"\"<" +list[i].preferredEmail() +">"; | 249 | names+= "\""+list[i].realName() +"\"<" +list[i].preferredEmail() +">"; |
243 | 250 | ||
244 | } | 251 | } |
245 | } | 252 | } |
246 | 253 | ||
247 | 254 | ||
248 | if ( line->text().isEmpty() ) { | 255 | if ( line->text().isEmpty() ) { |
249 | line->setText( names ); | 256 | line->setText( names ); |
250 | } else if ( !names.isEmpty() ) { | 257 | } else if ( !names.isEmpty() ) { |
251 | line->setText( line->text() + ", " + names ); | 258 | line->setText( line->text() + ", " + names ); |
252 | } | 259 | } |
253 | #else | 260 | #else |
254 | bool res = ExternalAppHandler::instance()->requestNameEmailUidListFromKAPI("QPE/Application/ompi", this->name() /* name is here the unique uid*/); | 261 | bool res = ExternalAppHandler::instance()->requestNameEmailUidListFromKAPI("QPE/Application/ompi", this->name() /* name is here the unique uid*/); |
255 | // the result should now arrive through method insertAttendees | 262 | // the result should now arrive through method insertAttendees |
256 | #endif | 263 | #endif |
257 | } | 264 | } |
258 | //the map includes name/email pairs, that comes from Ka/Pi | 265 | //the map includes name/email pairs, that comes from Ka/Pi |
259 | void ComposeMail::insertAttendees(const QString& uid,const QStringList& nameList,const QStringList& emailList,const QStringList& uidList) | 266 | void ComposeMail::insertAttendees(const QString& uid,const QStringList& nameList,const QStringList& emailList,const QStringList& uidList) |
260 | { | 267 | { |
261 | //qDebug("ComposeMail::insertAttendees "); | 268 | //qDebug("ComposeMail::insertAttendees "); |
262 | raise(); | 269 | raise(); |
263 | 270 | ||
264 | QString UID = uid; | 271 | QString UID = uid; |
265 | if ( uid.left( 18 ) == (this->name() +QString("pick2")) ) { | 272 | if ( uid.left( 18 ) == (this->name() +QString("pick2")) ) { |
266 | mPickLineEdit = toLine; | 273 | mPickLineEdit = toLine; |
267 | UID = this->name(); | 274 | UID = this->name(); |
268 | subjectLine->setText( uid.mid( 18 ) ); | 275 | subjectLine->setText( uid.mid( 18 ) ); |
269 | } | 276 | } |
270 | //qDebug("ccc %s %s ", uid.latin1(), this->name()); | 277 | //qDebug("ccc %s %s ", uid.latin1(), this->name()); |
271 | if ( mPickLineEdit == 0 ) { //whoami received | 278 | if ( mPickLineEdit == 0 ) { //whoami received |
272 | QString defmail = uidList[0]; | 279 | QString defmail = uidList[0]; |
273 | if ( emailList.count() == 0 ) | 280 | if ( emailList.count() == 0 ) |
274 | QMessageBox::information( 0, i18n( "Hint" ), | 281 | QMessageBox::information( 0, i18n( "Hint" ), |
275 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), | 282 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), |
276 | i18n( "Ok" ) ); | 283 | i18n( "Ok" ) ); |
277 | if (defmail.length()!=0) { | 284 | if (defmail.length()!=0) { |
278 | fromBox->insertItem(defmail); | 285 | fromBox->insertItem(defmail); |
279 | } | 286 | } |
280 | QStringList::ConstIterator sit = emailList.begin(); | 287 | QStringList::ConstIterator sit = emailList.begin(); |
281 | int pref = 0; | 288 | int pref = 0; |
282 | for (;sit!=emailList.end();++sit) { | 289 | for (;sit!=emailList.end();++sit) { |
283 | if ( (*sit)==defmail) | 290 | if ( (*sit)==defmail) |
284 | continue; | 291 | continue; |
285 | fromBox->insertItem((*sit)); | 292 | fromBox->insertItem((*sit)); |
286 | } | 293 | } |
287 | senderNameEdit->setText(nameList[0]); | 294 | senderNameEdit->setText(nameList[0]); |
288 | return; | 295 | return; |
289 | } | 296 | } |
290 | QString names ; | 297 | QString names ; |
291 | QLineEdit *line = mPickLineEdit; | 298 | QLineEdit *line = mPickLineEdit; |
292 | if (UID == this->name()) | 299 | if (UID == this->name()) |
293 | { | 300 | { |
294 | for ( int i = 0; i < nameList.count(); i++) | 301 | for ( int i = 0; i < nameList.count(); i++) |
295 | { | 302 | { |
296 | QString _name = nameList[i]; | 303 | QString _name = nameList[i]; |
297 | QString _email = emailList[i]; | 304 | QString _email = emailList[i]; |
298 | QString _uid = uidList[i]; | 305 | QString _uid = uidList[i]; |
299 | if ( ! _email.isEmpty() ) { | 306 | if ( ! _email.isEmpty() ) { |
300 | if ( ! names.isEmpty() ) | 307 | if ( ! names.isEmpty() ) |
301 | names+= ","; | 308 | names+= ","; |
302 | names+= "\""+_name +"\"<" +_email +">"; | 309 | names+= "\""+_name +"\"<" +_email +">"; |
303 | } | 310 | } |
304 | } | 311 | } |
305 | } | 312 | } |
306 | if ( line->text().isEmpty() ) { | 313 | if ( line->text().isEmpty() ) { |
307 | line->setText( names ); | 314 | line->setText( names ); |
308 | } else if ( !names.isEmpty() ) { | 315 | } else if ( !names.isEmpty() ) { |
309 | line->setText( line->text() + ", " + names ); | 316 | line->setText( line->text() + ", " + names ); |
310 | } | 317 | } |
311 | } | 318 | } |
312 | 319 | ||
313 | void ComposeMail::setTo( const QString & to ) | 320 | void ComposeMail::setTo( const QString & to ) |
314 | { | 321 | { |
315 | toLine->setText( to ); | 322 | toLine->setText( to ); |
316 | } | 323 | } |
317 | 324 | ||
318 | void ComposeMail::setSubject( const QString & subject ) | 325 | void ComposeMail::setSubject( const QString & subject ) |
319 | { | 326 | { |
320 | subjectLine->setText( subject ); | 327 | subjectLine->setText( subject ); |
321 | } | 328 | } |
322 | 329 | ||
323 | void ComposeMail::setInReplyTo( const QString & messageId ) | 330 | void ComposeMail::setInReplyTo( const QString & messageId ) |
324 | { | 331 | { |
325 | m_replyid = messageId; | 332 | m_replyid = messageId; |
326 | } | 333 | } |
327 | 334 | ||
328 | void ComposeMail::setMessage( const QString & text ) | 335 | void ComposeMail::setMessage( const QString & text ) |
329 | { | 336 | { |
330 | message->setText( text ); | 337 | message->setText( text ); |
331 | } | 338 | } |
332 | 339 | ||
333 | 340 | ||
334 | void ComposeMail::pickAddressTo() | 341 | void ComposeMail::pickAddressTo() |
335 | { | 342 | { |
336 | mPickLineEdit = toLine; | 343 | mPickLineEdit = toLine; |
337 | pickAddress( ); | 344 | pickAddress( ); |
338 | } | 345 | } |
339 | 346 | ||
340 | void ComposeMail::pickAddressCC() | 347 | void ComposeMail::pickAddressCC() |
341 | { | 348 | { |
342 | mPickLineEdit = ccLine; | 349 | mPickLineEdit = ccLine; |
343 | pickAddress( ); | 350 | pickAddress( ); |
344 | } | 351 | } |
345 | 352 | ||
346 | void ComposeMail::pickAddressBCC() | 353 | void ComposeMail::pickAddressBCC() |
347 | { | 354 | { |
348 | mPickLineEdit = bccLine; | 355 | mPickLineEdit = bccLine; |
349 | pickAddress( ); | 356 | pickAddress( ); |
350 | } | 357 | } |
351 | 358 | ||
352 | void ComposeMail::pickAddressReply() | 359 | void ComposeMail::pickAddressReply() |
353 | { | 360 | { |
354 | mPickLineEdit = replyLine; | 361 | mPickLineEdit = replyLine; |
355 | pickAddress( ); | 362 | pickAddress( ); |
356 | } | 363 | } |
357 | 364 | ||
358 | void ComposeMail::fillValues( int current ) | 365 | void ComposeMail::fillValues( int current ) |
359 | { | 366 | { |
360 | #if 0 | 367 | #if 0 |
361 | SMTPaccount *smtp = smtpAccounts.at( current ); | 368 | SMTPaccount *smtp = smtpAccounts.at( current ); |
362 | ccLine->clear(); | 369 | ccLine->clear(); |
363 | if ( smtp->getUseCC() ) { | 370 | if ( smtp->getUseCC() ) { |
364 | ccLine->setText( smtp->getCC() ); | 371 | ccLine->setText( smtp->getCC() ); |
365 | } | 372 | } |
366 | bccLine->clear(); | 373 | bccLine->clear(); |
367 | if ( smtp->getUseBCC() ) { | 374 | if ( smtp->getUseBCC() ) { |
368 | bccLine->setText( smtp->getBCC() ); | 375 | bccLine->setText( smtp->getBCC() ); |
369 | } | 376 | } |
370 | replyLine->clear(); | 377 | replyLine->clear(); |
371 | if ( smtp->getUseReply() ) { | 378 | if ( smtp->getUseReply() ) { |
372 | replyLine->setText( smtp->getReply() ); | 379 | replyLine->setText( smtp->getReply() ); |
373 | } | 380 | } |
374 | #endif | 381 | #endif |
375 | SMTPaccount *smtp = smtpAccounts.at( current ); | 382 | SMTPaccount *smtp = smtpAccounts.at( current ); |
376 | if ( smtp ) | 383 | if ( smtp ) |
377 | sigMultiLine->setText( smtp->getSignature() ); | 384 | sigMultiLine->setText( smtp->getSignature() ); |
378 | } | 385 | } |
379 | 386 | ||
380 | void ComposeMail::slotAdjustColumns() | 387 | void ComposeMail::slotAdjustColumns() |
381 | { | 388 | { |
382 | int currPage = tabWidget->currentPageIndex(); | 389 | int currPage = tabWidget->currentPageIndex(); |
383 | 390 | ||
384 | tabWidget->showPage( attachTab ); | 391 | tabWidget->showPage( attachTab ); |
385 | attList->setColumnWidth( 0, attList->visibleWidth() - 80 ); | 392 | attList->setColumnWidth( 0, attList->visibleWidth() - 80 ); |
386 | attList->setColumnWidth( 1, 80 ); | 393 | attList->setColumnWidth( 1, 80 ); |
387 | 394 | ||
388 | tabWidget->setCurrentPage( currPage ); | 395 | tabWidget->setCurrentPage( currPage ); |
389 | } | 396 | } |
390 | 397 | ||
391 | void ComposeMail::addAttachment() | 398 | void ComposeMail::addAttachment() |
392 | { | 399 | { |
393 | QString lnk = KFileDialog::getOpenFileName( "", "Add Attachment", this ); | 400 | QString lnk = KFileDialog::getOpenFileName( "", "Add Attachment", this ); |
394 | if ( !lnk.isEmpty() ) { | 401 | if ( !lnk.isEmpty() ) { |
395 | Attachment *att = new Attachment( lnk ); | 402 | Attachment *att = new Attachment( lnk ); |
396 | (void) new AttachViewItem( attList, att ); | 403 | (void) new AttachViewItem( attList, att ); |
397 | } | 404 | } |
398 | } | 405 | } |
399 | 406 | ||
400 | void ComposeMail::removeAttachment() | 407 | void ComposeMail::removeAttachment() |
401 | { | 408 | { |
402 | if ( !attList->currentItem() ) { | 409 | if ( !attList->currentItem() ) { |
403 | QMessageBox::information( this, i18n( "Error" ), | 410 | QMessageBox::information( this, i18n( "Error" ), |
404 | i18n( "<p>Please select a File.</p>" ), | 411 | i18n( "<p>Please select a File.</p>" ), |
405 | i18n( "Ok" ) ); | 412 | i18n( "Ok" ) ); |
406 | } else { | 413 | } else { |
407 | attList->takeItem( attList->currentItem() ); | 414 | attList->takeItem( attList->currentItem() ); |
408 | } | 415 | } |
409 | } | 416 | } |
410 | 417 | ||
411 | void ComposeMail::accept() | 418 | void ComposeMail::accept() |
412 | { | 419 | { |
413 | if ( smtpAccountBox->count() == 0 ) { | 420 | if ( smtpAccountBox->count() == 0 ) { |
414 | 421 | ||
415 | reject(); | 422 | reject(); |
416 | return; | 423 | return; |
417 | } | 424 | } |
418 | 425 | ||
419 | if (! checkBoxLater->isChecked() ) { | 426 | if (! checkBoxLater->isChecked() ) { |
420 | int yesno = QMessageBox::warning(0,i18n("Stop editing message"), | 427 | int yesno = QMessageBox::warning(0,i18n("Stop editing message"), |
421 | i18n("Send this message?"), | 428 | i18n("Send this message?"), |
422 | i18n("Yes"), | 429 | i18n("Yes"), |
423 | i18n("Cancel")); | 430 | i18n("Cancel")); |
424 | 431 | ||
425 | if (yesno == 1) { | 432 | if (yesno == 1) { |
426 | return; | 433 | return; |
427 | } | 434 | } |
428 | } | 435 | } |
429 | #if 0 | 436 | #if 0 |
430 | odebug << "Sending Mail with " | 437 | odebug << "Sending Mail with " |
431 | << smtpAccounts.at( smtpAccountBox->currentItem() )->getAccountName() << oendl; | 438 | << smtpAccounts.at( smtpAccountBox->currentItem() )->getAccountName() << oendl; |
432 | #endif | 439 | #endif |
433 | Opie::Core::OSmartPointer<Mail> mail=new Mail; | 440 | Opie::Core::OSmartPointer<Mail> mail=new Mail; |
434 | 441 | ||
435 | SMTPaccount *smtp = smtpAccounts.at( smtpAccountBox->currentItem() ); | 442 | SMTPaccount *smtp = smtpAccounts.at( smtpAccountBox->currentItem() ); |
436 | mail->setMail(fromBox->currentText()); | 443 | mail->setMail(fromBox->currentText()); |
437 | 444 | ||
438 | if ( !toLine->text().isEmpty() ) { | 445 | if ( !toLine->text().isEmpty() ) { |
439 | mail->setTo( toLine->text() ); | 446 | mail->setTo( toLine->text() ); |
440 | } else { | 447 | } else { |
441 | QMessageBox::warning(0,i18n("Sending mail"), | 448 | QMessageBox::warning(0,i18n("Sending mail"), |
442 | i18n("No Receiver spezified" ) ); | 449 | i18n("No Receiver spezified" ) ); |
443 | return; | 450 | return; |
444 | } | 451 | } |
445 | 452 | ||
446 | mail->setName(senderNameEdit->text()); | 453 | mail->setName(senderNameEdit->text()); |
447 | mail->setCC( ccLine->text() ); | 454 | mail->setCC( ccLine->text() ); |
448 | mail->setBCC( bccLine->text() ); | 455 | mail->setBCC( bccLine->text() ); |
449 | mail->setReply( replyLine->text() ); | 456 | mail->setReply( replyLine->text() ); |
450 | mail->setSubject( subjectLine->text() ); | 457 | mail->setSubject( subjectLine->text() ); |
451 | if (!m_replyid.isEmpty()) { | 458 | if (!m_replyid.isEmpty()) { |
452 | QStringList ids; | 459 | QStringList ids; |
453 | ids.append(m_replyid); | 460 | ids.append(m_replyid); |
454 | mail->setInreply(ids); | 461 | mail->setInreply(ids); |
455 | } | 462 | } |
456 | QString txt = message->text(); | 463 | QString txt = message->text(); |
457 | if ( !sigMultiLine->text().isEmpty() ) { | 464 | if ( !sigMultiLine->text().isEmpty() ) { |
458 | txt.append( "\n--\n" ); | 465 | txt.append( "\n--\n" ); |
459 | txt.append( sigMultiLine->text() ); | 466 | txt.append( sigMultiLine->text() ); |
460 | } | 467 | } |
461 | mail->setMessage( txt ); | 468 | mail->setMessage( txt ); |
462 | mail->setCharset (mEncoding); | 469 | mail->setCharset (mEncoding); |
463 | AttachViewItem *it = (AttachViewItem *) attList->firstChild(); | 470 | AttachViewItem *it = (AttachViewItem *) attList->firstChild(); |
464 | while ( it != 0 ) { | 471 | while ( it != 0 ) { |
465 | mail->addAttachment( it->getAttachment() ); | 472 | mail->addAttachment( it->getAttachment() ); |
466 | it = (AttachViewItem *) it->nextSibling(); | 473 | it = (AttachViewItem *) it->nextSibling(); |
467 | } | 474 | } |
468 | 475 | ||
469 | SMTPwrapper wrapper( smtp ); | 476 | SMTPwrapper wrapper( smtp ); |
470 | if ( wrapper.sendMail( mail,checkBoxLater->isChecked() ) ) | 477 | if ( wrapper.sendMail( mail,checkBoxLater->isChecked() ) ) |
471 | setStatus( tr ("Mail sent")); | 478 | setStatus( tr ("Mail sent")); |
472 | else { | 479 | else { |
473 | setStatus( tr ("Error: Something went wrong. Nothing sent")); | 480 | setStatus( tr ("Error: Something went wrong. Nothing sent")); |
474 | return; | 481 | return; |
475 | } | 482 | } |
476 | 483 | ||
477 | 484 | ||
478 | QDialog::accept(); | 485 | QDialog::accept(); |
479 | } | 486 | } |
480 | 487 | ||
481 | void ComposeMail::reject() | 488 | void ComposeMail::reject() |
482 | { | 489 | { |
483 | //qDebug("ComposeMail::reject() "); | 490 | //qDebug("ComposeMail::reject() "); |
484 | int yesno = QMessageBox::warning(0,i18n("Store message?"), | 491 | int yesno = QMessageBox::warning(0,i18n("Store message?"), |
485 | i18n("Store message into drafts?\n"), | 492 | i18n("Store message into drafts?\n"), |
486 | i18n("Yes"), | 493 | i18n("Yes"), |
487 | i18n("No")); | 494 | i18n("No")); |
488 | 495 | ||
489 | //qDebug("button %d ", yesno); | 496 | //qDebug("button %d ", yesno); |
490 | if (yesno == 0) { | 497 | if (yesno == 0) { |
491 | if ( toLine->text().isEmpty() ) { | 498 | if ( toLine->text().isEmpty() ) { |
492 | QMessageBox::warning(0,i18n("Sending mail"), | 499 | QMessageBox::warning(0,i18n("Sending mail"), |
493 | i18n("No Receiver spezified" ) ); | 500 | i18n("No Receiver spezified" ) ); |
494 | return; | 501 | return; |
495 | } | 502 | } |
496 | saveAsDraft(); | 503 | saveAsDraft(); |
497 | } | 504 | } |
498 | if (yesno == 2) { | 505 | if (yesno == 2) { |
499 | qDebug("return "); | 506 | qDebug("return "); |
500 | return; | 507 | return; |
501 | } | 508 | } |
502 | QDialog::reject(); | 509 | QDialog::reject(); |
503 | } | 510 | } |
504 | 511 | ||
505 | void ComposeMail::setCharset(const QString& charset) | 512 | void ComposeMail::setCharset(const QString& charset) |
506 | { | 513 | { |
507 | if ( !charset.isEmpty() ) | 514 | if ( !charset.isEmpty() ) |
508 | mEncoding = charset; | 515 | mEncoding = charset; |
509 | qDebug("ComposeMail::setCharset %s ", mEncoding.latin1()); | 516 | qDebug("ComposeMail::setCharset %s ", mEncoding.latin1()); |
510 | } | 517 | } |
511 | ComposeMail::~ComposeMail() | 518 | ComposeMail::~ComposeMail() |
512 | { | 519 | { |
513 | } | 520 | } |
514 | 521 | ||
515 | void ComposeMail::reEditMail(const RecMailP¤t) | 522 | void ComposeMail::reEditMail(const RecMailP¤t) |
516 | { | 523 | { |
517 | RecMailP data = current; | 524 | RecMailP data = current; |
518 | RecBodyP body = data->Wrapper()->fetchBody(current); | 525 | RecBodyP body = data->Wrapper()->fetchBody(current); |
519 | 526 | ||
520 | message->setText(body->Bodytext()); | 527 | message->setText(body->Bodytext()); |
521 | subjectLine->setText( data->getSubject()); | 528 | subjectLine->setText( data->getSubject()); |
522 | toLine->setText(data->To().join(",")); | 529 | toLine->setText(data->To().join(",")); |
523 | ccLine->setText(data->CC().join(",")); | 530 | ccLine->setText(data->CC().join(",")); |
524 | bccLine->setText(data->Bcc().join(",")); | 531 | bccLine->setText(data->Bcc().join(",")); |
525 | replyLine->setText(data->Replyto()); | 532 | replyLine->setText(data->Replyto()); |
526 | setCharset(body->getCharset()); | 533 | setCharset(body->getCharset()); |
527 | } | 534 | } |
528 | 535 | ||
529 | AttachViewItem::AttachViewItem( QListView *parent, Attachment *att ) | 536 | AttachViewItem::AttachViewItem( QListView *parent, Attachment *att ) |
530 | : QListViewItem( parent ) | 537 | : QListViewItem( parent ) |
531 | { | 538 | { |
532 | attachment = att; | 539 | attachment = att; |
533 | if ( !attachment->getPixmap().isNull() ) | 540 | if ( !attachment->getPixmap().isNull() ) |
534 | setPixmap( 0,attachment->getPixmap() ); | 541 | setPixmap( 0,attachment->getPixmap() ); |
535 | setText( 0, att->getName().isEmpty() ? att->getFileName() : att->getName() ); | 542 | setText( 0, att->getName().isEmpty() ? att->getFileName() : att->getName() ); |
536 | setText( 1, QString::number( att->getSize() ) ); | 543 | setText( 1, QString::number( att->getSize() ) ); |
537 | } | 544 | } |
538 | 545 | ||