author | zautrix <zautrix> | 2004-10-12 21:02:25 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-12 21:02:25 (UTC) |
commit | 0dab27179ee6b1e0a052ab589a27e31ffb887912 (patch) (side-by-side diff) | |
tree | 77a44d4673cf36164993bee2ed78b4f3b4d39dbb /kaddressbook | |
parent | 95ce1ce07164da5660a2bf1992fed4c263c6afca (diff) | |
download | kdepimpi-0dab27179ee6b1e0a052ab589a27e31ffb887912.zip kdepimpi-0dab27179ee6b1e0a052ab589a27e31ffb887912.tar.gz kdepimpi-0dab27179ee6b1e0a052ab589a27e31ffb887912.tar.bz2 |
added help to kapi
-rw-r--r-- | kaddressbook/kabcore.cpp | 17 | ||||
-rw-r--r-- | kaddressbook/kabcore.h | 4 |
2 files changed, 21 insertions, 0 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index f2d4cd6..282560f 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -1853,16 +1853,22 @@ void KABCore::initActions() "import_OL" ); #ifdef KAB_EMBEDDED mActionLicence = new KAction( i18n( "Licence" ), 0, this, SLOT( showLicence() ), actionCollection(), "licence_about_data" ); mActionFaq = new KAction( i18n( "Faq" ), 0, this, SLOT( faq() ), actionCollection(), "faq_about_data" ); + mActionWN = new KAction( i18n( "What's New?" ), 0, + this, SLOT( whatsnew() ), actionCollection(), + "wn" ); + mActionSyncHowto = new KAction( i18n( "Sync HowTo" ), 0, + this, SLOT( synchowto() ), actionCollection(), + "sync" ); mActionAboutKAddressbook = new KAction( i18n( "&About KAddressBook" ), "kaddressbook2", 0, this, SLOT( createAboutData() ), actionCollection(), "kaddressbook_about_data" ); #endif //KAB_EMBEDDED clipboardDataChanged(); connect( UndoStack::instance(), SIGNAL( changed() ), SLOT( updateActionMenu() ) ); @@ -1984,16 +1990,19 @@ void KABCore::addActionsManually() mActionDetails->plug( settingsMenu ); if (!KABPrefs::instance()->mMultipleViewsAtOnce || KGlobal::getDesktopSize() == KGlobal::Desktop ) mActionDetails->plug( tb ); settingsMenu->insertSeparator(); mActionWhoAmI->plug( settingsMenu ); mActionCategories->plug( settingsMenu ); + + mActionWN->plug( helpMenu ); + mActionSyncHowto->plug( helpMenu ); mActionLicence->plug( helpMenu ); mActionFaq->plug( helpMenu ); mActionAboutKAddressbook->plug( helpMenu ); if (KGlobal::getDesktopSize() > KGlobal::Small ) { mActionSave->plug( tb ); mViewManager->getFilterAction()->plug ( tb); @@ -2272,16 +2281,24 @@ void KABCore::requestForDetails(const QString& sourceChannel, const QString& ses if ( !mMultipleViewsAtOnce ) { setDetailsVisible( true ); mActionDetails->setChecked(true); } } } +void KABCore::whatsnew() +{ + KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); +} +void KABCore::synchowto() +{ + KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); +} void KABCore::faq() { KApplication::showFile( "KA/Pi FAQ", "kdepim/kaddressbook/kapiFAQ.txt" ); } #include <libkcal/syncdefines.h> diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index 04ce33d..3c33923 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h @@ -141,16 +141,18 @@ class KABCore : public QWidget, public KSyncInterface public slots: #ifdef KAB_EMBEDDED void createAboutData(); #endif //KAB_EMBEDDED void statusMessage(QString, int time = 0 ); void showLicence(); void faq(); + void whatsnew() ; + void synchowto() ; /** Is called whenever a contact is selected in the view. */ void setContactSelected( const QString &uid ); /** Opens the preferred mail composer with all selected contacts as @@ -430,16 +432,18 @@ class KABCore : public QWidget, public KSyncInterface KAction *mActionKeyBindings; KToggleAction *mActionJumpBar; KToggleAction *mActionDetails; KAction *mActionWhoAmI; KAction *mActionCategories; KAction *mActionAboutKAddressbook; KAction *mActionLicence; KAction *mActionFaq; + KAction *mActionWN; + KAction *mActionSyncHowto; KAction *mActionDeleteView; QPopupMenu *viewMenu; QPopupMenu *filterMenu; QPopupMenu *settingsMenu; QPopupMenu *changeMenu; //US QAction *mActionSave; |