summaryrefslogtreecommitdiffabout
path: root/kaddressbook
Unidiff
Diffstat (limited to 'kaddressbook') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabcore.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp
index 9505a23..4445310 100644
--- a/kaddressbook/kabcore.cpp
+++ b/kaddressbook/kabcore.cpp
@@ -1944,123 +1944,123 @@ void KABCore::initActions()
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.
1974void KABCore::addActionsManually() 1974void 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