-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 2 | ||||
-rw-r--r-- | kaddressbook/kabcore.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index 5335f47..a3d465f 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt | |||
@@ -557,201 +557,201 @@ | |||
557 | { "Beam v&Card(s)...","Beame v&Card(s)..." }, | 557 | { "Beam v&Card(s)...","Beame v&Card(s)..." }, |
558 | { "Set formatted name...","Setze formatierten Namen..." }, | 558 | { "Set formatted name...","Setze formatierten Namen..." }, |
559 | { "Kde Sync HowTo","Kde Sync HowTo" }, | 559 | { "Kde Sync HowTo","Kde Sync HowTo" }, |
560 | { "Multi Sync HowTo","Multi Sync HowTo" }, | 560 | { "Multi Sync HowTo","Multi Sync HowTo" }, |
561 | { "&Beam","&Beame" }, | 561 | { "&Beam","&Beame" }, |
562 | { "Edit Email Addresses","Editiere Email Adressen" }, | 562 | { "Edit Email Addresses","Editiere Email Adressen" }, |
563 | { "Email address:","Email Adresse:" }, | 563 | { "Email address:","Email Adresse:" }, |
564 | { "Change","Ändere" }, | 564 | { "Change","Ändere" }, |
565 | { "Set Standard","Setze Standard" }, | 565 | { "Set Standard","Setze Standard" }, |
566 | { "New Contact","Neuer Contact" }, | 566 | { "New Contact","Neuer Contact" }, |
567 | { "Undo %1","Rückgängig %1" }, | 567 | { "Undo %1","Rückgängig %1" }, |
568 | { "Redo","Wiederholen" }, | 568 | { "Redo","Wiederholen" }, |
569 | { "Saving ... please wait! ","Am Speichern ... bitte warten! " }, | 569 | { "Saving ... please wait! ","Am Speichern ... bitte warten! " }, |
570 | { "CSV Import Dialog","CSV Import Dialog" }, | 570 | { "CSV Import Dialog","CSV Import Dialog" }, |
571 | { "File to import:","Datei zum Import:" }, | 571 | { "File to import:","Datei zum Import:" }, |
572 | { "Delimiter","Trennzeichen" }, | 572 | { "Delimiter","Trennzeichen" }, |
573 | { "Comma","Komma" }, | 573 | { "Comma","Komma" }, |
574 | { "Semicolon","Semikolon" }, | 574 | { "Semicolon","Semikolon" }, |
575 | { "Tabulator","Tabulator" }, | 575 | { "Tabulator","Tabulator" }, |
576 | { "Space","Leerzeichen" }, | 576 | { "Space","Leerzeichen" }, |
577 | { "1","1" }, | 577 | { "1","1" }, |
578 | { """,""" }, | 578 | { """,""" }, |
579 | { "'","'" }, | 579 | { "'","'" }, |
580 | { "Start at line:","Beginne mit Zeile:" }, | 580 | { "Start at line:","Beginne mit Zeile:" }, |
581 | { "Textquote:","Textquote:" }, | 581 | { "Textquote:","Textquote:" }, |
582 | { "Ignore duplicate delimiters","Ignoriere doppelte Trennzeichen" }, | 582 | { "Ignore duplicate delimiters","Ignoriere doppelte Trennzeichen" }, |
583 | { "Import KDE 2 Addressbook","Importiere KDE 2 Addressbook" }, | 583 | { "Import KDE 2 Addressbook","Importiere KDE 2 Addressbook" }, |
584 | { "Override previously imported entries?","Überschreibe bereits importierte Einträge?" }, | 584 | { "Override previously imported entries?","Überschreibe bereits importierte Einträge?" }, |
585 | { "Select vCard to Import","Selektiere zu importierende vCard" }, | 585 | { "Select vCard to Import","Selektiere zu importierende vCard" }, |
586 | { "Information","Information" }, | 586 | { "Information","Information" }, |
587 | { "contacts successfully imported.","Kontakte erfolgreich importiert." }, | 587 | { "contacts successfully imported.","Kontakte erfolgreich importiert." }, |
588 | { "Import xml file","Importiere xml Datei" }, | 588 | { "Import xml file","Importiere xml Datei" }, |
589 | { "Choose contact selection","Wähle Kontakt Auswahl" }, | 589 | { "Choose contact selection","Wähle Kontakt Auswahl" }, |
590 | { "Select the entire address book","Wähle das ganze Adressbuch" }, | 590 | { "Select the entire address book","Wähle das ganze Adressbuch" }, |
591 | { "Only contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected.","Nur in KA/Pi selektierte Kontate.\nDiese Option ist nicht verfügbar\nwhen keine Kontakte selektiert sind." }, | 591 | { "Only contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected.","Nur in KA/Pi selektierte Kontate.\nDiese Option ist nicht verfügbar\nwhen keine Kontakte selektiert sind." }, |
592 | { "Only contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters","Nur Kontakte die auf den Filter zutreffen.\nDiese Option ist nicht verfügbar, wenn keine Filter definiert sind." }, | 592 | { "Only contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters","Nur Kontakte die auf den Filter zutreffen.\nDiese Option ist nicht verfügbar, wenn keine Filter definiert sind." }, |
593 | { "Only contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories.","Nur Kontakte die Mitglieder der Kategirien sind,\die links selektiert sind.\nDiese Option ist nicht verfügbar, wenn es keine Kategirien gibt." }, | 593 | { "Only contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories.","Nur Kontakte die Mitglieder der Kategirien sind,\die links selektiert sind.\nDiese Option ist nicht verfügbar, wenn es keine Kategirien gibt." }, |
594 | { "Select a filter to decide which contacts to select.","Selektiere einen Filter um festzulegen welche Kontakte ausgewählt werden sollen." }, | 594 | { "Select a filter to decide which contacts to select.","Selektiere einen Filter um festzulegen welche Kontakte ausgewählt werden sollen." }, |
595 | { "Check the categories whose members you want to select.","Setzte die Kategorien, dessen Mitglieder Sie auswählen möchten." }, | 595 | { "Check the categories whose members you want to select.","Setzte die Kategorien, dessen Mitglieder Sie auswählen möchten." }, |
596 | { "I/O device: ","I/O device: " }, | 596 | { "I/O device: ","I/O device: " }, |
597 | { "Connection: ","Connection: " }, | 597 | { "Connection: ","Connection: " }, |
598 | { "Model(opt.): ","Model(opt.): " }, | 598 | { "Model(opt.): ","Model(opt.): " }, |
599 | { "Exporting to phone...","Exportiere aufs Handy..." }, | 599 | { "Exporting to phone...","Exportiere aufs Handy..." }, |
600 | { "Error exporting to phone","Fehler beim Export aufs Handy" }, | 600 | { "Error exporting to phone","Fehler beim Export aufs Handy" }, |
601 | { "contacts successfully exported.","Kontakte erfolgreich exportiert." }, | 601 | { "contacts successfully exported.","Kontakte erfolgreich exportiert." }, |
602 | { "Do you want to remove<br>all existing entries from<br>%1<br>before exporting.?","Wollen Sie<br>alle existieren Einträge von<br>%1<br>vor dem Export entfernen?" }, | 602 | { "Do you want to remove<br>all existing entries from<br>%1<br>before exporting.?","Wollen Sie<br>alle existieren Einträge von<br>%1<br>vor dem Export entfernen?" }, |
603 | { "Set formatted name","Setze formatierten Namen" }, | 603 | { "Set formatted name","Setze formatierten Namen" }, |
604 | { "You can set the formatted name\nfor a list of contacts in one go.","Sie können den formatierten Namen für\nein Liste von Kontakten auf einmal setzen." }, | 604 | { "You can set the formatted name\nfor a list of contacts in one go.","Sie können den formatierten Namen für\nein Liste von Kontakten auf einmal setzen." }, |
605 | { "Set formatted name to:","Setze formatierten Name auf:" }, | 605 | { "Set formatted name to:","Setze formatierten Name auf:" }, |
606 | { "Simple: James Bond","Einfach: James Bond" }, | 606 | { "Simple: James Bond","Einfach: James Bond" }, |
607 | { "Full: Mr. James 007 Bond I","Voll: Mr. James 007 Bond I" }, | 607 | { "Full: Mr. James 007 Bond I","Voll: Mr. James 007 Bond I" }, |
608 | { "Reverse: Bond, James","Umgekehrt: Bond, James" }, | 608 | { "Reverse: Bond, James","Umgekehrt: Bond, James" }, |
609 | { "Organization: MI6","Organisation: MI6" }, | 609 | { "Organization: MI6","Organisation: MI6" }, |
610 | { "Set formatted name to\norganization, if name empty","Setze formatierten Namen auf\nOrganisation, wenn Name leer ist." }, | 610 | { "Set formatted name to\norganization, if name empty","Setze formatierten Namen auf\nOrganisation, wenn Name leer ist." }, |
611 | { "Select contact list","Selektiere Kontakt Liste" }, | 611 | { "Select contact list","Selektiere Kontakt Liste" }, |
612 | { "Changing contact #%1","Ändere Kontakt #%1" }, | 612 | { "Changing contact #%1","Ändere Kontakt #%1" }, |
613 | { "Refreshing view...","Lade Ansicht neu..." }, | 613 | { "Refreshing view...","Lade Ansicht neu..." }, |
614 | { "Setting formatted name completed!","Setzen vom formatierten Namen beendet!" }, | 614 | { "Setting formatted name completed!","Setzen vom formatierten Namen beendet!" }, |
615 | { "Removing voice...","Entferne voice..." }, | 615 | { "Removing voice...","Entferne voice..." }, |
616 | { "Remove voice completed!","Entferne voice beendet!" }, | 616 | { "Remove voice completed!","Entferne voice beendet!" }, |
617 | { "Merge with existing categories?","Zu bestehenden\nKategorien hinzufügen?" }, | 617 | { "Merge with existing categories?","Zu bestehenden\nKategorien hinzufügen?" }, |
618 | { "Setting categories ... please wait!","Setze Kategorien ... bitte warten!" }, | 618 | { "Setting categories ... please wait!","Setze Kategorien ... bitte warten!" }, |
619 | { "Setting categories completed!","Setzen der Kategorien beendet!" }, | 619 | { "Setting categories completed!","Setzen der Kategorien beendet!" }, |
620 | { "OK","OK" }, | 620 | { "OK","OK" }, |
621 | { "Please wait, processing categories...","Bitte warten, bearbeite Kategorien..." }, | 621 | { "Please wait, processing categories...","Bitte warten, bearbeite Kategorien..." }, |
622 | { "Processing contact #%1","Bearbeite Kontakt #%1" }, | 622 | { "Processing contact #%1","Bearbeite Kontakt #%1" }, |
623 | { " categories added to list! "," Kategorien zur Liste hinzugefügt! " }, | 623 | { " categories added to list! "," Kategorien zur Liste hinzugefügt! " }, |
624 | { "%1: %2","%1: %2" }, | 624 | { "%1: %2","%1: %2" }, |
625 | { "Your personal contact is\nnot set! Please select it\nand set it with menu:\nSettings - Set Who Am I\n","Ihr persönlicher Kontakt ist\nnicht gesetzt! Bitte selektieren Sie\nihn und setzen ihn mit Menu:\nKonfiguration - Setze wer bin ich\n" }, | 625 | { "Your personal contact is\nnot set! Please select it\nand set it with menu:\nSettings - Set Who Am I\n","Ihr persönlicher Kontakt ist\nnicht gesetzt! Bitte selektieren Sie\nihn und setzen ihn mit Menu:\nKonfiguration - Setze wer bin ich\n" }, |
626 | { "<qt>Do you really want to use <b>%1</b> as your new personal contact?</qt>","<qt>Wollen Sie wirklich<br><b>%1</b><br>als persönlichen Kontakt setzent?</qt>" }, | 626 | { "<qt>Do you really want to use <b>%1</b> as your new personal contact?</qt>","<qt>Wollen Sie wirklich<br><b>%1</b><br>als persönlichen Kontakt setzent?</qt>" }, |
627 | { "Cut","Ausschneiden" }, | 627 | { "Cut","Ausschneiden" }, |
628 | { "Paste","Einfügen" }, | 628 | { "Paste","Einfügen" }, |
629 | { "Delete","Löschen" }, | 629 | { "Delete","Löschen" }, |
630 | { "Choose...","Wähle..." }, | 630 | { "Choose...","Wähle..." }, |
631 | { "Add View","Ansicht hinzufügen" }, | 631 | { "Add View","Ansicht hinzufügen" }, |
632 | { "View name:","Ansicht Name:" }, | 632 | { "View name:","Ansicht Name:" }, |
633 | { "View Type","Ainsicht Typ" }, | 633 | { "View Type","Ainsicht Typ" }, |
634 | { "Icons represent contacts. Very simple view.","Icons repräsentieren Kontakte. Sehr einfache Ansicht." }, | 634 | { "Icons represent contacts. Very simple view.","Icons repräsentieren Kontakte. Sehr einfache Ansicht." }, |
635 | { "A listing of contacts in a table. Each cell of the table holds a field of the contact.","Eine Kontaktliste in einer Tabelle." }, | 635 | { "A listing of contacts in a table. Each cell of the table holds a field of the contact.","Eine Kontaktliste in einer Tabelle." }, |
636 | { "Rolodex style cards represent contacts.","Rolodex Stil Karten repräsentieren Kontakte." }, | 636 | { "Rolodex style cards represent contacts.","Rolodex Stil Karten repräsentieren Kontakte." }, |
637 | { "Draw &separators","Zeichne &Trennlinie" }, | 637 | { "Draw &separators","Zeichne &Trennlinie" }, |
638 | { "Separator &width:","Trennlinien &Breite:" }, | 638 | { "Separator &width:","Trennlinien &Breite:" }, |
639 | { "&Padding:","Füllung:" }, | 639 | { "&Padding:","Füllung:" }, |
640 | { "Cards","Karten" }, | 640 | { "Cards","Karten" }, |
641 | { "&Margin:","&Rand:" }, | 641 | { "&Margin:","&Rand:" }, |
642 | { "Draw &borders","Zeichne Ränder" }, | 642 | { "Draw &borders","Zeichne Ränder" }, |
643 | { "The item margin is the distance (in pixels) between the item edge and the item data. Most noticeably, incrementing the item margin will add space between the focus rectangle and the item data.","The item margin is the distance (in pixels) between the item edge and the item data. Most noticeably, incrementing the item margin will add space between the focus rectangle and the item data." }, | 643 | { "The item margin is the distance (in pixels) between the item edge and the item data. Most noticeably, incrementing the item margin will add space between the focus rectangle and the item data.","The item margin is the distance (in pixels) between the item edge and the item data. Most noticeably, incrementing the item margin will add space between the focus rectangle and the item data." }, |
644 | { "The Item Spacing decides the distance (in pixels) between the items and anything else: the view borders, other items or column separators.","The Item Spacing decides the distance (in pixels) between the items and anything else: the view borders, other items or column separators." }, | 644 | { "The Item Spacing decides the distance (in pixels) between the items and anything else: the view borders, other items or column separators.","The Item Spacing decides the distance (in pixels) between the items and anything else: the view borders, other items or column separators." }, |
645 | { "Sets the width of column separators","Sets the width of column separators" }, | 645 | { "Sets the width of column separators","Sets the width of column separators" }, |
646 | { "&Layout","&Layout" }, | 646 | { "&Layout","&Layout" }, |
647 | { "Show &empty fields","Zeige leere Felder" }, | 647 | { "Show &empty fields","Zeige leere Felder" }, |
648 | { "Show field &labels","Zeige Feld Label" }, | 648 | { "Show field &labels","Zeige Feld Label" }, |
649 | { "Be&havior","Ver&halten" }, | 649 | { "Be&havior","Ver&halten" }, |
650 | { "Header, Border and Separator Color","Kopf, Rand und Trennlinien Farbe" }, | 650 | { "Header, Border and Separator Color","Kopf, Rand und Trennlinien Farbe" }, |
651 | { "<qt>Are you sure that you want to delete the view <b>%1</b>?</qt>","<qt>Sind Sie sicher, dass Sie die Ansicht <b>%1</b> löschen möchten?</qt>" }, | 651 | { "<qt>Are you sure that you want to delete the view <b>%1</b>?</qt>","<qt>Sind Sie sicher, dass Sie die Ansicht <b>%1</b> löschen möchten?</qt>" }, |
652 | { "Confirm Delete","Bestätige Löschen" }, | 652 | { "Confirm Delete","Bestätige Löschen" }, |
653 | { "Edit Address Book Filter","Editiere Adressbuch Filter" }, | 653 | { "Edit Address Book Filter","Editiere Adressbuch Filter" }, |
654 | { "Category rule","Kategorie Regel" }, | 654 | { "Category rule","Kategorie Regel" }, |
655 | { "Include categories","Inklusive" }, | 655 | { "Include categories","Inklusive" }, |
656 | { "Exclude categories","Exclusive" }, | 656 | { "Exclude categories","Exclusive" }, |
657 | { "Include contacts, that are:","Schließe folgende Kontakte ein:" }, | 657 | { "Include contacts, that are:","Schließe folgende Kontakte ein:" }, |
658 | { "public","Öffentlich" }, | 658 | { "public","Öffentlich" }, |
659 | { "private","Privat" }, | 659 | { "private","Privat" }, |
660 | { "confidential","Vertraulich" }, | 660 | { "confidential","Vertraulich" }, |
661 | { "Configure Resources","Konfiguriere Resourcen" }, | 661 | { "Configure Resources","Konfiguriere Resourcen" }, |
662 | { "Resource Configuration","Resource Konfiguration" }, | 662 | { "Resource Configuration","Resource Konfiguration" }, |
663 | { "Resources","Resourcen" }, | 663 | { "Resources","Resourcen" }, |
664 | { "Standard","Standard" }, | 664 | { "Standard","Standard" }, |
665 | { "&Use as Standard","Setze als Standard" }, | 665 | { "&Use as Standard","Setze als Standard" }, |
666 | { "Select type of the new resource:","Selektiere Typ der neuen Resource:" }, | 666 | { "Select type of the new resource:","Selektiere Typ der neuen Resource:" }, |
667 | { "General Settings","Allgemeine Einstellungen" }, | 667 | { "General Settings","Allgemeine Einstellungen" }, |
668 | { "Read-only","Nur-Lesen" }, | 668 | { "Read-only","Nur-Lesen" }, |
669 | { "Include in sync","Schließe in Sync mit ein" }, | 669 | { "Include in sync","Schließe in Sync mit ein" }, |
670 | { "%1 Resource Settings","%1 Resource Einstellungen" }, | 670 | { "%1 Resource Settings","%1 Resource Einstellungen" }, |
671 | { "Format:","Format:" }, | 671 | { "Format:","Format:" }, |
672 | { "Location:","Ort:" }, | 672 | { "Location:","Ort:" }, |
673 | { "Full Menu bar (restart)","Volle Menu Leiste (Neustart!)" }, | 673 | { "Full Menu bar (restart)","Volle Menu Leiste (Neustart!)" }, |
674 | { "Language","Sprache" }, | 674 | { "Language","Sprache" }, |
675 | { "Time Format","Zeit Format" }, | 675 | { "Time Format","Zeit Format" }, |
676 | { "Time Zone","Zeit Zone" }, | 676 | { "Time Zone","Zeit Zone" }, |
677 | { "Data storage path","Daten Speicherpfad" }, | 677 | { "Data storage path","Daten Speicherpfad" }, |
678 | { "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" }, | 678 | { "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" }, |
679 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, | 679 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, |
680 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, | 680 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, |
681 | { "Save settings","Speichere Einstellungen" }, | 681 | { "Save settings","Speichere Einstellungen" }, |
682 | { "Save standard","Speichere Standard" }, | 682 | { "Save standard","Speichere Standard" }, |
683 | { "Save","Speichern" }, | 683 | { "Save","Speichern" }, |
684 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, | 684 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, |
685 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, | 685 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, |
686 | { "Multiple Sync options","Multi Sync Optionen" }, | 686 | { "Multiple Sync options","Multi Sync Optionen" }, |
687 | { "Sync algo options","Sync Ablauf Optionen" }, | 687 | { "Sync algo options","Sync Ablauf Optionen" }, |
688 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, | 688 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, |
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 | { "","" }, | 749 | { "Change search field enable jump bar","Ändere Suchfeld um Jumpbar anzuzeigen" }, |
750 | { "","" }, | 750 | { "","" }, |
751 | { "","" }, | 751 | { "","" }, |
752 | { "","" }, | 752 | { "","" }, |
753 | { "","" }, | 753 | { "","" }, |
754 | { "","" }, | 754 | { "","" }, |
755 | { "","" }, | 755 | { "","" }, |
756 | { "","" }, | 756 | { "","" }, |
757 | { "","" }, \ No newline at end of file | 757 | { "","" }, \ No newline at end of file |
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 3f7a7da..e8f6132 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -1254,384 +1254,389 @@ void KABCore::newContact() | |||
1254 | 1254 | ||
1255 | void KABCore::addEmail( QString aStr ) | 1255 | void KABCore::addEmail( QString aStr ) |
1256 | { | 1256 | { |
1257 | #ifndef KAB_EMBEDDED | 1257 | #ifndef KAB_EMBEDDED |
1258 | QString fullName, email; | 1258 | QString fullName, email; |
1259 | 1259 | ||
1260 | KABC::Addressee::parseEmailAddress( aStr, fullName, email ); | 1260 | KABC::Addressee::parseEmailAddress( aStr, fullName, email ); |
1261 | 1261 | ||
1262 | // Try to lookup the addressee matching the email address | 1262 | // Try to lookup the addressee matching the email address |
1263 | bool found = false; | 1263 | bool found = false; |
1264 | QStringList emailList; | 1264 | QStringList emailList; |
1265 | KABC::AddressBook::Iterator it; | 1265 | KABC::AddressBook::Iterator it; |
1266 | for ( it = mAddressBook->begin(); !found && (it != mAddressBook->end()); ++it ) { | 1266 | for ( it = mAddressBook->begin(); !found && (it != mAddressBook->end()); ++it ) { |
1267 | emailList = (*it).emails(); | 1267 | emailList = (*it).emails(); |
1268 | if ( emailList.contains( email ) > 0 ) { | 1268 | if ( emailList.contains( email ) > 0 ) { |
1269 | found = true; | 1269 | found = true; |
1270 | (*it).setNameFromString( fullName ); | 1270 | (*it).setNameFromString( fullName ); |
1271 | editContact( (*it).uid() ); | 1271 | editContact( (*it).uid() ); |
1272 | } | 1272 | } |
1273 | } | 1273 | } |
1274 | 1274 | ||
1275 | if ( !found ) { | 1275 | if ( !found ) { |
1276 | KABC::Addressee addr; | 1276 | KABC::Addressee addr; |
1277 | addr.setNameFromString( fullName ); | 1277 | addr.setNameFromString( fullName ); |
1278 | addr.insertEmail( email, true ); | 1278 | addr.insertEmail( email, true ); |
1279 | 1279 | ||
1280 | mAddressBook->insertAddressee( addr ); | 1280 | mAddressBook->insertAddressee( addr ); |
1281 | mViewManager->refreshView( addr.uid() ); | 1281 | mViewManager->refreshView( addr.uid() ); |
1282 | editContact( addr.uid() ); | 1282 | editContact( addr.uid() ); |
1283 | } | 1283 | } |
1284 | #else //KAB_EMBEDDED | 1284 | #else //KAB_EMBEDDED |
1285 | qDebug("KABCore::addEmail finsih method"); | 1285 | qDebug("KABCore::addEmail finsih method"); |
1286 | #endif //KAB_EMBEDDED | 1286 | #endif //KAB_EMBEDDED |
1287 | } | 1287 | } |
1288 | 1288 | ||
1289 | void KABCore::importVCard( const KURL &url, bool showPreview ) | 1289 | void KABCore::importVCard( const KURL &url, bool showPreview ) |
1290 | { | 1290 | { |
1291 | mXXPortManager->importVCard( url, showPreview ); | 1291 | mXXPortManager->importVCard( url, showPreview ); |
1292 | } | 1292 | } |
1293 | void KABCore::importFromOL() | 1293 | void KABCore::importFromOL() |
1294 | { | 1294 | { |
1295 | #ifdef _OL_IMPORT_ | 1295 | #ifdef _OL_IMPORT_ |
1296 | KAImportOLdialog* idgl = new KAImportOLdialog( i18n("Import Contacts from OL"), mAddressBook, this ); | 1296 | KAImportOLdialog* idgl = new KAImportOLdialog( i18n("Import Contacts from OL"), mAddressBook, this ); |
1297 | idgl->exec(); | 1297 | idgl->exec(); |
1298 | KABC::Addressee::List list = idgl->getAddressList(); | 1298 | KABC::Addressee::List list = idgl->getAddressList(); |
1299 | if ( list.count() > 0 ) { | 1299 | if ( list.count() > 0 ) { |
1300 | KABC::Addressee::List listNew; | 1300 | KABC::Addressee::List listNew; |
1301 | KABC::Addressee::List listExisting; | 1301 | KABC::Addressee::List listExisting; |
1302 | KABC::Addressee::List::Iterator it; | 1302 | KABC::Addressee::List::Iterator it; |
1303 | KABC::AddressBook::Iterator iter; | 1303 | KABC::AddressBook::Iterator iter; |
1304 | for ( it = list.begin(); it != list.end(); ++it ) { | 1304 | for ( it = list.begin(); it != list.end(); ++it ) { |
1305 | if ( mAddressBook->findByUid((*it).uid() ).isEmpty()) | 1305 | if ( mAddressBook->findByUid((*it).uid() ).isEmpty()) |
1306 | listNew.append( (*it) ); | 1306 | listNew.append( (*it) ); |
1307 | else | 1307 | else |
1308 | listExisting.append( (*it) ); | 1308 | listExisting.append( (*it) ); |
1309 | } | 1309 | } |
1310 | if ( listExisting.count() > 0 ) | 1310 | if ( listExisting.count() > 0 ) |
1311 | KMessageBox::information( this, i18n("%1 contacts not added to addressbook\nbecause they were already in the addressbook!").arg( listExisting.count() )); | 1311 | KMessageBox::information( this, i18n("%1 contacts not added to addressbook\nbecause they were already in the addressbook!").arg( listExisting.count() )); |
1312 | if ( listNew.count() > 0 ) { | 1312 | if ( listNew.count() > 0 ) { |
1313 | pasteWithNewUid = false; | 1313 | pasteWithNewUid = false; |
1314 | pasteContacts( listNew ); | 1314 | pasteContacts( listNew ); |
1315 | pasteWithNewUid = true; | 1315 | pasteWithNewUid = true; |
1316 | } | 1316 | } |
1317 | } | 1317 | } |
1318 | delete idgl; | 1318 | delete idgl; |
1319 | #endif | 1319 | #endif |
1320 | } | 1320 | } |
1321 | 1321 | ||
1322 | void KABCore::importVCard( const QString &vCard, bool showPreview ) | 1322 | void KABCore::importVCard( const QString &vCard, bool showPreview ) |
1323 | { | 1323 | { |
1324 | mXXPortManager->importVCard( vCard, showPreview ); | 1324 | mXXPortManager->importVCard( vCard, showPreview ); |
1325 | } | 1325 | } |
1326 | 1326 | ||
1327 | //US added a second method without defaultparameter | 1327 | //US added a second method without defaultparameter |
1328 | void KABCore::editContact2() { | 1328 | void KABCore::editContact2() { |
1329 | editContact( QString::null ); | 1329 | editContact( QString::null ); |
1330 | } | 1330 | } |
1331 | 1331 | ||
1332 | void KABCore::editContact( const QString &uid ) | 1332 | void KABCore::editContact( const QString &uid ) |
1333 | { | 1333 | { |
1334 | 1334 | ||
1335 | if ( mExtensionManager->isQuickEditVisible() ) | 1335 | if ( mExtensionManager->isQuickEditVisible() ) |
1336 | return; | 1336 | return; |
1337 | 1337 | ||
1338 | // First, locate the contact entry | 1338 | // First, locate the contact entry |
1339 | QString localUID = uid; | 1339 | QString localUID = uid; |
1340 | if ( localUID.isNull() ) { | 1340 | if ( localUID.isNull() ) { |
1341 | QStringList uidList = mViewManager->selectedUids(); | 1341 | QStringList uidList = mViewManager->selectedUids(); |
1342 | if ( uidList.count() > 0 ) | 1342 | if ( uidList.count() > 0 ) |
1343 | localUID = *( uidList.at( 0 ) ); | 1343 | localUID = *( uidList.at( 0 ) ); |
1344 | } | 1344 | } |
1345 | 1345 | ||
1346 | KABC::Addressee addr = mAddressBook->findByUid( localUID ); | 1346 | KABC::Addressee addr = mAddressBook->findByUid( localUID ); |
1347 | if ( !addr.isEmpty() ) { | 1347 | if ( !addr.isEmpty() ) { |
1348 | mEditorDialog->setAddressee( addr ); | 1348 | mEditorDialog->setAddressee( addr ); |
1349 | KApplication::execDialog ( mEditorDialog ); | 1349 | KApplication::execDialog ( mEditorDialog ); |
1350 | } | 1350 | } |
1351 | } | 1351 | } |
1352 | 1352 | ||
1353 | /** | 1353 | /** |
1354 | Shows or edits the detail view for the given uid. If the uid is QString::null, | 1354 | Shows or edits the detail view for the given uid. If the uid is QString::null, |
1355 | the method will try to find a selected addressee in the view. | 1355 | the method will try to find a selected addressee in the view. |
1356 | */ | 1356 | */ |
1357 | void KABCore::executeContact( const QString &uid /*US = QString::null*/ ) | 1357 | void KABCore::executeContact( const QString &uid /*US = QString::null*/ ) |
1358 | { | 1358 | { |
1359 | if ( mMultipleViewsAtOnce ) | 1359 | if ( mMultipleViewsAtOnce ) |
1360 | { | 1360 | { |
1361 | editContact( uid ); | 1361 | editContact( uid ); |
1362 | } | 1362 | } |
1363 | else | 1363 | else |
1364 | { | 1364 | { |
1365 | setDetailsVisible( true ); | 1365 | setDetailsVisible( true ); |
1366 | mActionDetails->setChecked(true); | 1366 | mActionDetails->setChecked(true); |
1367 | } | 1367 | } |
1368 | 1368 | ||
1369 | } | 1369 | } |
1370 | 1370 | ||
1371 | void KABCore::save() | 1371 | void KABCore::save() |
1372 | { | 1372 | { |
1373 | if (syncManager->blockSave()) | 1373 | if (syncManager->blockSave()) |
1374 | return; | 1374 | return; |
1375 | if ( !mModified ) | 1375 | if ( !mModified ) |
1376 | return; | 1376 | return; |
1377 | 1377 | ||
1378 | syncManager->setBlockSave(true); | 1378 | syncManager->setBlockSave(true); |
1379 | QString text = i18n( "There was an error while attempting to save\n the " | 1379 | QString text = i18n( "There was an error while attempting to save\n the " |
1380 | "address book. Please check that some \nother application is " | 1380 | "address book. Please check that some \nother application is " |
1381 | "not using it. " ); | 1381 | "not using it. " ); |
1382 | message(i18n("Saving ... please wait! "), false); | 1382 | message(i18n("Saving ... please wait! "), false); |
1383 | //qApp->processEvents(); | 1383 | //qApp->processEvents(); |
1384 | #ifndef KAB_EMBEDDED | 1384 | #ifndef KAB_EMBEDDED |
1385 | KABC::StdAddressBook *b = dynamic_cast<KABC::StdAddressBook*>( mAddressBook ); | 1385 | KABC::StdAddressBook *b = dynamic_cast<KABC::StdAddressBook*>( mAddressBook ); |
1386 | if ( !b || !b->save() ) { | 1386 | if ( !b || !b->save() ) { |
1387 | KMessageBox::error( this, text, i18n( "Unable to Save" ) ); | 1387 | KMessageBox::error( this, text, i18n( "Unable to Save" ) ); |
1388 | } | 1388 | } |
1389 | #else //KAB_EMBEDDED | 1389 | #else //KAB_EMBEDDED |
1390 | KABC::StdAddressBook *b = (KABC::StdAddressBook*)( mAddressBook ); | 1390 | KABC::StdAddressBook *b = (KABC::StdAddressBook*)( mAddressBook ); |
1391 | if ( !b || !b->save() ) { | 1391 | if ( !b || !b->save() ) { |
1392 | QMessageBox::critical( this, i18n( "Unable to Save" ), text, i18n("Ok")); | 1392 | QMessageBox::critical( this, i18n( "Unable to Save" ), text, i18n("Ok")); |
1393 | } | 1393 | } |
1394 | #endif //KAB_EMBEDDED | 1394 | #endif //KAB_EMBEDDED |
1395 | 1395 | ||
1396 | message(i18n("Addressbook saved!")); | 1396 | message(i18n("Addressbook saved!")); |
1397 | setModified( false ); | 1397 | setModified( false ); |
1398 | syncManager->setBlockSave(false); | 1398 | syncManager->setBlockSave(false); |
1399 | } | 1399 | } |
1400 | 1400 | ||
1401 | 1401 | ||
1402 | void KABCore::undo() | 1402 | void KABCore::undo() |
1403 | { | 1403 | { |
1404 | UndoStack::instance()->undo(); | 1404 | UndoStack::instance()->undo(); |
1405 | 1405 | ||
1406 | // Refresh the view | 1406 | // Refresh the view |
1407 | mViewManager->refreshView(); | 1407 | mViewManager->refreshView(); |
1408 | } | 1408 | } |
1409 | 1409 | ||
1410 | void KABCore::redo() | 1410 | void KABCore::redo() |
1411 | { | 1411 | { |
1412 | RedoStack::instance()->redo(); | 1412 | RedoStack::instance()->redo(); |
1413 | 1413 | ||
1414 | // Refresh the view | 1414 | // Refresh the view |
1415 | mViewManager->refreshView(); | 1415 | mViewManager->refreshView(); |
1416 | } | 1416 | } |
1417 | void KABCore::setJumpButtonBar( bool visible ) | 1417 | void KABCore::setJumpButtonBar( bool visible ) |
1418 | { | 1418 | { |
1419 | setJumpButtonBarVisible(visible ); | 1419 | setJumpButtonBarVisible(visible ); |
1420 | saveSettings(); | 1420 | saveSettings(); |
1421 | } | 1421 | } |
1422 | void KABCore::setJumpButtonBarVisible( bool visible ) | 1422 | void KABCore::setJumpButtonBarVisible( bool visible ) |
1423 | { | 1423 | { |
1424 | if (mMultipleViewsAtOnce) | 1424 | if (mMultipleViewsAtOnce) |
1425 | { | 1425 | { |
1426 | if ( visible ) | 1426 | if ( visible ) |
1427 | mJumpButtonBar->show(); | 1427 | mJumpButtonBar->show(); |
1428 | else | 1428 | else |
1429 | mJumpButtonBar->hide(); | 1429 | mJumpButtonBar->hide(); |
1430 | } | 1430 | } |
1431 | else | 1431 | else |
1432 | { | 1432 | { |
1433 | // show the jumpbar only if "the details are hidden" == "viewmanager are shown" | 1433 | // show the jumpbar only if "the details are hidden" == "viewmanager are shown" |
1434 | if (mViewManager->isVisible()) | 1434 | if (mViewManager->isVisible()) |
1435 | { | 1435 | { |
1436 | if ( visible ) | 1436 | if ( visible ) |
1437 | mJumpButtonBar->show(); | 1437 | mJumpButtonBar->show(); |
1438 | else | 1438 | else |
1439 | mJumpButtonBar->hide(); | 1439 | mJumpButtonBar->hide(); |
1440 | } | 1440 | } |
1441 | else | 1441 | else |
1442 | { | 1442 | { |
1443 | mJumpButtonBar->hide(); | 1443 | mJumpButtonBar->hide(); |
1444 | } | 1444 | } |
1445 | } | 1445 | } |
1446 | if ( visible ) { | ||
1447 | if ( mIncSearchWidget->currentItem() == 0 ) { | ||
1448 | message( i18n("Change search field enable jump bar") ); | ||
1449 | } | ||
1450 | } | ||
1446 | } | 1451 | } |
1447 | 1452 | ||
1448 | 1453 | ||
1449 | void KABCore::setDetailsToState() | 1454 | void KABCore::setDetailsToState() |
1450 | { | 1455 | { |
1451 | setDetailsVisible( mActionDetails->isChecked() ); | 1456 | setDetailsVisible( mActionDetails->isChecked() ); |
1452 | } | 1457 | } |
1453 | void KABCore::setDetailsToggle() | 1458 | void KABCore::setDetailsToggle() |
1454 | { | 1459 | { |
1455 | mActionDetails->setChecked( !mActionDetails->isChecked() ); | 1460 | mActionDetails->setChecked( !mActionDetails->isChecked() ); |
1456 | setDetailsToState(); | 1461 | setDetailsToState(); |
1457 | } | 1462 | } |
1458 | 1463 | ||
1459 | 1464 | ||
1460 | 1465 | ||
1461 | void KABCore::setDetailsVisible( bool visible ) | 1466 | void KABCore::setDetailsVisible( bool visible ) |
1462 | { | 1467 | { |
1463 | if (visible && mDetails->isHidden()) | 1468 | if (visible && mDetails->isHidden()) |
1464 | { | 1469 | { |
1465 | KABC::Addressee::List addrList = mViewManager->selectedAddressees(); | 1470 | KABC::Addressee::List addrList = mViewManager->selectedAddressees(); |
1466 | if ( addrList.count() > 0 ) | 1471 | if ( addrList.count() > 0 ) |
1467 | mDetails->setAddressee( addrList[ 0 ] ); | 1472 | mDetails->setAddressee( addrList[ 0 ] ); |
1468 | } | 1473 | } |
1469 | 1474 | ||
1470 | // mMultipleViewsAtOnce=false: mDetails is always visible. But we switch between | 1475 | // mMultipleViewsAtOnce=false: mDetails is always visible. But we switch between |
1471 | // the listview and the detailview. We do that by changing the splitbar size. | 1476 | // the listview and the detailview. We do that by changing the splitbar size. |
1472 | if (mMultipleViewsAtOnce) | 1477 | if (mMultipleViewsAtOnce) |
1473 | { | 1478 | { |
1474 | if ( visible ) | 1479 | if ( visible ) |
1475 | mDetails->show(); | 1480 | mDetails->show(); |
1476 | else | 1481 | else |
1477 | mDetails->hide(); | 1482 | mDetails->hide(); |
1478 | } | 1483 | } |
1479 | else | 1484 | else |
1480 | { | 1485 | { |
1481 | if ( visible ) { | 1486 | if ( visible ) { |
1482 | mViewManager->hide(); | 1487 | mViewManager->hide(); |
1483 | mDetails->show(); | 1488 | mDetails->show(); |
1484 | mIncSearchWidget->setFocus(); | 1489 | mIncSearchWidget->setFocus(); |
1485 | } | 1490 | } |
1486 | else { | 1491 | else { |
1487 | mViewManager->show(); | 1492 | mViewManager->show(); |
1488 | mDetails->hide(); | 1493 | mDetails->hide(); |
1489 | mViewManager->setFocusAV(); | 1494 | mViewManager->setFocusAV(); |
1490 | } | 1495 | } |
1491 | setJumpButtonBarVisible( !visible ); | 1496 | setJumpButtonBarVisible( !visible ); |
1492 | } | 1497 | } |
1493 | 1498 | ||
1494 | } | 1499 | } |
1495 | 1500 | ||
1496 | void KABCore::extensionChanged( int id ) | 1501 | void KABCore::extensionChanged( int id ) |
1497 | { | 1502 | { |
1498 | //change the details view only for non desktop systems | 1503 | //change the details view only for non desktop systems |
1499 | #ifndef DESKTOP_VERSION | 1504 | #ifndef DESKTOP_VERSION |
1500 | 1505 | ||
1501 | if (id == 0) | 1506 | if (id == 0) |
1502 | { | 1507 | { |
1503 | //the user disabled the extension. | 1508 | //the user disabled the extension. |
1504 | 1509 | ||
1505 | if (mMultipleViewsAtOnce) | 1510 | if (mMultipleViewsAtOnce) |
1506 | { // enable detailsview again | 1511 | { // enable detailsview again |
1507 | setDetailsVisible( true ); | 1512 | setDetailsVisible( true ); |
1508 | mActionDetails->setChecked( true ); | 1513 | mActionDetails->setChecked( true ); |
1509 | } | 1514 | } |
1510 | else | 1515 | else |
1511 | { //go back to the listview | 1516 | { //go back to the listview |
1512 | setDetailsVisible( false ); | 1517 | setDetailsVisible( false ); |
1513 | mActionDetails->setChecked( false ); | 1518 | mActionDetails->setChecked( false ); |
1514 | mActionDetails->setEnabled(true); | 1519 | mActionDetails->setEnabled(true); |
1515 | } | 1520 | } |
1516 | 1521 | ||
1517 | } | 1522 | } |
1518 | else | 1523 | else |
1519 | { | 1524 | { |
1520 | //the user enabled the extension. | 1525 | //the user enabled the extension. |
1521 | setDetailsVisible( false ); | 1526 | setDetailsVisible( false ); |
1522 | mActionDetails->setChecked( false ); | 1527 | mActionDetails->setChecked( false ); |
1523 | 1528 | ||
1524 | if (!mMultipleViewsAtOnce) | 1529 | if (!mMultipleViewsAtOnce) |
1525 | { | 1530 | { |
1526 | mActionDetails->setEnabled(false); | 1531 | mActionDetails->setEnabled(false); |
1527 | } | 1532 | } |
1528 | 1533 | ||
1529 | mExtensionManager->setSelectionChanged(); | 1534 | mExtensionManager->setSelectionChanged(); |
1530 | 1535 | ||
1531 | } | 1536 | } |
1532 | 1537 | ||
1533 | #endif// DESKTOP_VERSION | 1538 | #endif// DESKTOP_VERSION |
1534 | 1539 | ||
1535 | } | 1540 | } |
1536 | 1541 | ||
1537 | 1542 | ||
1538 | void KABCore::extensionModified( const KABC::Addressee::List &list ) | 1543 | void KABCore::extensionModified( const KABC::Addressee::List &list ) |
1539 | { | 1544 | { |
1540 | 1545 | ||
1541 | if ( list.count() != 0 ) { | 1546 | if ( list.count() != 0 ) { |
1542 | KABC::Addressee::List::ConstIterator it; | 1547 | KABC::Addressee::List::ConstIterator it; |
1543 | for ( it = list.begin(); it != list.end(); ++it ) | 1548 | for ( it = list.begin(); it != list.end(); ++it ) |
1544 | mAddressBook->insertAddressee( *it ); | 1549 | mAddressBook->insertAddressee( *it ); |
1545 | if ( list.count() > 1 ) | 1550 | if ( list.count() > 1 ) |
1546 | setModified(); | 1551 | setModified(); |
1547 | else | 1552 | else |
1548 | setModifiedWOrefresh(); | 1553 | setModifiedWOrefresh(); |
1549 | } | 1554 | } |
1550 | if ( list.count() == 0 ) | 1555 | if ( list.count() == 0 ) |
1551 | mViewManager->refreshView(); | 1556 | mViewManager->refreshView(); |
1552 | else | 1557 | else |
1553 | mViewManager->refreshView( list[ 0 ].uid() ); | 1558 | mViewManager->refreshView( list[ 0 ].uid() ); |
1554 | 1559 | ||
1555 | 1560 | ||
1556 | 1561 | ||
1557 | } | 1562 | } |
1558 | 1563 | ||
1559 | QString KABCore::getNameByPhone( const QString &phone ) | 1564 | QString KABCore::getNameByPhone( const QString &phone ) |
1560 | { | 1565 | { |
1561 | #ifndef KAB_EMBEDDED | 1566 | #ifndef KAB_EMBEDDED |
1562 | QRegExp r( "[/*/-/ ]" ); | 1567 | QRegExp r( "[/*/-/ ]" ); |
1563 | QString localPhone( phone ); | 1568 | QString localPhone( phone ); |
1564 | 1569 | ||
1565 | bool found = false; | 1570 | bool found = false; |
1566 | QString ownerName = ""; | 1571 | QString ownerName = ""; |
1567 | KABC::AddressBook::Iterator iter; | 1572 | KABC::AddressBook::Iterator iter; |
1568 | KABC::PhoneNumber::List::Iterator phoneIter; | 1573 | KABC::PhoneNumber::List::Iterator phoneIter; |
1569 | KABC::PhoneNumber::List phoneList; | 1574 | KABC::PhoneNumber::List phoneList; |
1570 | for ( iter = mAddressBook->begin(); !found && ( iter != mAddressBook->end() ); ++iter ) { | 1575 | for ( iter = mAddressBook->begin(); !found && ( iter != mAddressBook->end() ); ++iter ) { |
1571 | phoneList = (*iter).phoneNumbers(); | 1576 | phoneList = (*iter).phoneNumbers(); |
1572 | for ( phoneIter = phoneList.begin(); !found && ( phoneIter != phoneList.end() ); | 1577 | for ( phoneIter = phoneList.begin(); !found && ( phoneIter != phoneList.end() ); |
1573 | ++phoneIter) { | 1578 | ++phoneIter) { |
1574 | // Get rid of separator chars so just the numbers are compared. | 1579 | // Get rid of separator chars so just the numbers are compared. |
1575 | if ( (*phoneIter).number().replace( r, "" ) == localPhone.replace( r, "" ) ) { | 1580 | if ( (*phoneIter).number().replace( r, "" ) == localPhone.replace( r, "" ) ) { |
1576 | ownerName = (*iter).formattedName(); | 1581 | ownerName = (*iter).formattedName(); |
1577 | found = true; | 1582 | found = true; |
1578 | } | 1583 | } |
1579 | } | 1584 | } |
1580 | } | 1585 | } |
1581 | 1586 | ||
1582 | return ownerName; | 1587 | return ownerName; |
1583 | #else //KAB_EMBEDDED | 1588 | #else //KAB_EMBEDDED |
1584 | qDebug("KABCore::getNameByPhone finsih method"); | 1589 | qDebug("KABCore::getNameByPhone finsih method"); |
1585 | return ""; | 1590 | return ""; |
1586 | #endif //KAB_EMBEDDED | 1591 | #endif //KAB_EMBEDDED |
1587 | 1592 | ||
1588 | } | 1593 | } |
1589 | 1594 | ||
1590 | void KABCore::openConfigDialog() | 1595 | void KABCore::openConfigDialog() |
1591 | { | 1596 | { |
1592 | KCMultiDialog* ConfigureDialog = new KCMultiDialog( "PIM", this ,"kabconfigdialog", true ); | 1597 | KCMultiDialog* ConfigureDialog = new KCMultiDialog( "PIM", this ,"kabconfigdialog", true ); |
1593 | KCMKabConfig* kabcfg = new KCMKabConfig( ConfigureDialog->getNewVBoxPage(i18n( "Addressbook")) , "KCMKabConfig" ); | 1598 | KCMKabConfig* kabcfg = new KCMKabConfig( ConfigureDialog->getNewVBoxPage(i18n( "Addressbook")) , "KCMKabConfig" ); |
1594 | ConfigureDialog->addModule(kabcfg ); | 1599 | ConfigureDialog->addModule(kabcfg ); |
1595 | KCMKdePimConfig* kdelibcfg = new KCMKdePimConfig( ConfigureDialog->getNewVBoxPage(i18n( "Global")) , "KCMKdeLibConfig" ); | 1600 | KCMKdePimConfig* kdelibcfg = new KCMKdePimConfig( ConfigureDialog->getNewVBoxPage(i18n( "Global")) , "KCMKdeLibConfig" ); |
1596 | ConfigureDialog->addModule(kdelibcfg ); | 1601 | ConfigureDialog->addModule(kdelibcfg ); |
1597 | 1602 | ||
1598 | connect( ConfigureDialog, SIGNAL( applyClicked() ), | 1603 | connect( ConfigureDialog, SIGNAL( applyClicked() ), |
1599 | this, SLOT( configurationChanged() ) ); | 1604 | this, SLOT( configurationChanged() ) ); |
1600 | connect( ConfigureDialog, SIGNAL( okClicked() ), | 1605 | connect( ConfigureDialog, SIGNAL( okClicked() ), |
1601 | this, SLOT( configurationChanged() ) ); | 1606 | this, SLOT( configurationChanged() ) ); |
1602 | saveSettings(); | 1607 | saveSettings(); |
1603 | #ifndef DESKTOP_VERSION | 1608 | #ifndef DESKTOP_VERSION |
1604 | ConfigureDialog->showMaximized(); | 1609 | ConfigureDialog->showMaximized(); |
1605 | #endif | 1610 | #endif |
1606 | if ( ConfigureDialog->exec() ) | 1611 | if ( ConfigureDialog->exec() ) |
1607 | KMessageBox::information( this, i18n("Some changes are only\neffective after a restart!\n") ); | 1612 | KMessageBox::information( this, i18n("Some changes are only\neffective after a restart!\n") ); |
1608 | delete ConfigureDialog; | 1613 | delete ConfigureDialog; |
1609 | } | 1614 | } |
1610 | 1615 | ||
1611 | void KABCore::openLDAPDialog() | 1616 | void KABCore::openLDAPDialog() |
1612 | { | 1617 | { |
1613 | #ifndef KAB_EMBEDDED | 1618 | #ifndef KAB_EMBEDDED |
1614 | if ( !mLdapSearchDialog ) { | 1619 | if ( !mLdapSearchDialog ) { |
1615 | mLdapSearchDialog = new LDAPSearchDialog( mAddressBook, this ); | 1620 | mLdapSearchDialog = new LDAPSearchDialog( mAddressBook, this ); |
1616 | connect( mLdapSearchDialog, SIGNAL( addresseesAdded() ), mViewManager, | 1621 | connect( mLdapSearchDialog, SIGNAL( addresseesAdded() ), mViewManager, |
1617 | SLOT( refreshView() ) ); | 1622 | SLOT( refreshView() ) ); |
1618 | connect( mLdapSearchDialog, SIGNAL( addresseesAdded() ), this, | 1623 | connect( mLdapSearchDialog, SIGNAL( addresseesAdded() ), this, |
1619 | SLOT( setModified() ) ); | 1624 | SLOT( setModified() ) ); |
1620 | } else | 1625 | } else |
1621 | mLdapSearchDialog->restoreSettings(); | 1626 | mLdapSearchDialog->restoreSettings(); |
1622 | 1627 | ||
1623 | if ( mLdapSearchDialog->isOK() ) | 1628 | if ( mLdapSearchDialog->isOK() ) |
1624 | mLdapSearchDialog->exec(); | 1629 | mLdapSearchDialog->exec(); |
1625 | #else //KAB_EMBEDDED | 1630 | #else //KAB_EMBEDDED |
1626 | qDebug("KABCore::openLDAPDialog() finsih method"); | 1631 | qDebug("KABCore::openLDAPDialog() finsih method"); |
1627 | #endif //KAB_EMBEDDED | 1632 | #endif //KAB_EMBEDDED |
1628 | } | 1633 | } |
1629 | 1634 | ||
1630 | void KABCore::print() | 1635 | void KABCore::print() |
1631 | { | 1636 | { |
1632 | #ifndef KAB_EMBEDDED | 1637 | #ifndef KAB_EMBEDDED |
1633 | KPrinter printer; | 1638 | KPrinter printer; |
1634 | if ( !printer.setup( this ) ) | 1639 | if ( !printer.setup( this ) ) |
1635 | return; | 1640 | return; |
1636 | 1641 | ||
1637 | KABPrinting::PrintingWizard wizard( &printer, mAddressBook, | 1642 | KABPrinting::PrintingWizard wizard( &printer, mAddressBook, |