-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 6 | ||||
-rw-r--r-- | kaddressbook/kabcore.cpp | 24 |
2 files changed, 18 insertions, 12 deletions
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index d767757..75df50f 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt | |||
@@ -429,105 +429,111 @@ | |||
429 | { "Extensions","Extensions" }, | 429 | { "Extensions","Extensions" }, |
430 | { "Prefixes","Prefixe" }, | 430 | { "Prefixes","Prefixe" }, |
431 | { "Inclusions","Inclusions" }, | 431 | { "Inclusions","Inclusions" }, |
432 | { "Suffixes","Suffixe" }, | 432 | { "Suffixes","Suffixe" }, |
433 | { "Default formatted name:","Default format. Name:" }, | 433 | { "Default formatted name:","Default format. Name:" }, |
434 | { "Empty","Leer" }, | 434 | { "Empty","Leer" }, |
435 | { "Simple Name","Einfacher Name" }, | 435 | { "Simple Name","Einfacher Name" }, |
436 | { "Full Name","Voller Name" }, | 436 | { "Full Name","Voller Name" }, |
437 | { "Reverse Name","Namen umdrehen" }, | 437 | { "Reverse Name","Namen umdrehen" }, |
438 | { "Contact","Kontakt" }, | 438 | { "Contact","Kontakt" }, |
439 | { "Global","Allgemein" }, | 439 | { "Global","Allgemein" }, |
440 | { "Phone","Telefon" }, | 440 | { "Phone","Telefon" }, |
441 | { "SMS","SMS" }, | 441 | { "SMS","SMS" }, |
442 | { "Language:(needs restart)","Sprache:(Neustart)" }, | 442 | { "Language:(needs restart)","Sprache:(Neustart)" }, |
443 | { "English","English" }, | 443 | { "English","English" }, |
444 | { "German","Deutsch" }, | 444 | { "German","Deutsch" }, |
445 | { "French","Französisch" }, | 445 | { "French","Französisch" }, |
446 | { "Italian","Italienisch" }, | 446 | { "Italian","Italienisch" }, |
447 | { "User defined (usertranslation.txt)","Benutzerdef. (usertranslation.txt)" }, | 447 | { "User defined (usertranslation.txt)","Benutzerdef. (usertranslation.txt)" }, |
448 | { "Time Format(nr):","Zeit Format(nr):" }, | 448 | { "Time Format(nr):","Zeit Format(nr):" }, |
449 | { "24:00","24:00" }, | 449 | { "24:00","24:00" }, |
450 | { "12:00am","12:00am" }, | 450 | { "12:00am","12:00am" }, |
451 | { "Week starts on Sunday","Woche beginnt Sonntags" }, | 451 | { "Week starts on Sunday","Woche beginnt Sonntags" }, |
452 | { "Locale","Locale" }, | 452 | { "Locale","Locale" }, |
453 | { "Date Format:","Datums Format:" }, | 453 | { "Date Format:","Datums Format:" }, |
454 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, | 454 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, |
455 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, | 455 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, |
456 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, | 456 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, |
457 | { "User defined","Benutzerdefiniert" }, | 457 | { "User defined","Benutzerdefiniert" }, |
458 | { "User long date:","Format langes Datum:" }, | 458 | { "User long date:","Format langes Datum:" }, |
459 | { "User short date:","Format kurzes Datum:" }, | 459 | { "User short date:","Format kurzes Datum:" }, |
460 | { "Daylight start:","Sommerzeit Beginn:" }, | 460 | { "Daylight start:","Sommerzeit Beginn:" }, |
461 | { "Daylight end:","Sommerzeit Ende:" }, | 461 | { "Daylight end:","Sommerzeit Ende:" }, |
462 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, | 462 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, |
463 | { "Monday 19 April 2004: %A %d %B %Y","Monday 19 April 2004: %A %d %B %Y" }, | 463 | { "Monday 19 April 2004: %A %d %B %Y","Monday 19 April 2004: %A %d %B %Y" }, |
464 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, | 464 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, |
465 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, | 465 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, |
466 | { "Date Format","Datums Format" }, | 466 | { "Date Format","Datums Format" }, |
467 | { "Timezone:","Zeitzone:" }, | 467 | { "Timezone:","Zeitzone:" }, |
468 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, | 468 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, |
469 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, | 469 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, |
470 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, | 470 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, |
471 | { "Used Mail Client","Benutzter Mail Client" }, | 471 | { "Used Mail Client","Benutzter Mail Client" }, |
472 | { "Channel:","Channel:" }, | 472 | { "Channel:","Channel:" }, |
473 | { "Message:","Message:" }, | 473 | { "Message:","Message:" }, |
474 | { "Parameters:","Parameter:" }, | 474 | { "Parameters:","Parameter:" }, |
475 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, | 475 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, |
476 | { "extra Message:","extra Message:" }, | 476 | { "extra Message:","extra Message:" }, |
477 | { "extra Parameters:","extra Parameter:" }, | 477 | { "extra Parameters:","extra Parameter:" }, |
478 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, | 478 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, |
479 | { "External Apps.","Externe Appl." }, | 479 | { "External Apps.","Externe Appl." }, |
480 | { "Used %1 Client","Benutzer %1 Client" }, | 480 | { "Used %1 Client","Benutzer %1 Client" }, |
481 | { "No email client installed","Keine Email Client installiert" }, | 481 | { "No email client installed","Keine Email Client installiert" }, |
482 | { "Userdefined email client","Benutzerdef. Email Client" }, | 482 | { "Userdefined email client","Benutzerdef. Email Client" }, |
483 | { "OM/Pi email client","OM/Pi Email Client" }, | 483 | { "OM/Pi email client","OM/Pi Email Client" }, |
484 | { "Close KA/Pi?","Schließe KA/Pi?" }, | 484 | { "Close KA/Pi?","Schließe KA/Pi?" }, |
485 | { "\nChanges will be saved!","\nÄnderungen werden gespeichert!" }, | 485 | { "\nChanges will be saved!","\nÄnderungen werden gespeichert!" }, |
486 | { "Yes!","Ja!" }, | 486 | { "Yes!","Ja!" }, |
487 | { "There was an error while attempting to save\n the address book. Please check that some \nother application is not using it. ","#There was an error while attempting to save\n the address book. Please check that some \nother application is not using it. " }, | 487 | { "There was an error while attempting to save\n the address book. Please check that some \nother application is not using it. ","#There was an error while attempting to save\n the address book. Please check that some \nother application is not using it. " }, |
488 | { "Saving addressbook ... ","Speichere Adressbuch ... " }, | 488 | { "Saving addressbook ... ","Speichere Adressbuch ... " }, |
489 | { "Addressbook saved!","Adressbuch gespeichert!" }, | 489 | { "Addressbook saved!","Adressbuch gespeichert!" }, |
490 | { "Default Table View","Default Tabellenansicht" }, | 490 | { "Default Table View","Default Tabellenansicht" }, |
491 | { "Merge and Remove","Zusammenfügen/entfernen" }, | 491 | { "Merge and Remove","Zusammenfügen/entfernen" }, |
492 | { "Merge","Zusammenfügen" }, | 492 | { "Merge","Zusammenfügen" }, |
493 | { "Merge Contacts Editor","Contact-Zusammenfüge-Editor" }, | 493 | { "Merge Contacts Editor","Contact-Zusammenfüge-Editor" }, |
494 | { "New List...","Neue Liste..." }, | 494 | { "New List...","Neue Liste..." }, |
495 | { "Rename List...","Ändere Namen..." }, | 495 | { "Rename List...","Ändere Namen..." }, |
496 | { "Remove List","Lösche Liste" }, | 496 | { "Remove List","Lösche Liste" }, |
497 | { "Add Contact","Kontakt hinzu" }, | 497 | { "Add Contact","Kontakt hinzu" }, |
498 | { "Change Email...","Ändere Email..." }, | 498 | { "Change Email...","Ändere Email..." }, |
499 | { "Remove Contact","Entferne Kontakt" }, | 499 | { "Remove Contact","Entferne Kontakt" }, |
500 | { "Use Preferred","Nutze Preferred" }, | 500 | { "Use Preferred","Nutze Preferred" }, |
501 | { "Distribution List Editor","Distribution List Editor" }, | 501 | { "Distribution List Editor","Distribution List Editor" }, |
502 | { "Choose which contacts to export","Wähle Kontakte zum Exportieren" }, | 502 | { "Choose which contacts to export","Wähle Kontakte zum Exportieren" }, |
503 | { "Which contacts do you want to export?","Welche Kontakte sollen exportiert werden?" }, | 503 | { "Which contacts do you want to export?","Welche Kontakte sollen exportiert werden?" }, |
504 | { "Contact Selection","Kontaktauswahl" }, | 504 | { "Contact Selection","Kontaktauswahl" }, |
505 | { "&All","&Alle" }, | 505 | { "&All","&Alle" }, |
506 | { "Export the entire address book","Exportiere das komplette Addressbuch" }, | 506 | { "Export the entire address book","Exportiere das komplette Addressbuch" }, |
507 | { "&Selected","Au&sgewählte" }, | 507 | { "&Selected","Au&sgewählte" }, |
508 | { "Only export contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected.","###Only export contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected." }, | 508 | { "Only export contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected.","###Only export contacts selected in KAddressBook.\nThis option is disabled if no contacts are selected." }, |
509 | { "By matching &filter","Zutreffender &Filter" }, | 509 | { "By matching &filter","Zutreffender &Filter" }, |
510 | { "Only export contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters","###Only export contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters" }, | 510 | { "Only export contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters","###Only export contacts matching the selected filter.\nThis option is disabled if you haven't defined any filters" }, |
511 | { "By Cate&gories","Kategorien" }, | 511 | { "By Cate&gories","Kategorien" }, |
512 | { "Only export contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories.","###Only export contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories." }, | 512 | { "Only export contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories.","###Only export contacts who are members of a category that is checked on the list to the left.\nThis option is disabled if you have no categories." }, |
513 | { "Select a filter to decide which contacts to export.","Wähle Filter zum Export aus." }, | 513 | { "Select a filter to decide which contacts to export.","Wähle Filter zum Export aus." }, |
514 | { "Check the categories whose members you want to export.","Wähle die Kategorien zum Export aus." }, | 514 | { "Check the categories whose members you want to export.","Wähle die Kategorien zum Export aus." }, |
515 | { "Sorting","Sortieren" }, | 515 | { "Sorting","Sortieren" }, |
516 | { "Criterion:","Merkmal:" }, | 516 | { "Criterion:","Merkmal:" }, |
517 | { "Order:","Reihenfolge:" }, | 517 | { "Order:","Reihenfolge:" }, |
518 | { "Ascending","Aufsteigend" }, | 518 | { "Ascending","Aufsteigend" }, |
519 | { "Descending","Absteigend" }, | 519 | { "Descending","Absteigend" }, |
520 | { "Save file","Datei speichern" }, | 520 | { "Save file","Datei speichern" }, |
521 | { "Error","Fehler" }, | 521 | { "Error","Fehler" }, |
522 | { "Unable to export contacts.","Exportieren der Kontakte geht nicht." }, | 522 | { "Unable to export contacts.","Exportieren der Kontakte geht nicht." }, |
523 | { "\nNo unsaved changes detected!\nNothing will be saved!","\nKeine ungespeicherten\nÄnderungen erkannt!\nNichts wird gespeichert!" }, | 523 | { "\nNo unsaved changes detected!\nNothing will be saved!","\nKeine ungespeicherten\nÄnderungen erkannt!\nNichts wird gespeichert!" }, |
524 | { "Manage new categories...","Verwalte neue Kategorien..." }, | 524 | { "Manage new categories...","Verwalte neue Kategorien..." }, |
525 | { "&File","Datei" }, | ||
526 | { "&Edit","Bearbeite" }, | ||
527 | { "&View","Ansichten" }, | ||
528 | { "&Settings","Konfiguration" }, | ||
529 | { "&Change selected","Ändere Selekt." }, | ||
530 | { "&Help","Hilfe" }, | ||
525 | { "","" }, | 531 | { "","" }, |
526 | { "","" }, | 532 | { "","" }, |
527 | { "","" }, | 533 | { "","" }, |
528 | { "","" }, | 534 | { "","" }, |
529 | { "","" }, | 535 | { "","" }, |
530 | { "","" }, | 536 | { "","" }, |
531 | { "","" }, | 537 | { "","" }, |
532 | { "","" }, | 538 | { "","" }, |
533 | { "","" }, \ No newline at end of file | 539 | { "","" }, \ No newline at end of file |
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 9505a23..4445310 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -1896,219 +1896,219 @@ void KABCore::initActions() | |||
1896 | actionCollection(), "options_show_details" ); | 1896 | actionCollection(), "options_show_details" ); |
1897 | connect( mActionDetails, SIGNAL( toggled( bool ) ), SLOT( setDetailsVisible( bool ) ) ); | 1897 | connect( mActionDetails, SIGNAL( toggled( bool ) ), SLOT( setDetailsVisible( bool ) ) ); |
1898 | 1898 | ||
1899 | 1899 | ||
1900 | mActionBR = new KToggleAction( i18n( "Beam receive enabled" ), "beam", 0, this, | 1900 | mActionBR = new KToggleAction( i18n( "Beam receive enabled" ), "beam", 0, this, |
1901 | SLOT( toggleBeamReceive() ), actionCollection(), | 1901 | SLOT( toggleBeamReceive() ), actionCollection(), |
1902 | "kaddressbook_beam_rec" ); | 1902 | "kaddressbook_beam_rec" ); |
1903 | 1903 | ||
1904 | 1904 | ||
1905 | // misc | 1905 | // misc |
1906 | // only enable LDAP lookup if we can handle the protocol | 1906 | // only enable LDAP lookup if we can handle the protocol |
1907 | #ifndef KAB_EMBEDDED | 1907 | #ifndef KAB_EMBEDDED |
1908 | if ( KProtocolInfo::isKnownProtocol( KURL( "ldap://localhost" ) ) ) { | 1908 | if ( KProtocolInfo::isKnownProtocol( KURL( "ldap://localhost" ) ) ) { |
1909 | new KAction( i18n( "&Lookup Addresses in Directory" ), "find", 0, | 1909 | new KAction( i18n( "&Lookup Addresses in Directory" ), "find", 0, |
1910 | this, SLOT( openLDAPDialog() ), actionCollection(), | 1910 | this, SLOT( openLDAPDialog() ), actionCollection(), |
1911 | "ldap_lookup" ); | 1911 | "ldap_lookup" ); |
1912 | } | 1912 | } |
1913 | #else //KAB_EMBEDDED | 1913 | #else //KAB_EMBEDDED |
1914 | //qDebug("KABCore::initActions() LDAP has to be implemented"); | 1914 | //qDebug("KABCore::initActions() LDAP has to be implemented"); |
1915 | #endif //KAB_EMBEDDED | 1915 | #endif //KAB_EMBEDDED |
1916 | 1916 | ||
1917 | 1917 | ||
1918 | mActionWhoAmI = new KAction( i18n( "Set Who Am I" ), "personal", 0, this, | 1918 | mActionWhoAmI = new KAction( i18n( "Set Who Am I" ), "personal", 0, this, |
1919 | SLOT( setWhoAmI() ), actionCollection(), | 1919 | SLOT( setWhoAmI() ), actionCollection(), |
1920 | "set_personal" ); | 1920 | "set_personal" ); |
1921 | 1921 | ||
1922 | 1922 | ||
1923 | mActionCategories = new KAction( i18n( "Set Categories" ), 0, this, | 1923 | mActionCategories = new KAction( i18n( "Set Categories" ), 0, this, |
1924 | SLOT( setCategories() ), actionCollection(), | 1924 | SLOT( setCategories() ), actionCollection(), |
1925 | "edit_set_categories" ); | 1925 | "edit_set_categories" ); |
1926 | mActionEditCategories = new KAction( i18n( "Edit Categories" ), 0, this, | 1926 | mActionEditCategories = new KAction( i18n( "Edit Categories" ), 0, this, |
1927 | SLOT( editCategories() ), actionCollection(), | 1927 | SLOT( editCategories() ), actionCollection(), |
1928 | "edit__categories" ); | 1928 | "edit__categories" ); |
1929 | 1929 | ||
1930 | mActionRemoveVoice = new KAction( i18n( "Remove \"voice\"..." ), 0, this, | 1930 | mActionRemoveVoice = new KAction( i18n( "Remove \"voice\"..." ), 0, this, |
1931 | SLOT( removeVoice() ), actionCollection(), | 1931 | SLOT( removeVoice() ), actionCollection(), |
1932 | "remove_voice" ); | 1932 | "remove_voice" ); |
1933 | 1933 | ||
1934 | mActionManageCategories= new KAction( i18n( "Manage new categories..." ), 0, this, | 1934 | mActionManageCategories= new KAction( i18n( "Manage new categories..." ), 0, this, |
1935 | SLOT( manageCategories() ), actionCollection(), | 1935 | SLOT( manageCategories() ), actionCollection(), |
1936 | "remove_voice" ); | 1936 | "remove_voice" ); |
1937 | 1937 | ||
1938 | 1938 | ||
1939 | mActionImportOL = new KAction( i18n( "Import from Outlook..." ), 0, this, | 1939 | mActionImportOL = new KAction( i18n( "Import from Outlook..." ), 0, this, |
1940 | SLOT( importFromOL() ), actionCollection(), | 1940 | SLOT( importFromOL() ), actionCollection(), |
1941 | "import_OL" ); | 1941 | "import_OL" ); |
1942 | #ifdef KAB_EMBEDDED | 1942 | #ifdef KAB_EMBEDDED |
1943 | mActionLicence = new KAction( i18n( "Licence" ), 0, | 1943 | mActionLicence = new KAction( i18n( "Licence" ), 0, |
1944 | this, SLOT( showLicence() ), actionCollection(), | 1944 | this, SLOT( showLicence() ), actionCollection(), |
1945 | "licence_about_data" ); | 1945 | "licence_about_data" ); |
1946 | mActionFaq = new KAction( i18n( "Faq" ), 0, | 1946 | mActionFaq = new KAction( i18n( "Faq" ), 0, |
1947 | this, SLOT( faq() ), actionCollection(), | 1947 | this, SLOT( faq() ), actionCollection(), |
1948 | "faq_about_data" ); | 1948 | "faq_about_data" ); |
1949 | mActionWN = new KAction( i18n( "What's New?" ), 0, | 1949 | mActionWN = new KAction( i18n( "What's New?" ), 0, |
1950 | this, SLOT( whatsnew() ), actionCollection(), | 1950 | this, SLOT( whatsnew() ), actionCollection(), |
1951 | "wn" ); | 1951 | "wn" ); |
1952 | mActionSyncHowto = new KAction( i18n( "Sync HowTo" ), 0, | 1952 | mActionSyncHowto = new KAction( i18n( "Sync HowTo" ), 0, |
1953 | this, SLOT( synchowto() ), actionCollection(), | 1953 | this, SLOT( synchowto() ), actionCollection(), |
1954 | "sync" ); | 1954 | "sync" ); |
1955 | mActionKdeSyncHowto = new KAction( i18n( "Kde Sync HowTo" ), 0, | 1955 | mActionKdeSyncHowto = new KAction( i18n( "Kde Sync HowTo" ), 0, |
1956 | this, SLOT( kdesynchowto() ), actionCollection(), | 1956 | this, SLOT( kdesynchowto() ), actionCollection(), |
1957 | "kdesync" ); | 1957 | "kdesync" ); |
1958 | mActionMultiSyncHowto = new KAction( i18n( "Multi Sync HowTo" ), 0, | 1958 | mActionMultiSyncHowto = new KAction( i18n( "Multi Sync HowTo" ), 0, |
1959 | this, SLOT( multisynchowto() ), actionCollection(), | 1959 | this, SLOT( multisynchowto() ), actionCollection(), |
1960 | "multisync" ); | 1960 | "multisync" ); |
1961 | 1961 | ||
1962 | mActionAboutKAddressbook = new KAction( i18n( "&About KAddressBook" ), "kaddressbook2", 0, | 1962 | mActionAboutKAddressbook = new KAction( i18n( "&About KAddressBook" ), "kaddressbook2", 0, |
1963 | this, SLOT( createAboutData() ), actionCollection(), | 1963 | this, SLOT( createAboutData() ), actionCollection(), |
1964 | "kaddressbook_about_data" ); | 1964 | "kaddressbook_about_data" ); |
1965 | #endif //KAB_EMBEDDED | 1965 | #endif //KAB_EMBEDDED |
1966 | 1966 | ||
1967 | clipboardDataChanged(); | 1967 | clipboardDataChanged(); |
1968 | connect( UndoStack::instance(), SIGNAL( changed() ), SLOT( updateActionMenu() ) ); | 1968 | connect( UndoStack::instance(), SIGNAL( changed() ), SLOT( updateActionMenu() ) ); |
1969 | connect( RedoStack::instance(), SIGNAL( changed() ), SLOT( updateActionMenu() ) ); | 1969 | connect( RedoStack::instance(), SIGNAL( changed() ), SLOT( updateActionMenu() ) ); |
1970 | } | 1970 | } |
1971 | 1971 | ||
1972 | //US we need this function, to plug all actions into the correct menues. | 1972 | //US we need this function, to plug all actions into the correct menues. |
1973 | // KDE uses a XML format to plug the actions, but we work her without this overhead. | 1973 | // KDE uses a XML format to plug the actions, but we work her without this overhead. |
1974 | void KABCore::addActionsManually() | 1974 | void KABCore::addActionsManually() |
1975 | { | 1975 | { |
1976 | //US qDebug("KABCore::initActions(): mIsPart %i", mIsPart); | 1976 | //US qDebug("KABCore::initActions(): mIsPart %i", mIsPart); |
1977 | 1977 | ||
1978 | #ifdef KAB_EMBEDDED | 1978 | #ifdef KAB_EMBEDDED |
1979 | QPopupMenu *fileMenu = new QPopupMenu( this ); | 1979 | QPopupMenu *fileMenu = new QPopupMenu( this ); |
1980 | QPopupMenu *editMenu = new QPopupMenu( this ); | 1980 | QPopupMenu *editMenu = new QPopupMenu( this ); |
1981 | QPopupMenu *helpMenu = new QPopupMenu( this ); | 1981 | QPopupMenu *helpMenu = new QPopupMenu( this ); |
1982 | 1982 | ||
1983 | KToolBar* tb = mMainWindow->toolBar(); | 1983 | KToolBar* tb = mMainWindow->toolBar(); |
1984 | 1984 | ||
1985 | #ifndef DESKTOP_VERSION | 1985 | #ifndef DESKTOP_VERSION |
1986 | if ( KABPrefs::instance()->mFullMenuBarVisible ) { | 1986 | if ( KABPrefs::instance()->mFullMenuBarVisible ) { |
1987 | #endif | 1987 | #endif |
1988 | QMenuBar* mb = mMainWindow->menuBar(); | 1988 | QMenuBar* mb = mMainWindow->menuBar(); |
1989 | 1989 | ||
1990 | //US setup menubar. | 1990 | //US setup menubar. |
1991 | //Disable the following block if you do not want to have a menubar. | 1991 | //Disable the following block if you do not want to have a menubar. |
1992 | mb->insertItem( "&File", fileMenu ); | 1992 | mb->insertItem( i18n("&File"), fileMenu ); |
1993 | mb->insertItem( "&Edit", editMenu ); | 1993 | mb->insertItem( i18n("&Edit"), editMenu ); |
1994 | mb->insertItem( "&View", viewMenu ); | 1994 | mb->insertItem( i18n("&View"), viewMenu ); |
1995 | mb->insertItem( "&Settings", settingsMenu ); | 1995 | mb->insertItem( i18n("&Settings"), settingsMenu ); |
1996 | mb->insertItem( i18n("Synchronize"), syncMenu ); | 1996 | mb->insertItem( i18n("Synchronize"), syncMenu ); |
1997 | mb->insertItem( "&Change selected", changeMenu ); | 1997 | mb->insertItem( i18n("&Change selected"), changeMenu ); |
1998 | mb->insertItem( "&Help", helpMenu ); | 1998 | mb->insertItem( i18n("&Help"), helpMenu ); |
1999 | mIncSearchWidget = new IncSearchWidget( tb ); | 1999 | mIncSearchWidget = new IncSearchWidget( tb ); |
2000 | // tb->insertWidget(-1, 0, mIncSearchWidget); | 2000 | // tb->insertWidget(-1, 0, mIncSearchWidget); |
2001 | #ifndef DESKTOP_VERSION | 2001 | #ifndef DESKTOP_VERSION |
2002 | } else { | 2002 | } else { |
2003 | //US setup toolbar | 2003 | //US setup toolbar |
2004 | QPEMenuBar *menuBarTB = new QPEMenuBar( tb ); | 2004 | QPEMenuBar *menuBarTB = new QPEMenuBar( tb ); |
2005 | QPopupMenu *popupBarTB = new QPopupMenu( this ); | 2005 | QPopupMenu *popupBarTB = new QPopupMenu( this ); |
2006 | menuBarTB->insertItem( "ME", popupBarTB); | 2006 | menuBarTB->insertItem( "ME", popupBarTB); |
2007 | tb->insertWidget(-1, 0, menuBarTB); | 2007 | tb->insertWidget(-1, 0, menuBarTB); |
2008 | mIncSearchWidget = new IncSearchWidget( tb ); | 2008 | mIncSearchWidget = new IncSearchWidget( tb ); |
2009 | 2009 | ||
2010 | tb->enableMoving(false); | 2010 | tb->enableMoving(false); |
2011 | popupBarTB->insertItem( "&File", fileMenu ); | 2011 | popupBarTB->insertItem( i18n("&File"), fileMenu ); |
2012 | popupBarTB->insertItem( "&Edit", editMenu ); | 2012 | popupBarTB->insertItem( i18n("&Edit"), editMenu ); |
2013 | popupBarTB->insertItem( "&View", viewMenu ); | 2013 | popupBarTB->insertItem( i18n("&View"), viewMenu ); |
2014 | popupBarTB->insertItem( "&Settings", settingsMenu ); | 2014 | popupBarTB->insertItem( i18n("&Settings"), settingsMenu ); |
2015 | popupBarTB->insertItem( i18n("Synchronize"), syncMenu ); | 2015 | popupBarTB->insertItem( i18n("Synchronize"), syncMenu ); |
2016 | mViewManager->getFilterAction()->plug ( popupBarTB); | 2016 | mViewManager->getFilterAction()->plug ( popupBarTB); |
2017 | popupBarTB->insertItem( "&Change selected", changeMenu ); | 2017 | popupBarTB->insertItem( i18n("&Change selected"), changeMenu ); |
2018 | popupBarTB->insertItem( "&Help", helpMenu ); | 2018 | popupBarTB->insertItem( i18n("&Help"), helpMenu ); |
2019 | if (QApplication::desktop()->width() > 320 ) { | 2019 | if (QApplication::desktop()->width() > 320 ) { |
2020 | // mViewManager->getFilterAction()->plug ( tb); | 2020 | // mViewManager->getFilterAction()->plug ( tb); |
2021 | } | 2021 | } |
2022 | } | 2022 | } |
2023 | #endif | 2023 | #endif |
2024 | // mActionQuit->plug ( mMainWindow->toolBar()); | 2024 | // mActionQuit->plug ( mMainWindow->toolBar()); |
2025 | 2025 | ||
2026 | 2026 | ||
2027 | 2027 | ||
2028 | //US Now connect the actions with the menue entries. | 2028 | //US Now connect the actions with the menue entries. |
2029 | mActionPrint->plug( fileMenu ); | 2029 | mActionPrint->plug( fileMenu ); |
2030 | mActionMail->plug( fileMenu ); | 2030 | mActionMail->plug( fileMenu ); |
2031 | fileMenu->insertSeparator(); | 2031 | fileMenu->insertSeparator(); |
2032 | 2032 | ||
2033 | mActionNewContact->plug( fileMenu ); | 2033 | mActionNewContact->plug( fileMenu ); |
2034 | mActionNewContact->plug( tb ); | 2034 | mActionNewContact->plug( tb ); |
2035 | 2035 | ||
2036 | mActionEditAddressee->plug( fileMenu ); | 2036 | mActionEditAddressee->plug( fileMenu ); |
2037 | // if ((KGlobal::getDesktopSize() > KGlobal::Small ) || | 2037 | // if ((KGlobal::getDesktopSize() > KGlobal::Small ) || |
2038 | // (!KABPrefs::instance()->mMultipleViewsAtOnce )) | 2038 | // (!KABPrefs::instance()->mMultipleViewsAtOnce )) |
2039 | mActionEditAddressee->plug( tb ); | 2039 | mActionEditAddressee->plug( tb ); |
2040 | 2040 | ||
2041 | fileMenu->insertSeparator(); | 2041 | fileMenu->insertSeparator(); |
2042 | mActionSave->plug( fileMenu ); | 2042 | mActionSave->plug( fileMenu ); |
2043 | fileMenu->insertItem( "&Import", ImportMenu ); | 2043 | fileMenu->insertItem( "&Import", ImportMenu ); |
2044 | fileMenu->insertItem( "&Export", ExportMenu ); | 2044 | fileMenu->insertItem( "&Export", ExportMenu ); |
2045 | fileMenu->insertSeparator(); | 2045 | fileMenu->insertSeparator(); |
2046 | mActionMailVCard->plug( fileMenu ); | 2046 | mActionMailVCard->plug( fileMenu ); |
2047 | #ifndef DESKTOP_VERSION | 2047 | #ifndef DESKTOP_VERSION |
2048 | if ( Ir::supported() ) mActionBeamVCard->plug( fileMenu ); | 2048 | if ( Ir::supported() ) mActionBeamVCard->plug( fileMenu ); |
2049 | if ( Ir::supported() ) mActionBeam->plug(fileMenu ); | 2049 | if ( Ir::supported() ) mActionBeam->plug(fileMenu ); |
2050 | #endif | 2050 | #endif |
2051 | fileMenu->insertSeparator(); | 2051 | fileMenu->insertSeparator(); |
2052 | mActionQuit->plug( fileMenu ); | 2052 | mActionQuit->plug( fileMenu ); |
2053 | #ifdef _WIN32_ | 2053 | #ifdef _WIN32_ |
2054 | mActionImportOL->plug( ImportMenu ); | 2054 | mActionImportOL->plug( ImportMenu ); |
2055 | #endif | 2055 | #endif |
2056 | // edit menu | 2056 | // edit menu |
2057 | mActionUndo->plug( editMenu ); | 2057 | mActionUndo->plug( editMenu ); |
2058 | mActionRedo->plug( editMenu ); | 2058 | mActionRedo->plug( editMenu ); |
2059 | editMenu->insertSeparator(); | 2059 | editMenu->insertSeparator(); |
2060 | mActionCut->plug( editMenu ); | 2060 | mActionCut->plug( editMenu ); |
2061 | mActionCopy->plug( editMenu ); | 2061 | mActionCopy->plug( editMenu ); |
2062 | mActionPaste->plug( editMenu ); | 2062 | mActionPaste->plug( editMenu ); |
2063 | mActionDelete->plug( editMenu ); | 2063 | mActionDelete->plug( editMenu ); |
2064 | editMenu->insertSeparator(); | 2064 | editMenu->insertSeparator(); |
2065 | mActionSelectAll->plug( editMenu ); | 2065 | mActionSelectAll->plug( editMenu ); |
2066 | 2066 | ||
2067 | mActionRemoveVoice->plug( changeMenu ); | 2067 | mActionRemoveVoice->plug( changeMenu ); |
2068 | // settings menu | 2068 | // settings menu |
2069 | //US special menuentry to configure the addressbook resources. On KDE | 2069 | //US special menuentry to configure the addressbook resources. On KDE |
2070 | // you do that through the control center !!! | 2070 | // you do that through the control center !!! |
2071 | mActionConfigResources->plug( settingsMenu ); | 2071 | mActionConfigResources->plug( settingsMenu ); |
2072 | settingsMenu->insertSeparator(); | 2072 | settingsMenu->insertSeparator(); |
2073 | 2073 | ||
2074 | mActionConfigKAddressbook->plug( settingsMenu ); | 2074 | mActionConfigKAddressbook->plug( settingsMenu ); |
2075 | 2075 | ||
2076 | if ( mIsPart ) { | 2076 | if ( mIsPart ) { |
2077 | //US not implemented yet | 2077 | //US not implemented yet |
2078 | //mActionConfigShortcuts->plug( settingsMenu ); | 2078 | //mActionConfigShortcuts->plug( settingsMenu ); |
2079 | //mActionConfigureToolbars->plug( settingsMenu ); | 2079 | //mActionConfigureToolbars->plug( settingsMenu ); |
2080 | 2080 | ||
2081 | } else { | 2081 | } else { |
2082 | //US not implemented yet | 2082 | //US not implemented yet |
2083 | //mActionKeyBindings->plug( settingsMenu ); | 2083 | //mActionKeyBindings->plug( settingsMenu ); |
2084 | } | 2084 | } |
2085 | 2085 | ||
2086 | settingsMenu->insertSeparator(); | 2086 | settingsMenu->insertSeparator(); |
2087 | 2087 | ||
2088 | mActionJumpBar->plug( settingsMenu ); | 2088 | mActionJumpBar->plug( settingsMenu ); |
2089 | mActionDetails->plug( settingsMenu ); | 2089 | mActionDetails->plug( settingsMenu ); |
2090 | //if (!KABPrefs::instance()->mMultipleViewsAtOnce || KGlobal::getDesktopSize() == KGlobal::Desktop ) | 2090 | //if (!KABPrefs::instance()->mMultipleViewsAtOnce || KGlobal::getDesktopSize() == KGlobal::Desktop ) |
2091 | mActionDetails->plug( tb ); | 2091 | mActionDetails->plug( tb ); |
2092 | settingsMenu->insertSeparator(); | 2092 | settingsMenu->insertSeparator(); |
2093 | mActionBR->plug(settingsMenu ); | 2093 | mActionBR->plug(settingsMenu ); |
2094 | settingsMenu->insertSeparator(); | 2094 | settingsMenu->insertSeparator(); |
2095 | 2095 | ||
2096 | mActionWhoAmI->plug( settingsMenu ); | 2096 | mActionWhoAmI->plug( settingsMenu ); |
2097 | mActionEditCategories->plug( settingsMenu ); | 2097 | mActionEditCategories->plug( settingsMenu ); |
2098 | mActionCategories->plug( settingsMenu ); | 2098 | mActionCategories->plug( settingsMenu ); |
2099 | mActionManageCategories->plug( settingsMenu ); | 2099 | mActionManageCategories->plug( settingsMenu ); |
2100 | 2100 | ||
2101 | 2101 | ||
2102 | mActionWN->plug( helpMenu ); | 2102 | mActionWN->plug( helpMenu ); |
2103 | mActionSyncHowto->plug( helpMenu ); | 2103 | mActionSyncHowto->plug( helpMenu ); |
2104 | mActionKdeSyncHowto->plug( helpMenu ); | 2104 | mActionKdeSyncHowto->plug( helpMenu ); |
2105 | mActionMultiSyncHowto->plug( helpMenu ); | 2105 | mActionMultiSyncHowto->plug( helpMenu ); |
2106 | mActionFaq->plug( helpMenu ); | 2106 | mActionFaq->plug( helpMenu ); |
2107 | mActionLicence->plug( helpMenu ); | 2107 | mActionLicence->plug( helpMenu ); |
2108 | mActionAboutKAddressbook->plug( helpMenu ); | 2108 | mActionAboutKAddressbook->plug( helpMenu ); |
2109 | 2109 | ||
2110 | if (KGlobal::getDesktopSize() > KGlobal::Small ) { | 2110 | if (KGlobal::getDesktopSize() > KGlobal::Small ) { |
2111 | 2111 | ||
2112 | mActionSave->plug( tb ); | 2112 | mActionSave->plug( tb ); |
2113 | mViewManager->getFilterAction()->plug ( tb); | 2113 | mViewManager->getFilterAction()->plug ( tb); |
2114 | if (KGlobal::getDesktopSize() == KGlobal::Desktop ) { | 2114 | if (KGlobal::getDesktopSize() == KGlobal::Desktop ) { |