-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 16 | ||||
-rw-r--r-- | kabc/phonenumber.cpp | 34 | ||||
-rw-r--r-- | kaddressbook/emaileditwidget.cpp | 2 | ||||
-rw-r--r-- | kaddressbook/phoneeditwidget.cpp | 37 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 22 |
5 files changed, 73 insertions, 38 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 1a045f3..f8f8b96 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -640,692 +640,704 @@ | |||
640 | {"Speach","Rede" }, | 640 | {"Speach","Rede" }, |
641 | {"Special Occasion","Spez.Gelegenheit" }, | 641 | {"Special Occasion","Spez.Gelegenheit" }, |
642 | {"Sports","Sport" }, | 642 | {"Sports","Sport" }, |
643 | {"Talk","Vortrag" }, | 643 | {"Talk","Vortrag" }, |
644 | {"Travel","Reise" }, | 644 | {"Travel","Reise" }, |
645 | {"TV","TV" }, | 645 | {"TV","TV" }, |
646 | {"Germany","Deutschland" }, | 646 | {"Germany","Deutschland" }, |
647 | {"Sweden","Schweden" }, | 647 | {"Sweden","Schweden" }, |
648 | {"Forest","Wald" }, | 648 | {"Forest","Wald" }, |
649 | { "Desert","Wüste" }, | 649 | { "Desert","Wüste" }, |
650 | { "Kitchen","Küche" }, | 650 | { "Kitchen","Küche" }, |
651 | { "Lake","See" }, | 651 | { "Lake","See" }, |
652 | {"University","Universität"}, | 652 | {"University","Universität"}, |
653 | {"Vacation","Urlaub" }, | 653 | {"Vacation","Urlaub" }, |
654 | {"VIP","VIP" }, | 654 | {"VIP","VIP" }, |
655 | { "Import Sharp Calendar","Importiere Sharp Kalender" }, | 655 | { "Import Sharp Calendar","Importiere Sharp Kalender" }, |
656 | { "This todo has been cancelled!","Dieses Todo wurde gecancelt!" }, | 656 | { "This todo has been cancelled!","Dieses Todo wurde gecancelt!" }, |
657 | { "This event has been cancelled!","Dieser Termin wurde gecancelt!" }, | 657 | { "This event has been cancelled!","Dieser Termin wurde gecancelt!" }, |
658 | { "Cancelled","Gecancelt" }, | 658 | { "Cancelled","Gecancelt" }, |
659 | { "Multiple sync","Mehrfach Sync" }, | 659 | { "Multiple sync","Mehrfach Sync" }, |
660 | { "Local file","Lokale Datei" }, | 660 | { "Local file","Lokale Datei" }, |
661 | { "Last file","Letzte Datei" }, | 661 | { "Last file","Letzte Datei" }, |
662 | { "Keys + Colors...","Tasten + Farben..." }, | 662 | { "Keys + Colors...","Tasten + Farben..." }, |
663 | { "Mini icons in toolbar(nr)","Mini Icons in ToolBar(bn)" }, | 663 | { "Mini icons in toolbar(nr)","Mini Icons in ToolBar(bn)" }, |
664 | { "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, | 664 | { "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, |
665 | { "Choose...","Wähle..." }, | 665 | { "Choose...","Wähle..." }, |
666 | { "Use colors for application:","Setze Farben für Programm:" }, | 666 | { "Use colors for application:","Setze Farben für Programm:" }, |
667 | { "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, | 667 | { "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, |
668 | { "Frames, labels, etc.:","Rahmen, Label, etc.:" }, | 668 | { "Frames, labels, etc.:","Rahmen, Label, etc.:" }, |
669 | { "Show parent To-Do's in What's Next view","Zeige Ober-Todo in What's Next Anz." }, | 669 | { "Show parent To-Do's in What's Next view","Zeige Ober-Todo in What's Next Anz." }, |
670 | { "Show location in What's Next view","Zeige Ort in What's Next Anz." }, | 670 | { "Show location in What's Next view","Zeige Ort in What's Next Anz." }, |
671 | { "Show events that recur ","Zeige Termine, die sich wiederholen:" }, | 671 | { "Show events that recur ","Zeige Termine, die sich wiederholen:" }, |
672 | { "Show in every cell ","Zeige in jeder Zelle " }, | 672 | { "Show in every cell ","Zeige in jeder Zelle " }, |
673 | { "short month","kurzen Monat" }, | 673 | { "short month","kurzen Monat" }, |
674 | { "icons","Icons" }, | 674 | { "icons","Icons" }, |
675 | { "Show Sat/Sun together","Zeige Sam/Son zusammen" }, | 675 | { "Show Sat/Sun together","Zeige Sam/Son zusammen" }, |
676 | { "Categorie colors are applied to text","Kategorie Farben färben Text" }, | 676 | { "Categorie colors are applied to text","Kategorie Farben färben Text" }, |
677 | { "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, | 677 | { "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, |
678 | { "Day color odd months","Tagesfarbe ungerade Monate" }, | 678 | { "Day color odd months","Tagesfarbe ungerade Monate" }, |
679 | { "Day color even months","Tagesfarbe gerade Monate" }, | 679 | { "Day color even months","Tagesfarbe gerade Monate" }, |
680 | { "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, | 680 | { "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, |
681 | { "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, | 681 | { "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, |
682 | { "Small To-do view uses smaller font","Kleine To-do Ansicht nutzt kleineren Font" }, | 682 | { "Small To-do view uses smaller font","Kleine To-do Ansicht nutzt kleineren Font" }, |
683 | { "Colors are applied to text","Farben werden auf Text angewendet" }, | 683 | { "Colors are applied to text","Farben werden auf Text angewendet" }, |
684 | { "Use internal alarm notification","Nutze interne Alarm Benachrichtigung" }, | 684 | { "Use internal alarm notification","Nutze interne Alarm Benachrichtigung" }, |
685 | { "Note: KO/Pi must be running to notify you about an alarm. Recommended for use on Zaurus: Disable this option and install KO/Pi alarm applet.\n","Achtung: KO/Pi muß ausgeführt werden damit die Benachrichtigung funktioniert. Empfehlung für Zaurus: Diese Option nicht wählen und KO/Pi Alarm Applet installieren.\n" }, | 685 | { "Note: KO/Pi must be running to notify you about an alarm. Recommended for use on Zaurus: Disable this option and install KO/Pi alarm applet.\n","Achtung: KO/Pi muß ausgeführt werden damit die Benachrichtigung funktioniert. Empfehlung für Zaurus: Diese Option nicht wählen und KO/Pi Alarm Applet installieren.\n" }, |
686 | { "Play beeps count:","Anzahl der Alarmpiepse: " }, | 686 | { "Play beeps count:","Anzahl der Alarmpiepse: " }, |
687 | { "Beeps interval in sec:","Zeitintervall der Alarmpiepse: " }, | 687 | { "Beeps interval in sec:","Zeitintervall der Alarmpiepse: " }, |
688 | { "Default suspend time in min:","Standard Supendierungs Zeit: " }, | 688 | { "Default suspend time in min:","Standard Supendierungs Zeit: " }, |
689 | { "Auto suspend count:","Anzahl der auto Suspendierungen" }, | 689 | { "Auto suspend count:","Anzahl der auto Suspendierungen" }, |
690 | { "Alarm *.wav file for newly created alarm:","Alarm *.wav Datei für neu angelegte Alarme:" }, | 690 | { "Alarm *.wav file for newly created alarm:","Alarm *.wav Datei für neu angelegte Alarme:" }, |
691 | { "New profile","Neues Profil" }, | 691 | { "New profile","Neues Profil" }, |
692 | { "Clone profile","Klone Profil" }, | 692 | { "Clone profile","Klone Profil" }, |
693 | { "Delete profile","Lösche Profil" }, | 693 | { "Delete profile","Lösche Profil" }, |
694 | { "Profile:","Profil:" }, | 694 | { "Profile:","Profil:" }, |
695 | { "Include in multiple sync","Beziehe Profil in mehrfach Sync mit ein" }, | 695 | { "Include in multiple sync","Beziehe Profil in mehrfach Sync mit ein" }, |
696 | { "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, | 696 | { "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, |
697 | { "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, | 697 | { "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, |
698 | { "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, | 698 | { "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, |
699 | { "Write back file","Schreibe Datei zurück" }, | 699 | { "Write back file","Schreibe Datei zurück" }, |
700 | { "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, | 700 | { "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, |
701 | { "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, | 701 | { "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, |
702 | { "Local device name:","Name dieses Gerätes:" }, | 702 | { "Local device name:","Name dieses Gerätes:" }, |
703 | { "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, | 703 | { "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, |
704 | { "Sync preferences","Synchronisations Einstellungen" }, | 704 | { "Sync preferences","Synchronisations Einstellungen" }, |
705 | { "Profile kind","Profil Art" }, | 705 | { "Profile kind","Profil Art" }, |
706 | { "Local file","Lokale Datei" }, | 706 | { "Local file","Lokale Datei" }, |
707 | { "Local file:","Lokale Datei:" }, | 707 | { "Local file:","Lokale Datei:" }, |
708 | { "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, | 708 | { "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, |
709 | { "Fill in default values for:","Setze Beispiel Werte ein für:" }, | 709 | { "Fill in default values for:","Setze Beispiel Werte ein für:" }, |
710 | { "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, | 710 | { "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, |
711 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, | 711 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, |
712 | { "Device","Gerät:" }, | 712 | { "Device","Gerät:" }, |
713 | { "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, | 713 | { "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, |
714 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n","Synchronisationsübersicht:\n\n %d items lokal hinzugefügt\n %d items entfernt hinzugefügt\n %d items lokal geändert\n %d items entfernt geändert\n %d items lokal gelöscht\n %d items entfernt gelöscht\n" }, | 714 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n","Synchronisationsübersicht:\n\n %d items lokal hinzugefügt\n %d items entfernt hinzugefügt\n %d items lokal geändert\n %d items entfernt geändert\n %d items lokal gelöscht\n %d items entfernt gelöscht\n" }, |
715 | { "Synchronization successful","Synchronisation erfolgreich" }, | 715 | { "Synchronization successful","Synchronisation erfolgreich" }, |
716 | { "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, | 716 | { "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, |
717 | { "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, | 717 | { "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, |
718 | { "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, | 718 | { "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, |
719 | { "Enter password","Passwort eingeben" }, | 719 | { "Enter password","Passwort eingeben" }, |
720 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, | 720 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, |
721 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, | 721 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, |
722 | { "Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n","Sorry, das Kopierkommando schlug fehl!\nKommando war:\n%1\n \nVersuche Kommando von Kosole um\nDetails für das Fehlschlagen\nzu erfahren.\n" }, | 722 | { "Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n","Sorry, das Kopierkommando schlug fehl!\nKommando war:\n%1\n \nVersuche Kommando von Kosole um\nDetails für das Fehlschlagen\nzu erfahren.\n" }, |
723 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, | 723 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, |
724 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, | 724 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, |
725 | { "Edit Calendar Filters","Editiere Kalendar Filter" }, | 725 | { "Edit Calendar Filters","Editiere Kalendar Filter" }, |
726 | { "Enter filter name:","Neuer Filter Name:" }, | 726 | { "Enter filter name:","Neuer Filter Name:" }, |
727 | { "Add Filter","Filter hinzufügen" }, | 727 | { "Add Filter","Filter hinzufügen" }, |
728 | { "Question","Frage" }, | 728 | { "Question","Frage" }, |
729 | { "Filter position: ","Filter Position: " }, | 729 | { "Filter position: ","Filter Position: " }, |
730 | { "Month View","Monatsansicht" }, | 730 | { "Month View","Monatsansicht" }, |
731 | { "This profil cannot be deleted!\n","Dieses Profil kann\nnicht gelöscht werden!" }, | 731 | { "This profil cannot be deleted!\n","Dieses Profil kann\nnicht gelöscht werden!" }, |
732 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, | 732 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, |
733 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, | 733 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, |
734 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile haben denselben Namen!\nBitte unterschiedliche Namen wählen!" }, | 734 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile haben denselben Namen!\nBitte unterschiedliche Namen wählen!" }, |
735 | { "Access: ","Zugriff: " }, | 735 | { "Access: ","Zugriff: " }, |
736 | { "Needs Action","Aktion notwendig" }, | 736 | { "Needs Action","Aktion notwendig" }, |
737 | { "Accepted","Akzeptiert" }, | 737 | { "Accepted","Akzeptiert" }, |
738 | { "Declined","Abgelehnt" }, | 738 | { "Declined","Abgelehnt" }, |
739 | { "Tentative","Vorläufig" }, | 739 | { "Tentative","Vorläufig" }, |
740 | { "Delegated","Beauftragt" }, | 740 | { "Delegated","Beauftragt" }, |
741 | { "Completed","Vollständig" }, | 741 | { "Completed","Vollständig" }, |
742 | { "In Process","In Bearbeitung" }, | 742 | { "In Process","In Bearbeitung" }, |
743 | { "Participant","Teilnehmer" }, | 743 | { "Participant","Teilnehmer" }, |
744 | { "Optional Participant","Möglicher Teilnehmer" }, | 744 | { "Optional Participant","Möglicher Teilnehmer" }, |
745 | { "Observer","Beobachter" }, | 745 | { "Observer","Beobachter" }, |
746 | { "Chair","Vorsitzender" }, | 746 | { "Chair","Vorsitzender" }, |
747 | { "Not supported \non desktop!\n","" }, | 747 | { "Not supported \non desktop!\n","" }, |
748 | { "Nothing selected!\n\nThis prints the full width of the Agenda view as you see it!\n\nTo determine the vertical range of the printing, please select\na vertical range (with the left mouse button down) in one column. ","Es ist nichts selektiert!\nDieses druckt die volle Breite der Agenda View, so wie man sie sieht.\nUm die vertikale Auswahl zum Drucken zu bestimmen,\nbitte einen vertikalen Zeitraum (mit gedrückter linker Maustaste)\nin einer Spalte auswählen.\n(Es wird danach direkt der Termin Dialog angezeigt\n - dort bitte auf Abbrechen klicken) " }, | 748 | { "Nothing selected!\n\nThis prints the full width of the Agenda view as you see it!\n\nTo determine the vertical range of the printing, please select\na vertical range (with the left mouse button down) in one column. ","Es ist nichts selektiert!\nDieses druckt die volle Breite der Agenda View, so wie man sie sieht.\nUm die vertikale Auswahl zum Drucken zu bestimmen,\nbitte einen vertikalen Zeitraum (mit gedrückter linker Maustaste)\nin einer Spalte auswählen.\n(Es wird danach direkt der Termin Dialog angezeigt\n - dort bitte auf Abbrechen klicken) " }, |
749 | { "Date range: ","Datums Zeitspanne: " }, | 749 | { "Date range: ","Datums Zeitspanne: " }, |
750 | { "Not supported \non PDA!\n","Nicht verfügbar\nauf dem PDA. " }, | 750 | { "Not supported \non PDA!\n","Nicht verfügbar\nauf dem PDA. " }, |
751 | { "Syncing - close to abort!","Syncing-schließe um abzubrechen." }, | 751 | { "Syncing - close to abort!","Syncing-schließe um abzubrechen." }, |
752 | { "Add / remove events","Add./entferne Termine" }, | 752 | { "Add / remove events","Add./entferne Termine" }, |
753 | { "File does not exist:\n '%1'.","Datei existiert nicht:\n '%1'." }, | 753 | { "File does not exist:\n '%1'.","Datei existiert nicht:\n '%1'." }, |
754 | { "Couldn't load calendar\n '%1'.","Kann Kalender nicht laden:\n '%1'." }, | 754 | { "Couldn't load calendar\n '%1'.","Kann Kalender nicht laden:\n '%1'." }, |
755 | { "\nThe file on disk has changed!\nFile size: %1 bytes.\nLast modified: %2\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie gepeicherte Datei wurde verändert!\nDatei Grösse: %1 Bytes.\nZuletzt geändert: %2\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, | 755 | { "\nThe file on disk has changed!\nFile size: %1 bytes.\nLast modified: %2\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie gepeicherte Datei wurde verändert!\nDatei Grösse: %1 Bytes.\nZuletzt geändert: %2\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, |
756 | { "Overwrite","Überschreiben" }, | 756 | { "Overwrite","Überschreiben" }, |
757 | { "Sync+save","Syncen+speichern" }, | 757 | { "Sync+save","Syncen+speichern" }, |
758 | { "Default","Standard" }, | 758 | { "Default","Standard" }, |
759 | { " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, | 759 | { " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, |
760 | { " %d items?"," %d Einträge?" }, | 760 | { " %d items?"," %d Einträge?" }, |
761 | { "\nThis event recurs\nover multiple dates.\nAre you sure you want\nto delete this event\nand all its recurrences?","\nDieses ist ein\nwiederholender Termin!.\nSind Sie sicher, dass Sie\ndiesen Termin und alle\nWiederholungen löschen möchten?" }, | 761 | { "\nThis event recurs\nover multiple dates.\nAre you sure you want\nto delete this event\nand all its recurrences?","\nDieses ist ein\nwiederholender Termin!.\nSind Sie sicher, dass Sie\ndiesen Termin und alle\nWiederholungen löschen möchten?" }, |
762 | { " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, | 762 | { " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, |
763 | { "Current","Aktuelle" }, | 763 | { "Current","Aktuelle" }, |
764 | { "\nThis event recurs\nover multiple dates.\nDo you want to delete\nall it's recurrences,\nor only the current one on:\n","\nDieses ist ein\nwiederholender Termin!\nMöchten sie alle Wiederholungen\nlöschen, oder nur die aktuelle am:\n" }, | 764 | { "\nThis event recurs\nover multiple dates.\nDo you want to delete\nall it's recurrences,\nor only the current one on:\n","\nDieses ist ein\nwiederholender Termin!\nMöchten sie alle Wiederholungen\nlöschen, oder nur die aktuelle am:\n" }, |
765 | { "All","Alle" }, | 765 | { "All","Alle" }, |
766 | { "Data Loss Warning","Datenverlust Warnung" }, | 766 | { "Data Loss Warning","Datenverlust Warnung" }, |
767 | { "Proceed","Weitermachen" }, | 767 | { "Proceed","Weitermachen" }, |
768 | { "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, | 768 | { "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, |
769 | { "Filter disabled ","Filter abgeschaltet" }, | 769 | { "Filter disabled ","Filter abgeschaltet" }, |
770 | { "Filter selected: ","Gewählter Filter: " }, | 770 | { "Filter selected: ","Gewählter Filter: " }, |
771 | { "Toggle Cancel","Gecancelt ändern" }, | 771 | { "Toggle Cancel","Gecancelt ändern" }, |
772 | { "&Toggle Cancel","Gecancel&t ändern" }, | 772 | { "&Toggle Cancel","Gecancel&t ändern" }, |
773 | { "Configure Toolbar","Konfiguriere Toolbar" }, | 773 | { "Configure Toolbar","Konfiguriere Toolbar" }, |
774 | { "Stretched TB","Gedehnte TB" }, | 774 | { "Stretched TB","Gedehnte TB" }, |
775 | { "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, | 775 | { "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, |
776 | { "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, | 776 | { "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, |
777 | { "When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing","Wenn ein Kalender doppelt importiert\nwird, werden doppelte Einträge ignoriert!\nSie können eine Backup Datei anlegen unter\nDatei - Speichere Kalender Backup\num den Import rückgängig machen zu können.\n" }, | 777 | { "When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing","Wenn ein Kalender doppelt importiert\nwird, werden doppelte Einträge ignoriert!\nSie können eine Backup Datei anlegen unter\nDatei - Speichere Kalender Backup\num den Import rückgängig machen zu können.\n" }, |
778 | { "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, | 778 | { "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, |
779 | { "Imported file successfully","Datei erfolgreich importiert" }, | 779 | { "Imported file successfully","Datei erfolgreich importiert" }, |
780 | { "Error importing file","Fehler beim Importieren der Datei" }, | 780 | { "Error importing file","Fehler beim Importieren der Datei" }, |
781 | { "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, | 781 | { "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, |
782 | { "Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n","Zu speichernde Datei\existiert bereits!\nExist. Datei vom:\n%1\nÜberschreiben?\n" }, | 782 | { "Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n","Zu speichernde Datei\existiert bereits!\nExist. Datei vom:\n%1\nÜberschreiben?\n" }, |
783 | { "Overwrite!","Überschreiben!" }, | 783 | { "Overwrite!","Überschreiben!" }, |
784 | { "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n","Import Datei \n...%1\nvom:\n%2\nDuplizierte Einträge\nwerden nicht importiert!\n" }, | 784 | { "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n","Import Datei \n...%1\nvom:\n%2\nDuplizierte Einträge\nwerden nicht importiert!\n" }, |
785 | { "Load backup filename","Lade Backup Dateiname" }, | 785 | { "Load backup filename","Lade Backup Dateiname" }, |
786 | { "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, | 786 | { "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, |
787 | { "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, | 787 | { "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, |
788 | { "Save backup filename","Speichere Backup Dateiname" }, | 788 | { "Save backup filename","Speichere Backup Dateiname" }, |
789 | { "Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n","Backup Datei\nexistiert bereits!\nAlte Backup Datei vom:\n%1\nÜberschreiben?\n" }, | 789 | { "Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n","Backup Datei\nexistiert bereits!\nAlte Backup Datei vom:\n%1\nÜberschreiben?\n" }, |
790 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, | 790 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, |
791 | { "Details of attendee","Teilnehmerdetails" }, | 791 | { "Details of attendee","Teilnehmerdetails" }, |
792 | { "Work phone:\n","Telefon Arbeit:\n" }, | 792 | { "Work phone:\n","Telefon Arbeit:\n" }, |
793 | { "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, | 793 | { "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, |
794 | { "Home phone:\n","Telefon privat:\n" }, | 794 | { "Home phone:\n","Telefon privat:\n" }, |
795 | { "Mobile home phone:\n","Mobiltelefon privat:\n" }, | 795 | { "Mobile home phone:\n","Mobiltelefon privat:\n" }, |
796 | { "Email:\n","Email:\n" }, | 796 | { "Email:\n","Email:\n" }, |
797 | { "Alarm disabled for this item","Alarm deaktiviert für dieses Item" }, | 797 | { "Alarm disabled for this item","Alarm deaktiviert für dieses Item" }, |
798 | { "Audio Al.: ","Audio Al.: " }, | 798 | { "Audio Al.: ","Audio Al.: " }, |
799 | { "Proc.Al.: ","Proz.Al.: " }, | 799 | { "Proc.Al.: ","Proz.Al.: " }, |
800 | { "No sound set","Kein Sound definiert" }, | 800 | { "No sound set","Kein Sound definiert" }, |
801 | { "*.wav|Wav Files","*.wav|Wav Dateien" }, | 801 | { "*.wav|Wav Files","*.wav|Wav Dateien" }, |
802 | { "No program set","Kein Programm definiert" }, | 802 | { "No program set","Kein Programm definiert" }, |
803 | { "Running '%1'","Ausführen '%1'" }, | 803 | { "Running '%1'","Ausführen '%1'" }, |
804 | { "Playing '%1'","Abspielen '%1'" }, | 804 | { "Playing '%1'","Abspielen '%1'" }, |
805 | { "Show Sync Events in WN/Agenda view","Zeige Sync Events in WN/Agenda Ansicht" }, | 805 | { "Show Sync Events in WN/Agenda view","Zeige Sync Events in WN/Agenda Ansicht" }, |
806 | { "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" }, | 806 | { "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" }, |
807 | { "Load!","Laden!" }, | 807 | { "Load!","Laden!" }, |
808 | { "Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n","Backup Datei vom:\n%1\nDas Laden der Backup Datei\nlöscht die aktuellen Daten!\n" }, | 808 | { "Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n","Backup Datei vom:\n%1\nDas Laden der Backup Datei\nlöscht die aktuellen Daten!\n" }, |
809 | { "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, | 809 | { "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, |
810 | { "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, | 810 | { "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, |
811 | { "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, | 811 | { "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, |
812 | { "Features + hints...","Eigenschaften + Tipps..." }, | 812 | { "Features + hints...","Eigenschaften + Tipps..." }, |
813 | { "User translation...","Benutzer Übersetzung..." }, | 813 | { "User translation...","Benutzer Übersetzung..." }, |
814 | { "Sync HowTo...","Synchronisation HowTo..." }, | 814 | { "Sync HowTo...","Synchronisation HowTo..." }, |
815 | { "Print calendar...","Drucke Kalender..." }, | 815 | { "Print calendar...","Drucke Kalender..." }, |
816 | { "Anniversary","Jahrestag" }, | 816 | { "Anniversary","Jahrestag" }, |
817 | { "When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n","Wenn Geburtstage mehrfach importiert\nwerden, werden doppelte Einträge ignoriert\nwenn sie nicht verändert wurden.\n" }, | 817 | { "When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n","Wenn Geburtstage mehrfach importiert\nwerden, werden doppelte Einträge ignoriert\nwenn sie nicht verändert wurden.\n" }, |
818 | { "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, | 818 | { "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, |
819 | { "Next recurrence is on: ","Nächste Wiederholung ist am:" }, | 819 | { "Next recurrence is on: ","Nächste Wiederholung ist am:" }, |
820 | { "<b>Alarm on: </b>","<b>Alarm am: </b>" }, | 820 | { "<b>Alarm on: </b>","<b>Alarm am: </b>" }, |
821 | { "<b>Access: </b>","<b>Zugriff: </b>" }, | 821 | { "<b>Access: </b>","<b>Zugriff: </b>" }, |
822 | { "(%1 min before)","(%1 min vorher)" }, | 822 | { "(%1 min before)","(%1 min vorher)" }, |
823 | { "<b>Categories: </b>","<b>Kategorien: </b>" }, | 823 | { "<b>Categories: </b>","<b>Kategorien: </b>" }, |
824 | { "Save Journal/Description...","Speichere Journal/Details..." }, | 824 | { "Save Journal/Description...","Speichere Journal/Details..." }, |
825 | { "This saves the text/details of selected\nJournals and Events/Todos\nto a text file.","Das speichert den Text bzw.\ndie Details von selektierten\nJournalen und Events/Todos\nin eine Textdatei." }, | 825 | { "This saves the text/details of selected\nJournals and Events/Todos\nto a text file.","Das speichert den Text bzw.\ndie Details von selektierten\nJournalen und Events/Todos\nin eine Textdatei." }, |
826 | { "Continue","Weitermachen" }, | 826 | { "Continue","Weitermachen" }, |
827 | { " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, | 827 | { " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, |
828 | { "Attendee:","Teilnehmer:" }, | 828 | { "Attendee:","Teilnehmer:" }, |
829 | { "Click OK to search ->","Klicke zum Suchen auf OK ->" }, | 829 | { "Click OK to search ->","Klicke zum Suchen auf OK ->" }, |
830 | { "On day ","Am Tag " }, | 830 | { "On day ","Am Tag " }, |
831 | { "%1 of ","%1 des Monats" }, | 831 | { "%1 of ","%1 des Monats" }, |
832 | { "%1 of the year","%1 des Jahres" }, | 832 | { "%1 of the year","%1 des Jahres" }, |
833 | { "Anonymous","Anonymo" }, | 833 | { "Anonymous","Anonymo" }, |
834 | { "nobody@nowhere","niemand@nirgendwo" }, | 834 | { "nobody@nowhere","niemand@nirgendwo" }, |
835 | { "calendar.html","calendar.html" }, | 835 | { "calendar.html","calendar.html" }, |
836 | { " Local Time"," Locale Zeit" }, | 836 | { " Local Time"," Locale Zeit" }, |
837 | { "Unknown Name","Unbekannter Name" }, | 837 | { "Unknown Name","Unbekannter Name" }, |
838 | { "unknown@nowhere","unbekannt@nirgendwo" }, | 838 | { "unknown@nowhere","unbekannt@nirgendwo" }, |
839 | { "Beam via IR!","Beam via IR!" }, | 839 | { "Beam via IR!","Beam via IR!" }, |
840 | { "Next Month","Nächster Monat" }, | 840 | { "Next Month","Nächster Monat" }, |
841 | { "Prio","Prio" }, | 841 | { "Prio","Prio" }, |
842 | { "Reparent Todo","Mache Sub-Todo" }, | 842 | { "Reparent Todo","Mache Sub-Todo" }, |
843 | { "tomorrow","morgen" }, | 843 | { "tomorrow","morgen" }, |
844 | { "today","heute" }, | 844 | { "today","heute" }, |
845 | { "yesterday","gestern" }, | 845 | { "yesterday","gestern" }, |
846 | { "Ok","Ok" }, | 846 | { "Ok","Ok" }, |
847 | { "Ok+Agenda","Ok+Agenda" }, | 847 | { "Ok+Agenda","Ok+Agenda" }, |
848 | { "Email","Email" }, | 848 | { "Email","Email" }, |
849 | { "RSVP","RSVP" }, | 849 | { "RSVP","RSVP" }, |
850 | { "Email:","Email:" }, | 850 | { "Email:","Email:" }, |
851 | { "Appointment Time ","Termin Zeit " }, | 851 | { "Appointment Time ","Termin Zeit " }, |
852 | { "2","2" }, | 852 | { "2","2" }, |
853 | { "3","3" }, | 853 | { "3","3" }, |
854 | { "4","4" }, | 854 | { "4","4" }, |
855 | { " 0 %"," 0 %" }, | 855 | { " 0 %"," 0 %" }, |
856 | { " 20 %"," 20 %" }, | 856 | { " 20 %"," 20 %" }, |
857 | { " 40 %"," 40 %" }, | 857 | { " 40 %"," 40 %" }, |
858 | { " 60 %"," 60 %" }, | 858 | { " 60 %"," 60 %" }, |
859 | { " 80 %"," 80 %" }, | 859 | { " 80 %"," 80 %" }, |
860 | { "100 %","100 %" }, | 860 | { "100 %","100 %" }, |
861 | { "Filter","Filter" }, | 861 | { "Filter","Filter" }, |
862 | { "Configure","Konfiguriere" }, | 862 | { "Configure","Konfiguriere" }, |
863 | { "What's Next","What's Next" }, | 863 | { "What's Next","What's Next" }, |
864 | { "Complete calendar...","Kompletten Kalender..." }, | 864 | { "Complete calendar...","Kompletten Kalender..." }, |
865 | { "Filtered calendar...","Gefilterten Kalender..." }, | 865 | { "Filtered calendar...","Gefilterten Kalender..." }, |
866 | { "Export to phone","Exportiere zum Handy" }, | 866 | { "Export to phone","Exportiere zum Handy" }, |
867 | { "Beam receive enabled","Beam Empfang an" }, | 867 | { "Beam receive enabled","Beam Empfang an" }, |
868 | { "What's new?","Was ist neu?" }, | 868 | { "What's new?","Was ist neu?" }, |
869 | { "FAQ...","FAQ..." }, | 869 | { "FAQ...","FAQ..." }, |
870 | { "Licence...","Licence..." }, | 870 | { "Licence...","Licence..." }, |
871 | { "What's This?","What's This?" }, | 871 | { "What's This?","What's This?" }, |
872 | { "&Edit...","&Editiere..." }, | 872 | { "&Edit...","&Editiere..." }, |
873 | { "Oktober","Oktober" }, | 873 | { "Oktober","Oktober" }, |
874 | { "Title","Titel" }, | 874 | { "Title","Titel" }, |
875 | { "%1 %","%1 %" }, | 875 | { "%1 %","%1 %" }, |
876 | { "Enable Pi-Sync","Schalte Pi-Sync an" }, | 876 | { "Enable Pi-Sync","Schalte Pi-Sync an" }, |
877 | { "Import!","Importiere!" }, | 877 | { "Import!","Importiere!" }, |
878 | { "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, | 878 | { "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, |
879 | { "Export to phone options","Export ans Handy Optionen" }, | 879 | { "Export to phone options","Export ans Handy Optionen" }, |
880 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, | 880 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, |
881 | { "I/O device: ","I/O device: " }, | 881 | { "I/O device: ","I/O device: " }, |
882 | { "Connection: ","Connection: " }, | 882 | { "Connection: ","Connection: " }, |
883 | { "Model(opt.): ","Model(opt.): " }, | 883 | { "Model(opt.): ","Model(opt.): " }, |
884 | { "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, | 884 | { "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, |
885 | { "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, | 885 | { "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, |
886 | { "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nToDo/Kalender Daten auf dem Handy!" }, | 886 | { "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nToDo/Kalender Daten auf dem Handy!" }, |
887 | { "Export to mobile phone!","Exportiere auf das Handy!" }, | 887 | { "Export to mobile phone!","Exportiere auf das Handy!" }, |
888 | { "Export complete calendar","Exportiere kompletten Kalender" }, | 888 | { "Export complete calendar","Exportiere kompletten Kalender" }, |
889 | { "Writing to phone...","Sende Daten ans Handy..." }, | 889 | { "Writing to phone...","Sende Daten ans Handy..." }, |
890 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, | 890 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, |
891 | { "Retry","Nochmal versuchen" }, | 891 | { "Retry","Nochmal versuchen" }, |
892 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, | 892 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, |
893 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, | 893 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, |
894 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, | 894 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, |
895 | { "Export filtered calendar","Exportiere gefilterten Kalender" }, | 895 | { "Export filtered calendar","Exportiere gefilterten Kalender" }, |
896 | { "Preferences","Vorlieben" }, | 896 | { "Preferences","Vorlieben" }, |
897 | { "Global","Global" }, | 897 | { "Global","Global" }, |
898 | { "Phone","Phone" }, | 898 | { "Phone","Phone" }, |
899 | { "SMS","SMS" }, | 899 | { "SMS","SMS" }, |
900 | { "Fax","Fax" }, | 900 | { "Fax","Fax" }, |
901 | { "Pager","Pager" }, | 901 | { "Pager","Pager" }, |
902 | { "SIP","SIP" }, | 902 | { "SIP","SIP" }, |
903 | { "Italian","Italienisch" }, | 903 | { "Italian","Italienisch" }, |
904 | { "24:00","24:00" }, | 904 | { "24:00","24:00" }, |
905 | { "12:00am","12:00am" }, | 905 | { "12:00am","12:00am" }, |
906 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, | 906 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, |
907 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, | 907 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, |
908 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, | 908 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, |
909 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, | 909 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, |
910 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, | 910 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, |
911 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, | 911 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, |
912 | { "Used Mail Client","Benutzter Mail Client" }, | 912 | { "Used Mail Client","Benutzter Mail Client" }, |
913 | { "Channel:","Channel:" }, | 913 | { "Channel:","Channel:" }, |
914 | { "Message:","Message:" }, | 914 | { "Message:","Message:" }, |
915 | { "Parameters:","Parameter:" }, | 915 | { "Parameters:","Parameter:" }, |
916 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, | 916 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, |
917 | { "extra Message:","extra Message:" }, | 917 | { "extra Message:","extra Message:" }, |
918 | { "extra Parameters:","extra Parameter:" }, | 918 | { "extra Parameters:","extra Parameter:" }, |
919 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, | 919 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, |
920 | { "External Apps.","Externe Appl." }, | 920 | { "External Apps.","Externe Appl." }, |
921 | { "24 hours","24 Std." }, | 921 | { "24 hours","24 Std." }, |
922 | { "3 hours","3 Std." }, | 922 | { "3 hours","3 Std." }, |
923 | { "1 hour","1 Std." }, | 923 | { "1 hour","1 Std." }, |
924 | { "15 minutes","15 Min." }, | 924 | { "15 minutes","15 Min." }, |
925 | { "5 minutes","5 Min." }, | 925 | { "5 minutes","5 Min." }, |
926 | { "1 minute","1 Min." }, | 926 | { "1 minute","1 Min." }, |
927 | { "23","23" }, | 927 | { "23","23" }, |
928 | { "Mon 15","Mon 15" }, | 928 | { "Mon 15","Mon 15" }, |
929 | { "Configure KO","Konfiguriere KO" }, | 929 | { "Configure KO","Konfiguriere KO" }, |
930 | { "Event text","Termin Text" }, | 930 | { "Event text","Termin Text" }, |
931 | { "ToDo","ToDo" }, | 931 | { "ToDo","ToDo" }, |
932 | { "Today","Heute" }, | 932 | { "Today","Heute" }, |
933 | { "What's Next View","What's Next Ansicht" }, | 933 | { "What's Next View","What's Next Ansicht" }, |
934 | { "Show Sync Events in \nWhat's Next/Agenda view","Zeige Sync Termine in \nWhat's Next/Agenda view" }, | 934 | { "Show Sync Events in \nWhat's Next/Agenda view","Zeige Sync Termine in \nWhat's Next/Agenda view" }, |
935 | { "Use short date in \nWhat's Next/Event view","Zeige Kurzdatum in \nWhat's Next/Event view" }, | 935 | { "Use short date in \nWhat's Next/Event view","Zeige Kurzdatum in \nWhat's Next/Event view" }, |
936 | { "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, | 936 | { "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, |
937 | { "Alarm","Alarm" }, | 937 | { "Alarm","Alarm" }, |
938 | { "Used %1 Client","Benutzter %1 Client" }, | 938 | { "Used %1 Client","Benutzter %1 Client" }, |
939 | { "No email client installed","Kein Email Klient installiert" }, | 939 | { "No email client installed","Kein Email Klient installiert" }, |
940 | { "Userdefined email client","Benutzerdef. Email Klient" }, | 940 | { "Userdefined email client","Benutzerdef. Email Klient" }, |
941 | { "OM/Pi email client","OM/Pi Email Klient" }, | 941 | { "OM/Pi email client","OM/Pi Email Klient" }, |
942 | { "Include in multiple ","Beziehe in multiple " }, | 942 | { "Include in multiple ","Beziehe in multiple " }, |
943 | { "calendar ","Kalender " }, | 943 | { "calendar ","Kalender " }, |
944 | { "addressbook ","Adressbuch " }, | 944 | { "addressbook ","Adressbuch " }, |
945 | { "pwmanager","PWmanager" }, | 945 | { "pwmanager","PWmanager" }, |
946 | { " sync"," Sync ein" }, | 946 | { " sync"," Sync ein" }, |
947 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, | 947 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, |
948 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, | 948 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, |
949 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, | 949 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, |
950 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, | 950 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, |
951 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, | 951 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, |
952 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, | 952 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, |
953 | { "Help...","Hilfe..." }, | 953 | { "Help...","Hilfe..." }, |
954 | { "Local file Cal:","Lokale Datei Kal:" }, | 954 | { "Local file Cal:","Lokale Datei Kal:" }, |
955 | { "Local file ABook:","Lokale Datei ABuch:" }, | 955 | { "Local file ABook:","Lokale Datei ABuch:" }, |
956 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, | 956 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, |
957 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, | 957 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, |
958 | { "Calendar:","Kalender:" }, | 958 | { "Calendar:","Kalender:" }, |
959 | { "AddressBook:","AdressBuch:" }, | 959 | { "AddressBook:","AdressBuch:" }, |
960 | { "PWManager:","PWManager:" }, | 960 | { "PWManager:","PWManager:" }, |
961 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, | 961 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, |
962 | { "ssh/scp","ssh/scp" }, | 962 | { "ssh/scp","ssh/scp" }, |
963 | { "ftp","ftp" }, | 963 | { "ftp","ftp" }, |
964 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, | 964 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, |
965 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, | 965 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, |
966 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, | 966 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, |
967 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, | 967 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, |
968 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, | 968 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, |
969 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, | 969 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, |
970 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, | 970 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, |
971 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, | 971 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, |
972 | { "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Model\nautomatisch erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, | 972 | { "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Model\nautomatisch erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, |
973 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, | 973 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, |
974 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, | 974 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, |
975 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, | 975 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, |
976 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, | 976 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, |
977 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, | 977 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, |
978 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, | 978 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, |
979 | { "Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!","Wollen Sie wirklich\nmit allen selektierten\nProfilen \"Multi-Syncen\"?\nDas Syncen dauert einige Zeit -\nalle Profile werden zweimal gesynct!" }, | 979 | { "Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!","Wollen Sie wirklich\nmit allen selektierten\nProfilen \"Multi-Syncen\"?\nDas Syncen dauert einige Zeit -\nalle Profile werden zweimal gesynct!" }, |
980 | { "KDE-Pim Sync","KDE-Pim Sync" }, | 980 | { "KDE-Pim Sync","KDE-Pim Sync" }, |
981 | { "Multiple profiles","Multi-Sync Profile" }, | 981 | { "Multiple profiles","Multi-Sync Profile" }, |
982 | { "Device: ","Gerät: " }, | 982 | { "Device: ","Gerät: " }, |
983 | { "Multiple sync started.","Multi-Sync gestartet." }, | 983 | { "Multiple sync started.","Multi-Sync gestartet." }, |
984 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, | 984 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, |
985 | { "Turn filter on","Schalte Filter an" }, | 985 | { "Turn filter on","Schalte Filter an" }, |
986 | { "Turn filter off","Schalte Filter aus" }, | 986 | { "Turn filter off","Schalte Filter aus" }, |
987 | { "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, | 987 | { "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, |
988 | { "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, | 988 | { "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, |
989 | { "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, | 989 | { "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, |
990 | { "<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n","<p><b>Schwarz</b>: Termin/Todo mit Teilnehmern. Sie sind der Organisator!</p>\n" }, | 990 | { "<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n","<p><b>Schwarz</b>: Termin/Todo mit Teilnehmern. Sie sind der Organisator!</p>\n" }, |
991 | { "<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n","<p><b>Dunkelgrün</b>: Information(Beschreibung) verfügbar.([i] in WN Ansicht)</p>\n" }, | 991 | { "<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n","<p><b>Dunkelgrün</b>: Information(Beschreibung) verfügbar.([i] in WN Ansicht)</p>\n" }, |
992 | { "<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n","<p><b>Blau</b>: Wiederholender Termin.([r] in Whats'Next Ansicht)</p>\n" }, | 992 | { "<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n","<p><b>Blau</b>: Wiederholender Termin.([r] in Whats'Next Ansicht)</p>\n" }, |
993 | { "<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n","<p><b>Rot</b>: Alarm gesetzt.([a] in Whats'Next Ansicht)</p>\n" }, | 993 | { "<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n","<p><b>Rot</b>: Alarm gesetzt.([a] in Whats'Next Ansicht)</p>\n" }, |
994 | { "<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n","<p><b>Kreuz</b>: Eintrag gecancelt.([c] in Whats'Next Ansicht)</p>\n" }, | 994 | { "<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n","<p><b>Kreuz</b>: Eintrag gecancelt.([c] in Whats'Next Ansicht)</p>\n" }, |
995 | { "<p><b>(for square icons in agenda and month view)</b></p>\n","<p><b>(für quadratische Icons in Agenda und Monats Ansicht)</b></p>\n" }, | 995 | { "<p><b>(for square icons in agenda and month view)</b></p>\n","<p><b>(für quadratische Icons in Agenda und Monats Ansicht)</b></p>\n" }, |
996 | { "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, | 996 | { "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, |
997 | { "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, | 997 | { "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, |
998 | { "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, | 998 | { "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, |
999 | { "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, | 999 | { "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, |
1000 | { "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, | 1000 | { "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, |
1001 | { "<p><b>shift+up/down</b>: Goto first/last item</p>\n","<p><b>shift+up/down</b>: Gehe zum ersten/letzten Eintrag</p>\n" }, | 1001 | { "<p><b>shift+up/down</b>: Goto first/last item</p>\n","<p><b>shift+up/down</b>: Gehe zum ersten/letzten Eintrag</p>\n" }, |
1002 | { "<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n","<p><b>ctrl+up/down</b>: Gehe hoch/runter 20% aller Einträge</p>\n" }, | 1002 | { "<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n","<p><b>ctrl+up/down</b>: Gehe hoch/runter 20% aller Einträge</p>\n" }, |
1003 | { "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, | 1003 | { "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, |
1004 | { "<p><b>return+shift</b>: Deselect item+one step down</p>\n","<p><b>return+shift</b>: Deselektiere Item+Cursor einen Eintrag runter</p>\n" }, | 1004 | { "<p><b>return+shift</b>: Deselect item+one step down</p>\n","<p><b>return+shift</b>: Deselektiere Item+Cursor einen Eintrag runter</p>\n" }, |
1005 | { "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, | 1005 | { "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, |
1006 | { "<p><b>I</b>: Show info of current item+one step down.</p>\n","<p><b>I</b>: Zeige Detail-Ansicht vom sel.Eintrag+Cursor einen Eintrag runter.</p>\n" }, | 1006 | { "<p><b>I</b>: Show info of current item+one step down.</p>\n","<p><b>I</b>: Zeige Detail-Ansicht vom sel.Eintrag+Cursor einen Eintrag runter.</p>\n" }, |
1007 | { "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, | 1007 | { "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, |
1008 | { "<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n","<p><b>return+shift</b>: Markiere Todo als nicht erledigt+Cursor einen Eintrag runter</p>\n" }, | 1008 | { "<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n","<p><b>return+shift</b>: Markiere Todo als nicht erledigt+Cursor einen Eintrag runter</p>\n" }, |
1009 | { "<p><b>return</b>: Mark item as completed+one step down.</p>\n","<p><b>return</b>: Markiere Todo als erledigt+Cursor einen Eintrag runter.</p>\n" }, | 1009 | { "<p><b>return</b>: Mark item as completed+one step down.</p>\n","<p><b>return</b>: Markiere Todo als erledigt+Cursor einen Eintrag runter.</p>\n" }, |
1010 | { "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, | 1010 | { "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, |
1011 | { "<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n","<p><b>shift+P</b>: Mache Todo zum neuen <b>P</b>arent Todo für das Todo, welches mit shift+Sselektiert wurde.</p>\n" }, | 1011 | { "<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n","<p><b>shift+P</b>: Mache Todo zum neuen <b>P</b>arent Todo für das Todo, welches mit shift+Sselektiert wurde.</p>\n" }, |
1012 | { "<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n","<p><b>shift+S</b>: Mache Todo zum <b>S</b>ubtodo</p>\n" }, | 1012 | { "<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n","<p><b>shift+S</b>: Mache Todo zum <b>S</b>ubtodo</p>\n" }, |
1013 | { "<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n","<p><b>shift+U</b>: <b>U</b>nparent Todo (Mache Sub-Todo zum Toplevel Todo)</p>\n" }, | 1013 | { "<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n","<p><b>shift+U</b>: <b>U</b>nparent Todo (Mache Sub-Todo zum Toplevel Todo)</p>\n" }, |
1014 | { "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, | 1014 | { "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, |
1015 | { "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, | 1015 | { "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, |
1016 | { "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, | 1016 | { "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, |
1017 | { "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, | 1017 | { "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, |
1018 | { "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, | 1018 | { "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, |
1019 | { "<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n","<p><b>left</b>: Vorh. Woche | <b>left+ctrl</b>: Vorh. Monat</p>\n" }, | 1019 | { "<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n","<p><b>left</b>: Vorh. Woche | <b>left+ctrl</b>: Vorh. Monat</p>\n" }, |
1020 | { "<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n","<p><b>right</b>: Nächste Woche | <b>right+ctrl</b>: Nächste Woche</p>\n" }, | 1020 | { "<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n","<p><b>right</b>: Nächste Woche | <b>right+ctrl</b>: Nächste Woche</p>\n" }, |
1021 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, | 1021 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, |
1022 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, | 1022 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, |
1023 | { "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" }, | 1023 | { "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" }, |
1024 | { "<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X</b>: Zeige/verstecke Datumsnavigator</p>\n" }, | 1024 | { "<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X+ctrl</b>: Zeige/verstecke Datumsnavigator</p>\n" }, |
1025 | { "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" }, | 1025 | { "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" }, |
1026 | { "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" }, | 1026 | { "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" }, |
1027 | { "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monatsansicht</p>\n" }, | 1027 | { "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monatsansicht</p>\n" }, |
1028 | { "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochenansicht | <b>U</b>: Wochenansicht</p>\n" }, | 1028 | { "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochenansicht | <b>U</b>: Wochenansicht</p>\n" }, |
1029 | { "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" }, | 1029 | { "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" }, |
1030 | { "<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ","<p><b>N</b>: Nächste-Tage Ansicht | <b>W</b>: What's Next Ansicht\n " }, | 1030 | { "<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ","<p><b>X</b>: Nächste-X-Tage Ansicht | <b>W</b>: What's Next Ansicht\n " }, |
1031 | { "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, | 1031 | { "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, |
1032 | { "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, | 1032 | { "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, |
1033 | { "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" }, | 1033 | { "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" }, |
1034 | { "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" }, | 1034 | { "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" }, |
1035 | { "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" }, | 1035 | { "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" }, |
1036 | { "<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n","<p><b>H</b>: Dieser Hilfe Dialog | <b>S</b>: Such Dialog</p>\n" }, | 1036 | { "<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n","<p><b>H</b>: Dieser Hilfe Dialog | <b>S</b>: Such Dialog</p>\n" }, |
1037 | { "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, | 1037 | { "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, |
1038 | { "After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n","Nachdem etwas geändert wurde, werden die\nDaten automatisch in die Datei abgespeichert\n~/kdepim/apps/korganizer/mycalendar.ics\nnach (konfigurierbar) drei Minuten.\nAus Sicherheitsgründen wird noch einmal\nnach 10 Min. abgespeichert, wenn keine\nÄnderungen vorgenommen wurden. Die \nDaten werden automatisch gespeichert,\nwenn KO/Pi beendet wird.\nSie können eine Backup-Datei erstellen im\nMenu: Datei - Speichere Kalender Backup\n" }, | 1038 | { "After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n","Nachdem etwas geändert wurde, werden die\nDaten automatisch in die Datei abgespeichert\n~/kdepim/apps/korganizer/mycalendar.ics\nnach (konfigurierbar) drei Minuten.\nAus Sicherheitsgründen wird noch einmal\nnach 10 Min. abgespeichert, wenn keine\nÄnderungen vorgenommen wurden. Die \nDaten werden automatisch gespeichert,\nwenn KO/Pi beendet wird.\nSie können eine Backup-Datei erstellen im\nMenu: Datei - Speichere Kalender Backup\n" }, |
1039 | { "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, | 1039 | { "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, |
1040 | { "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, | 1040 | { "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, |
1041 | { "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, | 1041 | { "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, |
1042 | { "\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.info\n" }, | 1042 | { "\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.info\n" }, |
1043 | { "2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n","2) Ein Audio Alarm Daemon\nfür den Zaurus ist verfügbar\nals zusätzliche Anwendung\n" }, | 1043 | { "2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n","2) Ein Audio Alarm Daemon\nfür den Zaurus ist verfügbar\nals zusätzliche Anwendung\n" }, |
1044 | { "1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n","1) Importieren von *.vcs oder *.ics Dateien von\nanderen Anwendungen kann möglicherweise\n nicht richtig funktionieren,\nwenn die Termine Eigenschaften haben,\ndie KO/Pi nicht unterstützt.\n" }, | 1044 | { "1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n","1) Importieren von *.vcs oder *.ics Dateien von\nanderen Anwendungen kann möglicherweise\n nicht richtig funktionieren,\nwenn die Termine Eigenschaften haben,\ndie KO/Pi nicht unterstützt.\n" }, |
1045 | { "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, | 1045 | { "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, |
1046 | { "KO/Pi FAQ","KO/Pi FAQ" }, | 1046 | { "KO/Pi FAQ","KO/Pi FAQ" }, |
1047 | { "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, | 1047 | { "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, |
1048 | { "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, | 1048 | { "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, |
1049 | { "About KOrganizer/Pi","Über KOrganizer/Pi" }, | 1049 | { "About KOrganizer/Pi","Über KOrganizer/Pi" }, |
1050 | { "From: ","Von: " }, | 1050 | { "From: ","Von: " }, |
1051 | { "Remove sync info","Entferne Sync Info" }, | 1051 | { "Remove sync info","Entferne Sync Info" }, |
1052 | { "For all profiles","Für alle Profile" }, | 1052 | { "For all profiles","Für alle Profile" }, |
1053 | { "Hide not Running","Verstecke nicht Laufende" }, | 1053 | { "Hide not Running","Verstecke nicht Laufende" }, |
1054 | { "ME","ME" }, | 1054 | { "ME","ME" }, |
1055 | { "Toolbar","Toolbar" }, | 1055 | { "Toolbar","Toolbar" }, |
1056 | { "Undo Delete...","Löschen rückgängig machen..." }, | 1056 | { "Undo Delete...","Löschen rückgängig machen..." }, |
1057 | { "Undo Delete","Löschen rückgängig machen" }, | 1057 | { "Undo Delete","Löschen rückgängig machen" }, |
1058 | { "KDE Sync HowTo...","KDE Sync HowTo..." }, | 1058 | { "KDE Sync HowTo...","KDE Sync HowTo..." }, |
1059 | { "Multi Sync HowTo...","Multi Sync HowTo..." }, | 1059 | { "Multi Sync HowTo...","Multi Sync HowTo..." }, |
1060 | { "Januar","Januar" }, | 1060 | { "Januar","Januar" }, |
1061 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, | 1061 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, |
1062 | { "No Filter","Kein Filter" }, | 1062 | { "No Filter","Kein Filter" }, |
1063 | { "Multiple Sync options","Multi Sync Optionen" }, | 1063 | { "Multiple Sync options","Multi Sync Optionen" }, |
1064 | { "Sync algo options","Sync Ablauf Optionen" }, | 1064 | { "Sync algo options","Sync Ablauf Optionen" }, |
1065 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, | 1065 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, |
1066 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, | 1066 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, |
1067 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, | 1067 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, |
1068 | { "Write back options","Optionen zum Zurückschreiben" }, | 1068 | { "Write back options","Optionen zum Zurückschreiben" }, |
1069 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, | 1069 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, |
1070 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, | 1070 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, |
1071 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, | 1071 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, |
1072 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, | 1072 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, |
1073 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, | 1073 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, |
1074 | { "Time period","Zeitspanne" }, | 1074 | { "Time period","Zeitspanne" }, |
1075 | { "From ","Von " }, | 1075 | { "From ","Von " }, |
1076 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, | 1076 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, |
1077 | { " weeks in the future "," Wochen in der Zukunft " }, | 1077 | { " weeks in the future "," Wochen in der Zukunft " }, |
1078 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, | 1078 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, |
1079 | { "Local temp file:","Lokale temp Datei:" }, | 1079 | { "Local temp file:","Lokale temp Datei:" }, |
1080 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, | 1080 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, |
1081 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, | 1081 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, |
1082 | { "Language","Sprache" }, | 1082 | { "Language","Sprache" }, |
1083 | { "Time Format","Zeit Format" }, | 1083 | { "Time Format","Zeit Format" }, |
1084 | { "Time Zone","Zeit Zone" }, | 1084 | { "Time Zone","Zeit Zone" }, |
1085 | { "%1 groups subscribed","%1 Guppen abboniert" }, | 1085 | { "%1 groups subscribed","%1 Guppen abboniert" }, |
1086 | { "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" }, | 1086 | { "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" }, |
1087 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, | 1087 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, |
1088 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, | 1088 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, |
1089 | { "Save settings","Speichere Einstellungen" }, | 1089 | { "Save settings","Speichere Einstellungen" }, |
1090 | { "Save standard","Speichere Standard" }, | 1090 | { "Save standard","Speichere Standard" }, |
1091 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, | 1091 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, |
1092 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, | 1092 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, |
1093 | { "Data storage path","Daten Speicherpfad" }, | 1093 | { "Data storage path","Daten Speicherpfad" }, |
1094 | { "Language","Sprache" }, | 1094 | { "Language","Sprache" }, |
1095 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, | 1095 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, |
1096 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, | 1096 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, |
1097 | { "Show events, that are done in \nWhat's Next view","Zeige abgelaufene Termine in\nWhat's Next Ansicht" }, | 1097 | { "Show events, that are done in \nWhat's Next view","Zeige abgelaufene Termine in\nWhat's Next Ansicht" }, |
1098 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, | 1098 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, |
1099 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, | 1099 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, |
1100 | { "KO/Pi","KO/Pi" }, | 1100 | { "KO/Pi","KO/Pi" }, |
1101 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, | 1101 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, |
1102 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, | 1102 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, |
1103 | { "Sound.Al.: ","Sound.Al.: " }, | 1103 | { "Sound.Al.: ","Sound.Al.: " }, |
1104 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, | 1104 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, |
1105 | { "Restore","Wiederherstellen" }, | 1105 | { "Restore","Wiederherstellen" }, |
1106 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, | 1106 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, |
1107 | { "% completed","% erledigt" }, | 1107 | { "% completed","% erledigt" }, |
1108 | { "%d item(s) found.","%d Item(s) gefunden." }, | 1108 | { "%d item(s) found.","%d Item(s) gefunden." }, |
1109 | { "Set complete","Setze auf erledigt" }, | 1109 | { "Set complete","Setze auf erledigt" }, |
1110 | { "(cancelled)","(gecancelt)" }, | 1110 | { "(cancelled)","(gecancelt)" }, |
1111 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, | 1111 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, |
1112 | { " Local time "," Locale Zeit " }, | 1112 | { " Local time "," Locale Zeit " }, |
1113 | { "Form2","Form2" }, | 1113 | { "Form2","Form2" }, |
1114 | { "Filter enabled","Filter angeschaltet" }, | 1114 | { "Filter enabled","Filter angeschaltet" }, |
1115 | { "Edit Filters","Ändere Filter" }, | 1115 | { "Edit Filters","Ändere Filter" }, |
1116 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, | 1116 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, |
1117 | { "Agenda","Agenda" }, | 1117 | { "Agenda","Agenda" }, |
1118 | { " ("," (" }, | 1118 | { " ("," (" }, |
1119 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, | 1119 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, |
1120 | { "Print","Print" }, | 1120 | { "Print","Print" }, |
1121 | { "&Setup Printer...","Drucker &Setup..." }, | 1121 | { "&Setup Printer...","Drucker &Setup..." }, |
1122 | { "View Type","Zeige Typ" }, | 1122 | { "View Type","Zeige Typ" }, |
1123 | { "Page &orientation:","Seiten Ausrichtung:" }, | 1123 | { "Page &orientation:","Seiten Ausrichtung:" }, |
1124 | { "Use Default of Selected Style","Default des selektierten Stils" }, | 1124 | { "Use Default of Selected Style","Default des selektierten Stils" }, |
1125 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, | 1125 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, |
1126 | { "Portrait","Portrait" }, | 1126 | { "Portrait","Portrait" }, |
1127 | { "Landscape","Landschaft" }, | 1127 | { "Landscape","Landschaft" }, |
1128 | { "Print day","Drucke Tag" }, | 1128 | { "Print day","Drucke Tag" }, |
1129 | { "CalPrintDay_Base","CalPrintDay_Base" }, | 1129 | { "CalPrintDay_Base","CalPrintDay_Base" }, |
1130 | { "Date && Time Range","Datum && Zeitspanne" }, | 1130 | { "Date && Time Range","Datum && Zeitspanne" }, |
1131 | { "&End date:","&Enddatum:" }, | 1131 | { "&End date:","&Enddatum:" }, |
1132 | { "&Start date:","&Startdatum:" }, | 1132 | { "&Start date:","&Startdatum:" }, |
1133 | { "Start &time:","Startzeit:" }, | 1133 | { "Start &time:","Startzeit:" }, |
1134 | { "End ti&me:","Endzeit:" }, | 1134 | { "End ti&me:","Endzeit:" }, |
1135 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, | 1135 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, |
1136 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, | 1136 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, |
1137 | { "Alt+D","Alt+D" }, | 1137 | { "Alt+D","Alt+D" }, |
1138 | { "&Use colors","Nutze Farben" }, | 1138 | { "&Use colors","Nutze Farben" }, |
1139 | { "Alt+U","Alt+U" }, | 1139 | { "Alt+U","Alt+U" }, |
1140 | { "Print week","Drucke Woche" }, | 1140 | { "Print week","Drucke Woche" }, |
1141 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, | 1141 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, |
1142 | { "Use &colors","Nutze Farben" }, | 1142 | { "Use &colors","Nutze Farben" }, |
1143 | { "Type of View","Typ der Ansicht" }, | 1143 | { "Type of View","Typ der Ansicht" }, |
1144 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, | 1144 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, |
1145 | { "Alt+F","Alt+F" }, | 1145 | { "Alt+F","Alt+F" }, |
1146 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, | 1146 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, |
1147 | { "Alt+T","Alt+T" }, | 1147 | { "Alt+T","Alt+T" }, |
1148 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, | 1148 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, |
1149 | { "Print month","Drucke Monat" }, | 1149 | { "Print month","Drucke Monat" }, |
1150 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, | 1150 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, |
1151 | { "&Start month:","&Startmonat:" }, | 1151 | { "&Start month:","&Startmonat:" }, |
1152 | { "&End month:","&Endmonat:" }, | 1152 | { "&End month:","&Endmonat:" }, |
1153 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, | 1153 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, |
1154 | { "Print todos","Drucke Todos" }, | 1154 | { "Print todos","Drucke Todos" }, |
1155 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, | 1155 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, |
1156 | { "Include &description of the item","Inclusive Itembeschreibung" }, | 1156 | { "Include &description of the item","Inclusive Itembeschreibung" }, |
1157 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, | 1157 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, |
1158 | { "Include &priority of the item","Inclusive Priorität des Items" }, | 1158 | { "Include &priority of the item","Inclusive Priorität des Items" }, |
1159 | { "Items to Print","Zu druckende Items" }, | 1159 | { "Items to Print","Zu druckende Items" }, |
1160 | { "&From:","Von:" }, | 1160 | { "&From:","Von:" }, |
1161 | { "&To:","Bis:" }, | 1161 | { "&To:","Bis:" }, |
1162 | { "Print &all todo items","Drucke alle Todo Items" }, | 1162 | { "Print &all todo items","Drucke alle Todo Items" }, |
1163 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, | 1163 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, |
1164 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, | 1164 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, |
1165 | { "Todo List","Todo Liste" }, | 1165 | { "Todo List","Todo Liste" }, |
1166 | { "&Title:","&Titel:" }, | 1166 | { "&Title:","&Titel:" }, |
1167 | { "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, | 1167 | { "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, |
1168 | { "Todo list","Todo Liste" }, | 1168 | { "Todo list","Todo Liste" }, |
1169 | { "&Print...","Drucke..." }, | 1169 | { "&Print...","Drucke..." }, |
1170 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, | 1170 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, |
1171 | { "[Unconfigured]","[Unkonfiguriert]" }, | 1171 | { "[Unconfigured]","[Unkonfiguriert]" }, |
1172 | { "OK","OK" }, | 1172 | { "OK","OK" }, |
1173 | { "FilterEditor","FilterEditor" }, | 1173 | { "FilterEditor","FilterEditor" }, |
1174 | { "Include","Inclusive" }, | 1174 | { "Include","Inclusive" }, |
1175 | { "Exclude","Exclusive" }, | 1175 | { "Exclude","Exclusive" }, |
1176 | { "Edit Selection...","Editiere Auswahl" }, | 1176 | { "Edit Selection...","Editiere Auswahl" }, |
1177 | { "recurring events","wiederholende Termine" }, | 1177 | { "recurring events","wiederholende Termine" }, |
1178 | { "recurr. events","wiederh.Termine" }, | 1178 | { "recurr. events","wiederh.Termine" }, |
1179 | { "completed to-dos","erledigte Todos" }, | 1179 | { "completed to-dos","erledigte Todos" }, |
1180 | { "events","Termine" }, | 1180 | { "events","Termine" }, |
1181 | { "todos","Todos" }, | 1181 | { "todos","Todos" }, |
1182 | { "journals","Journale" }, | 1182 | { "journals","Journale" }, |
1183 | { "public","öffentl." }, | 1183 | { "public","öffentl." }, |
1184 | { "private","privat" }, | 1184 | { "private","privat" }, |
1185 | { "confidential","vertraul." }, | 1185 | { "confidential","vertraul." }, |
1186 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, | 1186 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, |
1187 | { "Yesterday","Gestern" }, | 1187 | { "Yesterday","Gestern" }, |
1188 | { "Day after tomorrow","Übermorgen" }, | 1188 | { "Day after tomorrow","Übermorgen" }, |
1189 | { "Tomorrow","Morgen" }, | 1189 | { "Tomorrow","Morgen" }, |
1190 | { "Day before yesterday","Vorgestern" }, | 1190 | { "Day before yesterday","Vorgestern" }, |
1191 | { "Size %1","Größe %1" }, | 1191 | { "Size %1","Größe %1" }, |
1192 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1192 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1193 | { " (%1 y.)"," (%1 J.)" }, | 1193 | { " (%1 y.)"," (%1 J.)" }, |
1194 | { "Allday:","Ganztägig:" }, | 1194 | { "Allday:","Ganztägig:" }, |
1195 | { "compl.todos","erled.Todos" }, | 1195 | { "compl.todos","erled.Todos" }, |
1196 | { "Day view","Tagesansicht" }, | 1196 | { "Day view","Tagesansicht" }, |
1197 | { "Next days","Nächste Tage" }, | 1197 | { "Next days","Nächste Tage" }, |
1198 | { "Next week","Nächste Woche" }, | 1198 | { "Next week","Nächste Woche" }, |
1199 | { "Next two weeks","Nächste zwei Wochen" }, | 1199 | { "Next two weeks","Nächste zwei Wochen" }, |
1200 | { "Next month","Nächster Monat" }, | 1200 | { "Next month","Nächster Monat" }, |
1201 | { "Journal view","Journal" }, | 1201 | { "Journal view","Journal" }, |
1202 | { "Display all opened","Zeige alle geöffnet" }, | 1202 | { "Display all opened","Zeige alle geöffnet" }, |
1203 | { "Display all closed","Zeige alle geschlossen" }, | 1203 | { "Display all closed","Zeige alle geschlossen" }, |
1204 | { "Display all flat","Zeige alle flach" }, | 1204 | { "Display all flat","Zeige alle flach" }, |
1205 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1205 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1206 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1206 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1207 | { "Select week %1-%2","Wähle Woche %1-%2" }, | 1207 | { "Select week %1-%2","Wähle Woche %1-%2" }, |
1208 | { "Select Week","Wähle Woche" }, | 1208 | { "Select Week","Wähle Woche" }, |
1209 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, | 1209 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, |
1210 | { "Set Alarm!","Setze Alarm!" }, | 1210 | { "Set Alarm!","Setze Alarm!" }, |
1211 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, | 1211 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, |
1212 | { " and "," und " }, | 1212 | { " and "," und " }, |
1213 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, | 1213 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, |
1214 | { "Mail to selected","Mail an Ausgewählte" }, | 1214 | { "Mail to selected","Mail an Ausgewählte" }, |
1215 | { "Mail to all","Mail an Alle" }, | 1215 | { "Mail to all","Mail an Alle" }, |
1216 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, | 1216 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, |
1217 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, | 1217 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, |
1218 | { " on"," am" }, | 1218 | { " on"," am" }, |
1219 | { " completed on "," erledigt am " }, | 1219 | { " completed on "," erledigt am " }, |
1220 | { "Save as Event template","Speichere als Vorlage" }, | 1220 | { "Save as Event template","Speichere als Vorlage" }, |
1221 | { "Load Event template","Lade Termin Vorlage" }, | 1221 | { "Load Event template","Lade Termin Vorlage" }, |
1222 | { "Save as Journal template","Speichere als Journal Vorlage" }, | 1222 | { "Save as Journal template","Speichere als Journal Vorlage" }, |
1223 | { "Insert Journal template","Füge Journal Vorlage ein" }, | 1223 | { "Insert Journal template","Füge Journal Vorlage ein" }, |
1224 | { "Sub todos:<br>","Unter Todos:<br>" }, | 1224 | { "Sub todos:<br>","Unter Todos:<br>" }, |
1225 | { "Parent todo:<br>","Über Todo:<br>" }, | 1225 | { "Parent todo:<br>","Über Todo:<br>" }, |
1226 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, | 1226 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, |
1227 | { " completed"," erledigt" }, | 1227 | { " completed"," erledigt" }, |
1228 | { "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.info --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, | 1228 | { "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.info --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, |
1229 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, | 1229 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, |
1230 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, | 1230 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, |
1231 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, | 1231 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, |
1232 | { "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?" }, | 1232 | { "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?" }, |
1233 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, | 1233 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, |
1234 | { "Error","Fehler" }, | 1234 | { "Error","Fehler" }, |
1235 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, | 1235 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, |
1236 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, | 1236 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, |
1237 | { "Warning","Warnung" }, | 1237 | { "Warning","Warnung" }, |
1238 | { "Select week number","Wähle Wochen Nummer" }, | 1238 | { "Select week number","Wähle Wochen Nummer" }, |
1239 | { "Februar","Februar" }, | 1239 | { "Februar","Februar" }, |
1240 | { "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, | 1240 | { "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, |
1241 | { "W","W" }, | 1241 | { "W","W" }, |
1242 | { "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, | 1242 | { "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, |
1243 | { "T: %1","T: %1" }, | 1243 | { "T: %1","T: %1" }, |
1244 | { "Start: ","Start: " }, | 1244 | { "Start: ","Start: " }, |
1245 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, | 1245 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, |
1246 | { "Password for remote access:","Passwort für fernen Zugriff:" }, | 1246 | { "Password for remote access:","Passwort für fernen Zugriff:" }, |
1247 | { "Remote IP address:","Ferne IP Adresse:" }, | 1247 | { "Remote IP address:","Ferne IP Adresse:" }, |
1248 | { "Remote port number:","Ferne Port Nummer:" }, | 1248 | { "Remote port number:","Ferne Port Nummer:" }, |
1249 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, | 1249 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, |
1250 | { "Remote from: ","Fern von: " }, | 1250 | { "Remote from: ","Fern von: " }, |
1251 | { "Local from: ","Lokal von: " }, | 1251 | { "Local from: ","Lokal von: " }, |
1252 | { "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" }, | 1252 | { "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" }, |
1253 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, | 1253 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, |
1254 | { "Write back","Schreibe zurück" }, | 1254 | { "Write back","Schreibe zurück" }, |
1255 | { "KO/Pi Synchronization","KO/Pi Synchronisation" }, | 1255 | { "KO/Pi Synchronization","KO/Pi Synchronisation" }, |
1256 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, | 1256 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, |
1257 | { "Received sync request","Sync Anfrage erhalten" }, | 1257 | { "Received sync request","Sync Anfrage erhalten" }, |
1258 | { "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." }, | 1258 | { "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." }, |
1259 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, | 1259 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, |
1260 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, | 1260 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, |
1261 | { "Sending file...","Sende Datei..." }, | 1261 | { "Sending file...","Sende Datei..." }, |
1262 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, | 1262 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, |
1263 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, | 1263 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, |
1264 | { "Received %1 bytes","%1 Bytes erhalten" }, | 1264 | { "Received %1 bytes","%1 Bytes erhalten" }, |
1265 | { "Writing file to disk...","Speichere Datei..." }, | 1265 | { "Writing file to disk...","Speichere Datei..." }, |
1266 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, | 1266 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, |
1267 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, | 1267 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, |
1268 | { "Synchronize!","Synchronisiere!" }, | 1268 | { "Synchronize!","Synchronisiere!" }, |
1269 | { "High clock skew!","Großer Uhrzeitunterschied!" }, | 1269 | { "High clock skew!","Großer Uhrzeitunterschied!" }, |
1270 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, | 1270 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, |
1271 | { "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!" }, | 1271 | { "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!" }, |
1272 | { "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, | 1272 | { "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, |
1273 | { "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, | 1273 | { "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, |
1274 | { "List week view","Listenwochenansicht" }, | 1274 | { "List week view","Listenwochenansicht" }, |
1275 | { "List week","Listenwochenansicht" }, | 1275 | { "List week","Listenwochenansicht" }, |
1276 | { "Next Week","Nächste Woche" }, | 1276 | { "Next Week","Nächste Woche" }, |
1277 | { "Previous Week","Vorherige Woche" }, | 1277 | { "Previous Week","Vorherige Woche" }, |
1278 | { "No items were found matching\nyour search expression.\nUse the wildcard characters\n'*' and '?' where needed.","Keine Einträge gefunden die\ndem Suchausdruck entsprechen.\nBenutze Platzhalter Zeichen\n'*' und '?' wo benötigt." }, | 1278 | { "No items were found matching\nyour search expression.\nUse the wildcard characters\n'*' and '?' where needed.","Keine Einträge gefunden die\ndem Suchausdruck entsprechen.\nBenutze Platzhalter Zeichen\n'*' und '?' wo benötigt." }, |
1279 | { "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, | 1279 | { "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, |
1280 | { "Details","Details" }, | 1280 | { "Details","Details" }, |
1281 | { "Created time","Erstellt Zeit" }, | 1281 | { "Created time","Erstellt Zeit" }, |
1282 | { "Last modified time","Geändert Zeit" }, | 1282 | { "Last modified time","Geändert Zeit" }, |
1283 | { "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, | 1283 | { "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, |
1284 | { "View Options","Anzeige Optionen" }, | 1284 | { "View Options","Anzeige Optionen" }, |
1285 | { "<b>Created: ","<b>Erstellt am: " }, | 1285 | { "<b>Created: ","<b>Erstellt am: " }, |
1286 | { "<b>Last modified: ","<b>Zuletzt geändert am: " }, | 1286 | { "<b>Last modified: ","<b>Zuletzt geändert am: " }, |
1287 | { "Journal: ","Journal: " }, | 1287 | { "Journal: ","Journal: " }, |
1288 | { "yearly","jährlich" }, | 1288 | { "yearly","jährlich" }, |
1289 | { "(%1) ","%1-" }, | 1289 | { "(%1) ","%1-" }, |
1290 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, | 1290 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, |
1291 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, | 1291 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, |
1292 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, | 1292 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, |
1293 | { "Summary/Loc.","Titel/Ort" }, | 1293 | { "Summary/Loc.","Titel/Ort" }, |
1294 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, | 1294 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, |
1295 | { "Week Number","Wochennummer" }, | 1295 | { "Week Number","Wochennummer" }, |
1296 | { "Import","Importiere" }, | 1296 | { "Import","Importiere" }, |
1297 | { "Export","Exportiere" }, | 1297 | { "Export","Exportiere" }, |
1298 | { "Beam","Beame" }, | 1298 | { "Beam","Beame" }, |
1299 | { "Export selected","Exportiere Selektierte" }, | 1299 | { "Export selected","Exportiere Selektierte" }, |
1300 | { "As iCal (ics) file...","Als iCal (ics) Datei..." }, | 1300 | { "As iCal (ics) file...","Als iCal (ics) Datei..." }, |
1301 | { "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, | 1301 | { "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, |
1302 | { "Journal/Details...","Journale/Details..." }, | 1302 | { "Journal/Details...","Journale/Details..." }, |
1303 | { "Agenda View","Agenda Ansicht" }, | 1303 | { "Agenda View","Agenda Ansicht" }, |
1304 | { "Show current time","Zeige aktuelle Zeit" }, | 1304 | { "Show current time","Zeige aktuelle Zeit" }, |
1305 | { "Edit new item","Bearbeite neuen Eintrag" }, | 1305 | { "Edit new item","Bearbeite neuen Eintrag" }, |
1306 | { "Please select at least one\nof the types to search for:\n\nEvents\nTodos\nJournals","Bitte wählen Sie mindestens\neinen dieser Typen\num darin zu suchen:\n\nTermine\nTodos\nJournale" }, | 1306 | { "Please select at least one\nof the types to search for:\n\nEvents\nTodos\nJournals","Bitte wählen Sie mindestens\neinen dieser Typen\num darin zu suchen:\n\nTermine\nTodos\nJournale" }, |
1307 | { "There is no next alarm.","Es gibt keinen nächsten Alarm." }, | 1307 | { "There is no next alarm.","Es gibt keinen nächsten Alarm." }, |
1308 | { "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" }, | 1308 | { "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" }, |
1309 | { "The next alarm is in:\n","Der nächste Alarm ist in:\n" }, | 1309 | { "The next alarm is in:\n","Der nächste Alarm ist in:\n" }, |
1310 | { "%1 days\n","%1 Tagen\n" }, | 1310 | { "%1 days\n","%1 Tagen\n" }, |
1311 | { "1 day\n","1 Tag\n" }, | 1311 | { "1 day\n","1 Tag\n" }, |
1312 | { "%1 hours\n","%1 Stunden\n" }, | 1312 | { "%1 hours\n","%1 Stunden\n" }, |
1313 | { "1 hour\n","1 Stunde\n" }, | 1313 | { "1 hour\n","1 Stunde\n" }, |
1314 | { "%1 minutes\n","%1 Minuten\n" }, | 1314 | { "%1 minutes\n","%1 Minuten\n" }, |
1315 | { "1 minute\n","1 Minute\n" }, | 1315 | { "1 minute\n","1 Minute\n" }, |
1316 | { "Only one toolbar","Nur eine Toolbar" }, | 1316 | { "Only one toolbar","Nur eine Toolbar" }, |
1317 | { "Print","Drucke" }, | 1317 | { "Print","Drucke" }, |
1318 | { "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." }, | 1318 | { "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." }, |
1319 | { "There is nothing selected!","Es ist nichts ausgewählt!" }, | 1319 | { "There is nothing selected!","Es ist nichts ausgewählt!" }, |
1320 | { "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " }, | 1320 | { "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " }, |
1321 | { "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" }, | 1321 | { "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" }, |
1322 | { "This prints the view as you see it.\n(With the complete content, of course.)\nYou may change the print layout by resizing the view.\nPrint unscaled may print several pages\ndepending on the amount of data.\nPrint scaled down will print all on one page.\nPrint scaled up/down will print all on one page,\nbut will scale up the text to page boundaries,\nif the text is smaller than the page.\nYou can select page geometry setup in the next dialog.\n","Dies druckt die Ansicht wie man sie sieht.\n(Mit dem kompletten Inhalt natürlich.)\nMan kann das Layout ändern durch ändern der Fenstergröße.\nDrucke unskaliert druckt ggf. mehrere Seiten\nabhängig von der Menge der Daten.\nDrucke runterskaliert um auf eine Seite zu passen\ndruckt alles auf eine Seite.\nDrucke hoch/runterskaliert um genau auf eine Seite zu passen\nvergrößert den Text gegebenenfalls.\nDas Seitenlayout kann im nächsten Dialog gewählt werden.\n" }, | 1322 | { "This prints the view as you see it.\n(With the complete content, of course.)\nYou may change the print layout by resizing the view.\nPrint unscaled may print several pages\ndepending on the amount of data.\nPrint scaled down will print all on one page.\nPrint scaled up/down will print all on one page,\nbut will scale up the text to page boundaries,\nif the text is smaller than the page.\nYou can select page geometry setup in the next dialog.\n","Dies druckt die Ansicht wie man sie sieht.\n(Mit dem kompletten Inhalt natürlich.)\nMan kann das Layout ändern durch ändern der Fenstergröße.\nDrucke unskaliert druckt ggf. mehrere Seiten\nabhängig von der Menge der Daten.\nDrucke runterskaliert um auf eine Seite zu passen\ndruckt alles auf eine Seite.\nDrucke hoch/runterskaliert um genau auf eine Seite zu passen\nvergrößert den Text gegebenenfalls.\nDas Seitenlayout kann im nächsten Dialog gewählt werden.\n" }, |
1323 | { "KO/Pi Printout","KO/Pi Ausdruck" }, | 1323 | { "KO/Pi Printout","KO/Pi Ausdruck" }, |
1324 | { "Print unscaled","Drucke unskaliert" }, | 1324 | { "Print unscaled","Drucke unskaliert" }, |
1325 | { "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, | 1325 | { "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, |
1326 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, | 1326 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, |
1327 | { "Printout Mode","Druck Modus" }, | 1327 | { "Printout Mode","Druck Modus" }, |
1328 | { "Filter menu icon","Filtermenu Icon" }, | 1328 | { "Filter menu icon","Filtermenu Icon" }, |
1329 | { "<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n","<p><b>A+(shift oder ctrl)</b>: Zeige Zeit bis zum nächsten Alarm</p>\n" }, | ||
1330 | { "<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n","<p><b>N</b>: Wechsle zur nächsten Ansicht, die ein Icon in der Toolbar hat</p>\n" }, | ||
1331 | { "","" }, | ||
1332 | { "","" }, | ||
1333 | { "","" }, | ||
1334 | { "","" }, | ||
1335 | { "","" }, | ||
1336 | { "","" }, | ||
1337 | { "","" }, | ||
1338 | { "","" }, | ||
1339 | { "","" }, | ||
1340 | { "","" }, | ||
1329 | { "","" }, | 1341 | { "","" }, |
1330 | { "","" }, | 1342 | { "","" }, |
1331 | { "","" }, \ No newline at end of file | 1343 | { "","" }, \ No newline at end of file |
diff --git a/kabc/phonenumber.cpp b/kabc/phonenumber.cpp index abb3b3b..041effc 100644 --- a/kabc/phonenumber.cpp +++ b/kabc/phonenumber.cpp | |||
@@ -1,240 +1,236 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkabc. | 2 | This file is part of libkabc. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /* | 21 | /* |
22 | Enhanced Version of the file for platform independent KDE tools. | 22 | Enhanced Version of the file for platform independent KDE tools. |
23 | Copyright (c) 2004 Ulf Schenk | 23 | Copyright (c) 2004 Ulf Schenk |
24 | 24 | ||
25 | $Id$ | 25 | $Id$ |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include <kapplication.h> | 28 | #include <kapplication.h> |
29 | #include <klocale.h> | 29 | #include <klocale.h> |
30 | 30 | ||
31 | #include "phonenumber.h" | 31 | #include "phonenumber.h" |
32 | 32 | ||
33 | using namespace KABC; | 33 | using namespace KABC; |
34 | 34 | ||
35 | PhoneNumber::PhoneNumber() : | 35 | PhoneNumber::PhoneNumber() : |
36 | mType( Home ) | 36 | mType( Home ) |
37 | { | 37 | { |
38 | init(); | 38 | init(); |
39 | } | 39 | } |
40 | 40 | ||
41 | PhoneNumber::PhoneNumber( const QString &number, int type ) : | 41 | PhoneNumber::PhoneNumber( const QString &number, int type ) : |
42 | mType( type ), mNumber( number ) | 42 | mType( type ), mNumber( number ) |
43 | { | 43 | { |
44 | init(); | 44 | init(); |
45 | } | 45 | } |
46 | 46 | ||
47 | PhoneNumber::~PhoneNumber() | 47 | PhoneNumber::~PhoneNumber() |
48 | { | 48 | { |
49 | } | 49 | } |
50 | 50 | ||
51 | void PhoneNumber::init() | 51 | void PhoneNumber::init() |
52 | { | 52 | { |
53 | mId = KApplication::randomString( 8 ); | 53 | mId = KApplication::randomString( 8 ); |
54 | } | 54 | } |
55 | 55 | ||
56 | bool PhoneNumber::operator==( const PhoneNumber &p ) const | 56 | bool PhoneNumber::operator==( const PhoneNumber &p ) const |
57 | { | 57 | { |
58 | if ( mNumber != p.mNumber ) return false; | 58 | if ( mNumber != p.mNumber ) return false; |
59 | if ( mType != p.mType ) return false; | 59 | if ( mType != p.mType ) return false; |
60 | 60 | ||
61 | return true; | 61 | return true; |
62 | } | 62 | } |
63 | 63 | ||
64 | bool PhoneNumber::operator!=( const PhoneNumber &p ) const | 64 | bool PhoneNumber::operator!=( const PhoneNumber &p ) const |
65 | { | 65 | { |
66 | return !( p == *this ); | 66 | return !( p == *this ); |
67 | } | 67 | } |
68 | 68 | ||
69 | bool PhoneNumber::simplifyNumber() | 69 | bool PhoneNumber::simplifyNumber() |
70 | { | 70 | { |
71 | QString Number; | 71 | QString Number; |
72 | int i; | 72 | int i; |
73 | Number = mNumber.stripWhiteSpace (); | 73 | Number = mNumber.stripWhiteSpace (); |
74 | mNumber = ""; | 74 | mNumber = ""; |
75 | for ( i = 0; i < Number.length(); ++i) { | 75 | for ( i = 0; i < Number.length(); ++i) { |
76 | if ( Number.at(i).isDigit() || Number.at(i) == '+'|| Number.at(i) == '*'|| Number.at(i) == '#' ) | 76 | if ( Number.at(i).isDigit() || Number.at(i) == '+'|| Number.at(i) == '*'|| Number.at(i) == '#' ) |
77 | mNumber += Number.at(i); | 77 | mNumber += Number.at(i); |
78 | } | 78 | } |
79 | return ( mNumber.length() > 0 ); | 79 | return ( mNumber.length() > 0 ); |
80 | } | 80 | } |
81 | // make cellphone compatible | 81 | // make cellphone compatible |
82 | void PhoneNumber::simplifyType() | 82 | void PhoneNumber::simplifyType() |
83 | { | 83 | { |
84 | if ( mType & Fax ) mType = Fax; | 84 | if ( mType & Fax ) mType = Fax; |
85 | else if ( mType & Cell ) mType = Cell; | 85 | else if ( mType & Cell ) mType = Cell; |
86 | else if ( mType & Work ) mType = Work ; | 86 | else if ( mType & Work ) mType = Work ; |
87 | else if ( mType & Home ) mType = Home; | 87 | else if ( mType & Home ) mType = Home; |
88 | else mType = Pref; | 88 | else mType = Pref; |
89 | } | 89 | } |
90 | bool PhoneNumber::contains( const PhoneNumber &p ) | 90 | bool PhoneNumber::contains( const PhoneNumber &p ) |
91 | { | 91 | { |
92 | PhoneNumber myself; | 92 | PhoneNumber myself; |
93 | PhoneNumber other; | 93 | PhoneNumber other; |
94 | myself = *this; | 94 | myself = *this; |
95 | other = p; | 95 | other = p; |
96 | myself.simplifyNumber(); | 96 | myself.simplifyNumber(); |
97 | other.simplifyNumber(); | 97 | other.simplifyNumber(); |
98 | if ( myself.number() != other.number ()) | 98 | if ( myself.number() != other.number ()) |
99 | return false; | 99 | return false; |
100 | myself.simplifyType(); | 100 | myself.simplifyType(); |
101 | other.simplifyType(); | 101 | other.simplifyType(); |
102 | if ( myself.type() == other.type()) | 102 | if ( myself.type() == other.type()) |
103 | return true; | 103 | return true; |
104 | return false; | 104 | return false; |
105 | } | 105 | } |
106 | 106 | ||
107 | void PhoneNumber::setId( const QString &id ) | 107 | void PhoneNumber::setId( const QString &id ) |
108 | { | 108 | { |
109 | mId = id; | 109 | mId = id; |
110 | } | 110 | } |
111 | 111 | ||
112 | QString PhoneNumber::id() const | 112 | QString PhoneNumber::id() const |
113 | { | 113 | { |
114 | return mId; | 114 | return mId; |
115 | } | 115 | } |
116 | 116 | ||
117 | void PhoneNumber::setNumber( const QString &number ) | 117 | void PhoneNumber::setNumber( const QString &number ) |
118 | { | 118 | { |
119 | mNumber = number; | 119 | mNumber = number; |
120 | } | 120 | } |
121 | 121 | ||
122 | QString PhoneNumber::number() const | 122 | QString PhoneNumber::number() const |
123 | { | 123 | { |
124 | return mNumber; | 124 | return mNumber; |
125 | } | 125 | } |
126 | 126 | ||
127 | void PhoneNumber::setType( int type ) | 127 | void PhoneNumber::setType( int type ) |
128 | { | 128 | { |
129 | mType = type; | 129 | mType = type; |
130 | } | 130 | } |
131 | 131 | ||
132 | int PhoneNumber::type() const | 132 | int PhoneNumber::type() const |
133 | { | 133 | { |
134 | return mType; | 134 | return mType; |
135 | } | 135 | } |
136 | 136 | ||
137 | QString PhoneNumber::typeLabel() const | 137 | QString PhoneNumber::typeLabel() const |
138 | { | 138 | { |
139 | QString label; | 139 | QString label; |
140 | bool first = true; | 140 | bool first = true; |
141 | 141 | ||
142 | TypeList list = typeList(); | 142 | TypeList list = typeList(); |
143 | 143 | ||
144 | TypeList::Iterator it; | 144 | TypeList::Iterator it; |
145 | for ( it = list.begin(); it != list.end(); ++it ) { | 145 | for ( it = list.begin(); it != list.end(); ++it ) { |
146 | if ( ( type() & (*it) ) && ( (*it) != Pref ) ) { | 146 | if ( ( type() & (*it) ) && ( (*it) != Pref ) ) { |
147 | label.append( ( first ? "" : "/" ) + typeLabel( *it ) ); | 147 | label.append( ( first ? "" : "/" ) + typeLabel( *it ) ); |
148 | if ( first ) | 148 | if ( first ) |
149 | first = false; | 149 | first = false; |
150 | } | 150 | } |
151 | } | 151 | } |
152 | 152 | ||
153 | return label; | 153 | return label; |
154 | } | 154 | } |
155 | 155 | ||
156 | QString PhoneNumber::label() const | 156 | QString PhoneNumber::label() const |
157 | { | 157 | { |
158 | return typeLabel( type() ); | 158 | return typeLabel( type() ); |
159 | } | 159 | } |
160 | 160 | ||
161 | PhoneNumber::TypeList PhoneNumber::typeList() | 161 | PhoneNumber::TypeList PhoneNumber::typeList() |
162 | { | 162 | { |
163 | TypeList list; | 163 | TypeList list; |
164 | 164 | ||
165 | list << Home << Work << Msg << Pref << Voice << Fax << Cell << Video | 165 | list << Home << Work << Msg << Pref << Voice << Fax << Cell << Video |
166 | << Bbs << Modem << Car << Isdn << Pcs << Pager << Sip; | 166 | << Bbs << Modem << Car << Isdn << Pcs << Pager << Sip; |
167 | 167 | ||
168 | return list; | 168 | return list; |
169 | } | 169 | } |
170 | 170 | ||
171 | QString PhoneNumber::label( int type ) | 171 | QString PhoneNumber::label( int type ) |
172 | { | 172 | { |
173 | return typeLabel( type ); | 173 | return typeLabel( type ); |
174 | } | 174 | } |
175 | 175 | ||
176 | QString PhoneNumber::typeLabel( int type ) | 176 | QString PhoneNumber::typeLabel( int type ) |
177 | { | 177 | { |
178 | QString typeString; | 178 | QString typeString; |
179 | 179 | ||
180 | if ((type & Home) == Home) | 180 | if ((type & Home) == Home) |
181 | typeString += i18n("Home"); | 181 | typeString += i18n("Home"); |
182 | else if ((type & Work) == Work) | 182 | else if ((type & Work) == Work) |
183 | typeString += i18n("Work"); | 183 | typeString += i18n("Work"); |
184 | 184 | ||
185 | if (!typeString.isEmpty()) | 185 | if (!typeString.isEmpty()) |
186 | typeString += " "; | 186 | typeString += " "; |
187 | |||
188 | if ((type & Cell) == Cell) | 187 | if ((type & Cell) == Cell) |
189 | typeString += i18n("Mobile"); | 188 | typeString += i18n("Mobile") +" "; |
190 | else if ((type & Fax) == Fax) | 189 | if ((type & Sip) == Sip) |
190 | typeString += i18n("SIP")+" "; | ||
191 | if ((type & Car) == Car) | ||
192 | typeString += i18n("Car")+" "; | ||
193 | |||
194 | if ((type & Fax) == Fax) | ||
191 | typeString += i18n("Fax"); | 195 | typeString += i18n("Fax"); |
192 | else if ((type & Msg) == Msg) | 196 | else if ((type & Msg) == Msg) |
193 | typeString += i18n("Messenger"); | 197 | typeString += i18n("Messenger"); |
194 | else if ((type & Voice) == Voice) { | ||
195 | // add nothing in case of the Voice flag | ||
196 | // typeString += i18n("Voice"); | ||
197 | } | ||
198 | else if ((type & Video) == Video) | 198 | else if ((type & Video) == Video) |
199 | typeString += i18n("Video"); | 199 | typeString += i18n("Video"); |
200 | else if ((type & Bbs) == Bbs) | 200 | else if ((type & Bbs) == Bbs) |
201 | typeString += i18n("Mailbox"); | 201 | typeString += i18n("Mailbox"); |
202 | else if ((type & Modem) == Modem) | 202 | else if ((type & Modem) == Modem) |
203 | typeString += i18n("Modem"); | 203 | typeString += i18n("Modem"); |
204 | else if ((type & Car) == Car) | ||
205 | typeString += i18n("Car"); | ||
206 | else if ((type & Isdn) == Isdn) | 204 | else if ((type & Isdn) == Isdn) |
207 | typeString += i18n("ISDN"); | 205 | typeString += i18n("ISDN"); |
208 | else if ((type & Pcs) == Pcs) | 206 | else if ((type & Pcs) == Pcs) |
209 | typeString += i18n("PCS"); | 207 | typeString += i18n("PCS"); |
210 | else if ((type & Pager) == Pager) | 208 | else if ((type & Pager) == Pager) |
211 | typeString += i18n("Pager"); | 209 | typeString += i18n("Pager"); |
212 | else if ((type & Sip) == Sip) | ||
213 | typeString += i18n("SIP"); | ||
214 | |||
215 | // add the prefered flag | 210 | // add the prefered flag |
216 | if (!typeString.isEmpty()) | ||
217 | typeString += " "; | ||
218 | /* | 211 | /* |
219 | if ((type & Pref) == Pref) | 212 | if ((type & Pref) == Pref) |
220 | typeString += i18n("(p)"); | 213 | typeString += i18n("(p)"); |
221 | */ | 214 | */ |
222 | //if we still have no match, return "other" | 215 | //if we still have no match, return "other" |
223 | if (typeString.isEmpty()) | 216 | if (typeString.isEmpty()) { |
224 | return i18n("Other"); | 217 | if ((type & Voice) == Voice) |
225 | 218 | return i18n("Voice"); | |
226 | 219 | else | |
227 | return typeString; | 220 | return i18n("Other"); |
221 | } | ||
222 | |||
223 | return typeString.stripWhiteSpace(); | ||
228 | } | 224 | } |
229 | 225 | ||
230 | QDataStream &KABC::operator<<( QDataStream &s, const PhoneNumber &phone ) | 226 | QDataStream &KABC::operator<<( QDataStream &s, const PhoneNumber &phone ) |
231 | { | 227 | { |
232 | return s << phone.mId << phone.mType << phone.mNumber; | 228 | return s << phone.mId << phone.mType << phone.mNumber; |
233 | } | 229 | } |
234 | 230 | ||
235 | QDataStream &KABC::operator>>( QDataStream &s, PhoneNumber &phone ) | 231 | QDataStream &KABC::operator>>( QDataStream &s, PhoneNumber &phone ) |
236 | { | 232 | { |
237 | s >> phone.mId >> phone.mType >> phone.mNumber; | 233 | s >> phone.mId >> phone.mType >> phone.mNumber; |
238 | 234 | ||
239 | return s; | 235 | return s; |
240 | } | 236 | } |
diff --git a/kaddressbook/emaileditwidget.cpp b/kaddressbook/emaileditwidget.cpp index 0e01b02..e72face 100644 --- a/kaddressbook/emaileditwidget.cpp +++ b/kaddressbook/emaileditwidget.cpp | |||
@@ -1,275 +1,277 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KAddressBook. | 2 | This file is part of KAddressBook. |
3 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> | 3 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <qcheckbox.h> | 24 | #include <qcheckbox.h> |
25 | #include <qlabel.h> | 25 | #include <qlabel.h> |
26 | #include <qlayout.h> | 26 | #include <qlayout.h> |
27 | #include <qpushbutton.h> | 27 | #include <qpushbutton.h> |
28 | #include <qstring.h> | 28 | #include <qstring.h> |
29 | #include <qtoolbutton.h> | 29 | #include <qtoolbutton.h> |
30 | #include <qtooltip.h> | 30 | #include <qtooltip.h> |
31 | #include <qlistbox.h> | 31 | #include <qlistbox.h> |
32 | 32 | ||
33 | #ifndef KAB_EMBEDDED | 33 | #ifndef KAB_EMBEDDED |
34 | #include <kaccelmanager.h> | 34 | #include <kaccelmanager.h> |
35 | #endif //KAB_EMBEDDED | 35 | #endif //KAB_EMBEDDED |
36 | #include <kconfig.h> | 36 | #include <kconfig.h> |
37 | #include <kcombobox.h> | 37 | #include <kcombobox.h> |
38 | #include <kdebug.h> | 38 | #include <kdebug.h> |
39 | #include <kglobal.h> | 39 | #include <kglobal.h> |
40 | #include <kdialog.h> | 40 | #include <kdialog.h> |
41 | #include <kiconloader.h> | 41 | #include <kiconloader.h> |
42 | #include <klineedit.h> | 42 | #include <klineedit.h> |
43 | #include <klocale.h> | 43 | #include <klocale.h> |
44 | #include <kmessagebox.h> | 44 | #include <kmessagebox.h> |
45 | 45 | ||
46 | #include "emaileditwidget.h" | 46 | #include "emaileditwidget.h" |
47 | 47 | ||
48 | EmailEditWidget::EmailEditWidget( QWidget *parent, const char *name ) | 48 | EmailEditWidget::EmailEditWidget( QWidget *parent, const char *name ) |
49 | : QWidget( parent, name ) | 49 | : QWidget( parent, name ) |
50 | { | 50 | { |
51 | QGridLayout *topLayout = new QGridLayout( this, 2, 2 ); | 51 | QGridLayout *topLayout = new QGridLayout( this, 2, 2 ); |
52 | topLayout->setSpacing( KDialog::spacingHint() ); | 52 | topLayout->setSpacing( KDialog::spacingHint() ); |
53 | QLabel* label = new QLabel( this ); | 53 | QLabel* label = new QLabel( this ); |
54 | 54 | ||
55 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "mail_send", KIcon::Desktop, 0) ); | 55 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "mail_send", KIcon::Desktop, 0) ); |
56 | 56 | ||
57 | topLayout->addWidget( label, 0, 0 ); | 57 | topLayout->addWidget( label, 0, 0 ); |
58 | label->setAlignment( AlignCenter ); | 58 | label->setAlignment( AlignCenter ); |
59 | QPushButton *editButton = new QPushButton( i18n( "Edit Email Addresses..." ), this); | 59 | QPushButton *editButton = new QPushButton( i18n( "Edit Email Addresses..." ), this); |
60 | topLayout->addWidget( editButton, 0, 1 ); | 60 | topLayout->addWidget( editButton, 0, 1 ); |
61 | label = new QLabel( i18n( "Email:" ), this ); | 61 | label = new QLabel( i18n( "Email:" ), this ); |
62 | topLayout->addWidget( label, 1, 0 ); | 62 | topLayout->addWidget( label, 1, 0 ); |
63 | 63 | ||
64 | mEmailEdit = new KLineEdit( this ); | 64 | mEmailEdit = new KLineEdit( this ); |
65 | connect( mEmailEdit, SIGNAL( textChanged( const QString& ) ), | 65 | connect( mEmailEdit, SIGNAL( textChanged( const QString& ) ), |
66 | SLOT( textChanged( const QString& ) ) ); | 66 | SLOT( textChanged( const QString& ) ) ); |
67 | connect( mEmailEdit, SIGNAL( textChanged( const QString& ) ), | 67 | connect( mEmailEdit, SIGNAL( textChanged( const QString& ) ), |
68 | SIGNAL( modified() ) ); | 68 | SIGNAL( modified() ) ); |
69 | label->setBuddy( mEmailEdit ); | 69 | label->setBuddy( mEmailEdit ); |
70 | topLayout->addWidget( mEmailEdit, 1, 1 ); | 70 | topLayout->addWidget( mEmailEdit, 1, 1 ); |
71 | 71 | ||
72 | 72 | ||
73 | connect( editButton, SIGNAL( clicked() ), SLOT( edit() ) ); | 73 | connect( editButton, SIGNAL( clicked() ), SLOT( edit() ) ); |
74 | 74 | ||
75 | topLayout->activate(); | 75 | topLayout->activate(); |
76 | } | 76 | } |
77 | 77 | ||
78 | EmailEditWidget::~EmailEditWidget() | 78 | EmailEditWidget::~EmailEditWidget() |
79 | { | 79 | { |
80 | } | 80 | } |
81 | 81 | ||
82 | void EmailEditWidget::setEmails( const QStringList &list ) | 82 | void EmailEditWidget::setEmails( const QStringList &list ) |
83 | { | 83 | { |
84 | mEmailList = list; | 84 | mEmailList = list; |
85 | 85 | ||
86 | bool blocked = mEmailEdit->signalsBlocked(); | 86 | bool blocked = mEmailEdit->signalsBlocked(); |
87 | mEmailEdit->blockSignals( true ); | 87 | mEmailEdit->blockSignals( true ); |
88 | if ( list.count() > 0 ) | 88 | if ( list.count() > 0 ) |
89 | mEmailEdit->setText( list[ 0 ] ); | 89 | mEmailEdit->setText( list[ 0 ] ); |
90 | else | 90 | else |
91 | mEmailEdit->setText( "" ); | 91 | mEmailEdit->setText( "" ); |
92 | mEmailEdit->blockSignals( blocked ); | 92 | mEmailEdit->blockSignals( blocked ); |
93 | } | 93 | } |
94 | 94 | ||
95 | QStringList EmailEditWidget::emails() | 95 | QStringList EmailEditWidget::emails() |
96 | { | 96 | { |
97 | if ( mEmailEdit->text().isEmpty() ) { | 97 | if ( mEmailEdit->text().isEmpty() ) { |
98 | if ( mEmailList.count() > 0 ) | 98 | if ( mEmailList.count() > 0 ) |
99 | mEmailList.remove( mEmailList.begin() ); | 99 | mEmailList.remove( mEmailList.begin() ); |
100 | } else { | 100 | } else { |
101 | if ( mEmailList.count() > 0 ) | 101 | if ( mEmailList.count() > 0 ) |
102 | mEmailList.remove( mEmailList.begin() ); | 102 | mEmailList.remove( mEmailList.begin() ); |
103 | 103 | ||
104 | mEmailList.prepend( mEmailEdit->text() ); | 104 | mEmailList.prepend( mEmailEdit->text() ); |
105 | } | 105 | } |
106 | 106 | ||
107 | return mEmailList; | 107 | return mEmailList; |
108 | } | 108 | } |
109 | 109 | ||
110 | void EmailEditWidget::edit() | 110 | void EmailEditWidget::edit() |
111 | { | 111 | { |
112 | EmailEditDialog dlg( mEmailList, this ); | 112 | EmailEditDialog dlg( mEmailList, this ); |
113 | 113 | ||
114 | if ( dlg.exec() ) { | 114 | if ( dlg.exec() ) { |
115 | if ( dlg.changed() ) { | 115 | if ( dlg.changed() ) { |
116 | mEmailList = dlg.emails(); | 116 | mEmailList = dlg.emails(); |
117 | mEmailEdit->setText( mEmailList[ 0 ] ); | 117 | mEmailEdit->setText( mEmailList[ 0 ] ); |
118 | emit modified(); | 118 | emit modified(); |
119 | } | 119 | } |
120 | } | 120 | } |
121 | } | 121 | } |
122 | 122 | ||
123 | void EmailEditWidget::textChanged( const QString &text ) | 123 | void EmailEditWidget::textChanged( const QString &text ) |
124 | { | 124 | { |
125 | if ( mEmailList.count() > 0 ) | 125 | if ( mEmailList.count() > 0 ) |
126 | mEmailList.remove( mEmailList.begin() ); | 126 | mEmailList.remove( mEmailList.begin() ); |
127 | 127 | ||
128 | mEmailList.prepend( text ); | 128 | mEmailList.prepend( text ); |
129 | } | 129 | } |
130 | 130 | ||
131 | 131 | ||
132 | EmailEditDialog::EmailEditDialog( const QStringList &list, QWidget *parent, | 132 | EmailEditDialog::EmailEditDialog( const QStringList &list, QWidget *parent, |
133 | const char *name ) | 133 | const char *name ) |
134 | : KDialogBase( KDialogBase::Plain, i18n( "Edit Email Addresses" ), | 134 | : KDialogBase( KDialogBase::Plain, i18n( "Edit Email Addresses" ), |
135 | KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, | 135 | KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, |
136 | parent, name, true ) | 136 | parent, name, true ) |
137 | { | 137 | { |
138 | QWidget *page = plainPage(); | 138 | QWidget *page = plainPage(); |
139 | 139 | ||
140 | QGridLayout *topLayout = new QGridLayout( page, 4, 3 ); | 140 | QGridLayout *topLayout = new QGridLayout( page, 4, 3 ); |
141 | 141 | ||
142 | QLabel *label = new QLabel( i18n( "Email address:" ), page ); | 142 | QLabel *label = new QLabel( i18n( "Email address:" ), page ); |
143 | topLayout->addWidget( label, 0, 0 ); | 143 | topLayout->addWidget( label, 0, 0 ); |
144 | 144 | ||
145 | mEmailEdit = new KLineEdit( page ); | 145 | mEmailEdit = new KLineEdit( page ); |
146 | label->setBuddy( mEmailEdit ); | 146 | label->setBuddy( mEmailEdit ); |
147 | topLayout->addWidget( mEmailEdit, 0, 1 ); | 147 | topLayout->addWidget( mEmailEdit, 0, 1 ); |
148 | connect( mEmailEdit, SIGNAL( returnPressed() ), SLOT( add() ) ); | 148 | connect( mEmailEdit, SIGNAL( returnPressed() ), SLOT( add() ) ); |
149 | connect( mEmailEdit, SIGNAL( textChanged( const QString& ) ), | 149 | connect( mEmailEdit, SIGNAL( textChanged( const QString& ) ), |
150 | SLOT( emailChanged() ) ); | 150 | SLOT( emailChanged() ) ); |
151 | 151 | ||
152 | mAddButton = new QPushButton( i18n( "Add" ), page ); | 152 | mAddButton = new QPushButton( i18n( "Add" ), page ); |
153 | mAddButton->setEnabled( false ); | 153 | mAddButton->setEnabled( false ); |
154 | connect( mAddButton, SIGNAL( clicked() ), SLOT( add() ) ); | 154 | connect( mAddButton, SIGNAL( clicked() ), SLOT( add() ) ); |
155 | topLayout->addWidget( mAddButton, 0, 2 ); | 155 | topLayout->addWidget( mAddButton, 0, 2 ); |
156 | 156 | ||
157 | mEmailListBox = new QListBox( page ); | 157 | mEmailListBox = new QListBox( page ); |
158 | 158 | ||
159 | // Make sure there is room for the scrollbar | 159 | // Make sure there is room for the scrollbar |
160 | mEmailListBox->setMinimumHeight( mEmailListBox->sizeHint().height() + 30 ); | 160 | mEmailListBox->setMinimumHeight( mEmailListBox->sizeHint().height() + 30 ); |
161 | connect( mEmailListBox, SIGNAL( highlighted( int ) ), | 161 | connect( mEmailListBox, SIGNAL( highlighted( int ) ), |
162 | SLOT( selectionChanged( int ) ) ); | 162 | SLOT( selectionChanged( int ) ) ); |
163 | topLayout->addMultiCellWidget( mEmailListBox, 1, 3, 0, 1 ); | 163 | topLayout->addMultiCellWidget( mEmailListBox, 1, 3, 0, 1 ); |
164 | 164 | ||
165 | mEditButton = new QPushButton( i18n( "Change" ), page ); | 165 | mEditButton = new QPushButton( i18n( "Change" ), page ); |
166 | connect( mEditButton, SIGNAL( clicked() ), SLOT( edit() ) ); | 166 | connect( mEditButton, SIGNAL( clicked() ), SLOT( edit() ) ); |
167 | topLayout->addWidget( mEditButton, 1, 2 ); | 167 | topLayout->addWidget( mEditButton, 1, 2 ); |
168 | 168 | ||
169 | mRemoveButton = new QPushButton( i18n( "Remove" ), page ); | 169 | mRemoveButton = new QPushButton( i18n( "Remove" ), page ); |
170 | connect( mRemoveButton, SIGNAL( clicked() ), SLOT( remove() ) ); | 170 | connect( mRemoveButton, SIGNAL( clicked() ), SLOT( remove() ) ); |
171 | topLayout->addWidget( mRemoveButton, 2, 2 ); | 171 | topLayout->addWidget( mRemoveButton, 2, 2 ); |
172 | 172 | ||
173 | mStandardButton = new QPushButton( i18n( "Set Standard" ), page ); | 173 | mStandardButton = new QPushButton( i18n( "Set Standard" ), page ); |
174 | connect( mStandardButton, SIGNAL( clicked() ), SLOT( standard() ) ); | 174 | connect( mStandardButton, SIGNAL( clicked() ), SLOT( standard() ) ); |
175 | topLayout->addWidget( mStandardButton, 3, 2 ); | 175 | topLayout->addWidget( mStandardButton, 3, 2 ); |
176 | 176 | ||
177 | topLayout->activate(); | 177 | topLayout->activate(); |
178 | QStringList items = list; | 178 | QStringList items = list; |
179 | 179 | ||
180 | qDebug("EmailEditDialog::EmailEditDialog has to be changed (lowPrio)"); | 180 | qDebug("EmailEditDialog::EmailEditDialog has to be changed (lowPrio)"); |
181 | //US must be fixed !!! | 181 | //US must be fixed !!! |
182 | /* | 182 | /* |
183 | if ( items.remove( "" ) > 0 ) | 183 | if ( items.remove( "" ) > 0 ) |
184 | mChanged = true; | 184 | mChanged = true; |
185 | else | 185 | else |
186 | mChanged = false; | 186 | mChanged = false; |
187 | */ | 187 | */ |
188 | 188 | ||
189 | mEmailListBox->insertStringList( items ); | 189 | mEmailListBox->insertStringList( items ); |
190 | // set default state | 190 | // set default state |
191 | selectionChanged( -1 ); | 191 | selectionChanged( -1 ); |
192 | mEmailEdit->setFocus(); | ||
192 | 193 | ||
193 | #ifndef KAB_EMBEDDED | 194 | #ifndef KAB_EMBEDDED |
194 | KAcceleratorManager::manage( this ); | 195 | KAcceleratorManager::manage( this ); |
195 | #else //KAB_EMBEDDED | 196 | #else //KAB_EMBEDDED |
196 | //US qDebug("EmailEditDialog::EmailEditDialog has to be changed"); | 197 | //US qDebug("EmailEditDialog::EmailEditDialog has to be changed"); |
197 | #endif //KAB_EMBEDDED | 198 | #endif //KAB_EMBEDDED |
198 | 199 | ||
199 | } | 200 | } |
200 | 201 | ||
201 | EmailEditDialog::~EmailEditDialog() | 202 | EmailEditDialog::~EmailEditDialog() |
202 | { | 203 | { |
203 | } | 204 | } |
204 | 205 | ||
205 | QStringList EmailEditDialog::emails() const | 206 | QStringList EmailEditDialog::emails() const |
206 | { | 207 | { |
207 | QStringList emails; | 208 | QStringList emails; |
208 | 209 | ||
209 | for ( uint i = 0; i < mEmailListBox->count(); ++i ) | 210 | for ( uint i = 0; i < mEmailListBox->count(); ++i ) |
210 | emails << mEmailListBox->text( i ); | 211 | emails << mEmailListBox->text( i ); |
211 | 212 | ||
212 | return emails; | 213 | return emails; |
213 | } | 214 | } |
214 | 215 | ||
215 | void EmailEditDialog::add() | 216 | void EmailEditDialog::add() |
216 | { | 217 | { |
217 | mEmailListBox->insertItem( mEmailEdit->text() ); | 218 | mEmailListBox->insertItem( mEmailEdit->text() ); |
218 | 219 | ||
219 | mEmailEdit->clear(); | 220 | mEmailEdit->clear(); |
220 | mEmailEdit->setFocus(); | 221 | mEmailEdit->setFocus(); |
221 | 222 | ||
222 | mChanged = true; | 223 | mChanged = true; |
223 | } | 224 | } |
224 | 225 | ||
225 | void EmailEditDialog::edit() | 226 | void EmailEditDialog::edit() |
226 | { | 227 | { |
227 | mEmailEdit->setText( mEmailListBox->currentText() ); | 228 | mEmailEdit->setText( mEmailListBox->currentText() ); |
229 | mEmailListBox->removeItem( mEmailListBox->currentItem() ); | ||
228 | mEmailEdit->setFocus(); | 230 | mEmailEdit->setFocus(); |
229 | } | 231 | } |
230 | 232 | ||
231 | void EmailEditDialog::remove() | 233 | void EmailEditDialog::remove() |
232 | { | 234 | { |
233 | QString address = mEmailListBox->currentText(); | 235 | QString address = mEmailListBox->currentText(); |
234 | 236 | ||
235 | QString text = i18n( "<qt>Are you sure that you want to remove the email address <b>%1</b>?</qt>" ).arg( address ); | 237 | QString text = i18n( "<qt>Are you sure that you want to remove the email address <b>%1</b>?</qt>" ).arg( address ); |
236 | QString caption = i18n( "Confirm Remove" ); | 238 | QString caption = i18n( "Confirm Remove" ); |
237 | 239 | ||
238 | if ( KMessageBox::questionYesNo( this, text, caption ) == KMessageBox::Yes ) { | 240 | if ( KMessageBox::questionYesNo( this, text, caption ) == KMessageBox::Yes ) { |
239 | mEmailListBox->removeItem( mEmailListBox->currentItem() ); | 241 | mEmailListBox->removeItem( mEmailListBox->currentItem() ); |
240 | mChanged = true; | 242 | mChanged = true; |
241 | } | 243 | } |
242 | } | 244 | } |
243 | 245 | ||
244 | bool EmailEditDialog::changed() const | 246 | bool EmailEditDialog::changed() const |
245 | { | 247 | { |
246 | return mChanged; | 248 | return mChanged; |
247 | } | 249 | } |
248 | 250 | ||
249 | void EmailEditDialog::standard() | 251 | void EmailEditDialog::standard() |
250 | { | 252 | { |
251 | QString text = mEmailListBox->currentText(); | 253 | QString text = mEmailListBox->currentText(); |
252 | mEmailListBox->removeItem( mEmailListBox->currentItem() ); | 254 | mEmailListBox->removeItem( mEmailListBox->currentItem() ); |
253 | mEmailListBox->insertItem( text, 0 ); | 255 | mEmailListBox->insertItem( text, 0 ); |
254 | mEmailListBox->setSelected( 0, true ); | 256 | mEmailListBox->setSelected( 0, true ); |
255 | 257 | ||
256 | mChanged = true; | 258 | mChanged = true; |
257 | } | 259 | } |
258 | 260 | ||
259 | void EmailEditDialog::selectionChanged( int index ) | 261 | void EmailEditDialog::selectionChanged( int index ) |
260 | { | 262 | { |
261 | bool value = ( index >= 0 ); // An item is selected | 263 | bool value = ( index >= 0 ); // An item is selected |
262 | 264 | ||
263 | mRemoveButton->setEnabled( value ); | 265 | mRemoveButton->setEnabled( value ); |
264 | mEditButton->setEnabled( value ); | 266 | mEditButton->setEnabled( value ); |
265 | mStandardButton->setEnabled( value ); | 267 | mStandardButton->setEnabled( value ); |
266 | } | 268 | } |
267 | 269 | ||
268 | void EmailEditDialog::emailChanged() | 270 | void EmailEditDialog::emailChanged() |
269 | { | 271 | { |
270 | mAddButton->setEnabled( !mEmailEdit->text().isEmpty() ); | 272 | mAddButton->setEnabled( !mEmailEdit->text().isEmpty() ); |
271 | } | 273 | } |
272 | 274 | ||
273 | #ifndef KAB_EMBEDDED | 275 | #ifndef KAB_EMBEDDED |
274 | #include "emaileditwidget.moc" | 276 | #include "emaileditwidget.moc" |
275 | #endif //KAB_EMBEDDED | 277 | #endif //KAB_EMBEDDED |
diff --git a/kaddressbook/phoneeditwidget.cpp b/kaddressbook/phoneeditwidget.cpp index 19bb676..a435959 100644 --- a/kaddressbook/phoneeditwidget.cpp +++ b/kaddressbook/phoneeditwidget.cpp | |||
@@ -1,530 +1,553 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KAddressBook. | 2 | This file is part of KAddressBook. |
3 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> | 3 | Copyright (c) 2002 Mike Pilone <mpilone@slac.com> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <qlayout.h> | 24 | #include <qlayout.h> |
25 | #include <qlabel.h> | 25 | #include <qlabel.h> |
26 | #include <qtooltip.h> | 26 | #include <qtooltip.h> |
27 | #include <qpushbutton.h> | 27 | #include <qpushbutton.h> |
28 | #include <qcheckbox.h> | 28 | #include <qcheckbox.h> |
29 | #include <qstring.h> | 29 | #include <qstring.h> |
30 | #include <qlistbox.h> | 30 | #include <qlistbox.h> |
31 | #include <qlistview.h> | 31 | #include <qlistview.h> |
32 | #include <qbuttongroup.h> | 32 | #include <qbuttongroup.h> |
33 | 33 | ||
34 | #include <kbuttonbox.h> | 34 | #include <kbuttonbox.h> |
35 | #include <klistview.h> | 35 | #include <klistview.h> |
36 | #include <kapplication.h> | 36 | #include <kapplication.h> |
37 | #include <qapplication.h> | 37 | #include <qapplication.h> |
38 | #include <kconfig.h> | 38 | #include <kconfig.h> |
39 | #include <klineedit.h> | 39 | #include <klineedit.h> |
40 | #include <kcombobox.h> | 40 | #include <kcombobox.h> |
41 | #include <klocale.h> | 41 | #include <klocale.h> |
42 | #include <kdebug.h> | 42 | #include <kdebug.h> |
43 | #include <kglobal.h> | 43 | #include <kglobal.h> |
44 | #include <kiconloader.h> | 44 | #include <kiconloader.h> |
45 | 45 | ||
46 | #include <kabc/phonenumber.h> | 46 | #include <kabc/phonenumber.h> |
47 | 47 | ||
48 | #include "typecombo.h" | 48 | #include "typecombo.h" |
49 | 49 | ||
50 | #include "phoneeditwidget.h" | 50 | #include "phoneeditwidget.h" |
51 | 51 | ||
52 | PhoneEditWidget::PhoneEditWidget( QWidget *parent, const char *name ) | 52 | PhoneEditWidget::PhoneEditWidget( QWidget *parent, const char *name ) |
53 | : QWidget( parent, name ) | 53 | : QWidget( parent, name ) |
54 | { | 54 | { |
55 | QGridLayout *layout = new QGridLayout( this, 4, 1 ); | 55 | QGridLayout *layout = new QGridLayout( this, 4, 1 ); |
56 | //US layout->setSpacing( KDialog::spacingHint() ); | 56 | //US layout->setSpacing( KDialog::spacingHint() ); |
57 | layout->setSpacing( KDialogBase::spacingHintSmall() ); | 57 | layout->setSpacing( KDialogBase::spacingHintSmall() ); |
58 | 58 | ||
59 | 59 | ||
60 | 60 | ||
61 | QLabel* label = new QLabel( this ); | 61 | QLabel* label = new QLabel( this ); |
62 | //US loadIcon call is ambiguous. Add one more parameter | 62 | //US loadIcon call is ambiguous. Add one more parameter |
63 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop ) ); | 63 | //US label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop ) ); |
64 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop, 0 ) ); | 64 | label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop, 0 ) ); |
65 | label->setAlignment( AlignCenter ); | 65 | label->setAlignment( AlignCenter ); |
66 | //US layout->addMultiCellWidget( label, 0, 1, 3, 3 ); | 66 | //US layout->addMultiCellWidget( label, 0, 1, 3, 3 ); |
67 | layout->addWidget( label, 0, 0 ); | 67 | layout->addWidget( label, 0, 0 ); |
68 | 68 | ||
69 | QPushButton *editButton = new QPushButton( i18n( "Edit Phone Numbers..." ), | 69 | QPushButton *editButton = new QPushButton( i18n( "Edit Phone Numbers..." ), |
70 | this ); | 70 | this ); |
71 | if ( QApplication::desktop()->width() < 640 ) | 71 | if ( QApplication::desktop()->width() < 640 ) |
72 | layout->addWidget( editButton, 0, 1 ); | 72 | layout->addWidget( editButton, 0, 1 ); |
73 | else | 73 | else |
74 | layout->addMultiCellWidget( editButton, 0, 0, 1, 3); | 74 | layout->addMultiCellWidget( editButton, 0, 0, 1, 3); |
75 | 75 | ||
76 | mPrefCombo = new PhoneTypeCombo( mPhoneList, this ); | 76 | mPrefCombo = new PhoneTypeCombo( mPhoneList, this ); |
77 | mPrefEdit = new KLineEdit( this ); | 77 | mPrefEdit = new KLineEdit( this ); |
78 | //mPrefEdit->setMinimumWidth( int(mPrefEdit->sizeHint().width() * 1.5) ); | 78 | //mPrefEdit->setMinimumWidth( int(mPrefEdit->sizeHint().width() * 1.5) ); |
79 | mPrefCombo->setLineEdit( mPrefEdit ); | 79 | mPrefCombo->setLineEdit( mPrefEdit ); |
80 | layout->addWidget( mPrefCombo, 1, 0 ); | 80 | layout->addWidget( mPrefCombo, 1, 0 ); |
81 | layout->addWidget( mPrefEdit, 1, 1 ); | 81 | layout->addWidget( mPrefEdit, 1, 1 ); |
82 | int x = 1, y = 2; | 82 | int x = 1, y = 2; |
83 | if ( QApplication::desktop()->width() < 640 ) { | 83 | if ( QApplication::desktop()->width() < 640 ) { |
84 | ++x; | 84 | ++x; |
85 | y = 0; | 85 | y = 0; |
86 | } | 86 | } |
87 | mSecondCombo = new PhoneTypeCombo( mPhoneList, this ); | 87 | mSecondCombo = new PhoneTypeCombo( mPhoneList, this ); |
88 | mSecondEdit = new KLineEdit( this ); | 88 | mSecondEdit = new KLineEdit( this ); |
89 | mSecondCombo->setLineEdit( mSecondEdit ); | 89 | mSecondCombo->setLineEdit( mSecondEdit ); |
90 | layout->addWidget( mSecondCombo, x, y++ ); | 90 | layout->addWidget( mSecondCombo, x, y++ ); |
91 | layout->addWidget( mSecondEdit, x, y++ ); | 91 | layout->addWidget( mSecondEdit, x, y++ ); |
92 | 92 | ||
93 | y = 0; | 93 | y = 0; |
94 | ++x; | 94 | ++x; |
95 | mThirdCombo = new PhoneTypeCombo( mPhoneList, this ); | 95 | mThirdCombo = new PhoneTypeCombo( mPhoneList, this ); |
96 | mThirdEdit = new KLineEdit( this ); | 96 | mThirdEdit = new KLineEdit( this ); |
97 | mThirdCombo->setLineEdit( mThirdEdit ); | 97 | mThirdCombo->setLineEdit( mThirdEdit ); |
98 | layout->addWidget( mThirdCombo, x, y++ ); | 98 | layout->addWidget( mThirdCombo, x, y++ ); |
99 | layout->addWidget( mThirdEdit, x, y++ ); | 99 | layout->addWidget( mThirdEdit, x, y++ ); |
100 | if ( QApplication::desktop()->width() < 640 ) { | 100 | if ( QApplication::desktop()->width() < 640 ) { |
101 | ++x; | 101 | ++x; |
102 | y = 0; | 102 | y = 0; |
103 | } | 103 | } |
104 | mFourthCombo = new PhoneTypeCombo( mPhoneList, this ); | 104 | mFourthCombo = new PhoneTypeCombo( mPhoneList, this ); |
105 | mFourthEdit = new KLineEdit( this ); | 105 | mFourthEdit = new KLineEdit( this ); |
106 | mFourthCombo->setLineEdit( mFourthEdit ); | 106 | mFourthCombo->setLineEdit( mFourthEdit ); |
107 | layout->addWidget( mFourthCombo, x, y++ ); | 107 | layout->addWidget( mFourthCombo, x, y++ ); |
108 | layout->addWidget( mFourthEdit, x, y++ ); | 108 | layout->addWidget( mFourthEdit, x, y++ ); |
109 | 109 | ||
110 | // Four numbers don't fit in the current dialog | 110 | // Four numbers don't fit in the current dialog |
111 | if ( QApplication::desktop()->width() < 640 ) { | 111 | if ( QApplication::desktop()->width() < 640 ) { |
112 | mFourthCombo->hide(); | 112 | mFourthCombo->hide(); |
113 | mFourthEdit->hide(); | 113 | mFourthEdit->hide(); |
114 | } else { | 114 | } else { |
115 | QFontMetrics fm ( font () ) ; | 115 | QFontMetrics fm ( font () ) ; |
116 | int wid = fm.width( "Messenger" ) +60; | 116 | int wid = fm.width( "Messenger" ) +60; |
117 | mPrefCombo->setMaximumWidth( wid ); | 117 | mPrefCombo->setMaximumWidth( wid ); |
118 | mSecondCombo->setMaximumWidth( wid ); | 118 | mSecondCombo->setMaximumWidth( wid ); |
119 | mThirdCombo->setMaximumWidth( wid ); | 119 | mThirdCombo->setMaximumWidth( wid ); |
120 | mFourthCombo->setMaximumWidth( wid ); | 120 | mFourthCombo->setMaximumWidth( wid ); |
121 | } | 121 | } |
122 | 122 | ||
123 | 123 | ||
124 | connect( mPrefEdit, SIGNAL( textChanged( const QString& ) ), | 124 | connect( mPrefEdit, SIGNAL( textChanged( const QString& ) ), |
125 | SLOT( slotPrefEditChanged() ) ); | 125 | SLOT( slotPrefEditChanged() ) ); |
126 | connect( mSecondEdit, SIGNAL( textChanged( const QString& ) ), | 126 | connect( mSecondEdit, SIGNAL( textChanged( const QString& ) ), |
127 | SLOT( slotSecondEditChanged() ) ); | 127 | SLOT( slotSecondEditChanged() ) ); |
128 | connect( mThirdEdit, SIGNAL( textChanged( const QString& ) ), | 128 | connect( mThirdEdit, SIGNAL( textChanged( const QString& ) ), |
129 | SLOT( slotThirdEditChanged() ) ); | 129 | SLOT( slotThirdEditChanged() ) ); |
130 | connect( mFourthEdit, SIGNAL( textChanged( const QString& ) ), | 130 | connect( mFourthEdit, SIGNAL( textChanged( const QString& ) ), |
131 | SLOT( slotFourthEditChanged() ) ); | 131 | SLOT( slotFourthEditChanged() ) ); |
132 | 132 | ||
133 | connect( editButton, SIGNAL( clicked() ), SLOT( edit() ) ); | 133 | connect( editButton, SIGNAL( clicked() ), SLOT( edit() ) ); |
134 | 134 | ||
135 | connect( mPrefCombo, SIGNAL( activated( int ) ), | 135 | connect( mPrefCombo, SIGNAL( activated( int ) ), |
136 | SLOT( updatePrefEdit() ) ); | 136 | SLOT( updatePrefEdit() ) ); |
137 | connect( mSecondCombo, SIGNAL( activated( int ) ), | 137 | connect( mSecondCombo, SIGNAL( activated( int ) ), |
138 | SLOT( updateSecondEdit() ) ); | 138 | SLOT( updateSecondEdit() ) ); |
139 | connect( mThirdCombo, SIGNAL( activated( int ) ), | 139 | connect( mThirdCombo, SIGNAL( activated( int ) ), |
140 | SLOT( updateThirdEdit() ) ); | 140 | SLOT( updateThirdEdit() ) ); |
141 | connect( mFourthCombo, SIGNAL( activated( int ) ), | 141 | connect( mFourthCombo, SIGNAL( activated( int ) ), |
142 | SLOT( updateFourthEdit() ) ); | 142 | SLOT( updateFourthEdit() ) ); |
143 | } | 143 | } |
144 | 144 | ||
145 | PhoneEditWidget::~PhoneEditWidget() | 145 | PhoneEditWidget::~PhoneEditWidget() |
146 | { | 146 | { |
147 | } | 147 | } |
148 | 148 | ||
149 | void PhoneEditWidget::setPhoneNumbers( const KABC::PhoneNumber::List &list ) | 149 | void PhoneEditWidget::setPhoneNumbers( const KABC::PhoneNumber::List &list ) |
150 | { | 150 | { |
151 | mPhoneList.clear(); | 151 | mPhoneList.clear(); |
152 | 152 | ||
153 | // Insert types for existing numbers. | 153 | // Insert types for existing numbers. |
154 | mPrefCombo->insertTypeList( list ); | 154 | mPrefCombo->insertTypeList( list ); |
155 | 155 | ||
156 | QValueList<int> defaultTypes; | 156 | QValueList<int> defaultTypes; |
157 | defaultTypes << KABC::PhoneNumber::Home; | 157 | defaultTypes << KABC::PhoneNumber::Home; |
158 | defaultTypes << KABC::PhoneNumber::Work; | 158 | defaultTypes << KABC::PhoneNumber::Work; |
159 | defaultTypes << KABC::PhoneNumber::Cell; | 159 | defaultTypes << KABC::PhoneNumber::Cell; |
160 | defaultTypes << ( KABC::PhoneNumber::Work | KABC::PhoneNumber::Fax ); | 160 | defaultTypes << ( KABC::PhoneNumber::Work | KABC::PhoneNumber::Fax ); |
161 | defaultTypes << ( KABC::PhoneNumber::Home | KABC::PhoneNumber::Fax ); | 161 | defaultTypes << ( KABC::PhoneNumber::Home | KABC::PhoneNumber::Fax ); |
162 | 162 | ||
163 | // Insert default types. | 163 | // Insert default types. |
164 | // Doing this for mPrefCombo is enough because the list is shared by all | 164 | // Doing this for mPrefCombo is enough because the list is shared by all |
165 | // combos. | 165 | // combos. |
166 | QValueList<int>::ConstIterator it; | 166 | QValueList<int>::ConstIterator it; |
167 | for( it = defaultTypes.begin(); it != defaultTypes.end(); ++it ) { | 167 | for( it = defaultTypes.begin(); it != defaultTypes.end(); ++it ) { |
168 | if ( !mPrefCombo->hasType( *it ) ) | 168 | if ( !mPrefCombo->hasType( *it ) ) |
169 | mPrefCombo->insertType( list, *it, PhoneNumber( "", *it ) ); | 169 | mPrefCombo->insertType( list, *it, PhoneNumber( "", *it ) ); |
170 | } | 170 | } |
171 | 171 | ||
172 | updateCombos(); | 172 | updateCombos(); |
173 | 173 | ||
174 | mPrefCombo->selectType( defaultTypes[ 0 ] ); | 174 | mPrefCombo->selectType( defaultTypes[ 0 ] ); |
175 | mSecondCombo->selectType( defaultTypes[ 1 ] ); | 175 | mSecondCombo->selectType( defaultTypes[ 1 ] ); |
176 | mThirdCombo->selectType( defaultTypes[ 2 ] ); | 176 | mThirdCombo->selectType( defaultTypes[ 2 ] ); |
177 | mFourthCombo->selectType( defaultTypes[ 3 ] ); | 177 | mFourthCombo->selectType( defaultTypes[ 3 ] ); |
178 | 178 | ||
179 | updateLineEdits(); | 179 | updateLineEdits(); |
180 | } | 180 | } |
181 | 181 | ||
182 | void PhoneEditWidget::updateLineEdits() | 182 | void PhoneEditWidget::updateLineEdits() |
183 | { | 183 | { |
184 | updatePrefEdit(); | 184 | updatePrefEdit(); |
185 | updateSecondEdit(); | 185 | updateSecondEdit(); |
186 | updateThirdEdit(); | 186 | updateThirdEdit(); |
187 | updateFourthEdit(); | 187 | updateFourthEdit(); |
188 | } | 188 | } |
189 | 189 | ||
190 | void PhoneEditWidget::updateCombos() | 190 | void PhoneEditWidget::updateCombos() |
191 | { | 191 | { |
192 | mPrefCombo->updateTypes(); | 192 | mPrefCombo->updateTypes(); |
193 | mSecondCombo->updateTypes(); | 193 | mSecondCombo->updateTypes(); |
194 | mThirdCombo->updateTypes(); | 194 | mThirdCombo->updateTypes(); |
195 | mFourthCombo->updateTypes(); | 195 | mFourthCombo->updateTypes(); |
196 | } | 196 | } |
197 | 197 | ||
198 | KABC::PhoneNumber::List PhoneEditWidget::phoneNumbers() | 198 | KABC::PhoneNumber::List PhoneEditWidget::phoneNumbers() |
199 | { | 199 | { |
200 | KABC::PhoneNumber::List retList; | 200 | KABC::PhoneNumber::List retList; |
201 | 201 | ||
202 | KABC::PhoneNumber::List::Iterator it; | 202 | KABC::PhoneNumber::List::Iterator it; |
203 | for ( it = mPhoneList.begin(); it != mPhoneList.end(); ++it ) | 203 | for ( it = mPhoneList.begin(); it != mPhoneList.end(); ++it ) |
204 | if ( !(*it).number().isEmpty() ) | 204 | if ( !(*it).number().isEmpty() ) |
205 | retList.append( *it ); | 205 | retList.append( *it ); |
206 | 206 | ||
207 | return retList; | 207 | return retList; |
208 | } | 208 | } |
209 | 209 | ||
210 | void PhoneEditWidget::edit() | 210 | void PhoneEditWidget::edit() |
211 | { | 211 | { |
212 | PhoneEditDialog dlg( mPhoneList, this ); | 212 | PhoneEditDialog dlg( mPhoneList, this ); |
213 | 213 | ||
214 | if ( dlg.exec() ) { | 214 | if ( dlg.exec() ) { |
215 | if ( dlg.changed() ) { | 215 | if ( dlg.changed() ) { |
216 | mPhoneList = dlg.phoneNumbers(); | 216 | KABC::PhoneNumber::List list = dlg.phoneNumbers(); |
217 | setPhoneNumbers( list ); | ||
217 | updateCombos(); | 218 | updateCombos(); |
218 | updateLineEdits(); | 219 | updateLineEdits(); |
219 | emit modified(); | 220 | emit modified(); |
220 | } | 221 | } |
221 | } | 222 | } |
222 | } | 223 | } |
223 | 224 | ||
224 | void PhoneEditWidget::updatePrefEdit() | 225 | void PhoneEditWidget::updatePrefEdit() |
225 | { | 226 | { |
226 | updateEdit( mPrefCombo ); | 227 | updateEdit( mPrefCombo ); |
227 | } | 228 | } |
228 | 229 | ||
229 | void PhoneEditWidget::updateSecondEdit() | 230 | void PhoneEditWidget::updateSecondEdit() |
230 | { | 231 | { |
231 | updateEdit( mSecondCombo ); | 232 | updateEdit( mSecondCombo ); |
232 | } | 233 | } |
233 | 234 | ||
234 | void PhoneEditWidget::updateThirdEdit() | 235 | void PhoneEditWidget::updateThirdEdit() |
235 | { | 236 | { |
236 | updateEdit( mThirdCombo ); | 237 | updateEdit( mThirdCombo ); |
237 | } | 238 | } |
238 | 239 | ||
239 | void PhoneEditWidget::updateFourthEdit() | 240 | void PhoneEditWidget::updateFourthEdit() |
240 | { | 241 | { |
241 | updateEdit( mFourthCombo ); | 242 | updateEdit( mFourthCombo ); |
242 | } | 243 | } |
243 | 244 | ||
244 | void PhoneEditWidget::updateEdit( PhoneTypeCombo *combo ) | 245 | void PhoneEditWidget::updateEdit( PhoneTypeCombo *combo ) |
245 | { | 246 | { |
246 | QLineEdit *edit = combo->lineEdit(); | 247 | QLineEdit *edit = combo->lineEdit(); |
247 | if ( !edit ) | 248 | if ( !edit ) |
248 | return; | 249 | return; |
249 | 250 | ||
250 | #if 0 | 251 | #if 0 |
251 | if ( edit == mPrefEdit ) kdDebug(5720) << " prefEdit" << endl; | 252 | if ( edit == mPrefEdit ) kdDebug(5720) << " prefEdit" << endl; |
252 | if ( edit == mSecondEdit ) kdDebug(5720) << " secondEdit" << endl; | 253 | if ( edit == mSecondEdit ) kdDebug(5720) << " secondEdit" << endl; |
253 | if ( edit == mThirdEdit ) kdDebug(5720) << " thirdEdit" << endl; | 254 | if ( edit == mThirdEdit ) kdDebug(5720) << " thirdEdit" << endl; |
254 | if ( edit == mFourthEdit ) kdDebug(5720) << " fourthEdit" << endl; | 255 | if ( edit == mFourthEdit ) kdDebug(5720) << " fourthEdit" << endl; |
255 | #endif | 256 | #endif |
256 | 257 | ||
257 | PhoneNumber::List::Iterator it = combo->selectedElement(); | 258 | PhoneNumber::List::Iterator it = combo->selectedElement(); |
258 | if ( it != mPhoneList.end() ) { | 259 | if ( it != mPhoneList.end() ) { |
259 | edit->setText( (*it).number() ); | 260 | edit->setText( (*it).number() ); |
260 | } else { | 261 | } else { |
261 | kdDebug(5720) << "PhoneEditWidget::updateEdit(): no selected element" << endl; | 262 | kdDebug(5720) << "PhoneEditWidget::updateEdit(): no selected element" << endl; |
262 | } | 263 | } |
263 | } | 264 | } |
264 | 265 | ||
265 | void PhoneEditWidget::slotPrefEditChanged() | 266 | void PhoneEditWidget::slotPrefEditChanged() |
266 | { | 267 | { |
267 | updatePhoneNumber( mPrefCombo ); | 268 | updatePhoneNumber( mPrefCombo ); |
268 | } | 269 | } |
269 | 270 | ||
270 | void PhoneEditWidget::slotSecondEditChanged() | 271 | void PhoneEditWidget::slotSecondEditChanged() |
271 | { | 272 | { |
272 | updatePhoneNumber( mSecondCombo ); | 273 | updatePhoneNumber( mSecondCombo ); |
273 | } | 274 | } |
274 | 275 | ||
275 | void PhoneEditWidget::slotThirdEditChanged() | 276 | void PhoneEditWidget::slotThirdEditChanged() |
276 | { | 277 | { |
277 | updatePhoneNumber( mThirdCombo ); | 278 | updatePhoneNumber( mThirdCombo ); |
278 | } | 279 | } |
279 | 280 | ||
280 | void PhoneEditWidget::slotFourthEditChanged() | 281 | void PhoneEditWidget::slotFourthEditChanged() |
281 | { | 282 | { |
282 | updatePhoneNumber( mFourthCombo ); | 283 | updatePhoneNumber( mFourthCombo ); |
283 | } | 284 | } |
284 | 285 | ||
285 | void PhoneEditWidget::updatePhoneNumber( PhoneTypeCombo *combo ) | 286 | void PhoneEditWidget::updatePhoneNumber( PhoneTypeCombo *combo ) |
286 | { | 287 | { |
287 | QLineEdit *edit = combo->lineEdit(); | 288 | QLineEdit *edit = combo->lineEdit(); |
288 | if ( !edit ) return; | 289 | if ( !edit ) return; |
289 | 290 | ||
290 | PhoneNumber::List::Iterator it = combo->selectedElement(); | 291 | PhoneNumber::List::Iterator it = combo->selectedElement(); |
291 | if ( it != mPhoneList.end() ) { | 292 | if ( it != mPhoneList.end() ) { |
292 | (*it).setNumber( edit->text() ); | 293 | (*it).setNumber( edit->text() ); |
293 | } | 294 | } |
294 | 295 | ||
295 | updateOtherEdit( combo, mPrefCombo ); | 296 | updateOtherEdit( combo, mPrefCombo ); |
296 | updateOtherEdit( combo, mSecondCombo ); | 297 | updateOtherEdit( combo, mSecondCombo ); |
297 | updateOtherEdit( combo, mThirdCombo ); | 298 | updateOtherEdit( combo, mThirdCombo ); |
298 | updateOtherEdit( combo, mFourthCombo ); | 299 | updateOtherEdit( combo, mFourthCombo ); |
299 | 300 | ||
300 | emit modified(); | 301 | emit modified(); |
301 | } | 302 | } |
302 | 303 | ||
303 | void PhoneEditWidget::updateOtherEdit( PhoneTypeCombo *combo, PhoneTypeCombo *otherCombo ) | 304 | void PhoneEditWidget::updateOtherEdit( PhoneTypeCombo *combo, PhoneTypeCombo *otherCombo ) |
304 | { | 305 | { |
305 | if ( combo == otherCombo ) return; | 306 | if ( combo == otherCombo ) return; |
306 | 307 | ||
307 | if ( combo->currentItem() == otherCombo->currentItem() ) { | 308 | if ( combo->currentItem() == otherCombo->currentItem() ) { |
308 | updateEdit( otherCombo ); | 309 | updateEdit( otherCombo ); |
309 | } | 310 | } |
310 | } | 311 | } |
311 | 312 | ||
312 | /////////////////////////////////////////// | 313 | /////////////////////////////////////////// |
313 | // PhoneEditDialog | 314 | // PhoneEditDialog |
314 | 315 | ||
315 | class PhoneViewItem : public QListViewItem | 316 | class PhoneViewItem : public QListViewItem |
316 | { | 317 | { |
317 | public: | 318 | public: |
318 | PhoneViewItem( QListView *parent, const KABC::PhoneNumber &number ); | 319 | PhoneViewItem( QListView *parent, const KABC::PhoneNumber &number ); |
319 | 320 | ||
320 | void setPhoneNumber( const KABC::PhoneNumber &number ) | 321 | void setPhoneNumber( const KABC::PhoneNumber &number ) |
321 | { | 322 | { |
322 | mPhoneNumber = number; | 323 | mPhoneNumber = number; |
323 | makeText(); | 324 | makeText(); |
324 | } | 325 | } |
325 | 326 | ||
326 | QString key() { return mPhoneNumber.id(); } | 327 | QString key() { return mPhoneNumber.id(); } |
327 | QString country() { return ""; } | 328 | QString country() { return ""; } |
328 | QString region() { return ""; } | 329 | QString region() { return ""; } |
329 | QString number() { return ""; } | 330 | QString number() { return ""; } |
330 | 331 | ||
331 | KABC::PhoneNumber phoneNumber() { return mPhoneNumber; } | 332 | KABC::PhoneNumber phoneNumber() { return mPhoneNumber; } |
332 | 333 | ||
333 | private: | 334 | private: |
334 | void makeText(); | 335 | void makeText(); |
335 | 336 | ||
336 | KABC::PhoneNumber mPhoneNumber; | 337 | KABC::PhoneNumber mPhoneNumber; |
337 | }; | 338 | }; |
338 | 339 | ||
339 | PhoneViewItem::PhoneViewItem( QListView *parent, const KABC::PhoneNumber &number ) | 340 | PhoneViewItem::PhoneViewItem( QListView *parent, const KABC::PhoneNumber &number ) |
340 | : QListViewItem( parent ), mPhoneNumber( number ) | 341 | : QListViewItem( parent ), mPhoneNumber( number ) |
341 | { | 342 | { |
343 | #ifdef DESKTOP_VERSION | ||
344 | setRenameEnabled ( 0, true ); | ||
345 | #endif | ||
342 | makeText(); | 346 | makeText(); |
343 | } | 347 | } |
344 | 348 | ||
345 | void PhoneViewItem::makeText() | 349 | void PhoneViewItem::makeText() |
346 | { | 350 | { |
347 | /** | 351 | /** |
348 | * Will be used in future versions of kaddressbook/libkabc | 352 | * Will be used in future versions of kaddressbook/libkabc |
349 | 353 | ||
350 | setText( 0, mPhoneNumber.country() ); | 354 | setText( 0, mPhoneNumber.country() ); |
351 | setText( 1, mPhoneNumber.region() ); | 355 | setText( 1, mPhoneNumber.region() ); |
352 | setText( 2, mPhoneNumber.number() ); | 356 | setText( 2, mPhoneNumber.number() ); |
353 | setText( 3, mPhoneNumber.typeLabel() ); | 357 | setText( 3, mPhoneNumber.typeLabel() ); |
354 | */ | 358 | */ |
355 | 359 | ||
356 | setText( 0, mPhoneNumber.number() ); | 360 | setText( 0, mPhoneNumber.number() ); |
357 | setText( 1, mPhoneNumber.typeLabel() ); | 361 | setText( 1, mPhoneNumber.typeLabel() ); |
358 | } | 362 | } |
359 | 363 | ||
360 | PhoneEditDialog::PhoneEditDialog( const KABC::PhoneNumber::List &list, QWidget *parent, const char *name ) | 364 | PhoneEditDialog::PhoneEditDialog( const KABC::PhoneNumber::List &list, QWidget *parent, const char *name ) |
361 | : KDialogBase( KDialogBase::Plain, i18n( "Edit Phone Numbers" ), | 365 | : KDialogBase( KDialogBase::Plain, i18n( "Edit Phone Numbers" ), |
362 | KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, | 366 | KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, |
363 | parent, name, true) | 367 | parent, name, true) |
364 | { | 368 | { |
365 | mPhoneNumberList = list; | 369 | mPhoneNumberList = list; |
366 | 370 | ||
367 | QWidget *page = plainPage(); | 371 | QWidget *page = plainPage(); |
368 | 372 | ||
369 | QGridLayout *layout = new QGridLayout( page, 1, 2 ); | 373 | QGridLayout *layout = new QGridLayout( page, 1, 2 ); |
370 | layout->setSpacing( spacingHint() ); | 374 | layout->setSpacing( spacingHint() ); |
371 | 375 | ||
372 | mListView = new KListView( page ); | 376 | mListView = new KListView( page ); |
373 | mListView->setAllColumnsShowFocus( true ); | 377 | mListView->setAllColumnsShowFocus( true ); |
374 | mListView->addColumn( i18n( "Number" ) ); | 378 | mListView->addColumn( i18n( "Number" ) ); |
375 | mListView->addColumn( i18n( "Type" ) ); | 379 | mListView->addColumn( i18n( "Type" ) ); |
376 | 380 | ||
377 | KButtonBox *buttonBox = new KButtonBox( page, Vertical ); | 381 | KButtonBox *buttonBox = new KButtonBox( page, Vertical ); |
378 | 382 | ||
379 | buttonBox->addButton( i18n( "&Add..." ), this, SLOT( slotAddPhoneNumber() ) ); | 383 | buttonBox->addButton( i18n( "&Add..." ), this, SLOT( slotAddPhoneNumber() ) ); |
380 | mEditButton = buttonBox->addButton( i18n( "&Edit..." ), this, SLOT( slotEditPhoneNumber() ) ); | 384 | mEditButton = buttonBox->addButton( i18n( "&Edit..." ), this, SLOT( slotEditPhoneNumber() ) ); |
381 | mEditButton->setEnabled( false ); | 385 | mEditButton->setEnabled( false ); |
382 | mRemoveButton = buttonBox->addButton( i18n( "&Remove" ), this, SLOT( slotRemovePhoneNumber() ) ); | 386 | mRemoveButton = buttonBox->addButton( i18n( "&Remove" ), this, SLOT( slotRemovePhoneNumber() ) ); |
383 | mRemoveButton->setEnabled( false ); | 387 | mRemoveButton->setEnabled( false ); |
384 | buttonBox->layout(); | 388 | buttonBox->layout(); |
385 | 389 | ||
386 | layout->addWidget( mListView, 0, 0 ); | 390 | layout->addWidget( mListView, 0, 0 ); |
387 | layout->addWidget( buttonBox, 0, 1 ); | 391 | layout->addWidget( buttonBox, 0, 1 ); |
388 | 392 | ||
389 | connect( mListView, SIGNAL(selectionChanged()), SLOT(slotSelectionChanged()) ); | 393 | connect( mListView, SIGNAL(selectionChanged()), SLOT(slotSelectionChanged()) ); |
390 | connect( mListView, SIGNAL(doubleClicked( QListViewItem *, const QPoint &, int )), this, SLOT( slotEditPhoneNumber())); | 394 | connect( mListView, SIGNAL(doubleClicked( QListViewItem *, const QPoint &, int )), this, SLOT( slotEditPhoneNumber())); |
391 | 395 | ||
392 | KABC::PhoneNumber::List::Iterator it; | 396 | KABC::PhoneNumber::List::Iterator it; |
393 | for ( it = mPhoneNumberList.begin(); it != mPhoneNumberList.end(); ++it ) | 397 | for ( it = mPhoneNumberList.begin(); it != mPhoneNumberList.end(); ++it ) |
394 | new PhoneViewItem( mListView, *it ); | 398 | new PhoneViewItem( mListView, *it ); |
395 | 399 | ||
396 | mChanged = false; | 400 | mChanged = false; |
397 | } | 401 | } |
398 | 402 | ||
399 | PhoneEditDialog::~PhoneEditDialog() | 403 | PhoneEditDialog::~PhoneEditDialog() |
400 | { | 404 | { |
401 | } | 405 | } |
402 | 406 | ||
403 | void PhoneEditDialog::slotAddPhoneNumber() | 407 | void PhoneEditDialog::slotAddPhoneNumber() |
404 | { | 408 | { |
405 | KABC::PhoneNumber tmp( "", 0 ); | 409 | KABC::PhoneNumber tmp( "", 0 ); |
406 | PhoneTypeDialog dlg( tmp, this ); | 410 | PhoneTypeDialog dlg( tmp, this ); |
407 | 411 | ||
408 | if ( dlg.exec() ) { | 412 | if ( dlg.exec() ) { |
409 | KABC::PhoneNumber phoneNumber = dlg.phoneNumber(); | 413 | QListViewItem* i = mListView->firstChild(); |
410 | mPhoneNumberList.append( phoneNumber ); | 414 | KABC::PhoneNumber phoneNumber = dlg.phoneNumber(); |
411 | new PhoneViewItem( mListView, phoneNumber ); | 415 | bool insert = true; |
412 | 416 | while ( i ) { | |
413 | mChanged = true; | 417 | PhoneViewItem* p = ( PhoneViewItem* ) i; |
418 | KABC::PhoneNumber pn = p->phoneNumber(); | ||
419 | if ( (pn.type() | KABC::PhoneNumber::Pref) == (phoneNumber.type() | KABC::PhoneNumber::Pref) ) { | ||
420 | if ( p->text(0).isEmpty()) { | ||
421 | p->setPhoneNumber( phoneNumber ); | ||
422 | mPhoneNumberList.remove( pn ); | ||
423 | mPhoneNumberList.append( phoneNumber ); | ||
424 | insert = false; | ||
425 | break; | ||
426 | } | ||
427 | } | ||
428 | i = i->nextSibling(); | ||
429 | } | ||
430 | if ( insert ) { | ||
431 | mPhoneNumberList.append( phoneNumber ); | ||
432 | new PhoneViewItem( mListView, phoneNumber ); | ||
433 | } | ||
434 | mChanged = true; | ||
414 | } | 435 | } |
415 | } | 436 | } |
416 | 437 | ||
417 | void PhoneEditDialog::slotRemovePhoneNumber() | 438 | void PhoneEditDialog::slotRemovePhoneNumber() |
418 | { | 439 | { |
419 | PhoneViewItem *item = static_cast<PhoneViewItem*>( mListView->currentItem() ); | 440 | PhoneViewItem *item = static_cast<PhoneViewItem*>( mListView->currentItem() ); |
420 | if ( !item ) | 441 | if ( !item ) |
421 | return; | 442 | return; |
422 | 443 | ||
423 | mPhoneNumberList.remove( item->phoneNumber() ); | 444 | mPhoneNumberList.remove( item->phoneNumber() ); |
424 | QListViewItem *currItem = mListView->currentItem(); | 445 | QListViewItem *currItem = mListView->currentItem(); |
425 | mListView->takeItem( currItem ); | 446 | mListView->takeItem( currItem ); |
426 | delete currItem; | 447 | delete currItem; |
427 | 448 | ||
428 | mChanged = true; | 449 | mChanged = true; |
429 | } | 450 | } |
430 | 451 | ||
431 | void PhoneEditDialog::slotEditPhoneNumber() | 452 | void PhoneEditDialog::slotEditPhoneNumber() |
432 | { | 453 | { |
433 | PhoneViewItem *item = static_cast<PhoneViewItem*>( mListView->currentItem() ); | 454 | PhoneViewItem *item = static_cast<PhoneViewItem*>( mListView->currentItem() ); |
434 | if ( !item ) | 455 | if ( !item ) |
435 | return; | 456 | return; |
436 | 457 | ||
437 | PhoneTypeDialog dlg( item->phoneNumber(), this ); | 458 | PhoneTypeDialog dlg( item->phoneNumber(), this ); |
438 | 459 | ||
439 | if ( dlg.exec() ) { | 460 | if ( dlg.exec() ) { |
440 | slotRemovePhoneNumber(); | 461 | slotRemovePhoneNumber(); |
441 | KABC::PhoneNumber phoneNumber = dlg.phoneNumber(); | 462 | KABC::PhoneNumber phoneNumber = dlg.phoneNumber(); |
442 | mPhoneNumberList.append( phoneNumber ); | 463 | mPhoneNumberList.append( phoneNumber ); |
443 | new PhoneViewItem( mListView, phoneNumber ); | 464 | new PhoneViewItem( mListView, phoneNumber ); |
444 | 465 | ||
445 | mChanged = true; | 466 | mChanged = true; |
446 | } | 467 | } |
447 | } | 468 | } |
448 | 469 | ||
449 | void PhoneEditDialog::slotSelectionChanged() | 470 | void PhoneEditDialog::slotSelectionChanged() |
450 | { | 471 | { |
451 | bool state = ( mListView->currentItem() != 0 ); | 472 | bool state = ( mListView->currentItem() != 0 ); |
452 | 473 | ||
453 | mRemoveButton->setEnabled( state ); | 474 | mRemoveButton->setEnabled( state ); |
454 | mEditButton->setEnabled( state ); | 475 | mEditButton->setEnabled( state ); |
455 | } | 476 | } |
456 | 477 | ||
457 | const KABC::PhoneNumber::List &PhoneEditDialog::phoneNumbers() | 478 | const KABC::PhoneNumber::List &PhoneEditDialog::phoneNumbers() |
458 | { | 479 | { |
459 | return mPhoneNumberList; | 480 | return mPhoneNumberList; |
460 | } | 481 | } |
461 | 482 | ||
462 | bool PhoneEditDialog::changed() const | 483 | bool PhoneEditDialog::changed() const |
463 | { | 484 | { |
464 | return mChanged; | 485 | return mChanged; |
465 | } | 486 | } |
466 | 487 | ||
467 | /////////////////////////////////////////// | 488 | /////////////////////////////////////////// |
468 | // PhoneTypeDialog | 489 | // PhoneTypeDialog |
469 | PhoneTypeDialog::PhoneTypeDialog( const KABC::PhoneNumber &phoneNumber, | 490 | PhoneTypeDialog::PhoneTypeDialog( const KABC::PhoneNumber &phoneNumber, |
470 | QWidget *parent, const char *name) | 491 | QWidget *parent, const char *name) |
471 | : KDialogBase( KDialogBase::Plain, i18n( "Edit Phone Number" ), | 492 | : KDialogBase( KDialogBase::Plain, i18n( "Edit Phone Number" ), |
472 | KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, | 493 | KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, |
473 | parent, name, true), mPhoneNumber( phoneNumber ) | 494 | parent, name, true), mPhoneNumber( phoneNumber ) |
474 | { | 495 | { |
475 | QWidget *page = plainPage(); | 496 | QWidget *page = plainPage(); |
476 | QLabel *label = 0; | 497 | QLabel *label = 0; |
477 | QGridLayout *layout = new QGridLayout( page, 3, 2, marginHint(), spacingHint() ); | 498 | QGridLayout *layout = new QGridLayout( page, 3, 2, marginHint(), spacingHint() ); |
478 | 499 | ||
479 | label = new QLabel( i18n( "Number:" ), page ); | 500 | label = new QLabel( i18n( "Number:" ), page ); |
480 | layout->addWidget( label, 0, 0 ); | 501 | layout->addWidget( label, 0, 0 ); |
481 | mNumber = new KLineEdit( page ); | 502 | mNumber = new KLineEdit( page ); |
482 | layout->addWidget( mNumber, 0, 1 ); | 503 | layout->addWidget( mNumber, 0, 1 ); |
483 | 504 | ||
484 | mPreferredBox = new QCheckBox( i18n( "This is the preferred phone number" ), page ); | 505 | mPreferredBox = new QCheckBox( i18n( "This is the preferred phone number" ), page ); |
485 | layout->addMultiCellWidget( mPreferredBox, 1, 1, 0, 1 ); | 506 | layout->addMultiCellWidget( mPreferredBox, 1, 1, 0, 1 ); |
486 | 507 | ||
487 | mGroup = new QButtonGroup( 2, Horizontal, i18n( "Types" ), page ); | 508 | mGroup = new QButtonGroup( 2, Horizontal, i18n( "Types" ), page ); |
488 | layout->addMultiCellWidget( mGroup, 2, 2, 0, 1 ); | 509 | layout->addMultiCellWidget( mGroup, 2, 2, 0, 1 ); |
489 | 510 | ||
490 | // fill widgets | 511 | // fill widgets |
491 | mNumber->setText( mPhoneNumber.number() ); | 512 | mNumber->setText( mPhoneNumber.number() ); |
492 | 513 | ||
493 | mTypeList = KABC::PhoneNumber::typeList(); | 514 | mTypeList = KABC::PhoneNumber::typeList(); |
494 | mTypeList.remove( KABC::PhoneNumber::Pref ); | 515 | mTypeList.remove( KABC::PhoneNumber::Pref ); |
495 | 516 | ||
496 | KABC::PhoneNumber::TypeList::Iterator it; | 517 | KABC::PhoneNumber::TypeList::Iterator it; |
497 | for ( it = mTypeList.begin(); it != mTypeList.end(); ++it ) | 518 | for ( it = mTypeList.begin(); it != mTypeList.end(); ++it ) |
498 | new QCheckBox( KABC::PhoneNumber::typeLabel( *it ), mGroup ); | 519 | new QCheckBox( KABC::PhoneNumber::typeLabel( *it ), mGroup ); |
499 | 520 | ||
500 | for ( int i = 0; i < mGroup->count(); ++i ) { | 521 | for ( int i = 0; i < mGroup->count(); ++i ) { |
501 | int type = mPhoneNumber.type(); | 522 | int type = mPhoneNumber.type(); |
502 | QCheckBox *box = (QCheckBox*)mGroup->find( i ); | 523 | QCheckBox *box = (QCheckBox*)mGroup->find( i ); |
503 | box->setChecked( type & mTypeList[ i ] ); | 524 | box->setChecked( type & mTypeList[ i ] ); |
504 | } | 525 | } |
505 | 526 | ||
506 | mPreferredBox->setChecked( mPhoneNumber.type() & KABC::PhoneNumber::Pref ); | 527 | mPreferredBox->setChecked( mPhoneNumber.type() & KABC::PhoneNumber::Pref ); |
528 | mNumber->setFocus(); | ||
529 | mNumber->setSelection( 0, 1024); | ||
507 | } | 530 | } |
508 | 531 | ||
509 | KABC::PhoneNumber PhoneTypeDialog::phoneNumber() | 532 | KABC::PhoneNumber PhoneTypeDialog::phoneNumber() |
510 | { | 533 | { |
511 | mPhoneNumber.setNumber( mNumber->text() ); | 534 | mPhoneNumber.setNumber( mNumber->text() ); |
512 | 535 | ||
513 | int type = 0; | 536 | int type = 0; |
514 | for ( int i = 0; i < mGroup->count(); ++i ) { | 537 | for ( int i = 0; i < mGroup->count(); ++i ) { |
515 | QCheckBox *box = (QCheckBox*)mGroup->find( i ); | 538 | QCheckBox *box = (QCheckBox*)mGroup->find( i ); |
516 | if ( box->isChecked() ) | 539 | if ( box->isChecked() ) |
517 | type += mTypeList[ i ]; | 540 | type += mTypeList[ i ]; |
518 | } | 541 | } |
519 | 542 | ||
520 | if ( mPreferredBox->isChecked() ) | 543 | if ( mPreferredBox->isChecked() ) |
521 | mPhoneNumber.setType( type | KABC::PhoneNumber::Pref ); | 544 | mPhoneNumber.setType( type | KABC::PhoneNumber::Pref ); |
522 | else | 545 | else |
523 | mPhoneNumber.setType( type & ~KABC::PhoneNumber::Pref ); | 546 | mPhoneNumber.setType( type & ~KABC::PhoneNumber::Pref ); |
524 | 547 | ||
525 | return mPhoneNumber; | 548 | return mPhoneNumber; |
526 | } | 549 | } |
527 | 550 | ||
528 | #ifndef KAB_EMBEDDED | 551 | #ifndef KAB_EMBEDDED |
529 | #include "phoneeditwidget.moc" | 552 | #include "phoneeditwidget.moc" |
530 | #endif //KAB_EMBEDDED | 553 | #endif //KAB_EMBEDDED |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 09a0880..d98915b 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1058,1253 +1058,1255 @@ void MainWindow::initActions() | |||
1058 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); | 1058 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); |
1059 | importMenu->insertSeparator(); | 1059 | importMenu->insertSeparator(); |
1060 | action = new QAction( "beam all", i18n("Save"), 0, | 1060 | action = new QAction( "beam all", i18n("Save"), 0, |
1061 | this ); | 1061 | this ); |
1062 | action->addTo( importMenu ); | 1062 | action->addTo( importMenu ); |
1063 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); | 1063 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); |
1064 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, | 1064 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, |
1065 | this ); | 1065 | this ); |
1066 | action->addTo( importMenu ); | 1066 | action->addTo( importMenu ); |
1067 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); | 1067 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); |
1068 | 1068 | ||
1069 | //menuBar->insertItem( "Configure",configureMenu ); | 1069 | //menuBar->insertItem( "Configure",configureMenu ); |
1070 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); | 1070 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); |
1071 | icon = loadPixmap( "korganizer/korganizer" ); | 1071 | icon = loadPixmap( "korganizer/korganizer" ); |
1072 | 1072 | ||
1073 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); | 1073 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); |
1074 | action->addTo( helpMenu ); | 1074 | action->addTo( helpMenu ); |
1075 | connect( action, SIGNAL( activated() ), | 1075 | connect( action, SIGNAL( activated() ), |
1076 | SLOT( whatsNew() ) ); | 1076 | SLOT( whatsNew() ) ); |
1077 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); | 1077 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); |
1078 | action->addTo( helpMenu ); | 1078 | action->addTo( helpMenu ); |
1079 | connect( action, SIGNAL( activated() ), | 1079 | connect( action, SIGNAL( activated() ), |
1080 | SLOT( features() ) ); | 1080 | SLOT( features() ) ); |
1081 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); | 1081 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); |
1082 | action->addTo( helpMenu ); | 1082 | action->addTo( helpMenu ); |
1083 | connect( action, SIGNAL( activated() ), | 1083 | connect( action, SIGNAL( activated() ), |
1084 | SLOT( keyBindings() ) ); | 1084 | SLOT( keyBindings() ) ); |
1085 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); | 1085 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); |
1086 | action->addTo( helpMenu ); | 1086 | action->addTo( helpMenu ); |
1087 | connect( action, SIGNAL( activated() ), | 1087 | connect( action, SIGNAL( activated() ), |
1088 | SLOT( synchowto() ) ); | 1088 | SLOT( synchowto() ) ); |
1089 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); | 1089 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); |
1090 | action->addTo( helpMenu ); | 1090 | action->addTo( helpMenu ); |
1091 | connect( action, SIGNAL( activated() ), | 1091 | connect( action, SIGNAL( activated() ), |
1092 | SLOT( kdesynchowto() ) ); | 1092 | SLOT( kdesynchowto() ) ); |
1093 | action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); | 1093 | action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); |
1094 | action->addTo( helpMenu ); | 1094 | action->addTo( helpMenu ); |
1095 | connect( action, SIGNAL( activated() ), | 1095 | connect( action, SIGNAL( activated() ), |
1096 | SLOT( multisynchowto() ) ); | 1096 | SLOT( multisynchowto() ) ); |
1097 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); | 1097 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); |
1098 | action->addTo( helpMenu ); | 1098 | action->addTo( helpMenu ); |
1099 | connect( action, SIGNAL( activated() ), | 1099 | connect( action, SIGNAL( activated() ), |
1100 | SLOT( aboutAutoSaving() ) ); | 1100 | SLOT( aboutAutoSaving() ) ); |
1101 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); | 1101 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); |
1102 | action->addTo( helpMenu ); | 1102 | action->addTo( helpMenu ); |
1103 | connect( action, SIGNAL( activated() ), | 1103 | connect( action, SIGNAL( activated() ), |
1104 | SLOT( aboutKnownBugs() ) ); | 1104 | SLOT( aboutKnownBugs() ) ); |
1105 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); | 1105 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); |
1106 | action->addTo( helpMenu ); | 1106 | action->addTo( helpMenu ); |
1107 | connect( action, SIGNAL( activated() ), | 1107 | connect( action, SIGNAL( activated() ), |
1108 | SLOT( usertrans() ) ); | 1108 | SLOT( usertrans() ) ); |
1109 | action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); | 1109 | action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); |
1110 | action->addTo( helpMenu ); | 1110 | action->addTo( helpMenu ); |
1111 | connect( action, SIGNAL( activated() ), | 1111 | connect( action, SIGNAL( activated() ), |
1112 | SLOT( faq() ) ); | 1112 | SLOT( faq() ) ); |
1113 | action = new QAction( "licence", i18n("Licence..."), 0, this ); | 1113 | action = new QAction( "licence", i18n("Licence..."), 0, this ); |
1114 | action->addTo( helpMenu ); | 1114 | action->addTo( helpMenu ); |
1115 | connect( action, SIGNAL( activated() ), | 1115 | connect( action, SIGNAL( activated() ), |
1116 | SLOT( licence() ) ); | 1116 | SLOT( licence() ) ); |
1117 | action = new QAction( "about", i18n("About..."), 0, this ); | 1117 | action = new QAction( "about", i18n("About..."), 0, this ); |
1118 | action->addTo( helpMenu ); | 1118 | action->addTo( helpMenu ); |
1119 | connect( action, SIGNAL( activated() ), | 1119 | connect( action, SIGNAL( activated() ), |
1120 | SLOT( about() ) ); | 1120 | SLOT( about() ) ); |
1121 | //menuBar->insertSeparator(); | 1121 | //menuBar->insertSeparator(); |
1122 | 1122 | ||
1123 | // ****************************************************** | 1123 | // ****************************************************** |
1124 | // menubar icons | 1124 | // menubar icons |
1125 | 1125 | ||
1126 | 1126 | ||
1127 | 1127 | ||
1128 | //menuBar->insertItem( iconToolBar ); | 1128 | //menuBar->insertItem( iconToolBar ); |
1129 | //xdays_action | 1129 | //xdays_action |
1130 | if (p-> mShowIconNewEvent) | 1130 | if (p-> mShowIconNewEvent) |
1131 | ne_action->addTo( iconToolBar ); | 1131 | ne_action->addTo( iconToolBar ); |
1132 | if (p->mShowIconNewTodo ) | 1132 | if (p->mShowIconNewTodo ) |
1133 | nt_action->addTo( iconToolBar ); | 1133 | nt_action->addTo( iconToolBar ); |
1134 | if (p-> mShowIconSearch) | 1134 | if (p-> mShowIconSearch) |
1135 | search_action->addTo( iconToolBar ); | 1135 | search_action->addTo( iconToolBar ); |
1136 | if (p-> mShowIconWhatsThis) | 1136 | if (p-> mShowIconWhatsThis) |
1137 | QWhatsThis::whatsThisButton ( iconToolBar ); | 1137 | QWhatsThis::whatsThisButton ( iconToolBar ); |
1138 | if (p-> mShowIconNext) | 1138 | if (p-> mShowIconNext) |
1139 | whatsnext_action->addTo( viewToolBar ); | 1139 | whatsnext_action->addTo( viewToolBar ); |
1140 | if (p-> mShowIconNextDays) | 1140 | if (p-> mShowIconNextDays) |
1141 | xdays_action->addTo( viewToolBar ); | 1141 | xdays_action->addTo( viewToolBar ); |
1142 | if (p-> mShowIconJournal) | 1142 | if (p-> mShowIconJournal) |
1143 | viewjournal_action->addTo( viewToolBar ); | 1143 | viewjournal_action->addTo( viewToolBar ); |
1144 | if (p-> mShowIconDay1) | 1144 | if (p-> mShowIconDay1) |
1145 | day1_action->addTo( viewToolBar ); | 1145 | day1_action->addTo( viewToolBar ); |
1146 | if (p-> mShowIconDay5) | 1146 | if (p-> mShowIconDay5) |
1147 | day5_action->addTo( viewToolBar ); | 1147 | day5_action->addTo( viewToolBar ); |
1148 | if (p-> mShowIconDay7) | 1148 | if (p-> mShowIconDay7) |
1149 | day7_action->addTo( viewToolBar ); | 1149 | day7_action->addTo( viewToolBar ); |
1150 | if (p-> mShowIconDay6) | 1150 | if (p-> mShowIconDay6) |
1151 | day6_action->addTo( viewToolBar ); | 1151 | day6_action->addTo( viewToolBar ); |
1152 | if (p-> mShowIconMonth) | 1152 | if (p-> mShowIconMonth) |
1153 | month_action->addTo( viewToolBar ); | 1153 | month_action->addTo( viewToolBar ); |
1154 | if (p-> mShowIconList) | 1154 | if (p-> mShowIconList) |
1155 | showlist_action->addTo( viewToolBar ); | 1155 | showlist_action->addTo( viewToolBar ); |
1156 | if (p-> mShowIconTodoview) | 1156 | if (p-> mShowIconTodoview) |
1157 | todoview_action->addTo( viewToolBar ); | 1157 | todoview_action->addTo( viewToolBar ); |
1158 | 1158 | ||
1159 | icon = loadPixmap( pathString + "2leftarrowB" ); | 1159 | icon = loadPixmap( pathString + "2leftarrowB" ); |
1160 | configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200); | 1160 | configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200); |
1161 | if (p-> mShowIconBackFast) { | 1161 | if (p-> mShowIconBackFast) { |
1162 | action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); | 1162 | action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); |
1163 | connect( action, SIGNAL( activated() ), | 1163 | connect( action, SIGNAL( activated() ), |
1164 | mView, SLOT( goPreviousMonth() ) ); | 1164 | mView, SLOT( goPreviousMonth() ) ); |
1165 | action->addTo( navigatorToolBar ); | 1165 | action->addTo( navigatorToolBar ); |
1166 | } | 1166 | } |
1167 | icon = loadPixmap( pathString + "1leftarrowB" ); | 1167 | icon = loadPixmap( pathString + "1leftarrowB" ); |
1168 | configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210); | 1168 | configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210); |
1169 | if (p-> mShowIconBack) { | 1169 | if (p-> mShowIconBack) { |
1170 | action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); | 1170 | action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); |
1171 | connect( action, SIGNAL( activated() ), | 1171 | connect( action, SIGNAL( activated() ), |
1172 | mView, SLOT( goPrevious() ) ); | 1172 | mView, SLOT( goPrevious() ) ); |
1173 | action->addTo( navigatorToolBar ); | 1173 | action->addTo( navigatorToolBar ); |
1174 | } | 1174 | } |
1175 | icon = loadPixmap( pathString + "today" ); | 1175 | icon = loadPixmap( pathString + "today" ); |
1176 | configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130); | 1176 | configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130); |
1177 | if (p-> mShowIconToday) | 1177 | if (p-> mShowIconToday) |
1178 | today_action->addTo( navigatorToolBar ); | 1178 | today_action->addTo( navigatorToolBar ); |
1179 | icon = loadPixmap( pathString + "1rightarrowB" ); | 1179 | icon = loadPixmap( pathString + "1rightarrowB" ); |
1180 | configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); | 1180 | configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); |
1181 | if (p-> mShowIconForward) { | 1181 | if (p-> mShowIconForward) { |
1182 | action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); | 1182 | action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); |
1183 | connect( action, SIGNAL( activated() ), | 1183 | connect( action, SIGNAL( activated() ), |
1184 | mView, SLOT( goNext() ) ); | 1184 | mView, SLOT( goNext() ) ); |
1185 | action->addTo( navigatorToolBar ); | 1185 | action->addTo( navigatorToolBar ); |
1186 | } | 1186 | } |
1187 | icon = loadPixmap( pathString + "2rightarrowB" ); | 1187 | icon = loadPixmap( pathString + "2rightarrowB" ); |
1188 | configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); | 1188 | configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); |
1189 | if (p-> mShowIconForwardFast) { | 1189 | if (p-> mShowIconForwardFast) { |
1190 | action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); | 1190 | action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); |
1191 | connect( action, SIGNAL( activated() ), | 1191 | connect( action, SIGNAL( activated() ), |
1192 | mView, SLOT( goNextMonth() ) ); | 1192 | mView, SLOT( goNextMonth() ) ); |
1193 | action->addTo( navigatorToolBar ); | 1193 | action->addTo( navigatorToolBar ); |
1194 | } | 1194 | } |
1195 | 1195 | ||
1196 | 1196 | ||
1197 | configureToolBarMenu->insertItem(i18n("What's This?"), 300, 6); | 1197 | configureToolBarMenu->insertItem(i18n("What's This?"), 300, 6); |
1198 | 1198 | ||
1199 | 1199 | ||
1200 | if ( p->mShowIconNavigator ) configureToolBarMenu->setItemChecked( 22 , true); | 1200 | if ( p->mShowIconNavigator ) configureToolBarMenu->setItemChecked( 22 , true); |
1201 | if ( p->mShowIconAllday ) configureToolBarMenu->setItemChecked( 24 , true); | 1201 | if ( p->mShowIconAllday ) configureToolBarMenu->setItemChecked( 24 , true); |
1202 | if ( p->mShowIconFilterview ) configureToolBarMenu->setItemChecked( 26 , true); | 1202 | if ( p->mShowIconFilterview ) configureToolBarMenu->setItemChecked( 26 , true); |
1203 | if ( p->mShowIconToggleFull ) configureToolBarMenu->setItemChecked( 28 , true); | 1203 | if ( p->mShowIconToggleFull ) configureToolBarMenu->setItemChecked( 28 , true); |
1204 | 1204 | ||
1205 | if (p-> mShowIconNewEvent) | 1205 | if (p-> mShowIconNewEvent) |
1206 | configureToolBarMenu->setItemChecked( 10, true ); | 1206 | configureToolBarMenu->setItemChecked( 10, true ); |
1207 | if (p->mShowIconNewTodo ) | 1207 | if (p->mShowIconNewTodo ) |
1208 | configureToolBarMenu->setItemChecked( 20, true ); | 1208 | configureToolBarMenu->setItemChecked( 20, true ); |
1209 | if (p-> mShowIconSearch) | 1209 | if (p-> mShowIconSearch) |
1210 | configureToolBarMenu->setItemChecked( 120, true ); | 1210 | configureToolBarMenu->setItemChecked( 120, true ); |
1211 | if (p-> mShowIconList) | 1211 | if (p-> mShowIconList) |
1212 | configureToolBarMenu->setItemChecked( 30, true ); | 1212 | configureToolBarMenu->setItemChecked( 30, true ); |
1213 | if (p-> mShowIconDay1) | 1213 | if (p-> mShowIconDay1) |
1214 | configureToolBarMenu->setItemChecked( 40, true ); | 1214 | configureToolBarMenu->setItemChecked( 40, true ); |
1215 | if (p-> mShowIconDay5) | 1215 | if (p-> mShowIconDay5) |
1216 | configureToolBarMenu->setItemChecked( 50, true ); | 1216 | configureToolBarMenu->setItemChecked( 50, true ); |
1217 | if (p-> mShowIconDay6) | 1217 | if (p-> mShowIconDay6) |
1218 | configureToolBarMenu->setItemChecked( 75, true ); | 1218 | configureToolBarMenu->setItemChecked( 75, true ); |
1219 | if (p-> mShowIconDay7) | 1219 | if (p-> mShowIconDay7) |
1220 | configureToolBarMenu->setItemChecked( 60, true ); | 1220 | configureToolBarMenu->setItemChecked( 60, true ); |
1221 | if (p-> mShowIconMonth) | 1221 | if (p-> mShowIconMonth) |
1222 | configureToolBarMenu->setItemChecked( 70, true ); | 1222 | configureToolBarMenu->setItemChecked( 70, true ); |
1223 | if (p-> mShowIconTodoview) | 1223 | if (p-> mShowIconTodoview) |
1224 | configureToolBarMenu->setItemChecked( 80, true ); | 1224 | configureToolBarMenu->setItemChecked( 80, true ); |
1225 | if (p-> mShowIconBackFast) | 1225 | if (p-> mShowIconBackFast) |
1226 | configureToolBarMenu->setItemChecked( 200, true ); | 1226 | configureToolBarMenu->setItemChecked( 200, true ); |
1227 | if (p-> mShowIconBack) | 1227 | if (p-> mShowIconBack) |
1228 | configureToolBarMenu->setItemChecked( 210, true ); | 1228 | configureToolBarMenu->setItemChecked( 210, true ); |
1229 | if (p-> mShowIconToday) | 1229 | if (p-> mShowIconToday) |
1230 | configureToolBarMenu->setItemChecked( 130, true ); | 1230 | configureToolBarMenu->setItemChecked( 130, true ); |
1231 | if (p-> mShowIconForward) | 1231 | if (p-> mShowIconForward) |
1232 | configureToolBarMenu->setItemChecked( 220, true ); | 1232 | configureToolBarMenu->setItemChecked( 220, true ); |
1233 | if (p-> mShowIconForwardFast) | 1233 | if (p-> mShowIconForwardFast) |
1234 | configureToolBarMenu->setItemChecked( 230, true ); | 1234 | configureToolBarMenu->setItemChecked( 230, true ); |
1235 | if (p-> mShowIconNextDays) | 1235 | if (p-> mShowIconNextDays) |
1236 | configureToolBarMenu->setItemChecked( 100, true ); | 1236 | configureToolBarMenu->setItemChecked( 100, true ); |
1237 | if (p-> mShowIconNext) | 1237 | if (p-> mShowIconNext) |
1238 | configureToolBarMenu->setItemChecked( 110, true ); | 1238 | configureToolBarMenu->setItemChecked( 110, true ); |
1239 | if (p-> mShowIconJournal) | 1239 | if (p-> mShowIconJournal) |
1240 | configureToolBarMenu->setItemChecked( 90, true ); | 1240 | configureToolBarMenu->setItemChecked( 90, true ); |
1241 | if (p-> mShowIconWhatsThis) | 1241 | if (p-> mShowIconWhatsThis) |
1242 | configureToolBarMenu->setItemChecked( 300, true ); | 1242 | configureToolBarMenu->setItemChecked( 300, true ); |
1243 | if (p-> mShowIconWeekNum) | 1243 | if (p-> mShowIconWeekNum) |
1244 | configureToolBarMenu->setItemChecked( 400, true ); | 1244 | configureToolBarMenu->setItemChecked( 400, true ); |
1245 | if (!p-> mShowIconStretch) { | 1245 | if (!p-> mShowIconStretch) { |
1246 | QLabel* dummy = new QLabel( iconToolBar ); | 1246 | QLabel* dummy = new QLabel( iconToolBar ); |
1247 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); | 1247 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); |
1248 | dummy->setMinimumWidth( 0 ); | 1248 | dummy->setMinimumWidth( 0 ); |
1249 | iconToolBar->setStretchableWidget ( dummy ) ; | 1249 | iconToolBar->setStretchableWidget ( dummy ) ; |
1250 | } | 1250 | } |
1251 | else { | 1251 | else { |
1252 | iconToolBar->setHorizontalStretchable (true ); | 1252 | iconToolBar->setHorizontalStretchable (true ); |
1253 | viewToolBar->setHorizontalStretchable (true ); | 1253 | viewToolBar->setHorizontalStretchable (true ); |
1254 | navigatorToolBar->setHorizontalStretchable (true ); | 1254 | navigatorToolBar->setHorizontalStretchable (true ); |
1255 | iconToolBar->setVerticalStretchable (true ); | 1255 | iconToolBar->setVerticalStretchable (true ); |
1256 | viewToolBar->setVerticalStretchable (true ); | 1256 | viewToolBar->setVerticalStretchable (true ); |
1257 | navigatorToolBar->setVerticalStretchable (true ); | 1257 | navigatorToolBar->setVerticalStretchable (true ); |
1258 | configureToolBarMenu->setItemChecked( 5, true ); | 1258 | configureToolBarMenu->setItemChecked( 5, true ); |
1259 | } | 1259 | } |
1260 | if (p-> mShowIconFilter) | 1260 | if (p-> mShowIconFilter) |
1261 | configureToolBarMenu->setItemChecked( 7, true ); | 1261 | configureToolBarMenu->setItemChecked( 7, true ); |
1262 | if (p-> mShowIconOnetoolbar) | 1262 | if (p-> mShowIconOnetoolbar) |
1263 | configureToolBarMenu->setItemChecked( 6, true ); | 1263 | configureToolBarMenu->setItemChecked( 6, true ); |
1264 | 1264 | ||
1265 | 1265 | ||
1266 | if ( filterMenubar ) | 1266 | if ( filterMenubar ) |
1267 | connect( mView->filterView(), SIGNAL( filterChanged() ), SLOT( updateFilterToolbar() ) ); | 1267 | connect( mView->filterView(), SIGNAL( filterChanged() ), SLOT( updateFilterToolbar() ) ); |
1268 | connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); | 1268 | connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); |
1269 | configureAgenda( p->mHourSize ); | 1269 | configureAgenda( p->mHourSize ); |
1270 | connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); | 1270 | connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); |
1271 | } | 1271 | } |
1272 | 1272 | ||
1273 | void MainWindow::exportToPhone( int mode ) | 1273 | void MainWindow::exportToPhone( int mode ) |
1274 | { | 1274 | { |
1275 | 1275 | ||
1276 | //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); | 1276 | //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); |
1277 | //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); | 1277 | //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); |
1278 | KOex2phonePrefs ex2phone; | 1278 | KOex2phonePrefs ex2phone; |
1279 | 1279 | ||
1280 | ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); | 1280 | ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); |
1281 | ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); | 1281 | ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); |
1282 | ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); | 1282 | ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); |
1283 | if ( mode == 1 ) | 1283 | if ( mode == 1 ) |
1284 | ex2phone.setCaption(i18n("Export complete calendar")); | 1284 | ex2phone.setCaption(i18n("Export complete calendar")); |
1285 | if ( mode == 2 ) | 1285 | if ( mode == 2 ) |
1286 | ex2phone.setCaption(i18n("Export filtered calendar")); | 1286 | ex2phone.setCaption(i18n("Export filtered calendar")); |
1287 | 1287 | ||
1288 | if ( !ex2phone.exec() ) { | 1288 | if ( !ex2phone.exec() ) { |
1289 | return; | 1289 | return; |
1290 | } | 1290 | } |
1291 | KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); | 1291 | KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); |
1292 | KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); | 1292 | KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); |
1293 | KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); | 1293 | KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); |
1294 | 1294 | ||
1295 | int inFuture = 0; | 1295 | int inFuture = 0; |
1296 | if ( ex2phone.mWriteBackFuture->isChecked() ) | 1296 | if ( ex2phone.mWriteBackFuture->isChecked() ) |
1297 | inFuture = ex2phone.mWriteBackFutureWeeks->value(); | 1297 | inFuture = ex2phone.mWriteBackFutureWeeks->value(); |
1298 | QPtrList<Incidence> delSel; | 1298 | QPtrList<Incidence> delSel; |
1299 | if ( mode == 1 ) | 1299 | if ( mode == 1 ) |
1300 | delSel = mCalendar->rawIncidences(); | 1300 | delSel = mCalendar->rawIncidences(); |
1301 | if ( mode == 2 ) | 1301 | if ( mode == 2 ) |
1302 | delSel = mCalendar->incidences(); | 1302 | delSel = mCalendar->incidences(); |
1303 | CalendarLocal* cal = new CalendarLocal(); | 1303 | CalendarLocal* cal = new CalendarLocal(); |
1304 | cal->setLocalTime(); | 1304 | cal->setLocalTime(); |
1305 | Incidence *incidence = delSel.first(); | 1305 | Incidence *incidence = delSel.first(); |
1306 | QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); | 1306 | QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); |
1307 | QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); | 1307 | QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); |
1308 | while ( incidence ) { | 1308 | while ( incidence ) { |
1309 | if ( incidence->type() != "Journal" ) { | 1309 | if ( incidence->type() != "Journal" ) { |
1310 | bool add = true; | 1310 | bool add = true; |
1311 | if ( inFuture ) { | 1311 | if ( inFuture ) { |
1312 | QDateTime dt; | 1312 | QDateTime dt; |
1313 | if ( incidence->type() == "Todo" ) { | 1313 | if ( incidence->type() == "Todo" ) { |
1314 | Todo * t = (Todo*)incidence; | 1314 | Todo * t = (Todo*)incidence; |
1315 | if ( t->hasDueDate() ) | 1315 | if ( t->hasDueDate() ) |
1316 | dt = t->dtDue(); | 1316 | dt = t->dtDue(); |
1317 | else | 1317 | else |
1318 | dt = cur.addSecs( 62 ); | 1318 | dt = cur.addSecs( 62 ); |
1319 | } | 1319 | } |
1320 | else { | 1320 | else { |
1321 | bool ok; | 1321 | bool ok; |
1322 | dt = incidence->getNextOccurence( cur, &ok ); | 1322 | dt = incidence->getNextOccurence( cur, &ok ); |
1323 | if ( !ok ) | 1323 | if ( !ok ) |
1324 | dt = cur.addSecs( -62 ); | 1324 | dt = cur.addSecs( -62 ); |
1325 | } | 1325 | } |
1326 | if ( dt < cur || dt > end ) { | 1326 | if ( dt < cur || dt > end ) { |
1327 | add = false; | 1327 | add = false; |
1328 | } | 1328 | } |
1329 | } | 1329 | } |
1330 | if ( add ) { | 1330 | if ( add ) { |
1331 | Incidence *in = incidence->clone(); | 1331 | Incidence *in = incidence->clone(); |
1332 | cal->addIncidence( in ); | 1332 | cal->addIncidence( in ); |
1333 | } | 1333 | } |
1334 | } | 1334 | } |
1335 | incidence = delSel.next(); | 1335 | incidence = delSel.next(); |
1336 | } | 1336 | } |
1337 | PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, | 1337 | PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, |
1338 | KPimGlobalPrefs::instance()->mEx2PhoneConnection, | 1338 | KPimGlobalPrefs::instance()->mEx2PhoneConnection, |
1339 | KPimGlobalPrefs::instance()->mEx2PhoneModel ); | 1339 | KPimGlobalPrefs::instance()->mEx2PhoneModel ); |
1340 | 1340 | ||
1341 | setCaption( i18n("Writing to phone...")); | 1341 | setCaption( i18n("Writing to phone...")); |
1342 | if ( PhoneFormat::writeToPhone( cal ) ) | 1342 | if ( PhoneFormat::writeToPhone( cal ) ) |
1343 | setCaption( i18n("Export to phone successful!")); | 1343 | setCaption( i18n("Export to phone successful!")); |
1344 | else | 1344 | else |
1345 | setCaption( i18n("Error exporting to phone!")); | 1345 | setCaption( i18n("Error exporting to phone!")); |
1346 | delete cal; | 1346 | delete cal; |
1347 | } | 1347 | } |
1348 | 1348 | ||
1349 | 1349 | ||
1350 | void MainWindow::setDefaultPreferences() | 1350 | void MainWindow::setDefaultPreferences() |
1351 | { | 1351 | { |
1352 | KOPrefs *p = KOPrefs::instance(); | 1352 | KOPrefs *p = KOPrefs::instance(); |
1353 | 1353 | ||
1354 | p->mCompactDialogs = true; | 1354 | p->mCompactDialogs = true; |
1355 | p->mConfirm = true; | 1355 | p->mConfirm = true; |
1356 | // p->mEnableQuickTodo = false; | 1356 | // p->mEnableQuickTodo = false; |
1357 | 1357 | ||
1358 | } | 1358 | } |
1359 | 1359 | ||
1360 | QString MainWindow::resourcePath() | 1360 | QString MainWindow::resourcePath() |
1361 | { | 1361 | { |
1362 | return KGlobal::iconLoader()->iconPath(); | 1362 | return KGlobal::iconLoader()->iconPath(); |
1363 | } | 1363 | } |
1364 | 1364 | ||
1365 | void MainWindow::displayText( QString text ,QString cap ) | 1365 | void MainWindow::displayText( QString text ,QString cap ) |
1366 | { | 1366 | { |
1367 | QDialog dia( this, "name", true ); ; | 1367 | QDialog dia( this, "name", true ); ; |
1368 | dia.setCaption( cap ); | 1368 | dia.setCaption( cap ); |
1369 | QVBoxLayout* lay = new QVBoxLayout( &dia ); | 1369 | QVBoxLayout* lay = new QVBoxLayout( &dia ); |
1370 | lay->setSpacing( 3 ); | 1370 | lay->setSpacing( 3 ); |
1371 | lay->setMargin( 3 ); | 1371 | lay->setMargin( 3 ); |
1372 | QTextBrowser tb ( &dia ); | 1372 | QTextBrowser tb ( &dia ); |
1373 | lay->addWidget( &tb ); | 1373 | lay->addWidget( &tb ); |
1374 | tb.setText( text ); | 1374 | tb.setText( text ); |
1375 | #ifdef DESKTOP_VERSION | 1375 | #ifdef DESKTOP_VERSION |
1376 | dia.resize( 640, 480); | 1376 | dia.resize( 640, 480); |
1377 | #else | 1377 | #else |
1378 | dia.showMaximized(); | 1378 | dia.showMaximized(); |
1379 | #endif | 1379 | #endif |
1380 | dia.exec(); | 1380 | dia.exec(); |
1381 | } | 1381 | } |
1382 | 1382 | ||
1383 | void MainWindow::features() | 1383 | void MainWindow::features() |
1384 | { | 1384 | { |
1385 | 1385 | ||
1386 | KApplication::showFile( i18n("KO/Pi Features and hints"), "kdepim/korganizer/featuresKOPI.txt" ); | 1386 | KApplication::showFile( i18n("KO/Pi Features and hints"), "kdepim/korganizer/featuresKOPI.txt" ); |
1387 | } | 1387 | } |
1388 | 1388 | ||
1389 | void MainWindow::usertrans() | 1389 | void MainWindow::usertrans() |
1390 | { | 1390 | { |
1391 | 1391 | ||
1392 | KApplication::showFile( i18n("KO/Pi User translation HowTo"), "kdepim/korganizer/usertranslationHOWTO.txt" ); | 1392 | KApplication::showFile( i18n("KO/Pi User translation HowTo"), "kdepim/korganizer/usertranslationHOWTO.txt" ); |
1393 | } | 1393 | } |
1394 | 1394 | ||
1395 | void MainWindow::kdesynchowto() | 1395 | void MainWindow::kdesynchowto() |
1396 | { | 1396 | { |
1397 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); | 1397 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); |
1398 | } | 1398 | } |
1399 | void MainWindow::multisynchowto() | 1399 | void MainWindow::multisynchowto() |
1400 | { | 1400 | { |
1401 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); | 1401 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); |
1402 | } | 1402 | } |
1403 | void MainWindow::synchowto() | 1403 | void MainWindow::synchowto() |
1404 | { | 1404 | { |
1405 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); | 1405 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); |
1406 | } | 1406 | } |
1407 | void MainWindow::faq() | 1407 | void MainWindow::faq() |
1408 | { | 1408 | { |
1409 | KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" ); | 1409 | KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" ); |
1410 | 1410 | ||
1411 | } | 1411 | } |
1412 | void MainWindow::whatsNew() | 1412 | void MainWindow::whatsNew() |
1413 | { | 1413 | { |
1414 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); | 1414 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); |
1415 | 1415 | ||
1416 | } | 1416 | } |
1417 | void MainWindow::licence() | 1417 | void MainWindow::licence() |
1418 | { | 1418 | { |
1419 | KApplication::showLicence(); | 1419 | KApplication::showLicence(); |
1420 | 1420 | ||
1421 | } | 1421 | } |
1422 | void MainWindow::about() | 1422 | void MainWindow::about() |
1423 | { | 1423 | { |
1424 | QString version; | 1424 | QString version; |
1425 | #include <../version> | 1425 | #include <../version> |
1426 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), | 1426 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), |
1427 | i18n("KOrganizer/Platform-independent\n") + | 1427 | i18n("KOrganizer/Platform-independent\n") + |
1428 | "(KO/Pi) " + version + " - " + | 1428 | "(KO/Pi) " + version + " - " + |
1429 | 1429 | ||
1430 | #ifdef DESKTOP_VERSION | 1430 | #ifdef DESKTOP_VERSION |
1431 | i18n("Desktop Edition\n") + | 1431 | i18n("Desktop Edition\n") + |
1432 | #else | 1432 | #else |
1433 | i18n("PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n") + | 1433 | i18n("PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n") + |
1434 | #endif | 1434 | #endif |
1435 | i18n("(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!") ); | 1435 | i18n("(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!") ); |
1436 | } | 1436 | } |
1437 | void MainWindow::keyBindings() | 1437 | void MainWindow::keyBindings() |
1438 | { | 1438 | { |
1439 | QString cap = i18n("KO/Pi Keys + Colors"); | 1439 | QString cap = i18n("KO/Pi Keys + Colors"); |
1440 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + | 1440 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + |
1441 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ | 1441 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ |
1442 | i18n("<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n") + | ||
1443 | i18n("<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n") + | ||
1442 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + | 1444 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + |
1443 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ | 1445 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ |
1444 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ | 1446 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ |
1445 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ | 1447 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ |
1446 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ | 1448 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ |
1447 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ | 1449 | i18n("<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ")+ |
1448 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ | 1450 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ |
1449 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ | 1451 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ |
1450 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ | 1452 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ |
1451 | i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ | 1453 | i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ |
1452 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ | 1454 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ |
1453 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ | 1455 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ |
1454 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ | 1456 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n")+ |
1455 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ | 1457 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ |
1456 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ | 1458 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ |
1457 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ | 1459 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ |
1458 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ | 1460 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ |
1459 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ | 1461 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ |
1460 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ | 1462 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ |
1461 | i18n("<p><h3>In agenda view:</h3></p>\n") + | 1463 | i18n("<p><h3>In agenda view:</h3></p>\n") + |
1462 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ | 1464 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ |
1463 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ | 1465 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ |
1464 | i18n("<p><h3>In todo view:</h3></p>\n") + | 1466 | i18n("<p><h3>In todo view:</h3></p>\n") + |
1465 | i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+ | 1467 | i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+ |
1466 | i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+ | 1468 | i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+ |
1467 | i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+ | 1469 | i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+ |
1468 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ | 1470 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ |
1469 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1471 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1470 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ | 1472 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ |
1471 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ | 1473 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ |
1472 | i18n("<p><h3>In list view:</h3></p>\n") + | 1474 | i18n("<p><h3>In list view:</h3></p>\n") + |
1473 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1475 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1474 | i18n("<p><b>return</b>: Select item+one step down</p>\n")+ | 1476 | i18n("<p><b>return</b>: Select item+one step down</p>\n")+ |
1475 | i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ | 1477 | i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ |
1476 | i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ | 1478 | i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ |
1477 | i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ | 1479 | i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ |
1478 | i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ | 1480 | i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ |
1479 | i18n("<p><h3>In event/todo viewer:</h3></p>\n") + | 1481 | i18n("<p><h3>In event/todo viewer:</h3></p>\n") + |
1480 | i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ | 1482 | i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ |
1481 | i18n("<p><b>A</b>: Show agenda view.</p>\n")+ | 1483 | i18n("<p><b>A</b>: Show agenda view.</p>\n")+ |
1482 | i18n("<p><b>E</b>: Edit item</p>\n") + | 1484 | i18n("<p><b>E</b>: Edit item</p>\n") + |
1483 | i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + | 1485 | i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + |
1484 | i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + | 1486 | i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + |
1485 | i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ | 1487 | i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ |
1486 | i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ | 1488 | i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ |
1487 | i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ | 1489 | i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ |
1488 | i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ | 1490 | i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ |
1489 | i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ | 1491 | i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ |
1490 | i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + | 1492 | i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + |
1491 | i18n("<p><b>White</b>: Item readonly</p>\n"); | 1493 | i18n("<p><b>White</b>: Item readonly</p>\n"); |
1492 | displayText( text, cap); | 1494 | displayText( text, cap); |
1493 | } | 1495 | } |
1494 | void MainWindow::aboutAutoSaving() | 1496 | void MainWindow::aboutAutoSaving() |
1495 | { | 1497 | { |
1496 | QString text = i18n("After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n"); | 1498 | QString text = i18n("After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n"); |
1497 | 1499 | ||
1498 | KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text); | 1500 | KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text); |
1499 | 1501 | ||
1500 | } | 1502 | } |
1501 | void MainWindow::aboutKnownBugs() | 1503 | void MainWindow::aboutKnownBugs() |
1502 | { | 1504 | { |
1503 | QMessageBox* msg; | 1505 | QMessageBox* msg; |
1504 | msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), | 1506 | msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), |
1505 | i18n("1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n")+ | 1507 | i18n("1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n")+ |
1506 | i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ | 1508 | i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ |
1507 | i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n") + | 1509 | i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n") + |
1508 | i18n("\nor report them in the bugtracker on\n") + | 1510 | i18n("\nor report them in the bugtracker on\n") + |
1509 | i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), | 1511 | i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), |
1510 | QMessageBox::NoIcon, | 1512 | QMessageBox::NoIcon, |
1511 | QMessageBox::Ok, | 1513 | QMessageBox::Ok, |
1512 | QMessageBox::NoButton, | 1514 | QMessageBox::NoButton, |
1513 | QMessageBox::NoButton); | 1515 | QMessageBox::NoButton); |
1514 | msg->exec(); | 1516 | msg->exec(); |
1515 | delete msg; | 1517 | delete msg; |
1516 | 1518 | ||
1517 | } | 1519 | } |
1518 | 1520 | ||
1519 | QString MainWindow::defaultFileName() | 1521 | QString MainWindow::defaultFileName() |
1520 | { | 1522 | { |
1521 | return locateLocal( "data", "korganizer/mycalendar.ics" ); | 1523 | return locateLocal( "data", "korganizer/mycalendar.ics" ); |
1522 | } | 1524 | } |
1523 | QString MainWindow::syncFileName() | 1525 | QString MainWindow::syncFileName() |
1524 | { | 1526 | { |
1525 | #ifdef DESKTOP_VERSION | 1527 | #ifdef DESKTOP_VERSION |
1526 | return locateLocal( "tmp", "synccalendar.ics" ); | 1528 | return locateLocal( "tmp", "synccalendar.ics" ); |
1527 | #else | 1529 | #else |
1528 | return QString( "/tmp/synccalendar.ics" ); | 1530 | return QString( "/tmp/synccalendar.ics" ); |
1529 | #endif | 1531 | #endif |
1530 | } | 1532 | } |
1531 | #include "koglobals.h" | 1533 | #include "koglobals.h" |
1532 | #include <kcalendarsystem.h> | 1534 | #include <kcalendarsystem.h> |
1533 | void MainWindow::updateWeek(QDate seda) | 1535 | void MainWindow::updateWeek(QDate seda) |
1534 | { | 1536 | { |
1535 | int weekNum = KGlobal::locale()->weekNum ( seda ); | 1537 | int weekNum = KGlobal::locale()->weekNum ( seda ); |
1536 | mWeekPixmap.fill( mWeekBgColor ); | 1538 | mWeekPixmap.fill( mWeekBgColor ); |
1537 | QPainter p ( &mWeekPixmap ); | 1539 | QPainter p ( &mWeekPixmap ); |
1538 | p.setFont( mWeekFont ); | 1540 | p.setFont( mWeekFont ); |
1539 | p.drawText( 0,0,mWeekPixmap.width(), mWeekPixmap.height(),AlignCenter, QString::number( weekNum) ); | 1541 | p.drawText( 0,0,mWeekPixmap.width(), mWeekPixmap.height(),AlignCenter, QString::number( weekNum) ); |
1540 | p.end(); | 1542 | p.end(); |
1541 | QIconSet icon3 ( mWeekPixmap ); | 1543 | QIconSet icon3 ( mWeekPixmap ); |
1542 | mWeekAction->setIconSet ( icon3 ); | 1544 | mWeekAction->setIconSet ( icon3 ); |
1543 | 1545 | ||
1544 | } | 1546 | } |
1545 | void MainWindow::updateWeekNum(const DateList &selectedDates) | 1547 | void MainWindow::updateWeekNum(const DateList &selectedDates) |
1546 | { | 1548 | { |
1547 | updateWeek( selectedDates.first() ); | 1549 | updateWeek( selectedDates.first() ); |
1548 | } | 1550 | } |
1549 | void MainWindow::processIncidenceSelection( Incidence *incidence ) | 1551 | void MainWindow::processIncidenceSelection( Incidence *incidence ) |
1550 | { | 1552 | { |
1551 | 1553 | ||
1552 | if ( !incidence ) { | 1554 | if ( !incidence ) { |
1553 | enableIncidenceActions( false ); | 1555 | enableIncidenceActions( false ); |
1554 | 1556 | ||
1555 | mNewSubTodoAction->setEnabled( false ); | 1557 | mNewSubTodoAction->setEnabled( false ); |
1556 | setCaptionToDates(); | 1558 | setCaptionToDates(); |
1557 | return; | 1559 | return; |
1558 | 1560 | ||
1559 | } | 1561 | } |
1560 | 1562 | ||
1561 | //KGlobal::locale()->formatDateTime(nextA, true); | 1563 | //KGlobal::locale()->formatDateTime(nextA, true); |
1562 | QString startString = ""; | 1564 | QString startString = ""; |
1563 | if ( incidence->type() != "Todo" ) { | 1565 | if ( incidence->type() != "Todo" ) { |
1564 | if ( incidence->dtStart().date() < incidence->dtEnd().date() ) { | 1566 | if ( incidence->dtStart().date() < incidence->dtEnd().date() ) { |
1565 | if ( incidence->doesFloat() ) { | 1567 | if ( incidence->doesFloat() ) { |
1566 | startString += ": "+incidence->dtStartDateStr( true ); | 1568 | startString += ": "+incidence->dtStartDateStr( true ); |
1567 | startString += " --- "+((Event*)incidence)->dtEndDateStr( true ); | 1569 | startString += " --- "+((Event*)incidence)->dtEndDateStr( true ); |
1568 | 1570 | ||
1569 | } else { | 1571 | } else { |
1570 | startString = ": "+incidence->dtStartStr(true); | 1572 | startString = ": "+incidence->dtStartStr(true); |
1571 | startString += " --- "+((Event*)incidence)->dtEndStr(true); | 1573 | startString += " --- "+((Event*)incidence)->dtEndStr(true); |
1572 | 1574 | ||
1573 | } | 1575 | } |
1574 | 1576 | ||
1575 | } else { | 1577 | } else { |
1576 | if ( incidence->dtStart().time() != incidence->dtEnd().time() ) | 1578 | if ( incidence->dtStart().time() != incidence->dtEnd().time() ) |
1577 | startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+ | 1579 | startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+ |
1578 | "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time()); | 1580 | "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time()); |
1579 | if ( incidence->categories().contains( i18n("Birthday") ) || incidence->categories().contains( i18n("Anniversary") ) ) { | 1581 | if ( incidence->categories().contains( i18n("Birthday") ) || incidence->categories().contains( i18n("Anniversary") ) ) { |
1580 | bool ok; | 1582 | bool ok; |
1581 | QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok ); | 1583 | QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok ); |
1582 | if ( ok ) { | 1584 | if ( ok ) { |
1583 | int years = noc.date().year() - incidence->dtStart().date().year(); | 1585 | int years = noc.date().year() - incidence->dtStart().date().year(); |
1584 | startString += i18n(" (%1 y.)"). arg( years ); | 1586 | startString += i18n(" (%1 y.)"). arg( years ); |
1585 | } | 1587 | } |
1586 | } | 1588 | } |
1587 | else | 1589 | else |
1588 | startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); | 1590 | startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); |
1589 | } | 1591 | } |
1590 | 1592 | ||
1591 | } | 1593 | } |
1592 | else | 1594 | else |
1593 | startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); | 1595 | startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); |
1594 | if ( !incidence->location().isEmpty() ) | 1596 | if ( !incidence->location().isEmpty() ) |
1595 | startString += " (" +incidence->location()+")"; | 1597 | startString += " (" +incidence->location()+")"; |
1596 | setCaption( incidence->summary()+startString); | 1598 | setCaption( incidence->summary()+startString); |
1597 | 1599 | ||
1598 | enableIncidenceActions( true ); | 1600 | enableIncidenceActions( true ); |
1599 | 1601 | ||
1600 | if ( incidence->type() == "Event" ) { | 1602 | if ( incidence->type() == "Event" ) { |
1601 | mShowAction->setText( i18n("Show Event...") ); | 1603 | mShowAction->setText( i18n("Show Event...") ); |
1602 | mEditAction->setText( i18n("Edit Event...") ); | 1604 | mEditAction->setText( i18n("Edit Event...") ); |
1603 | mDeleteAction->setText( i18n("Delete Event...") ); | 1605 | mDeleteAction->setText( i18n("Delete Event...") ); |
1604 | 1606 | ||
1605 | mNewSubTodoAction->setEnabled( false ); | 1607 | mNewSubTodoAction->setEnabled( false ); |
1606 | } else if ( incidence->type() == "Todo" ) { | 1608 | } else if ( incidence->type() == "Todo" ) { |
1607 | mShowAction->setText( i18n("Show Todo...") ); | 1609 | mShowAction->setText( i18n("Show Todo...") ); |
1608 | mEditAction->setText( i18n("Edit Todo...") ); | 1610 | mEditAction->setText( i18n("Edit Todo...") ); |
1609 | mDeleteAction->setText( i18n("Delete Todo...") ); | 1611 | mDeleteAction->setText( i18n("Delete Todo...") ); |
1610 | 1612 | ||
1611 | mNewSubTodoAction->setEnabled( true ); | 1613 | mNewSubTodoAction->setEnabled( true ); |
1612 | } else { | 1614 | } else { |
1613 | mShowAction->setText( i18n("Show...") ); | 1615 | mShowAction->setText( i18n("Show...") ); |
1614 | mShowAction->setText( i18n("Edit...") ); | 1616 | mShowAction->setText( i18n("Edit...") ); |
1615 | mShowAction->setText( i18n("Delete...") ); | 1617 | mShowAction->setText( i18n("Delete...") ); |
1616 | 1618 | ||
1617 | mNewSubTodoAction->setEnabled( false ); | 1619 | mNewSubTodoAction->setEnabled( false ); |
1618 | } | 1620 | } |
1619 | } | 1621 | } |
1620 | 1622 | ||
1621 | void MainWindow::enableIncidenceActions( bool enabled ) | 1623 | void MainWindow::enableIncidenceActions( bool enabled ) |
1622 | { | 1624 | { |
1623 | mShowAction->setEnabled( enabled ); | 1625 | mShowAction->setEnabled( enabled ); |
1624 | mEditAction->setEnabled( enabled ); | 1626 | mEditAction->setEnabled( enabled ); |
1625 | mDeleteAction->setEnabled( enabled ); | 1627 | mDeleteAction->setEnabled( enabled ); |
1626 | 1628 | ||
1627 | mCloneAction->setEnabled( enabled ); | 1629 | mCloneAction->setEnabled( enabled ); |
1628 | mMoveAction->setEnabled( enabled ); | 1630 | mMoveAction->setEnabled( enabled ); |
1629 | mBeamAction->setEnabled( enabled ); | 1631 | mBeamAction->setEnabled( enabled ); |
1630 | mCancelAction->setEnabled( enabled ); | 1632 | mCancelAction->setEnabled( enabled ); |
1631 | } | 1633 | } |
1632 | 1634 | ||
1633 | void MainWindow::importOL() | 1635 | void MainWindow::importOL() |
1634 | { | 1636 | { |
1635 | #ifdef _OL_IMPORT_ | 1637 | #ifdef _OL_IMPORT_ |
1636 | KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); | 1638 | KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); |
1637 | id->exec(); | 1639 | id->exec(); |
1638 | delete id; | 1640 | delete id; |
1639 | mView->updateView(); | 1641 | mView->updateView(); |
1640 | #endif | 1642 | #endif |
1641 | } | 1643 | } |
1642 | void MainWindow::importBday() | 1644 | void MainWindow::importBday() |
1643 | { | 1645 | { |
1644 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1646 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1645 | i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"), | 1647 | i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"), |
1646 | i18n("Import!"), i18n("Cancel"), 0, | 1648 | i18n("Import!"), i18n("Cancel"), 0, |
1647 | 0, 1 ); | 1649 | 0, 1 ); |
1648 | if ( result == 0 ) { | 1650 | if ( result == 0 ) { |
1649 | mView->importBday(); | 1651 | mView->importBday(); |
1650 | 1652 | ||
1651 | } | 1653 | } |
1652 | 1654 | ||
1653 | 1655 | ||
1654 | } | 1656 | } |
1655 | void MainWindow::importQtopia() | 1657 | void MainWindow::importQtopia() |
1656 | { | 1658 | { |
1657 | //#ifndef DESKTOP_VERSION | 1659 | //#ifndef DESKTOP_VERSION |
1658 | QString mess = i18n("When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing"); | 1660 | QString mess = i18n("When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing"); |
1659 | #ifdef DESKTOP_VERSION | 1661 | #ifdef DESKTOP_VERSION |
1660 | mess += i18n("The content of the following files will be\nimported (located in your home directory (hd)):\n(hd)/Applications/datebook/datebook.xml\n(hd)/Applications/todolist/todolist.xml\nThe following category file will be used:\n(hd)/Settings/Categories.xml"); | 1662 | mess += i18n("The content of the following files will be\nimported (located in your home directory (hd)):\n(hd)/Applications/datebook/datebook.xml\n(hd)/Applications/todolist/todolist.xml\nThe following category file will be used:\n(hd)/Settings/Categories.xml"); |
1661 | #endif | 1663 | #endif |
1662 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mess, | 1664 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mess, |
1663 | i18n("Import!"), i18n("Cancel"), 0, | 1665 | i18n("Import!"), i18n("Cancel"), 0, |
1664 | 0, 1 ); | 1666 | 0, 1 ); |
1665 | if ( result == 0 ) { | 1667 | if ( result == 0 ) { |
1666 | #ifndef DESKTOP_VERSION | 1668 | #ifndef DESKTOP_VERSION |
1667 | QString datebook = Global::applicationFileName( "datebook", "datebook.xml"); | 1669 | QString datebook = Global::applicationFileName( "datebook", "datebook.xml"); |
1668 | QString todolist = Global::applicationFileName( "todolist", "todolist.xml"); | 1670 | QString todolist = Global::applicationFileName( "todolist", "todolist.xml"); |
1669 | QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml"; | 1671 | QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml"; |
1670 | #else | 1672 | #else |
1671 | QString datebook = QDir::homeDirPath()+ "/Applications/datebook/datebook.xml"; | 1673 | QString datebook = QDir::homeDirPath()+ "/Applications/datebook/datebook.xml"; |
1672 | QString todolist = QDir::homeDirPath()+ "/Applications/todolist/todolist.xml"; | 1674 | QString todolist = QDir::homeDirPath()+ "/Applications/todolist/todolist.xml"; |
1673 | QString categories = QDir::homeDirPath()+ "/Settings/Categories.xml"; | 1675 | QString categories = QDir::homeDirPath()+ "/Settings/Categories.xml"; |
1674 | #endif | 1676 | #endif |
1675 | mView->importQtopia( categories, datebook, todolist ); | 1677 | mView->importQtopia( categories, datebook, todolist ); |
1676 | } | 1678 | } |
1677 | #if 0 | 1679 | #if 0 |
1678 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1680 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1679 | i18n("Not supported \non desktop!\n"), | 1681 | i18n("Not supported \non desktop!\n"), |
1680 | i18n("Ok"), i18n("Cancel"), 0, | 1682 | i18n("Ok"), i18n("Cancel"), 0, |
1681 | 0, 1 ); | 1683 | 0, 1 ); |
1682 | 1684 | ||
1683 | #endif | 1685 | #endif |
1684 | } | 1686 | } |
1685 | 1687 | ||
1686 | void MainWindow::saveOnClose() | 1688 | void MainWindow::saveOnClose() |
1687 | { | 1689 | { |
1688 | KOPrefs *p = KOPrefs::instance(); | 1690 | KOPrefs *p = KOPrefs::instance(); |
1689 | p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); | 1691 | p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); |
1690 | p->mToolBarHorV = ( viewToolBar->orientation () == Qt:: Horizontal ); | 1692 | p->mToolBarHorV = ( viewToolBar->orientation () == Qt:: Horizontal ); |
1691 | p->mToolBarHorN = ( navigatorToolBar->orientation () == Qt:: Horizontal ); | 1693 | p->mToolBarHorN = ( navigatorToolBar->orientation () == Qt:: Horizontal ); |
1692 | if ( filterToolBar ) { | 1694 | if ( filterToolBar ) { |
1693 | p->mToolBarHorF = ( filterToolBar->orientation () == Qt:: Horizontal ); | 1695 | p->mToolBarHorF = ( filterToolBar->orientation () == Qt:: Horizontal ); |
1694 | } | 1696 | } |
1695 | #ifdef DESKTOP_VERSION | 1697 | #ifdef DESKTOP_VERSION |
1696 | 1698 | ||
1697 | QPoint myP; | 1699 | QPoint myP; |
1698 | myP = mapFromGlobal( iconToolBar->mapToGlobal( QPoint( 0,0) ) ); | 1700 | myP = mapFromGlobal( iconToolBar->mapToGlobal( QPoint( 0,0) ) ); |
1699 | if ( p->mToolBarHor ) | 1701 | if ( p->mToolBarHor ) |
1700 | p->mToolBarUp = myP.y() > height()/2; | 1702 | p->mToolBarUp = myP.y() > height()/2; |
1701 | else | 1703 | else |
1702 | p->mToolBarUp = myP.x() > width()/2; | 1704 | p->mToolBarUp = myP.x() > width()/2; |
1703 | myP = mapFromGlobal( viewToolBar->mapToGlobal( QPoint( 0,0) ) ); | 1705 | myP = mapFromGlobal( viewToolBar->mapToGlobal( QPoint( 0,0) ) ); |
1704 | if ( p->mToolBarHorV ) | 1706 | if ( p->mToolBarHorV ) |
1705 | p->mToolBarUpV = myP.y() > height()/2; | 1707 | p->mToolBarUpV = myP.y() > height()/2; |
1706 | else | 1708 | else |
1707 | p->mToolBarUpV = myP.x() > width()/2 ; | 1709 | p->mToolBarUpV = myP.x() > width()/2 ; |
1708 | myP = mapFromGlobal( navigatorToolBar->mapToGlobal( QPoint( 0,0) ) ); | 1710 | myP = mapFromGlobal( navigatorToolBar->mapToGlobal( QPoint( 0,0) ) ); |
1709 | if ( p->mToolBarHorN ) | 1711 | if ( p->mToolBarHorN ) |
1710 | p->mToolBarUpN = myP.y() > height()/2; | 1712 | p->mToolBarUpN = myP.y() > height()/2; |
1711 | else | 1713 | else |
1712 | p->mToolBarUpN = myP.x() > width()/2 ; | 1714 | p->mToolBarUpN = myP.x() > width()/2 ; |
1713 | if ( filterToolBar ) { | 1715 | if ( filterToolBar ) { |
1714 | myP = mapFromGlobal( filterToolBar->mapToGlobal( QPoint( 0,0) ) ); | 1716 | myP = mapFromGlobal( filterToolBar->mapToGlobal( QPoint( 0,0) ) ); |
1715 | if ( p->mToolBarHorF ) | 1717 | if ( p->mToolBarHorF ) |
1716 | p->mToolBarUpF = myP.y() > height()/2; | 1718 | p->mToolBarUpF = myP.y() > height()/2; |
1717 | else | 1719 | else |
1718 | p->mToolBarUpF = myP.x() > width()/2 ; | 1720 | p->mToolBarUpF = myP.x() > width()/2 ; |
1719 | } | 1721 | } |
1720 | #else | 1722 | #else |
1721 | if ( p->mToolBarHor ) | 1723 | if ( p->mToolBarHor ) |
1722 | p->mToolBarUp = iconToolBar->y() > height()/2; | 1724 | p->mToolBarUp = iconToolBar->y() > height()/2; |
1723 | else | 1725 | else |
1724 | p->mToolBarUp = iconToolBar->x() > width()/2; | 1726 | p->mToolBarUp = iconToolBar->x() > width()/2; |
1725 | if ( p->mToolBarHorV ) | 1727 | if ( p->mToolBarHorV ) |
1726 | p->mToolBarUpV = viewToolBar->y() > height()/2; | 1728 | p->mToolBarUpV = viewToolBar->y() > height()/2; |
1727 | else | 1729 | else |
1728 | p->mToolBarUpV = viewToolBar->x() > width()/2 ; | 1730 | p->mToolBarUpV = viewToolBar->x() > width()/2 ; |
1729 | 1731 | ||
1730 | if ( p->mToolBarHorN ) | 1732 | if ( p->mToolBarHorN ) |
1731 | p->mToolBarUpN = navigatorToolBar->y() > height()/2; | 1733 | p->mToolBarUpN = navigatorToolBar->y() > height()/2; |
1732 | else | 1734 | else |
1733 | p->mToolBarUpN = navigatorToolBar->x() > width()/2 ; | 1735 | p->mToolBarUpN = navigatorToolBar->x() > width()/2 ; |
1734 | if ( filterToolBar ) { | 1736 | if ( filterToolBar ) { |
1735 | if ( p->mToolBarHorF ) | 1737 | if ( p->mToolBarHorF ) |
1736 | p->mToolBarUpF = filterToolBar->y() > height()/2; | 1738 | p->mToolBarUpF = filterToolBar->y() > height()/2; |
1737 | else | 1739 | else |
1738 | p->mToolBarUpF = filterToolBar->x() > width()/2 ; | 1740 | p->mToolBarUpF = filterToolBar->x() > width()/2 ; |
1739 | } | 1741 | } |
1740 | #endif | 1742 | #endif |
1741 | 1743 | ||
1742 | 1744 | ||
1743 | mView->writeSettings(); | 1745 | mView->writeSettings(); |
1744 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) | 1746 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) |
1745 | save(); | 1747 | save(); |
1746 | } | 1748 | } |
1747 | void MainWindow::slotModifiedChanged( bool changed ) | 1749 | void MainWindow::slotModifiedChanged( bool changed ) |
1748 | { | 1750 | { |
1749 | if ( mBlockAtStartup ) | 1751 | if ( mBlockAtStartup ) |
1750 | return; | 1752 | return; |
1751 | 1753 | ||
1752 | int msec; | 1754 | int msec; |
1753 | // we store the changes after 1 minute, | 1755 | // we store the changes after 1 minute, |
1754 | // and for safety reasons after 10 minutes again | 1756 | // and for safety reasons after 10 minutes again |
1755 | if ( !mSyncManager->blockSave() ) | 1757 | if ( !mSyncManager->blockSave() ) |
1756 | msec = (1000 * 60*KOPrefs::instance()->mAutoSaveInterval) +1000; | 1758 | msec = (1000 * 60*KOPrefs::instance()->mAutoSaveInterval) +1000; |
1757 | else | 1759 | else |
1758 | msec = 1000 * 600; | 1760 | msec = 1000 * 600; |
1759 | mSaveTimer.start( msec, true ); // 1 minute | 1761 | mSaveTimer.start( msec, true ); // 1 minute |
1760 | qDebug("KO: Saving File in %d secs!", msec/1000); | 1762 | qDebug("KO: Saving File in %d secs!", msec/1000); |
1761 | mCalendarModifiedFlag = true; | 1763 | mCalendarModifiedFlag = true; |
1762 | } | 1764 | } |
1763 | void MainWindow::saveStopTimer() | 1765 | void MainWindow::saveStopTimer() |
1764 | { | 1766 | { |
1765 | mSaveTimer.stop(); | 1767 | mSaveTimer.stop(); |
1766 | if (mSaveTimer.isActive() ) | 1768 | if (mSaveTimer.isActive() ) |
1767 | qDebug("ti active "); | 1769 | qDebug("ti active "); |
1768 | else | 1770 | else |
1769 | qDebug("KO: Save timer stopped"); | 1771 | qDebug("KO: Save timer stopped"); |
1770 | } | 1772 | } |
1771 | void MainWindow::save() | 1773 | void MainWindow::save() |
1772 | { | 1774 | { |
1773 | if ( !mCalendarModifiedFlag ) { | 1775 | if ( !mCalendarModifiedFlag ) { |
1774 | qDebug("KO: Calendar not modified. Nothing saved."); | 1776 | qDebug("KO: Calendar not modified. Nothing saved."); |
1775 | return; | 1777 | return; |
1776 | } | 1778 | } |
1777 | if ( mSyncManager->blockSave() ) | 1779 | if ( mSyncManager->blockSave() ) |
1778 | return; | 1780 | return; |
1779 | mSyncManager->setBlockSave(true); | 1781 | mSyncManager->setBlockSave(true); |
1780 | if ( mView->checkFileVersion( defaultFileName()) ) { | 1782 | if ( mView->checkFileVersion( defaultFileName()) ) { |
1781 | QTime neededSaveTime = QDateTime::currentDateTime().time(); | 1783 | QTime neededSaveTime = QDateTime::currentDateTime().time(); |
1782 | setCaption(i18n("KO/Pi:Saving Data to File ..." )); | 1784 | setCaption(i18n("KO/Pi:Saving Data to File ..." )); |
1783 | qDebug("KO: Start saving data to file!"); | 1785 | qDebug("KO: Start saving data to file!"); |
1784 | mView->saveCalendar( defaultFileName() ); | 1786 | mView->saveCalendar( defaultFileName() ); |
1785 | mCalendarModifiedFlag = false; | 1787 | mCalendarModifiedFlag = false; |
1786 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); | 1788 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); |
1787 | qDebug("KO: Needed %d ms for saving.",msNeeded ); | 1789 | qDebug("KO: Needed %d ms for saving.",msNeeded ); |
1788 | QString savemes; | 1790 | QString savemes; |
1789 | savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 ); | 1791 | savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 ); |
1790 | setCaption(savemes); | 1792 | setCaption(savemes); |
1791 | } else | 1793 | } else |
1792 | setCaption(i18n("Saving cancelled!")); | 1794 | setCaption(i18n("Saving cancelled!")); |
1793 | mSyncManager->setBlockSave( false ); | 1795 | mSyncManager->setBlockSave( false ); |
1794 | } | 1796 | } |
1795 | 1797 | ||
1796 | void MainWindow::keyReleaseEvent ( QKeyEvent * e) | 1798 | void MainWindow::keyReleaseEvent ( QKeyEvent * e) |
1797 | { | 1799 | { |
1798 | if ( !e->isAutoRepeat() ) { | 1800 | if ( !e->isAutoRepeat() ) { |
1799 | mFlagKeyPressed = false; | 1801 | mFlagKeyPressed = false; |
1800 | } | 1802 | } |
1801 | } | 1803 | } |
1802 | void MainWindow::keyPressEvent ( QKeyEvent * e ) | 1804 | void MainWindow::keyPressEvent ( QKeyEvent * e ) |
1803 | { | 1805 | { |
1804 | qApp->processEvents(); | 1806 | qApp->processEvents(); |
1805 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { | 1807 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { |
1806 | e->ignore(); | 1808 | e->ignore(); |
1807 | // qDebug(" ignore %d",e->isAutoRepeat() ); | 1809 | // qDebug(" ignore %d",e->isAutoRepeat() ); |
1808 | return; | 1810 | return; |
1809 | } | 1811 | } |
1810 | if (! e->isAutoRepeat() ) | 1812 | if (! e->isAutoRepeat() ) |
1811 | mFlagKeyPressed = true; | 1813 | mFlagKeyPressed = true; |
1812 | KOPrefs *p = KOPrefs::instance(); | 1814 | KOPrefs *p = KOPrefs::instance(); |
1813 | bool showSelectedDates = false; | 1815 | bool showSelectedDates = false; |
1814 | int size; | 1816 | int size; |
1815 | int pro = 0; | 1817 | int pro = 0; |
1816 | //qDebug("MainWindow::keyPressEvent "); | 1818 | //qDebug("MainWindow::keyPressEvent "); |
1817 | switch ( e->key() ) { | 1819 | switch ( e->key() ) { |
1818 | case Qt::Key_Right: | 1820 | case Qt::Key_Right: |
1819 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | 1821 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) |
1820 | mView->goNextMonth(); | 1822 | mView->goNextMonth(); |
1821 | else | 1823 | else |
1822 | mView->goNext(); | 1824 | mView->goNext(); |
1823 | showSelectedDates = true; | 1825 | showSelectedDates = true; |
1824 | break; | 1826 | break; |
1825 | case Qt::Key_Left: | 1827 | case Qt::Key_Left: |
1826 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1828 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1827 | mView->goPreviousMonth(); | 1829 | mView->goPreviousMonth(); |
1828 | else | 1830 | else |
1829 | mView->goPrevious(); | 1831 | mView->goPrevious(); |
1830 | showSelectedDates = true; | 1832 | showSelectedDates = true; |
1831 | break; | 1833 | break; |
1832 | case Qt::Key_Down: | 1834 | case Qt::Key_Down: |
1833 | mView->viewManager()->agendaView()->scrollOneHourDown(); | 1835 | mView->viewManager()->agendaView()->scrollOneHourDown(); |
1834 | break; | 1836 | break; |
1835 | case Qt::Key_Up: | 1837 | case Qt::Key_Up: |
1836 | mView->viewManager()->agendaView()->scrollOneHourUp(); | 1838 | mView->viewManager()->agendaView()->scrollOneHourUp(); |
1837 | break; | 1839 | break; |
1838 | case Qt::Key_K: | 1840 | case Qt::Key_K: |
1839 | mView->viewManager()->showMonthViewWeek(); | 1841 | mView->viewManager()->showMonthViewWeek(); |
1840 | break; | 1842 | break; |
1841 | case Qt::Key_I: | 1843 | case Qt::Key_I: |
1842 | mView->showIncidence(); | 1844 | mView->showIncidence(); |
1843 | break; | 1845 | break; |
1844 | case Qt::Key_Delete: | 1846 | case Qt::Key_Delete: |
1845 | case Qt::Key_Backspace: | 1847 | case Qt::Key_Backspace: |
1846 | mView->deleteIncidence(); | 1848 | mView->deleteIncidence(); |
1847 | break; | 1849 | break; |
1848 | case Qt::Key_D: | 1850 | case Qt::Key_D: |
1849 | mView->viewManager()->showDayView(); | 1851 | mView->viewManager()->showDayView(); |
1850 | showSelectedDates = true; | 1852 | showSelectedDates = true; |
1851 | break; | 1853 | break; |
1852 | case Qt::Key_O: | 1854 | case Qt::Key_O: |
1853 | mView->toggleFilerEnabled( ); | 1855 | mView->toggleFilerEnabled( ); |
1854 | break; | 1856 | break; |
1855 | case Qt::Key_0: | 1857 | case Qt::Key_0: |
1856 | case Qt::Key_1: | 1858 | case Qt::Key_1: |
1857 | case Qt::Key_2: | 1859 | case Qt::Key_2: |
1858 | case Qt::Key_3: | 1860 | case Qt::Key_3: |
1859 | case Qt::Key_4: | 1861 | case Qt::Key_4: |
1860 | case Qt::Key_5: | 1862 | case Qt::Key_5: |
1861 | case Qt::Key_6: | 1863 | case Qt::Key_6: |
1862 | case Qt::Key_7: | 1864 | case Qt::Key_7: |
1863 | case Qt::Key_8: | 1865 | case Qt::Key_8: |
1864 | case Qt::Key_9: | 1866 | case Qt::Key_9: |
1865 | pro = e->key()-48; | 1867 | pro = e->key()-48; |
1866 | if ( pro == 0 ) | 1868 | if ( pro == 0 ) |
1867 | pro = 10; | 1869 | pro = 10; |
1868 | if ( e->state() == Qt::ControlButton) | 1870 | if ( e->state() == Qt::ControlButton) |
1869 | pro += 10; | 1871 | pro += 10; |
1870 | break; | 1872 | break; |
1871 | case Qt::Key_M: | 1873 | case Qt::Key_M: |
1872 | mView->viewManager()->showMonthView(); | 1874 | mView->viewManager()->showMonthView(); |
1873 | showSelectedDates = true; | 1875 | showSelectedDates = true; |
1874 | break; | 1876 | break; |
1875 | case Qt::Key_Insert: | 1877 | case Qt::Key_Insert: |
1876 | mView->newEvent(); | 1878 | mView->newEvent(); |
1877 | break; | 1879 | break; |
1878 | case Qt::Key_S : | 1880 | case Qt::Key_S : |
1879 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | 1881 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) |
1880 | mView->newSubTodo(); | 1882 | mView->newSubTodo(); |
1881 | else | 1883 | else |
1882 | mView->dialogManager()->showSearchDialog(); | 1884 | mView->dialogManager()->showSearchDialog(); |
1883 | break; | 1885 | break; |
1884 | case Qt::Key_Y : | 1886 | case Qt::Key_Y : |
1885 | case Qt::Key_Z : | 1887 | case Qt::Key_Z : |
1886 | mView->viewManager()->showWorkWeekView(); | 1888 | mView->viewManager()->showWorkWeekView(); |
1887 | showSelectedDates = true; | 1889 | showSelectedDates = true; |
1888 | break; | 1890 | break; |
1889 | case Qt::Key_U : | 1891 | case Qt::Key_U : |
1890 | mView->viewManager()->showWeekView(); | 1892 | mView->viewManager()->showWeekView(); |
1891 | showSelectedDates = true; | 1893 | showSelectedDates = true; |
1892 | break; | 1894 | break; |
1893 | case Qt::Key_H : | 1895 | case Qt::Key_H : |
1894 | keyBindings(); | 1896 | keyBindings(); |
1895 | break; | 1897 | break; |
1896 | case Qt::Key_W: | 1898 | case Qt::Key_W: |
1897 | mView->viewManager()->showWhatsNextView(); | 1899 | mView->viewManager()->showWhatsNextView(); |
1898 | break; | 1900 | break; |
1899 | case Qt::Key_L: | 1901 | case Qt::Key_L: |
1900 | mView->viewManager()->showListView(); | 1902 | mView->viewManager()->showListView(); |
1901 | break; | 1903 | break; |
1902 | case Qt::Key_N: | 1904 | case Qt::Key_N: |
1903 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | 1905 | mView->viewManager()->showNextView(); |
1904 | mView->viewManager()->showNextView(); | ||
1905 | else { | ||
1906 | mView->viewManager()->showNextXView(); | ||
1907 | showSelectedDates = true; | ||
1908 | } | ||
1909 | break; | 1906 | break; |
1910 | case Qt::Key_V: | 1907 | case Qt::Key_V: |
1911 | mView->viewManager()->showTodoView(); | 1908 | mView->viewManager()->showTodoView(); |
1912 | break; | 1909 | break; |
1913 | case Qt::Key_C: | 1910 | case Qt::Key_C: |
1914 | mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() ); | 1911 | mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() ); |
1915 | break; | 1912 | break; |
1916 | case Qt::Key_P: | 1913 | case Qt::Key_P: |
1917 | mView->showDatePicker( ); | 1914 | mView->showDatePicker( ); |
1918 | break; | 1915 | break; |
1919 | case Qt::Key_F: | 1916 | case Qt::Key_F: |
1920 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1917 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1921 | mView->editFilters(); | 1918 | mView->editFilters(); |
1922 | else | 1919 | else |
1923 | mView->toggleFilter(); | 1920 | mView->toggleFilter(); |
1924 | break; | 1921 | break; |
1925 | case Qt::Key_X: | 1922 | case Qt::Key_X: |
1926 | mView->toggleDateNavigatorWidget(); | 1923 | if ( e->state() == Qt::ControlButton ) |
1924 | mView->toggleDateNavigatorWidget(); | ||
1925 | else { | ||
1926 | mView->viewManager()->showNextXView(); | ||
1927 | showSelectedDates = true; | ||
1928 | } | ||
1927 | break; | 1929 | break; |
1928 | case Qt::Key_Space: | 1930 | case Qt::Key_Space: |
1929 | mView->toggleExpand(); | 1931 | mView->toggleExpand(); |
1930 | break; | 1932 | break; |
1931 | case Qt::Key_A: | 1933 | case Qt::Key_A: |
1932 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton ) | 1934 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton ) |
1933 | mView->showNextAlarms(); | 1935 | mView->showNextAlarms(); |
1934 | else | 1936 | else |
1935 | mView->toggleAllDaySize(); | 1937 | mView->toggleAllDaySize(); |
1936 | break; | 1938 | break; |
1937 | case Qt::Key_T: | 1939 | case Qt::Key_T: |
1938 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1940 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1939 | mView->newTodo(); | 1941 | mView->newTodo(); |
1940 | else { | 1942 | else { |
1941 | mView->goToday(); | 1943 | mView->goToday(); |
1942 | showSelectedDates = true; | 1944 | showSelectedDates = true; |
1943 | } | 1945 | } |
1944 | break; | 1946 | break; |
1945 | case Qt::Key_J: | 1947 | case Qt::Key_J: |
1946 | mView->viewManager()->showJournalView(); | 1948 | mView->viewManager()->showJournalView(); |
1947 | break; | 1949 | break; |
1948 | case Qt::Key_B: | 1950 | case Qt::Key_B: |
1949 | mView->editIncidenceDescription();; | 1951 | mView->editIncidenceDescription();; |
1950 | break; | 1952 | break; |
1951 | // case Qt::Key_Return: | 1953 | // case Qt::Key_Return: |
1952 | case Qt::Key_E: | 1954 | case Qt::Key_E: |
1953 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1955 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1954 | mView->newEvent(); | 1956 | mView->newEvent(); |
1955 | else | 1957 | else |
1956 | mView->editIncidence(); | 1958 | mView->editIncidence(); |
1957 | break; | 1959 | break; |
1958 | case Qt::Key_Plus: | 1960 | case Qt::Key_Plus: |
1959 | size = p->mHourSize +2; | 1961 | size = p->mHourSize +2; |
1960 | if ( size <= 22 ) | 1962 | if ( size <= 22 ) |
1961 | configureAgenda( size ); | 1963 | configureAgenda( size ); |
1962 | break; | 1964 | break; |
1963 | case Qt::Key_Minus: | 1965 | case Qt::Key_Minus: |
1964 | size = p->mHourSize - 2; | 1966 | size = p->mHourSize - 2; |
1965 | if ( size >= 4 ) | 1967 | if ( size >= 4 ) |
1966 | configureAgenda( size ); | 1968 | configureAgenda( size ); |
1967 | break; | 1969 | break; |
1968 | 1970 | ||
1969 | 1971 | ||
1970 | default: | 1972 | default: |
1971 | e->ignore(); | 1973 | e->ignore(); |
1972 | } | 1974 | } |
1973 | if ( pro > 0 ) { | 1975 | if ( pro > 0 ) { |
1974 | mView->selectFilter( pro-1 ); | 1976 | mView->selectFilter( pro-1 ); |
1975 | } | 1977 | } |
1976 | if ( showSelectedDates ) { | 1978 | if ( showSelectedDates ) { |
1977 | ;// setCaptionToDates(); | 1979 | ;// setCaptionToDates(); |
1978 | } | 1980 | } |
1979 | 1981 | ||
1980 | } | 1982 | } |
1981 | void MainWindow::fillFilterMenuTB() | 1983 | void MainWindow::fillFilterMenuTB() |
1982 | { | 1984 | { |
1983 | selectFilterMenuTB->clear(); | 1985 | selectFilterMenuTB->clear(); |
1984 | selectFilterMenuTB->insertItem(i18n ( "Edit Filters" ), 0 ); | 1986 | selectFilterMenuTB->insertItem(i18n ( "Edit Filters" ), 0 ); |
1985 | selectFilterMenuTB->insertSeparator(); | 1987 | selectFilterMenuTB->insertSeparator(); |
1986 | selectFilterMenuTB->insertItem(i18n ( "No Filter" ), 1 ); | 1988 | selectFilterMenuTB->insertItem(i18n ( "No Filter" ), 1 ); |
1987 | 1989 | ||
1988 | selectFilterMenuTB->insertSeparator(); | 1990 | selectFilterMenuTB->insertSeparator(); |
1989 | QPtrList<CalFilter> fili = mView->filters(); | 1991 | QPtrList<CalFilter> fili = mView->filters(); |
1990 | CalFilter *curfilter = mView->filterView()->selectedFilter(); | 1992 | CalFilter *curfilter = mView->filterView()->selectedFilter(); |
1991 | CalFilter *filter = fili.first(); | 1993 | CalFilter *filter = fili.first(); |
1992 | int iii = 2; | 1994 | int iii = 2; |
1993 | bool checkitem = mView->filterView()->filtersEnabled(); | 1995 | bool checkitem = mView->filterView()->filtersEnabled(); |
1994 | while(filter) { | 1996 | while(filter) { |
1995 | selectFilterMenuTB->insertItem( filter->name(), iii ); | 1997 | selectFilterMenuTB->insertItem( filter->name(), iii ); |
1996 | if ( filter == curfilter) | 1998 | if ( filter == curfilter) |
1997 | selectFilterMenuTB->setItemChecked( iii, checkitem ); | 1999 | selectFilterMenuTB->setItemChecked( iii, checkitem ); |
1998 | filter = fili.next(); | 2000 | filter = fili.next(); |
1999 | ++iii; | 2001 | ++iii; |
2000 | } | 2002 | } |
2001 | if ( !checkitem ) | 2003 | if ( !checkitem ) |
2002 | selectFilterMenuTB->setItemChecked( 1, true ); | 2004 | selectFilterMenuTB->setItemChecked( 1, true ); |
2003 | 2005 | ||
2004 | int x = 0; | 2006 | int x = 0; |
2005 | int y = iconToolBar->height(); | 2007 | int y = iconToolBar->height(); |
2006 | int dX = 0; | 2008 | int dX = 0; |
2007 | int dY = 0; | 2009 | int dY = 0; |
2008 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { | 2010 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { |
2009 | if ( iconToolBar->y() > height()/2 ) { | 2011 | if ( iconToolBar->y() > height()/2 ) { |
2010 | dY = selectFilterMenuTB->sizeHint().height()+8; | 2012 | dY = selectFilterMenuTB->sizeHint().height()+8; |
2011 | y = 0; | 2013 | y = 0; |
2012 | } | 2014 | } |
2013 | } else { | 2015 | } else { |
2014 | if ( iconToolBar->x() > width()/2 ) { // right side | 2016 | if ( iconToolBar->x() > width()/2 ) { // right side |
2015 | x=0; | 2017 | x=0; |
2016 | dX= selectFilterMenuTB->sizeHint().width()+8; | 2018 | dX= selectFilterMenuTB->sizeHint().width()+8; |
2017 | y = 0; | 2019 | y = 0; |
2018 | } else { | 2020 | } else { |
2019 | x= iconToolBar->width(); | 2021 | x= iconToolBar->width(); |
2020 | y = 0; | 2022 | y = 0; |
2021 | } | 2023 | } |
2022 | } | 2024 | } |
2023 | //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); | 2025 | //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); |
2024 | selectFilterMenuTB->popup(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY))); | 2026 | selectFilterMenuTB->popup(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY))); |
2025 | } | 2027 | } |
2026 | void MainWindow::fillFilterMenu() | 2028 | void MainWindow::fillFilterMenu() |
2027 | { | 2029 | { |
2028 | selectFilterMenu->clear(); | 2030 | selectFilterMenu->clear(); |
2029 | selectFilterMenu->insertItem(i18n ( "Edit Filters" ), 0 ); | 2031 | selectFilterMenu->insertItem(i18n ( "Edit Filters" ), 0 ); |
2030 | selectFilterMenu->insertSeparator(); | 2032 | selectFilterMenu->insertSeparator(); |
2031 | selectFilterMenu->insertItem(i18n ( "No Filter" ), 1 ); | 2033 | selectFilterMenu->insertItem(i18n ( "No Filter" ), 1 ); |
2032 | 2034 | ||
2033 | selectFilterMenu->insertSeparator(); | 2035 | selectFilterMenu->insertSeparator(); |
2034 | QPtrList<CalFilter> fili = mView->filters(); | 2036 | QPtrList<CalFilter> fili = mView->filters(); |
2035 | CalFilter *curfilter = mView->filterView()->selectedFilter(); | 2037 | CalFilter *curfilter = mView->filterView()->selectedFilter(); |
2036 | CalFilter *filter = fili.first(); | 2038 | CalFilter *filter = fili.first(); |
2037 | int iii = 2; | 2039 | int iii = 2; |
2038 | bool checkitem = mView->filterView()->filtersEnabled(); | 2040 | bool checkitem = mView->filterView()->filtersEnabled(); |
2039 | while(filter) { | 2041 | while(filter) { |
2040 | selectFilterMenu->insertItem( filter->name(), iii ); | 2042 | selectFilterMenu->insertItem( filter->name(), iii ); |
2041 | if ( filter == curfilter) | 2043 | if ( filter == curfilter) |
2042 | selectFilterMenu->setItemChecked( iii, checkitem ); | 2044 | selectFilterMenu->setItemChecked( iii, checkitem ); |
2043 | filter = fili.next(); | 2045 | filter = fili.next(); |
2044 | ++iii; | 2046 | ++iii; |
2045 | } | 2047 | } |
2046 | if ( !checkitem ) | 2048 | if ( !checkitem ) |
2047 | selectFilterMenu->setItemChecked( 1, true ); | 2049 | selectFilterMenu->setItemChecked( 1, true ); |
2048 | } | 2050 | } |
2049 | void MainWindow::fillFilterMenuPopup() | 2051 | void MainWindow::fillFilterMenuPopup() |
2050 | { | 2052 | { |
2051 | filterPopupMenu->clear(); | 2053 | filterPopupMenu->clear(); |
2052 | filterPopupMenu->insertItem(i18n ( "No Filter" ), 0 ); | 2054 | filterPopupMenu->insertItem(i18n ( "No Filter" ), 0 ); |
2053 | 2055 | ||
2054 | filterPopupMenu->insertSeparator(); | 2056 | filterPopupMenu->insertSeparator(); |
2055 | QPtrList<CalFilter> fili = mView->filters(); | 2057 | QPtrList<CalFilter> fili = mView->filters(); |
2056 | CalFilter *curfilter = mView->filterView()->selectedFilter(); | 2058 | CalFilter *curfilter = mView->filterView()->selectedFilter(); |
2057 | CalFilter *filter = fili.first(); | 2059 | CalFilter *filter = fili.first(); |
2058 | int iii = 1; | 2060 | int iii = 1; |
2059 | bool checkitem = mView->filterView()->filtersEnabled(); | 2061 | bool checkitem = mView->filterView()->filtersEnabled(); |
2060 | while(filter) { | 2062 | while(filter) { |
2061 | filterPopupMenu->insertItem( filter->name(), iii ); | 2063 | filterPopupMenu->insertItem( filter->name(), iii ); |
2062 | if ( filter == curfilter) | 2064 | if ( filter == curfilter) |
2063 | filterPopupMenu->setItemChecked( iii, checkitem ); | 2065 | filterPopupMenu->setItemChecked( iii, checkitem ); |
2064 | filter = fili.next(); | 2066 | filter = fili.next(); |
2065 | ++iii; | 2067 | ++iii; |
2066 | } | 2068 | } |
2067 | if ( !checkitem ) | 2069 | if ( !checkitem ) |
2068 | filterPopupMenu->setItemChecked( 0, true ); | 2070 | filterPopupMenu->setItemChecked( 0, true ); |
2069 | } | 2071 | } |
2070 | void MainWindow::selectFilter( int fil ) | 2072 | void MainWindow::selectFilter( int fil ) |
2071 | { | 2073 | { |
2072 | 2074 | ||
2073 | if ( fil == 0 ) { | 2075 | if ( fil == 0 ) { |
2074 | mView->editFilters( ); | 2076 | mView->editFilters( ); |
2075 | } else if ( fil == 1 ){ | 2077 | } else if ( fil == 1 ){ |
2076 | if ( mView->filterView()->filtersEnabled() ) | 2078 | if ( mView->filterView()->filtersEnabled() ) |
2077 | mView->toggleFilerEnabled( ); | 2079 | mView->toggleFilerEnabled( ); |
2078 | } else { | 2080 | } else { |
2079 | if ( !mView->filterView()->filtersEnabled() ) { | 2081 | if ( !mView->filterView()->filtersEnabled() ) { |
2080 | mView->filterView()->blockSignals( true ); | 2082 | mView->filterView()->blockSignals( true ); |
2081 | mView->toggleFilerEnabled( ); | 2083 | mView->toggleFilerEnabled( ); |
2082 | mView->filterView()->blockSignals( false ); | 2084 | mView->filterView()->blockSignals( false ); |
2083 | } | 2085 | } |
2084 | mView->selectFilter( fil-2 ); | 2086 | mView->selectFilter( fil-2 ); |
2085 | } | 2087 | } |
2086 | } | 2088 | } |
2087 | void MainWindow::updateFilterToolbar() | 2089 | void MainWindow::updateFilterToolbar() |
2088 | { | 2090 | { |
2089 | if ( filterMenubar ) { | 2091 | if ( filterMenubar ) { |
2090 | if ( !mView->filterView()->filtersEnabled() ) { | 2092 | if ( !mView->filterView()->filtersEnabled() ) { |
2091 | filterMenubar->changeItem( 0, i18n("No Filter") ); | 2093 | filterMenubar->changeItem( 0, i18n("No Filter") ); |
2092 | } else { | 2094 | } else { |
2093 | CalFilter *curfilter = mView->filterView()->selectedFilter(); | 2095 | CalFilter *curfilter = mView->filterView()->selectedFilter(); |
2094 | if ( curfilter ) { | 2096 | if ( curfilter ) { |
2095 | filterMenubar->changeItem( 0, curfilter->name() ); | 2097 | filterMenubar->changeItem( 0, curfilter->name() ); |
2096 | } | 2098 | } |
2097 | } | 2099 | } |
2098 | } | 2100 | } |
2099 | } | 2101 | } |
2100 | void MainWindow::selectFilterPopup( int fil ) | 2102 | void MainWindow::selectFilterPopup( int fil ) |
2101 | { | 2103 | { |
2102 | selectFilter( fil + 1 ); | 2104 | selectFilter( fil + 1 ); |
2103 | 2105 | ||
2104 | } | 2106 | } |
2105 | void MainWindow::configureToolBar( int item ) | 2107 | void MainWindow::configureToolBar( int item ) |
2106 | { | 2108 | { |
2107 | 2109 | ||
2108 | configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) ); | 2110 | configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) ); |
2109 | KOPrefs *p = KOPrefs::instance(); | 2111 | KOPrefs *p = KOPrefs::instance(); |
2110 | p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 ); | 2112 | p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 ); |
2111 | p-> mShowIconOnetoolbar = configureToolBarMenu->isItemChecked( 6 ); | 2113 | p-> mShowIconOnetoolbar = configureToolBarMenu->isItemChecked( 6 ); |
2112 | p-> mShowIconFilter = configureToolBarMenu->isItemChecked( 7 ); | 2114 | p-> mShowIconFilter = configureToolBarMenu->isItemChecked( 7 ); |
2113 | p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 ); | 2115 | p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 ); |
2114 | p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 ); | 2116 | p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 ); |
2115 | p->mShowIconNavigator = configureToolBarMenu->isItemChecked( 22 ); | 2117 | p->mShowIconNavigator = configureToolBarMenu->isItemChecked( 22 ); |
2116 | p->mShowIconAllday = configureToolBarMenu->isItemChecked( 24 ); | 2118 | p->mShowIconAllday = configureToolBarMenu->isItemChecked( 24 ); |
2117 | p->mShowIconFilterview = configureToolBarMenu->isItemChecked( 26 ); | 2119 | p->mShowIconFilterview = configureToolBarMenu->isItemChecked( 26 ); |
2118 | p->mShowIconToggleFull = configureToolBarMenu->isItemChecked( 28 ); | 2120 | p->mShowIconToggleFull = configureToolBarMenu->isItemChecked( 28 ); |
2119 | p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 ); | 2121 | p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 ); |
2120 | p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 ); | 2122 | p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 ); |
2121 | p-> mShowIconDay1= configureToolBarMenu->isItemChecked( 40 ); | 2123 | p-> mShowIconDay1= configureToolBarMenu->isItemChecked( 40 ); |
2122 | p-> mShowIconDay5= configureToolBarMenu->isItemChecked( 50 ); | 2124 | p-> mShowIconDay5= configureToolBarMenu->isItemChecked( 50 ); |
2123 | p-> mShowIconDay6= configureToolBarMenu->isItemChecked( 75 ); | 2125 | p-> mShowIconDay6= configureToolBarMenu->isItemChecked( 75 ); |
2124 | p-> mShowIconDay7= configureToolBarMenu->isItemChecked( 60 ); | 2126 | p-> mShowIconDay7= configureToolBarMenu->isItemChecked( 60 ); |
2125 | p-> mShowIconMonth= configureToolBarMenu->isItemChecked( 70 ); | 2127 | p-> mShowIconMonth= configureToolBarMenu->isItemChecked( 70 ); |
2126 | p-> mShowIconTodoview= configureToolBarMenu->isItemChecked( 80 ); | 2128 | p-> mShowIconTodoview= configureToolBarMenu->isItemChecked( 80 ); |
2127 | p-> mShowIconBackFast= configureToolBarMenu->isItemChecked( 200 ); | 2129 | p-> mShowIconBackFast= configureToolBarMenu->isItemChecked( 200 ); |
2128 | p-> mShowIconBack = configureToolBarMenu->isItemChecked( 210 ); | 2130 | p-> mShowIconBack = configureToolBarMenu->isItemChecked( 210 ); |
2129 | p-> mShowIconToday= configureToolBarMenu->isItemChecked( 130 ); | 2131 | p-> mShowIconToday= configureToolBarMenu->isItemChecked( 130 ); |
2130 | p-> mShowIconForward= configureToolBarMenu->isItemChecked( 220 ); | 2132 | p-> mShowIconForward= configureToolBarMenu->isItemChecked( 220 ); |
2131 | p-> mShowIconForwardFast= configureToolBarMenu->isItemChecked( 230 ); | 2133 | p-> mShowIconForwardFast= configureToolBarMenu->isItemChecked( 230 ); |
2132 | p-> mShowIconNextDays= configureToolBarMenu->isItemChecked( 100 ); | 2134 | p-> mShowIconNextDays= configureToolBarMenu->isItemChecked( 100 ); |
2133 | p-> mShowIconNext= configureToolBarMenu->isItemChecked( 110 ); | 2135 | p-> mShowIconNext= configureToolBarMenu->isItemChecked( 110 ); |
2134 | p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 ); | 2136 | p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 ); |
2135 | p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 ); | 2137 | p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 ); |
2136 | p-> mShowIconWeekNum= configureToolBarMenu->isItemChecked( 400 ); | 2138 | p-> mShowIconWeekNum= configureToolBarMenu->isItemChecked( 400 ); |
2137 | // initActions(); | 2139 | // initActions(); |
2138 | } | 2140 | } |
2139 | void MainWindow::setCaption ( const QString & c ) | 2141 | void MainWindow::setCaption ( const QString & c ) |
2140 | { | 2142 | { |
2141 | QString cap = c; | 2143 | QString cap = c; |
2142 | cap.replace( QRegExp("\n"), " " ); | 2144 | cap.replace( QRegExp("\n"), " " ); |
2143 | cap = cap.stripWhiteSpace(); | 2145 | cap = cap.stripWhiteSpace(); |
2144 | if ( cap.isEmpty() ) | 2146 | if ( cap.isEmpty() ) |
2145 | cap = "KO/Pi"; | 2147 | cap = "KO/Pi"; |
2146 | QWidget::setCaption( cap ); | 2148 | QWidget::setCaption( cap ); |
2147 | } | 2149 | } |
2148 | void MainWindow::setCaptionToDates() | 2150 | void MainWindow::setCaptionToDates() |
2149 | { | 2151 | { |
2150 | QString selDates; | 2152 | QString selDates; |
2151 | QDate date = mView->startDate(); | 2153 | QDate date = mView->startDate(); |
2152 | if ( ! date.isValid() ) { | 2154 | if ( ! date.isValid() ) { |
2153 | setCaption(""); | 2155 | setCaption(""); |
2154 | return; | 2156 | return; |
2155 | } | 2157 | } |
2156 | selDates = KGlobal::locale()->formatDate( date, true); | 2158 | selDates = KGlobal::locale()->formatDate( date, true); |
2157 | if (mView->startDate() < mView->endDate() ) | 2159 | if (mView->startDate() < mView->endDate() ) |
2158 | selDates += " - " + KGlobal::locale()->formatDate(mView->endDate(), true); | 2160 | selDates += " - " + KGlobal::locale()->formatDate(mView->endDate(), true); |
2159 | else { | 2161 | else { |
2160 | QString addString; | 2162 | QString addString; |
2161 | if ( date == QDateTime::currentDateTime().date() ) | 2163 | if ( date == QDateTime::currentDateTime().date() ) |
2162 | addString = i18n("Today"); | 2164 | addString = i18n("Today"); |
2163 | else if ( date == QDateTime::currentDateTime().date().addDays(1) ) | 2165 | else if ( date == QDateTime::currentDateTime().date().addDays(1) ) |
2164 | addString = i18n("Tomorrow"); | 2166 | addString = i18n("Tomorrow"); |
2165 | if ( !addString.isEmpty() ) | 2167 | if ( !addString.isEmpty() ) |
2166 | selDates = addString+", "+selDates ; | 2168 | selDates = addString+", "+selDates ; |
2167 | } | 2169 | } |
2168 | setCaption( i18n("Dates: ") + selDates ); | 2170 | setCaption( i18n("Dates: ") + selDates ); |
2169 | 2171 | ||
2170 | } | 2172 | } |
2171 | void MainWindow::showConfigureAgenda( ) | 2173 | void MainWindow::showConfigureAgenda( ) |
2172 | { | 2174 | { |
2173 | int iii; | 2175 | int iii; |
2174 | for ( iii = 1;iii<= 10 ;++iii ){ | 2176 | for ( iii = 1;iii<= 10 ;++iii ){ |
2175 | configureAgendaMenu->setItemChecked( (iii+1)*2, false ); | 2177 | configureAgendaMenu->setItemChecked( (iii+1)*2, false ); |
2176 | } | 2178 | } |
2177 | configureAgendaMenu->setItemChecked( (KOPrefs::instance()->mHourSize/2)*2, true ); | 2179 | configureAgendaMenu->setItemChecked( (KOPrefs::instance()->mHourSize/2)*2, true ); |
2178 | } | 2180 | } |
2179 | void MainWindow::configureAgenda( int item ) | 2181 | void MainWindow::configureAgenda( int item ) |
2180 | { | 2182 | { |
2181 | if ( KOPrefs::instance()->mHourSize == item ) | 2183 | if ( KOPrefs::instance()->mHourSize == item ) |
2182 | return; | 2184 | return; |
2183 | KOPrefs::instance()->mHourSize=item; | 2185 | KOPrefs::instance()->mHourSize=item; |
2184 | mView->viewManager()->agendaView()->updateConfig(); | 2186 | mView->viewManager()->agendaView()->updateConfig(); |
2185 | } | 2187 | } |
2186 | 2188 | ||
2187 | void MainWindow::saveCalendar() | 2189 | void MainWindow::saveCalendar() |
2188 | { | 2190 | { |
2189 | QString fn = KOPrefs::instance()->mLastSaveFile; | 2191 | QString fn = KOPrefs::instance()->mLastSaveFile; |
2190 | fn = KFileDialog::getSaveFileName( fn, i18n("Save backup filename"), this ); | 2192 | fn = KFileDialog::getSaveFileName( fn, i18n("Save backup filename"), this ); |
2191 | 2193 | ||
2192 | if ( fn == "" ) | 2194 | if ( fn == "" ) |
2193 | return; | 2195 | return; |
2194 | QFileInfo info; | 2196 | QFileInfo info; |
2195 | info.setFile( fn ); | 2197 | info.setFile( fn ); |
2196 | QString mes; | 2198 | QString mes; |
2197 | bool createbup = true; | 2199 | bool createbup = true; |
2198 | if ( info. exists() ) { | 2200 | if ( info. exists() ) { |
2199 | mes = i18n("Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )) ; | 2201 | mes = i18n("Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )) ; |
2200 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, | 2202 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, |
2201 | i18n("Overwrite!"), i18n("Cancel"), 0, | 2203 | i18n("Overwrite!"), i18n("Cancel"), 0, |
2202 | 0, 1 ); | 2204 | 0, 1 ); |
2203 | if ( result != 0 ) { | 2205 | if ( result != 0 ) { |
2204 | createbup = false; | 2206 | createbup = false; |
2205 | } | 2207 | } |
2206 | } | 2208 | } |
2207 | if ( createbup ) { | 2209 | if ( createbup ) { |
2208 | mView->saveCalendar( fn ); | 2210 | mView->saveCalendar( fn ); |
2209 | mes = i18n("KO/Pi:Saved %1").arg(fn); | 2211 | mes = i18n("KO/Pi:Saved %1").arg(fn); |
2210 | KOPrefs::instance()->mLastSaveFile = fn; | 2212 | KOPrefs::instance()->mLastSaveFile = fn; |
2211 | setCaption(mes); | 2213 | setCaption(mes); |
2212 | } | 2214 | } |
2213 | } | 2215 | } |
2214 | void MainWindow::loadCalendar() | 2216 | void MainWindow::loadCalendar() |
2215 | { | 2217 | { |
2216 | 2218 | ||
2217 | QString fn = KOPrefs::instance()->mLastLoadFile; | 2219 | QString fn = KOPrefs::instance()->mLastLoadFile; |
2218 | fn = KFileDialog::getOpenFileName( fn, i18n("Load backup filename"), this ); | 2220 | fn = KFileDialog::getOpenFileName( fn, i18n("Load backup filename"), this ); |
2219 | 2221 | ||
2220 | if ( fn == "" ) | 2222 | if ( fn == "" ) |
2221 | return; | 2223 | return; |
2222 | QFileInfo info; | 2224 | QFileInfo info; |
2223 | info.setFile( fn ); | 2225 | info.setFile( fn ); |
2224 | QString mess; | 2226 | QString mess; |
2225 | bool loadbup = true; | 2227 | bool loadbup = true; |
2226 | if ( info. exists() ) { | 2228 | if ( info. exists() ) { |
2227 | mess = i18n("Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); | 2229 | mess = i18n("Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); |
2228 | int result = QMessageBox::warning( this, "KO/Pi: Warning!", | 2230 | int result = QMessageBox::warning( this, "KO/Pi: Warning!", |
2229 | mess, | 2231 | mess, |
2230 | i18n("Load!"), i18n("Cancel"), 0, | 2232 | i18n("Load!"), i18n("Cancel"), 0, |
2231 | 0, 1 ); | 2233 | 0, 1 ); |
2232 | if ( result != 0 ) { | 2234 | if ( result != 0 ) { |
2233 | loadbup = false; | 2235 | loadbup = false; |
2234 | } | 2236 | } |
2235 | } else { | 2237 | } else { |
2236 | QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 2238 | QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
2237 | i18n("Backup file\ndoes not exist!\nNothing loaded!"), 0, 0, | 2239 | i18n("Backup file\ndoes not exist!\nNothing loaded!"), 0, 0, |
2238 | 0, 1 ); | 2240 | 0, 1 ); |
2239 | 2241 | ||
2240 | return; | 2242 | return; |
2241 | } | 2243 | } |
2242 | if ( loadbup ) { | 2244 | if ( loadbup ) { |
2243 | mView->openCalendar( fn ); | 2245 | mView->openCalendar( fn ); |
2244 | KOPrefs::instance()->mLastLoadFile = fn; | 2246 | KOPrefs::instance()->mLastLoadFile = fn; |
2245 | mess = i18n("KO/Pi:Loaded %1").arg(fn) ; | 2247 | mess = i18n("KO/Pi:Loaded %1").arg(fn) ; |
2246 | setCaption(mess); | 2248 | setCaption(mess); |
2247 | } | 2249 | } |
2248 | 2250 | ||
2249 | } | 2251 | } |
2250 | void MainWindow::quickImportIcal() | 2252 | void MainWindow::quickImportIcal() |
2251 | { | 2253 | { |
2252 | importFile( KOPrefs::instance()->mLastImportFile, false ); | 2254 | importFile( KOPrefs::instance()->mLastImportFile, false ); |
2253 | } | 2255 | } |
2254 | void MainWindow::importFile( QString fn, bool quick ) | 2256 | void MainWindow::importFile( QString fn, bool quick ) |
2255 | { | 2257 | { |
2256 | QFileInfo info; | 2258 | QFileInfo info; |
2257 | info.setFile( fn ); | 2259 | info.setFile( fn ); |
2258 | QString mess; | 2260 | QString mess; |
2259 | bool loadbup = true; | 2261 | bool loadbup = true; |
2260 | if ( !info. exists() ) { | 2262 | if ( !info. exists() ) { |
2261 | mess = i18n("Import file \n...%1\ndoes not exist!\nNothing imported!\n").arg(fn.right( 30)); | 2263 | mess = i18n("Import file \n...%1\ndoes not exist!\nNothing imported!\n").arg(fn.right( 30)); |
2262 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 2264 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
2263 | mess ); | 2265 | mess ); |
2264 | return; | 2266 | return; |
2265 | } | 2267 | } |
2266 | int result = 0; | 2268 | int result = 0; |
2267 | if ( !quick ) { | 2269 | if ( !quick ) { |
2268 | mess = i18n( "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n").arg(fn.right( 25)).arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); | 2270 | mess = i18n( "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n").arg(fn.right( 25)).arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); |
2269 | result = QMessageBox::warning( this, "KO/Pi: Warning!", | 2271 | result = QMessageBox::warning( this, "KO/Pi: Warning!", |
2270 | mess, | 2272 | mess, |
2271 | "Import", "Cancel", 0, | 2273 | "Import", "Cancel", 0, |
2272 | 0, 1 ); | 2274 | 0, 1 ); |
2273 | } | 2275 | } |
2274 | if ( result == 0 ) { | 2276 | if ( result == 0 ) { |
2275 | if ( mView->openCalendar( fn, true )) { | 2277 | if ( mView->openCalendar( fn, true )) { |
2276 | KOPrefs::instance()->mLastImportFile = fn; | 2278 | KOPrefs::instance()->mLastImportFile = fn; |
2277 | setCaption(i18n("Imported file successfully")); | 2279 | setCaption(i18n("Imported file successfully")); |
2278 | } else { | 2280 | } else { |
2279 | setCaption(i18n("Error importing file")); | 2281 | setCaption(i18n("Error importing file")); |
2280 | } | 2282 | } |
2281 | } | 2283 | } |
2282 | } | 2284 | } |
2283 | 2285 | ||
2284 | void MainWindow::importIcal() | 2286 | void MainWindow::importIcal() |
2285 | { | 2287 | { |
2286 | 2288 | ||
2287 | QString fn =KOPrefs::instance()->mLastImportFile; | 2289 | QString fn =KOPrefs::instance()->mLastImportFile; |
2288 | 2290 | ||
2289 | fn =KFileDialog:: getOpenFileName( fn, i18n("Import filename(*.ics/*.vcs)"), this ); | 2291 | fn =KFileDialog:: getOpenFileName( fn, i18n("Import filename(*.ics/*.vcs)"), this ); |
2290 | if ( fn == "" ) | 2292 | if ( fn == "" ) |
2291 | return; | 2293 | return; |
2292 | importFile( fn, true ); | 2294 | importFile( fn, true ); |
2293 | 2295 | ||
2294 | } | 2296 | } |
2295 | 2297 | ||
2296 | void MainWindow::exportVCalendar() | 2298 | void MainWindow::exportVCalendar() |
2297 | { | 2299 | { |
2298 | QString fn = KOPrefs::instance()->mLastVcalFile; | 2300 | QString fn = KOPrefs::instance()->mLastVcalFile; |
2299 | fn = KFileDialog::getSaveFileName( fn, i18n("Export vcal filename(*.vcs)"), this ); | 2301 | fn = KFileDialog::getSaveFileName( fn, i18n("Export vcal filename(*.vcs)"), this ); |
2300 | if ( fn == "" ) | 2302 | if ( fn == "" ) |
2301 | return; | 2303 | return; |
2302 | QFileInfo info; | 2304 | QFileInfo info; |
2303 | info.setFile( fn ); | 2305 | info.setFile( fn ); |
2304 | QString mes; | 2306 | QString mes; |
2305 | bool createbup = true; | 2307 | bool createbup = true; |
2306 | if ( info. exists() ) { | 2308 | if ( info. exists() ) { |
2307 | mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); | 2309 | mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); |
2308 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, | 2310 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, |
2309 | i18n("Overwrite!"), i18n("Cancel"), 0, | 2311 | i18n("Overwrite!"), i18n("Cancel"), 0, |
2310 | 0, 1 ); | 2312 | 0, 1 ); |