author | ulf69 <ulf69> | 2004-08-20 21:26:25 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-20 21:26:25 (UTC) |
commit | b9eff79c5702aad1ee8abe8a9ff01899ae969bed (patch) (unidiff) | |
tree | 09628cd451301034adf8d95d2e8b88acef8ee142 /kaddressbook | |
parent | a3083042bb9c69193cc43105e6c9d045bd79e8b2 (diff) | |
download | kdepimpi-b9eff79c5702aad1ee8abe8a9ff01899ae969bed.zip kdepimpi-b9eff79c5702aad1ee8abe8a9ff01899ae969bed.tar.gz kdepimpi-b9eff79c5702aad1ee8abe8a9ff01899ae969bed.tar.bz2 |
FAQ dialog added
-rw-r--r-- | kaddressbook/kabcore.cpp | 33 | ||||
-rw-r--r-- | kaddressbook/kabcore.h | 3 |
2 files changed, 29 insertions, 7 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index dabb8e9..cb9b992 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -16,16 +16,23 @@ | |||
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 | /* | ||
25 | Enhanced Version of the file for platform independent KDE tools. | ||
26 | Copyright (c) 2004 Ulf Schenk | ||
27 | |||
28 | $Id$ | ||
29 | */ | ||
30 | |||
24 | #include "kabcore.h" | 31 | #include "kabcore.h" |
25 | 32 | ||
26 | #include <stdaddressbook.h> | 33 | #include <stdaddressbook.h> |
27 | #include <klocale.h> | 34 | #include <klocale.h> |
28 | 35 | ||
29 | #ifndef KAB_EMBEDDED | 36 | #ifndef KAB_EMBEDDED |
30 | #include <qclipboard.h> | 37 | #include <qclipboard.h> |
31 | #include <qdir.h> | 38 | #include <qdir.h> |
@@ -413,27 +420,28 @@ void KABCore::createAboutData() | |||
413 | #ifdef DESKTOP_VERSION | 420 | #ifdef DESKTOP_VERSION |
414 | "Desktop Edition\n" | 421 | "Desktop Edition\n" |
415 | #else | 422 | #else |
416 | "PDA-Edition\n" | 423 | "PDA-Edition\n" |
417 | "for: Zaurus 5500 / 7x0 / 8x0\n" | 424 | "for: Zaurus 5500 / 7x0 / 8x0\n" |
418 | #endif | 425 | #endif |
419 | 426 | ||
420 | "(c) 2004 Ulf Schenk\n" | 427 | "(c) 2004 Ulf Schenk\n" |
428 | "(c) 2004 Lutz Rogowski\n" | ||
421 | "(c) 1997-2003, The KDE PIM Team\n" | 429 | "(c) 1997-2003, The KDE PIM Team\n" |
422 | "Tobias Koenig Current maintainer tokoe@kde.org\n" | 430 | "Tobias Koenig Current maintainer\ntokoe@kde.org\n" |
423 | "Don Sanders Original author\n" | 431 | "Don Sanders Original author\n" |
424 | "Cornelius Schumacher Co-maintainer schumacher@kde.org\n" | 432 | "Cornelius Schumacher Co-maintainer\nschumacher@kde.org\n" |
425 | "Mike Pilone GUI and framework redesign mpilone@slac.com\n" | 433 | "Mike Pilone GUI and framework redesign\nmpilone@slac.com\n" |
426 | "Greg Stern DCOP interface\n" | 434 | "Greg Stern DCOP interface\n" |
427 | "Mark Westcot Contact pinning\n" | 435 | "Mark Westcot Contact pinning\n" |
428 | "Michel Boyer de la Giroday LDAP Lookup\n" "michel@klaralvdalens-datakonsult.se\n" | 436 | "Michel Boyer de la Giroday LDAP Lookup\n" "michel@klaralvdalens-datakonsult.se\n" |
429 | "Steffen Hansen LDAP Lookup hansen@kde.org\n" | 437 | "Steffen Hansen LDAP Lookup\nhansen@kde.org\n" |
430 | #ifdef _WIN32_ | 438 | #ifdef _WIN32_ |
431 | "(c) 2004 Lutz Rogowski Import from OL rogowski@kde.org\n" | 439 | "(c) 2004 Lutz Rogowski Import from OL\nrogowski@kde.org\n" |
432 | #endif | 440 | #endif |
433 | ); | 441 | ); |
434 | } | 442 | } |
435 | 443 | ||
436 | void KABCore::setContactSelected( const QString &uid ) | 444 | void KABCore::setContactSelected( const QString &uid ) |
437 | { | 445 | { |
438 | KABC::Addressee addr = mAddressBook->findByUid( uid ); | 446 | KABC::Addressee addr = mAddressBook->findByUid( uid ); |
439 | if ( !mDetails->isHidden() ) | 447 | if ( !mDetails->isHidden() ) |
@@ -1729,19 +1737,23 @@ void KABCore::initActions() | |||
1729 | 1737 | ||
1730 | mActionRemoveVoice = new KAction( i18n( "Remove \"voice\"..." ), 0, this, | 1738 | mActionRemoveVoice = new KAction( i18n( "Remove \"voice\"..." ), 0, this, |
1731 | SLOT( removeVoice() ), actionCollection(), | 1739 | SLOT( removeVoice() ), actionCollection(), |
1732 | "remove_voice" ); | 1740 | "remove_voice" ); |
1733 | mActionImportOL = new KAction( i18n( "Import from OL..." ), 0, this, | 1741 | mActionImportOL = new KAction( i18n( "Import from OL..." ), 0, this, |
1734 | SLOT( importFromOL() ), actionCollection(), | 1742 | SLOT( importFromOL() ), actionCollection(), |
1735 | "import_OL" ); | 1743 | "import_OL" ); |
1736 | #ifdef KAB_EMBEDDED | 1744 | #ifdef KAB_EMBEDDED |
1737 | mActionLicence = new KAction( i18n( "Licence" ), "licence", 0, | 1745 | mActionLicence = new KAction( i18n( "Licence" ), 0, |
1738 | this, SLOT( showLicence() ), actionCollection(), | 1746 | this, SLOT( showLicence() ), actionCollection(), |
1739 | "licence_about_data" ); | 1747 | "licence_about_data" ); |
1748 | mActionFaq = new KAction( i18n( "Faq" ), 0, | ||
1749 | this, SLOT( faq() ), actionCollection(), | ||
1750 | "faq_about_data" ); | ||
1751 | |||
1740 | mActionAboutKAddressbook = new KAction( i18n( "&About KAddressBook" ), "kaddressbook2", 0, | 1752 | mActionAboutKAddressbook = new KAction( i18n( "&About KAddressBook" ), "kaddressbook2", 0, |
1741 | this, SLOT( createAboutData() ), actionCollection(), | 1753 | this, SLOT( createAboutData() ), actionCollection(), |
1742 | "kaddressbook_about_data" ); | 1754 | "kaddressbook_about_data" ); |
1743 | #endif //KAB_EMBEDDED | 1755 | #endif //KAB_EMBEDDED |
1744 | 1756 | ||
1745 | clipboardDataChanged(); | 1757 | clipboardDataChanged(); |
1746 | connect( UndoStack::instance(), SIGNAL( changed() ), SLOT( updateActionMenu() ) ); | 1758 | connect( UndoStack::instance(), SIGNAL( changed() ), SLOT( updateActionMenu() ) ); |
1747 | connect( RedoStack::instance(), SIGNAL( changed() ), SLOT( updateActionMenu() ) ); | 1759 | connect( RedoStack::instance(), SIGNAL( changed() ), SLOT( updateActionMenu() ) ); |
@@ -1860,18 +1872,19 @@ void KABCore::addActionsManually() | |||
1860 | mActionDetails->plug( settingsMenu ); | 1872 | mActionDetails->plug( settingsMenu ); |
1861 | if (!KABPrefs::instance()->mMultipleViewsAtOnce ) | 1873 | if (!KABPrefs::instance()->mMultipleViewsAtOnce ) |
1862 | mActionDetails->plug( tb ); | 1874 | mActionDetails->plug( tb ); |
1863 | settingsMenu->insertSeparator(); | 1875 | settingsMenu->insertSeparator(); |
1864 | 1876 | ||
1865 | mActionWhoAmI->plug( settingsMenu ); | 1877 | mActionWhoAmI->plug( settingsMenu ); |
1866 | mActionCategories->plug( settingsMenu ); | 1878 | mActionCategories->plug( settingsMenu ); |
1867 | 1879 | ||
1868 | mActionAboutKAddressbook->plug( helpMenu ); | ||
1869 | mActionLicence->plug( helpMenu ); | 1880 | mActionLicence->plug( helpMenu ); |
1881 | mActionFaq->plug( helpMenu ); | ||
1882 | mActionAboutKAddressbook->plug( helpMenu ); | ||
1870 | 1883 | ||
1871 | if (KGlobal::getDesktopSize() > KGlobal::Small ) { | 1884 | if (KGlobal::getDesktopSize() > KGlobal::Small ) { |
1872 | 1885 | ||
1873 | mActionSave->plug( tb ); | 1886 | mActionSave->plug( tb ); |
1874 | mViewManager->getFilterAction()->plug ( tb); | 1887 | mViewManager->getFilterAction()->plug ( tb); |
1875 | if (KGlobal::getDesktopSize() == KGlobal::Desktop ) { | 1888 | if (KGlobal::getDesktopSize() == KGlobal::Desktop ) { |
1876 | mActionUndo->plug( tb ); | 1889 | mActionUndo->plug( tb ); |
1877 | mActionDelete->plug( tb ); | 1890 | mActionDelete->plug( tb ); |
@@ -2063,13 +2076,19 @@ void KABCore::requestForDetails(const QString& sourceChannel, const QString& ses | |||
2063 | { | 2076 | { |
2064 | setDetailsVisible( true ); | 2077 | setDetailsVisible( true ); |
2065 | mActionDetails->setChecked(true); | 2078 | mActionDetails->setChecked(true); |
2066 | } | 2079 | } |
2067 | } | 2080 | } |
2068 | } | 2081 | } |
2069 | 2082 | ||
2070 | 2083 | ||
2084 | void KABCore::faq() | ||
2085 | { | ||
2086 | KApplication::showFile( "KA/Pi FAQ", "kdepim/kaddressbook/kapiFAQ.txt" ); | ||
2087 | } | ||
2088 | |||
2089 | |||
2071 | 2090 | ||
2072 | 2091 | ||
2073 | #ifndef KAB_EMBEDDED | 2092 | #ifndef KAB_EMBEDDED |
2074 | #include "kabcore.moc" | 2093 | #include "kabcore.moc" |
2075 | #endif //KAB_EMBEDDED | 2094 | #endif //KAB_EMBEDDED |
diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index 040b6aa..39d043f 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h | |||
@@ -138,16 +138,18 @@ class KABCore : public QWidget | |||
138 | 138 | ||
139 | public slots: | 139 | public slots: |
140 | #ifdef KAB_EMBEDDED | 140 | #ifdef KAB_EMBEDDED |
141 | void createAboutData(); | 141 | void createAboutData(); |
142 | #endif //KAB_EMBEDDED | 142 | #endif //KAB_EMBEDDED |
143 | 143 | ||
144 | void statusMessage(QString, int time = 0 ); | 144 | void statusMessage(QString, int time = 0 ); |
145 | void showLicence(); | 145 | void showLicence(); |
146 | void faq(); | ||
147 | |||
146 | /** | 148 | /** |
147 | Is called whenever a contact is selected in the view. | 149 | Is called whenever a contact is selected in the view. |
148 | */ | 150 | */ |
149 | void setContactSelected( const QString &uid ); | 151 | void setContactSelected( const QString &uid ); |
150 | 152 | ||
151 | /** | 153 | /** |
152 | Opens the preferred mail composer with all selected contacts as | 154 | Opens the preferred mail composer with all selected contacts as |
153 | arguments. | 155 | arguments. |
@@ -417,16 +419,17 @@ class KABCore : public QWidget | |||
417 | KAction *mActionConfigureToolbars; | 419 | KAction *mActionConfigureToolbars; |
418 | KAction *mActionKeyBindings; | 420 | KAction *mActionKeyBindings; |
419 | KToggleAction *mActionJumpBar; | 421 | KToggleAction *mActionJumpBar; |
420 | KToggleAction *mActionDetails; | 422 | KToggleAction *mActionDetails; |
421 | KAction *mActionWhoAmI; | 423 | KAction *mActionWhoAmI; |
422 | KAction *mActionCategories; | 424 | KAction *mActionCategories; |
423 | KAction *mActionAboutKAddressbook; | 425 | KAction *mActionAboutKAddressbook; |
424 | KAction *mActionLicence; | 426 | KAction *mActionLicence; |
427 | KAction *mActionFaq; | ||
425 | 428 | ||
426 | KAction *mActionDeleteView; | 429 | KAction *mActionDeleteView; |
427 | 430 | ||
428 | QPopupMenu *viewMenu; | 431 | QPopupMenu *viewMenu; |
429 | QPopupMenu *filterMenu; | 432 | QPopupMenu *filterMenu; |
430 | QPopupMenu *settingsMenu; | 433 | QPopupMenu *settingsMenu; |
431 | QPopupMenu *changeMenu; | 434 | QPopupMenu *changeMenu; |
432 | 435 | ||