author | zautrix <zautrix> | 2005-06-26 11:53:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-26 11:53:18 (UTC) |
commit | 095b64dde716ebaac511d413b5b4acdd68eccae5 (patch) (unidiff) | |
tree | 0f87898db258734f12e384f0d000ab773a0ea334 | |
parent | ef04711ec84150e67b00ce6dc0b6c6bafd5a537f (diff) | |
download | kdepimpi-095b64dde716ebaac511d413b5b4acdd68eccae5.zip kdepimpi-095b64dde716ebaac511d413b5b4acdd68eccae5.tar.gz kdepimpi-095b64dde716ebaac511d413b5b4acdd68eccae5.tar.bz2 |
fixes
-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 6 | ||||
-rw-r--r-- | kabc/addresseeview.cpp | 31 |
2 files changed, 20 insertions, 17 deletions
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index 473aa0e..515161f 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt | |||
@@ -689,105 +689,105 @@ | |||
689 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, | 689 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, |
690 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, | 690 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, |
691 | { "Write back options","Optionen zum Zurückschreiben" }, | 691 | { "Write back options","Optionen zum Zurückschreiben" }, |
692 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, | 692 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, |
693 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, | 693 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, |
694 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, | 694 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, |
695 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, | 695 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, |
696 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, | 696 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, |
697 | { "Time period","Zeitspanne" }, | 697 | { "Time period","Zeitspanne" }, |
698 | { "From ","Von " }, | 698 | { "From ","Von " }, |
699 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, | 699 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, |
700 | { " weeks in the future "," Wochen in der Zukunft " }, | 700 | { " weeks in the future "," Wochen in der Zukunft " }, |
701 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, | 701 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, |
702 | { "Local temp file:","Lokale temp Datei:" }, | 702 | { "Local temp file:","Lokale temp Datei:" }, |
703 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, | 703 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, |
704 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, | 704 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, |
705 | { "You cannot remove your standard resource!\n Please select a new standard resource first.","Standard Resource kann\nnicht entfernt werden!\nBitte eine andere Resource\nals Standard setzen." }, | 705 | { "You cannot remove your standard resource!\n Please select a new standard resource first.","Standard Resource kann\nnicht entfernt werden!\nBitte eine andere Resource\nals Standard setzen." }, |
706 | { "Sorry","Tut mir leid" }, | 706 | { "Sorry","Tut mir leid" }, |
707 | { "You cannot use a read-only<br> resource as standard!","Man kann nicht eine read-only<br> Resource als Standard setzen!" }, | 707 | { "You cannot use a read-only<br> resource as standard!","Man kann nicht eine read-only<br> Resource als Standard setzen!" }, |
708 | { "Please restart to get the \nchanged resources (re)loaded!\n","Bitte starten Sie jetzt\ndas Programm neu, um die geänderten\nResourcen neu zu laden!\n" }, | 708 | { "Please restart to get the \nchanged resources (re)loaded!\n","Bitte starten Sie jetzt\ndas Programm neu, um die geänderten\nResourcen neu zu laden!\n" }, |
709 | { "The selected file does not\ninclude a valid vCard.\nPlease check the file and try again.\n","Die gewählte Datei enthält\nkeine gültige vCard.\nBitte prüfen Sie die Datei\nund versuchen es erneut.\n" }, | 709 | { "The selected file does not\ninclude a valid vCard.\nPlease check the file and try again.\n","Die gewählte Datei enthält\nkeine gültige vCard.\nBitte prüfen Sie die Datei\nund versuchen es erneut.\n" }, |
710 | { "Unable to load resource '%1'","Resource kann nicht geladen werden: '%1'" }, | 710 | { "Unable to load resource '%1'","Resource kann nicht geladen werden: '%1'" }, |
711 | { "Some changes are only\neffective after a restart!\n","Einige Änderungen werden erst\nnach einem Neustart übernommen!\n" }, | 711 | { "Some changes are only\neffective after a restart!\n","Einige Änderungen werden erst\nnach einem Neustart übernommen!\n" }, |
712 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, | 712 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, |
713 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, | 713 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, |
714 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, | 714 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, |
715 | { "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?" }, | 715 | { "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?" }, |
716 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, | 716 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, |
717 | { "Error","Fehler" }, | 717 | { "Error","Fehler" }, |
718 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, | 718 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, |
719 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, | 719 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, |
720 | { "Warning","Warnung" }, | 720 | { "Warning","Warnung" }, |
721 | { "Select week number","Wähle Wochen Nummer" }, | 721 | { "Select week number","Wähle Wochen Nummer" }, |
722 | { "Februar","Februar" }, | 722 | { "Februar","Februar" }, |
723 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, | 723 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, |
724 | { "Password for remote access:","Passwort für fernen Zugriff:" }, | 724 | { "Password for remote access:","Passwort für fernen Zugriff:" }, |
725 | { "Remote IP address:","Ferne IP Adresse:" }, | 725 | { "Remote IP address:","Ferne IP Adresse:" }, |
726 | { "Remote port number:","Ferne Port Nummer:" }, | 726 | { "Remote port number:","Ferne Port Nummer:" }, |
727 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, | 727 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, |
728 | { "Remote from: ","Fern von: " }, | 728 | { "Remote from: ","Fern von: " }, |
729 | { "Local from: ","Lokal von: " }, | 729 | { "Local from: ","Lokal von: " }, |
730 | { "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 %d incoming filtered out\n %d outgoing filtered out\n","Synchronisationsübersicht:\n\n %d lokal hinzugefügt\n %d fern hinzugefügt\n %d lokal geändert\n %d fern geändert\n %d lokal gelöscht\n %d fern gelöscht\n %d eingehende ausgefiltert\n %d ausgehende ausgefiltert\n" }, | 730 | { "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 %d incoming filtered out\n %d outgoing filtered out\n","Synchronisationsübersicht:\n\n %d lokal hinzugefügt\n %d fern hinzugefügt\n %d lokal geändert\n %d fern geändert\n %d lokal gelöscht\n %d fern gelöscht\n %d eingehende ausgefiltert\n %d ausgehende ausgefiltert\n" }, |
731 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, | 731 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, |
732 | { "Write back","Schreibe zurück" }, | 732 | { "Write back","Schreibe zurück" }, |
733 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, | 733 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, |
734 | { "Received sync request","Sync Anfrage erhalten" }, | 734 | { "Received sync request","Sync Anfrage erhalten" }, |
735 | { "Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog.","Ferne Synchronisation ...\n\nBenutze diese Anwendung nicht!\n\nWenn das Syncen fehlschlägt kann\ndieser Dialog geschlossen werden." }, | 735 | { "Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog.","Ferne Synchronisation ...\n\nBenutze diese Anwendung nicht!\n\nWenn das Syncen fehlschlägt kann\ndieser Dialog geschlossen werden." }, |
736 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, | 736 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, |
737 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, | 737 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, |
738 | { "Sending file...","Sende Datei..." }, | 738 | { "Sending file...","Sende Datei..." }, |
739 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, | 739 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, |
740 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, | 740 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, |
741 | { "Received %1 bytes","%1 Bytes erhalten" }, | 741 | { "Received %1 bytes","%1 Bytes erhalten" }, |
742 | { "Writing file to disk...","Speichere Datei..." }, | 742 | { "Writing file to disk...","Speichere Datei..." }, |
743 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, | 743 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, |
744 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, | 744 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, |
745 | { "Synchronize!","Synchronisiere!" }, | 745 | { "Synchronize!","Synchronisiere!" }, |
746 | { "High clock skew!","Großer Uhrzeitunterschied!" }, | 746 | { "High clock skew!","Großer Uhrzeitunterschied!" }, |
747 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, | 747 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, |
748 | { "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" }, | 748 | { "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" }, |
749 | { "Change search field enable jump bar","Ändere Suchfeld um Jumpbar anzuzeigen" }, | 749 | { "Change search field enable jump bar","Ändere Suchfeld um Jumpbar anzuzeigen" }, |
750 | { "Search with '*' prefix (wildcard)","Suche mit '*' Prefix (Wildcard)" }, | 750 | { "Search with '*' prefix (wildcard)","Suche mit '*' Prefix (Wildcard)" }, |
751 | { "Shrink searchfield in portrait view","Verkleinere Suchfeld im Portraitmodus" }, | 751 | { "Shrink searchfield in portrait view","Verkleinere Suchfeld im Portraitmodus" }, |
752 | { "Edit new contact","Bearbeite neuen Kontakt" }, | 752 | { "Edit new contact","Bearbeite neuen Kontakt" }, |
753 | { "Edit ","Bearbeite " }, | 753 | { "Edit ","Bearbeite " }, |
754 | { "No contact changed!","Kein Kontakt verändert" }, | 754 | { "No contact changed!","Kein Kontakt verändert" }, |
755 | { "%1 contacts changed!","%1 Kontakte geändert!" }, | 755 | { "%1 contacts changed!","%1 Kontakte geändert!" }, |
756 | { "Mobile (home)","Handy (Arbeit)" }, | 756 | { "Mobile (home)","Handy (Arbeit)" }, |
757 | { "Mobile (work)","Handy (Privat)" }, | 757 | { "Mobile (work)","Handy (Privat)" }, |
758 | { "Def.Formatted Name","Def. Format. Name" }, | 758 | { "Def.Formatted Name","Def. Format. Name" }, |
759 | { "Colors","Farben" }, | 759 | { "Colors","Farben" }, |
760 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, | 760 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, |
761 | { "Backup enabled","Backup angeschaltet" }, | 761 | { "Backup enabled","Backup angeschaltet" }, |
762 | { "Use standard backup dir","Standard Backupverzeichnis" }, | 762 | { "Use standard backup dir","Standard Backupverzeichnis" }, |
763 | { "Number of Backups:","Anzahl der Backups" }, | 763 | { "Number of Backups:","Anzahl der Backups" }, |
764 | { "Make backup every ","Mache ein Backup alle " }, | 764 | { "Make backup every ","Mache ein Backup alle " }, |
765 | { " days"," Tage" }, | 765 | { " days"," Tage" }, |
766 | { "Creating backup ... please wait ...","Erzeuge Backup ... bitte warten ..." }, | 766 | { "Creating backup ... please wait ...","Erzeuge Backup ... bitte warten ..." }, |
767 | { "Backup Failed!","Backup Problem!" }, | 767 | { "Backup Failed!","Backup Problem!" }, |
768 | { "Try again now","Versuche jetzt nochmal" }, | 768 | { "Try again now","Versuche jetzt nochmal" }, |
769 | { "Try again later","Versuche später nochmal" }, | 769 | { "Try again later","Versuche später nochmal" }, |
770 | { "Try again tomorrow","Versuche morgen nochmal" }, | 770 | { "Try again tomorrow","Versuche morgen nochmal" }, |
771 | { "Disable backup","Schalte Backup ab" }, | 771 | { "Disable backup","Schalte Backup ab" }, |
772 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, | 772 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, |
773 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, | 773 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, |
774 | { "Choose action","Wähle Aktion" }, | 774 | { "Choose action","Wähle Aktion" }, |
775 | { "&Configure KA/Pi...","Konfiguriere KA/Pi..." }, | 775 | { "&Configure KA/Pi...","Konfiguriere KA/Pi..." }, |
776 | { "Global Settings...","Globale Einstellungen..." }, | 776 | { "Global Settings...","Globale Einstellungen..." }, |
777 | { "Spouse","Ehegatte" }, | 777 | { "Spouse","Ehegatte" }, |
778 | { "Notes","Notizen" }, | 778 | { "Notes","Notizen" }, |
779 | { "Messanger","Messanger" }, | 779 | { "Messanger","Messanger" }, |
780 | { "Assistant","Assistent" }, | 780 | { "Assistant","Assistent" }, |
781 | { "Manager","Manager" }, | 781 | { "Manager","Manager" }, |
782 | { "Secrecy","Sichtbar" }, | 782 | { "Secrecy","Sichtbar" }, |
783 | { "male","männlich" }, | 783 | { "male","männlich" }, |
784 | { "female","weiblich" }, | 784 | { "female","weiblich" }, |
785 | { "","" }, | 785 | { "Hide!","Verbergen!" }, |
786 | { "","" }, | 786 | { "Show!","Anzeigen!" }, |
787 | { "","" }, | 787 | { "Details","Details" }, |
788 | { "","" }, | 788 | { "","" }, |
789 | { "","" }, | 789 | { "","" }, |
790 | { "","" }, | 790 | { "","" }, |
791 | { "","" }, | 791 | { "","" }, |
792 | { "","" }, | 792 | { "","" }, |
793 | { "","" }, \ No newline at end of file | 793 | { "","" }, \ No newline at end of file |
diff --git a/kabc/addresseeview.cpp b/kabc/addresseeview.cpp index 202a718..7c70ab1 100644 --- a/kabc/addresseeview.cpp +++ b/kabc/addresseeview.cpp | |||
@@ -136,327 +136,330 @@ void AddresseeView::setAddressee( const KABC::Addressee& mAddressee ) | |||
136 | } | 136 | } |
137 | #if 0 | 137 | #if 0 |
138 | QString name = ( mAddressee.assembledName().isEmpty() ? | 138 | QString name = ( mAddressee.assembledName().isEmpty() ? |
139 | mAddressee.formattedName() : mAddressee.assembledName() ); | 139 | mAddressee.formattedName() : mAddressee.assembledName() ); |
140 | #endif | 140 | #endif |
141 | 141 | ||
142 | QString name = mAddressee.realName(); | 142 | QString name = mAddressee.realName(); |
143 | 143 | ||
144 | QString dynamicPart; | 144 | QString dynamicPart; |
145 | 145 | ||
146 | dynamicPart += getPhoneNumbers( mAddressee.phoneNumbers(),true ); | 146 | dynamicPart += getPhoneNumbers( mAddressee.phoneNumbers(),true ); |
147 | QStringList emails = mAddressee.emails(); | 147 | QStringList emails = mAddressee.emails(); |
148 | QStringList::ConstIterator emailIt; | 148 | QStringList::ConstIterator emailIt; |
149 | QString type = i18n( "Email" ); | 149 | QString type = i18n( "Email" ); |
150 | emailIt = emails.begin(); | 150 | emailIt = emails.begin(); |
151 | if ( emailIt != emails.end() ) { | 151 | if ( emailIt != emails.end() ) { |
152 | if ( kemailAvail ) { | 152 | if ( kemailAvail ) { |
153 | dynamicPart += QString( | 153 | dynamicPart += QString( |
154 | "<tr><td align=\"right\"><b>%1</b></td>" | 154 | "<tr><td align=\"right\"><b>%1</b></td>" |
155 | "<td align=\"left\"><a href=\"mailto:%2 <%3> \">%4</a></td></tr>" ) | 155 | "<td align=\"left\"><a href=\"mailto:%2 <%3> \">%4</a></td></tr>" ) |
156 | .arg( type ) | 156 | .arg( type ) |
157 | .arg( name ) | 157 | .arg( name ) |
158 | .arg( *emailIt ) | 158 | .arg( *emailIt ) |
159 | .arg( *emailIt ); | 159 | .arg( *emailIt ); |
160 | ++emailIt; | 160 | ++emailIt; |
161 | } else { | 161 | } else { |
162 | dynamicPart += QString( | 162 | dynamicPart += QString( |
163 | "<tr><td align=\"right\"><b>%1</b></td>" | 163 | "<tr><td align=\"right\"><b>%1</b></td>" |
164 | "<td align=\"left\">%2</td></tr>" ) | 164 | "<td align=\"left\">%2</td></tr>" ) |
165 | .arg( type ) | 165 | .arg( type ) |
166 | .arg( *emailIt ); | 166 | .arg( *emailIt ); |
167 | ++emailIt; | 167 | ++emailIt; |
168 | } | 168 | } |
169 | } | 169 | } |
170 | if ( mAddressee.birthday().date().isValid() ) { | 170 | if ( mAddressee.birthday().date().isValid() ) { |
171 | dynamicPart += QString( | 171 | dynamicPart += QString( |
172 | "<tr><td align=\"right\"><b>%1</b></td>" | 172 | "<tr><td align=\"right\"><b>%1</b></td>" |
173 | "<td align=\"left\">%2</td></tr>" ) | 173 | "<td align=\"left\">%2</td></tr>" ) |
174 | .arg( i18n ("Birthday") ) | 174 | .arg( i18n ("Birthday") ) |
175 | .arg( KGlobal::locale()->formatDate( mAddressee.birthday().date() ,true) ); | 175 | .arg( KGlobal::locale()->formatDate( mAddressee.birthday().date() ,true) ); |
176 | } | 176 | } |
177 | dynamicPart += getPhoneNumbers( mAddressee.phoneNumbers(), false ); | 177 | dynamicPart += getPhoneNumbers( mAddressee.phoneNumbers(), false ); |
178 | 178 | ||
179 | for ( ; emailIt != emails.end(); ++emailIt ) { | 179 | for ( ; emailIt != emails.end(); ++emailIt ) { |
180 | if ( kemailAvail ) { | 180 | if ( kemailAvail ) { |
181 | dynamicPart += QString( | 181 | dynamicPart += QString( |
182 | "<tr><td align=\"right\"><b>%1</b></td>" | 182 | "<tr><td align=\"right\"><b>%1</b></td>" |
183 | "<td align=\"left\"><a href=\"mailto:%2 <%3> \">%4</a></td></tr>" ) | 183 | "<td align=\"left\"><a href=\"mailto:%2 <%3> \">%4</a></td></tr>" ) |
184 | .arg( type ) | 184 | .arg( type ) |
185 | .arg( name ) | 185 | .arg( name ) |
186 | .arg( *emailIt ) | 186 | .arg( *emailIt ) |
187 | .arg( *emailIt ); | 187 | .arg( *emailIt ); |
188 | } else { | 188 | } else { |
189 | dynamicPart += QString( | 189 | dynamicPart += QString( |
190 | "<tr><td align=\"right\"><b>%1</b></td>" | 190 | "<tr><td align=\"right\"><b>%1</b></td>" |
191 | "<td align=\"left\">%2</td></tr>" ) | 191 | "<td align=\"left\">%2</td></tr>" ) |
192 | .arg( type ) | 192 | .arg( type ) |
193 | .arg( *emailIt ); | 193 | .arg( *emailIt ); |
194 | } | 194 | } |
195 | } | 195 | } |
196 | 196 | ||
197 | 197 | ||
198 | 198 | ||
199 | KABC::Address::List addresses = mAddressee.addresses(); | 199 | KABC::Address::List addresses = mAddressee.addresses(); |
200 | KABC::Address::List::ConstIterator addrIt; | 200 | KABC::Address::List::ConstIterator addrIt; |
201 | for ( addrIt = addresses.begin(); addrIt != addresses.end(); ++addrIt ) { | 201 | for ( addrIt = addresses.begin(); addrIt != addresses.end(); ++addrIt ) { |
202 | if ( true /*(*addrIt).label().isEmpty()*/ ) { | 202 | if ( true /*(*addrIt).label().isEmpty()*/ ) { |
203 | QString formattedAddress = (*addrIt).formattedAddress().stripWhiteSpace(); | 203 | QString formattedAddress = (*addrIt).formattedAddress().stripWhiteSpace(); |
204 | //US formattedAddress = formattedAddress.replace( '\n', "<br>" ); | 204 | //US formattedAddress = formattedAddress.replace( '\n', "<br>" ); |
205 | //qDebug("adresss %s ",formattedAddress.latin1() ); | 205 | //qDebug("adresss %s ",formattedAddress.latin1() ); |
206 | formattedAddress = formattedAddress.replace( QRegExp("\n"), "<br>" ); | 206 | formattedAddress = formattedAddress.replace( QRegExp("\n"), "<br>" ); |
207 | //qDebug("AddresseeView::setAddressee has to be verified."); | 207 | //qDebug("AddresseeView::setAddressee has to be verified."); |
208 | 208 | ||
209 | dynamicPart += QString( | 209 | dynamicPart += QString( |
210 | "<tr><td align=\"right\"><b>%1</b></td>" | 210 | "<tr><td align=\"right\"><b>%1</b></td>" |
211 | "<td align=\"left\">%2</td></tr>" ) | 211 | "<td align=\"left\">%2</td></tr>" ) |
212 | .arg( KABC::Address::typeLabel( (*addrIt).type() ) ) | 212 | .arg( KABC::Address::typeLabel( (*addrIt).type() ) ) |
213 | .arg( formattedAddress ); | 213 | .arg( formattedAddress ); |
214 | } else { | 214 | } else { |
215 | 215 | ||
216 | dynamicPart += QString( | 216 | dynamicPart += QString( |
217 | "<tr><td align=\"right\"><b>%1</b></td>" | 217 | "<tr><td align=\"right\"><b>%1</b></td>" |
218 | "<td align=\"left\">%2</td></tr>" ) | 218 | "<td align=\"left\">%2</td></tr>" ) |
219 | .arg( KABC::Address::typeLabel( (*addrIt).type() ) ) | 219 | .arg( KABC::Address::typeLabel( (*addrIt).type() ) ) |
220 | //US .arg( (*addrIt).label().replace( '\n', "<br>" ) ); | 220 | //US .arg( (*addrIt).label().replace( '\n', "<br>" ) ); |
221 | .arg( (*addrIt).label() /*replace( QRegExp("\n"), "<br>" )*/ ); | 221 | .arg( (*addrIt).label() /*replace( QRegExp("\n"), "<br>" )*/ ); |
222 | 222 | ||
223 | } | 223 | } |
224 | } | 224 | } |
225 | 225 | ||
226 | 226 | ||
227 | QString notes; | 227 | QString notes; |
228 | if ( sFullDetailsMode ) { | 228 | if ( sFullDetailsMode ) { |
229 | notes = QString( | 229 | notes = QString( |
230 | "<tr><td align=\"right\"><b>%1</b></td>" | 230 | "<tr><td align=\"right\"><b>%1</b></td>" |
231 | "<td align=\"left\"><a href=\"notAllDetails\">%4</a></td></tr>" ) | 231 | "<td align=\"left\"><a href=\"notAllDetails\">%4</a></td></tr>" ) |
232 | .arg( i18n("Details:") ) | 232 | .arg( i18n("Details") ) |
233 | .arg( i18n("Click here to hide!") ); | 233 | .arg( i18n("Hide!") ); |
234 | 234 | ||
235 | QString tempX = mAddressee.secrecy().asString(); | 235 | QString tempX = mAddressee.custom( "KADDRESSBOOK", "X-Gender" ); |
236 | if ( !tempX.isEmpty() ) { | ||
237 | notes += QString( | ||
238 | "<tr><td align=\"right\"><b>%1</b></td>" | ||
239 | "<td align=\"left\">%2</td></tr>" ) | ||
240 | .arg( i18n( "" ) ) | ||
241 | .arg( i18n(tempX) ); | ||
242 | } | ||
243 | |||
244 | |||
245 | tempX = mAddressee.secrecy().asString(); | ||
236 | 246 | ||
237 | notes += QString( | 247 | notes += QString( |
238 | "<tr><td align=\"right\"><b>%1</b></td>" | 248 | "<tr><td align=\"right\"><b>%1</b></td>" |
239 | "<td align=\"left\">%2</td></tr>" ) | 249 | "<td align=\"left\">%2</td></tr>" ) |
240 | .arg( "" ) | 250 | .arg( "" ) |
241 | .arg( tempX ); | 251 | .arg( tempX ); |
242 | 252 | ||
243 | 253 | ||
244 | tempX = mAddressee.categories().join(" - "); | 254 | tempX = mAddressee.categories().join(" - "); |
245 | if ( !tempX.isEmpty() ) { | 255 | if ( !tempX.isEmpty() ) { |
246 | notes += QString( | 256 | notes += QString( |
247 | "<tr><td align=\"right\"><b>%1</b></td>" | 257 | "<tr><td align=\"right\"><b>%1</b></td>" |
248 | "<td align=\"left\">%2</td></tr>" ) | 258 | "<td align=\"left\">%2</td></tr>" ) |
249 | .arg( i18n( "Category" ) ) | 259 | .arg( i18n( "Category" ) ) |
250 | .arg( tempX ); | 260 | .arg( tempX ); |
251 | } | 261 | } |
252 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Profession" ); | 262 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Profession" ); |
253 | if ( !tempX.isEmpty() ) { | 263 | if ( !tempX.isEmpty() ) { |
254 | notes += QString( | 264 | notes += QString( |
255 | "<tr><td align=\"right\"><b>%1</b></td>" | 265 | "<tr><td align=\"right\"><b>%1</b></td>" |
256 | "<td align=\"left\">%2</td></tr>" ) | 266 | "<td align=\"left\">%2</td></tr>" ) |
257 | .arg( i18n( "Profession" ) ) | 267 | .arg( i18n( "Profession" ) ) |
258 | .arg( tempX ); | 268 | .arg( tempX ); |
259 | } | 269 | } |
260 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Office" ); | 270 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Office" ); |
261 | if ( !tempX.isEmpty() ) { | 271 | if ( !tempX.isEmpty() ) { |
262 | notes += QString( | 272 | notes += QString( |
263 | "<tr><td align=\"right\"><b>%1</b></td>" | 273 | "<tr><td align=\"right\"><b>%1</b></td>" |
264 | "<td align=\"left\">%2</td></tr>" ) | 274 | "<td align=\"left\">%2</td></tr>" ) |
265 | .arg( i18n( "Office" ) ) | 275 | .arg( i18n( "Office" ) ) |
266 | .arg( tempX ); | 276 | .arg( tempX ); |
267 | } | 277 | } |
268 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Department" ); | 278 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Department" ); |
269 | if ( !tempX.isEmpty() ) { | 279 | if ( !tempX.isEmpty() ) { |
270 | notes += QString( | 280 | notes += QString( |
271 | "<tr><td align=\"right\"><b>%1</b></td>" | 281 | "<tr><td align=\"right\"><b>%1</b></td>" |
272 | "<td align=\"left\">%2</td></tr>" ) | 282 | "<td align=\"left\">%2</td></tr>" ) |
273 | .arg( i18n( "Department" ) ) | 283 | .arg( i18n( "Department" ) ) |
274 | .arg( tempX ); | 284 | .arg( tempX ); |
275 | } | 285 | } |
276 | 286 | ||
277 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-ManagersName" ); | 287 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-ManagersName" ); |
278 | if ( !tempX.isEmpty() ) { | 288 | if ( !tempX.isEmpty() ) { |
279 | notes += QString( | 289 | notes += QString( |
280 | "<tr><td align=\"right\"><b>%1</b></td>" | 290 | "<tr><td align=\"right\"><b>%1</b></td>" |
281 | "<td align=\"left\">%2</td></tr>" ) | 291 | "<td align=\"left\">%2</td></tr>" ) |
282 | .arg( i18n( "Manager" ) ) | 292 | .arg( i18n( "Manager" ) ) |
283 | .arg( tempX ); | 293 | .arg( tempX ); |
284 | } | 294 | } |
285 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-AssistantsName" ); | 295 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-AssistantsName" ); |
286 | if ( !tempX.isEmpty() ) { | 296 | if ( !tempX.isEmpty() ) { |
287 | notes += QString( | 297 | notes += QString( |
288 | "<tr><td align=\"right\"><b>%1</b></td>" | 298 | "<tr><td align=\"right\"><b>%1</b></td>" |
289 | "<td align=\"left\">%2</td></tr>" ) | 299 | "<td align=\"left\">%2</td></tr>" ) |
290 | .arg( i18n( "Assistant" ) ) | 300 | .arg( i18n( "Assistant" ) ) |
291 | .arg( tempX ); | 301 | .arg( tempX ); |
292 | } | 302 | } |
293 | if ( !mAddressee.url().url().isEmpty() ) { | 303 | if ( !mAddressee.url().url().isEmpty() ) { |
294 | notes += QString( | 304 | notes += QString( |
295 | "<tr><td align=\"right\"><b>%1</b></td>" | 305 | "<tr><td align=\"right\"><b>%1</b></td>" |
296 | "<td align=\"left\">%2</td></tr>" ) | 306 | "<td align=\"left\">%2</td></tr>" ) |
297 | .arg( i18n( "Homepage" ) ) | 307 | .arg( i18n( "Homepage" ) ) |
298 | .arg( mAddressee.url().url() ); | 308 | .arg( mAddressee.url().url() ); |
299 | } | 309 | } |
300 | tempX = mAddressee.nickName(); | 310 | tempX = mAddressee.nickName(); |
301 | if ( !tempX.isEmpty() ) { | 311 | if ( !tempX.isEmpty() ) { |
302 | notes += QString( | 312 | notes += QString( |
303 | "<tr><td align=\"right\"><b>%1</b></td>" | 313 | "<tr><td align=\"right\"><b>%1</b></td>" |
304 | "<td align=\"left\">%2</td></tr>" ) | 314 | "<td align=\"left\">%2</td></tr>" ) |
305 | .arg( i18n( "Nickname" ) ) | 315 | .arg( i18n( "Nickname" ) ) |
306 | .arg( tempX ); | 316 | .arg( tempX ); |
307 | } | 317 | } |
308 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-IMAddress" ); | 318 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-IMAddress" ); |
309 | if ( !tempX.isEmpty() ) { | 319 | if ( !tempX.isEmpty() ) { |
310 | notes += QString( | 320 | notes += QString( |
311 | "<tr><td align=\"right\"><b>%1</b></td>" | 321 | "<tr><td align=\"right\"><b>%1</b></td>" |
312 | "<td align=\"left\">%2</td></tr>" ) | 322 | "<td align=\"left\">%2</td></tr>" ) |
313 | .arg( i18n( "Messanger" ) ) | 323 | .arg( i18n( "Messanger" ) ) |
314 | .arg( tempX ); | 324 | .arg( tempX ); |
315 | } | 325 | } |
316 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Gender" ); | 326 | |
317 | if ( !tempX.isEmpty() ) { | ||
318 | notes += QString( | ||
319 | "<tr><td align=\"right\"><b>%1</b></td>" | ||
320 | "<td align=\"left\">%2</td></tr>" ) | ||
321 | .arg( i18n( "Gender" ) ) | ||
322 | .arg( i18n(tempX) ); | ||
323 | } | ||
324 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Anniversary" ); | 327 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Anniversary" ); |
325 | if ( !tempX.isEmpty() ) { | 328 | if ( !tempX.isEmpty() ) { |
326 | QDate dt = KGlobal::locale()->readDate( tempX, "%Y-%m-%d"); | 329 | QDate dt = KGlobal::locale()->readDate( tempX, "%Y-%m-%d"); |
327 | tempX = KGlobal::locale()->formatDate(dt, true); | 330 | tempX = KGlobal::locale()->formatDate(dt, true); |
328 | notes += QString( | 331 | notes += QString( |
329 | "<tr><td align=\"right\"><b>%1</b></td>" | 332 | "<tr><td align=\"right\"><b>%1</b></td>" |
330 | "<td align=\"left\">%2</td></tr>" ) | 333 | "<td align=\"left\">%2</td></tr>" ) |
331 | .arg( i18n( "Anniversary" ) ) | 334 | .arg( i18n( "Anniversary" ) ) |
332 | .arg( tempX ); | 335 | .arg( tempX ); |
333 | } | 336 | } |
334 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-SpousesName" ); | 337 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-SpousesName" ); |
335 | if ( !tempX.isEmpty() ) { | 338 | if ( !tempX.isEmpty() ) { |
336 | notes += QString( | 339 | notes += QString( |
337 | "<tr><td align=\"right\"><b>%1</b></td>" | 340 | "<tr><td align=\"right\"><b>%1</b></td>" |
338 | "<td align=\"left\">%2</td></tr>" ) | 341 | "<td align=\"left\">%2</td></tr>" ) |
339 | .arg( i18n( "Spouse" ) ) | 342 | .arg( i18n( "Spouse" ) ) |
340 | .arg( tempX ); | 343 | .arg( tempX ); |
341 | } | 344 | } |
342 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Children" ); | 345 | tempX = mAddressee.custom( "KADDRESSBOOK", "X-Children" ); |
343 | if ( !tempX.isEmpty() ) { | 346 | if ( !tempX.isEmpty() ) { |
344 | notes += QString( | 347 | notes += QString( |
345 | "<tr><td align=\"right\"><b>%1</b></td>" | 348 | "<tr><td align=\"right\"><b>%1</b></td>" |
346 | "<td align=\"left\">%2</td></tr>" ) | 349 | "<td align=\"left\">%2</td></tr>" ) |
347 | .arg( i18n( "Children" ) ) | 350 | .arg( i18n( "Children" ) ) |
348 | .arg( tempX ); | 351 | .arg( tempX ); |
349 | } | 352 | } |
350 | 353 | ||
351 | if ( !mAddressee.note().isEmpty() ) { | 354 | if ( !mAddressee.note().isEmpty() ) { |
352 | notes += QString( | 355 | notes += QString( |
353 | "<tr>" | 356 | "<tr>" |
354 | "<td align=\"right\" valign=\"top\"><b>%1</b></td>" // note label | 357 | "<td align=\"right\" valign=\"top\"><b>%1</b></td>" // note label |
355 | "<td align=\"left\">%2</td>" // note | 358 | "<td align=\"left\">%2</td>" // note |
356 | "</tr>" ).arg( i18n( "Notes" ) ) | 359 | "</tr>" ).arg( i18n( "Notes" ) ) |
357 | //US .arg( mAddressee.note().replace( '\n', "<br>" ) ); | 360 | //US .arg( mAddressee.note().replace( '\n', "<br>" ) ); |
358 | .arg( mAddressee.note().replace( QRegExp("\n"), "<br>" ) ); | 361 | .arg( mAddressee.note().replace( QRegExp("\n"), "<br>" ) ); |
359 | //qDebug("AddresseeView::setAddressee has to be verified."); | 362 | //qDebug("AddresseeView::setAddressee has to be verified."); |
360 | } | 363 | } |
361 | } else { | 364 | } else { |
362 | notes = QString( | 365 | notes = QString( |
363 | "<tr><td align=\"right\"><b>%1</b></td>" | 366 | "<tr><td align=\"right\"><b>%1</b></td>" |
364 | "<td align=\"left\"><a href=\"allDetails\">%4</a></td></tr>" ) | 367 | "<td align=\"left\"><a href=\"allDetails\">%4</a></td></tr>" ) |
365 | .arg( i18n("Details:") ) | 368 | .arg( i18n("Details") ) |
366 | .arg( i18n("Click here to show!") ); | 369 | .arg( i18n("Show!") ); |
367 | 370 | ||
368 | 371 | ||
369 | } | 372 | } |
370 | 373 | ||
371 | QString aRole = ""; | 374 | QString aRole = ""; |
372 | QString aOrga = ""; | 375 | QString aOrga = ""; |
373 | if ( true /*!mAddressee.role().isEmpty()*/ ) { | 376 | if ( true /*!mAddressee.role().isEmpty()*/ ) { |
374 | aRole = "<tr>" | 377 | aRole = "<tr>" |
375 | "<td align=\"left\">" + mAddressee.role() + "</td>" | 378 | "<td align=\"left\">" + mAddressee.role() + "</td>" |
376 | "</tr>"; | 379 | "</tr>"; |
377 | } | 380 | } |
378 | if ( true /*!mAddressee.organization().isEmpty()*/ ) { | 381 | if ( true /*!mAddressee.organization().isEmpty()*/ ) { |
379 | aOrga = "<tr>" | 382 | aOrga = "<tr>" |
380 | "<td align=\"left\">" + mAddressee.organization() + "</td>" | 383 | "<td align=\"left\">" + mAddressee.organization() + "</td>" |
381 | "</tr>"; | 384 | "</tr>"; |
382 | } | 385 | } |
383 | mText = ""; | 386 | mText = ""; |
384 | QString picString = ""; | 387 | QString picString = ""; |
385 | KABC::Picture picture = mAddressee.photo(); | 388 | KABC::Picture picture = mAddressee.photo(); |
386 | bool picAvailintern = false; | 389 | bool picAvailintern = false; |
387 | bool picAvailUrl = false; | 390 | bool picAvailUrl = false; |
388 | if (! picture.undefined() ) { | 391 | if (! picture.undefined() ) { |
389 | picAvailintern = (picture.isIntern() && !picture.data().isNull()); | 392 | picAvailintern = (picture.isIntern() && !picture.data().isNull()); |
390 | picAvailUrl = !picture.isIntern() && QFile::exists(picture.url() ); | 393 | picAvailUrl = !picture.isIntern() && QFile::exists(picture.url() ); |
391 | } | 394 | } |
392 | if ( picAvailUrl || picAvailintern || QApplication::desktop()->width() > 320 ) { | 395 | if ( picAvailUrl || picAvailintern || QApplication::desktop()->width() > 320 ) { |
393 | picString = "<img src=\"myimage\" width=\"50\" height=\"70\">"; | 396 | picString = "<img src=\"myimage\" width=\"50\" height=\"70\">"; |
394 | if ( picAvailintern ) { | 397 | if ( picAvailintern ) { |
395 | QMimeSourceFactory::defaultFactory()->setImage( "myimage", picture.data() ); | 398 | QMimeSourceFactory::defaultFactory()->setImage( "myimage", picture.data() ); |
396 | } else { | 399 | } else { |
397 | if ( picAvailUrl ) { | 400 | if ( picAvailUrl ) { |
398 | QMimeSourceFactory::defaultFactory()->setPixmap( "myimage", QPixmap( picture.url() )); | 401 | QMimeSourceFactory::defaultFactory()->setPixmap( "myimage", QPixmap( picture.url() )); |
399 | } else { | 402 | } else { |
400 | if ( !mAddressee.custom( "KADDRESSBOOK", "X-Children" ).isEmpty() ) { | 403 | if ( !mAddressee.custom( "KADDRESSBOOK", "X-Children" ).isEmpty() ) { |
401 | static bool setDefaultImageChildren = false; | 404 | static bool setDefaultImageChildren = false; |
402 | if ( !setDefaultImageChildren ) { | 405 | if ( !setDefaultImageChildren ) { |
403 | QMimeSourceFactory::defaultFactory()->setPixmap( "familyIcon", KGlobal::iconLoader()->loadIcon( "ic_kids", KIcon::Desktop, 128 ) ); | 406 | QMimeSourceFactory::defaultFactory()->setPixmap( "familyIcon", KGlobal::iconLoader()->loadIcon( "ic_kids", KIcon::Desktop, 128 ) ); |
404 | setDefaultImageChildren = true; | 407 | setDefaultImageChildren = true; |
405 | } | 408 | } |
406 | picString = "<img src=\"familyIcon\" width=\"64\" height=\"64\">"; | 409 | picString = "<img src=\"familyIcon\" width=\"64\" height=\"64\">"; |
407 | 410 | ||
408 | } else if ( !mAddressee.custom( "KADDRESSBOOK", "X-SpousesName" ).isEmpty() ) { | 411 | } else if ( !mAddressee.custom( "KADDRESSBOOK", "X-SpousesName" ).isEmpty() ) { |
409 | static bool setDefaultImagepouses = false; | 412 | static bool setDefaultImagepouses = false; |
410 | if ( !setDefaultImagepouses ) { | 413 | if ( !setDefaultImagepouses ) { |
411 | QMimeSourceFactory::defaultFactory()->setPixmap( "SpousesIcon", KGlobal::iconLoader()->loadIcon( "ic_family", KIcon::Desktop, 128 ) ); | 414 | QMimeSourceFactory::defaultFactory()->setPixmap( "SpousesIcon", KGlobal::iconLoader()->loadIcon( "ic_family", KIcon::Desktop, 128 ) ); |
412 | setDefaultImagepouses = true; | 415 | setDefaultImagepouses = true; |
413 | } | 416 | } |
414 | picString = "<img src=\"SpousesIcon\" width=\"64\" height=\"64\">"; | 417 | picString = "<img src=\"SpousesIcon\" width=\"64\" height=\"64\">"; |
415 | } else { | 418 | } else { |
416 | QString gen = mAddressee.custom( "KADDRESSBOOK", "X-Gender" ); | 419 | QString gen = mAddressee.custom( "KADDRESSBOOK", "X-Gender" ); |
417 | if ( gen == "male" ) { | 420 | if ( gen == "male" ) { |
418 | static bool setDefaultImageMale = false; | 421 | static bool setDefaultImageMale = false; |
419 | if ( !setDefaultImageMale ) { | 422 | if ( !setDefaultImageMale ) { |
420 | QMimeSourceFactory::defaultFactory()->setPixmap( "MaleIcon", KGlobal::iconLoader()->loadIcon( "ic_male", KIcon::Desktop, 128 ) ); | 423 | QMimeSourceFactory::defaultFactory()->setPixmap( "MaleIcon", KGlobal::iconLoader()->loadIcon( "ic_male", KIcon::Desktop, 128 ) ); |
421 | setDefaultImageMale = true; | 424 | setDefaultImageMale = true; |
422 | } | 425 | } |
423 | picString = "<img src=\"MaleIcon\" width=\"64\" height=\"64\">"; | 426 | picString = "<img src=\"MaleIcon\" width=\"64\" height=\"64\">"; |
424 | 427 | ||
425 | } else if ( gen == "female" ) { | 428 | } else if ( gen == "female" ) { |
426 | static bool setDefaultImageFemale = false; | 429 | static bool setDefaultImageFemale = false; |
427 | if ( !setDefaultImageFemale ) { | 430 | if ( !setDefaultImageFemale ) { |
428 | QMimeSourceFactory::defaultFactory()->setPixmap( "FemaleIcon", KGlobal::iconLoader()->loadIcon( "ic_female", KIcon::Desktop, 128 ) ); | 431 | QMimeSourceFactory::defaultFactory()->setPixmap( "FemaleIcon", KGlobal::iconLoader()->loadIcon( "ic_female", KIcon::Desktop, 128 ) ); |
429 | setDefaultImageFemale = true; | 432 | setDefaultImageFemale = true; |
430 | } | 433 | } |
431 | picString = "<img src=\"FemaleIcon\" width=\"64\" height=\"64\">"; | 434 | picString = "<img src=\"FemaleIcon\" width=\"64\" height=\"64\">"; |
432 | 435 | ||
433 | } else { | 436 | } else { |
434 | static bool setDefaultImage = false; | 437 | static bool setDefaultImage = false; |
435 | if ( !setDefaultImage ) { | 438 | if ( !setDefaultImage ) { |
436 | //qDebug("Setting default pixmap "); | 439 | //qDebug("Setting default pixmap "); |
437 | QMimeSourceFactory::defaultFactory()->setPixmap( "defaultIcon", KGlobal::iconLoader()->loadIcon( "ic_penguin", KIcon::Desktop, 128 ) ); | 440 | QMimeSourceFactory::defaultFactory()->setPixmap( "defaultIcon", KGlobal::iconLoader()->loadIcon( "ic_penguin", KIcon::Desktop, 128 ) ); |
438 | setDefaultImage = true; | 441 | setDefaultImage = true; |
439 | } | 442 | } |
440 | picString = "<img src=\"defaultIcon\" width=\"64\" height=\"64\">"; | 443 | picString = "<img src=\"defaultIcon\" width=\"64\" height=\"64\">"; |
441 | } | 444 | } |
442 | } | 445 | } |
443 | } | 446 | } |
444 | } | 447 | } |
445 | mText = QString::fromLatin1( | 448 | mText = QString::fromLatin1( |
446 | "<html>" | 449 | "<html>" |
447 | "<body text=\"%1\" bgcolor=\"%2\">" // text and background color | 450 | "<body text=\"%1\" bgcolor=\"%2\">" // text and background color |
448 | "<table>" | 451 | "<table>" |
449 | "<tr>" | 452 | "<tr>" |
450 | "<td rowspan=\"3\" align=\"right\" valign=\"top\">" | 453 | "<td rowspan=\"3\" align=\"right\" valign=\"top\">" |
451 | "%3" | 454 | "%3" |
452 | "</td>" | 455 | "</td>" |
453 | "<td align=\"left\"><font size=\"+2\"><b>%4</b></font></td>" // name | 456 | "<td align=\"left\"><font size=\"+2\"><b>%4</b></font></td>" // name |
454 | "</tr>" | 457 | "</tr>" |
455 | "%5" // role | 458 | "%5" // role |
456 | "%6" // organization | 459 | "%6" // organization |
457 | "<td colspan=\"2\"> </td>" | 460 | "<td colspan=\"2\"> </td>" |
458 | "%7" // dynamic part | 461 | "%7" // dynamic part |
459 | "%8" // notes | 462 | "%8" // notes |
460 | "</table>" | 463 | "</table>" |
461 | "</body>" | 464 | "</body>" |
462 | "</html>") | 465 | "</html>") |