author | zautrix <zautrix> | 2004-08-06 20:22:49 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-06 20:22:49 (UTC) |
commit | 47bd2528db547822b6df6e287e02b6e2ebf7acd8 (patch) (unidiff) | |
tree | d05d831afe3c49c55ed89db6a9cb4ce9fc3a6835 /kaddressbook | |
parent | 184e3d096e83f777cce9b919f9f9d56e5960e067 (diff) | |
download | kdepimpi-47bd2528db547822b6df6e287e02b6e2ebf7acd8.zip kdepimpi-47bd2528db547822b6df6e287e02b6e2ebf7acd8.tar.gz kdepimpi-47bd2528db547822b6df6e287e02b6e2ebf7acd8.tar.bz2 |
Added licence to kapi
-rw-r--r-- | kaddressbook/kabcore.cpp | 10 | ||||
-rw-r--r-- | kaddressbook/kabcore.h | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 25891a0..2494aa2 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -1634,9 +1634,11 @@ void KABCore::initActions() | |||
1634 | mActionImportOL = new KAction( i18n( "Import from OL..." ), 0, this, | 1634 | mActionImportOL = new KAction( i18n( "Import from OL..." ), 0, this, |
1635 | SLOT( importFromOL() ), actionCollection(), | 1635 | SLOT( importFromOL() ), actionCollection(), |
1636 | "import_OL" ); | 1636 | "import_OL" ); |
1637 | #ifdef KAB_EMBEDDED | 1637 | #ifdef KAB_EMBEDDED |
1638 | 1638 | mActionLicence = new KAction( i18n( "Licence" ), "licence", 0, | |
1639 | this, SLOT( showLicence() ), actionCollection(), | ||
1640 | "licence_about_data" ); | ||
1639 | mActionAboutKAddressbook = new KAction( i18n( "&About KAddressBook" ), "kaddressbook2", 0, | 1641 | mActionAboutKAddressbook = new KAction( i18n( "&About KAddressBook" ), "kaddressbook2", 0, |
1640 | this, SLOT( createAboutData() ), actionCollection(), | 1642 | this, SLOT( createAboutData() ), actionCollection(), |
1641 | "kaddressbook_about_data" ); | 1643 | "kaddressbook_about_data" ); |
1642 | #endif //KAB_EMBEDDED | 1644 | #endif //KAB_EMBEDDED |
@@ -1758,9 +1760,9 @@ void KABCore::addActionsManually() | |||
1758 | mActionWhoAmI->plug( settingsMenu ); | 1760 | mActionWhoAmI->plug( settingsMenu ); |
1759 | mActionCategories->plug( settingsMenu ); | 1761 | mActionCategories->plug( settingsMenu ); |
1760 | 1762 | ||
1761 | mActionAboutKAddressbook->plug( helpMenu ); | 1763 | mActionAboutKAddressbook->plug( helpMenu ); |
1762 | 1764 | mActionLicence->plug( helpMenu ); | |
1763 | 1765 | ||
1764 | if (QApplication::desktop()->width() > 320 ) { | 1766 | if (QApplication::desktop()->width() > 320 ) { |
1765 | 1767 | ||
1766 | mActionEditAddressee->plug( tb ); | 1768 | mActionEditAddressee->plug( tb ); |
@@ -1791,8 +1793,12 @@ void KABCore::addActionsManually() | |||
1791 | */ | 1793 | */ |
1792 | 1794 | ||
1793 | #endif //KAB_EMBEDDED | 1795 | #endif //KAB_EMBEDDED |
1794 | } | 1796 | } |
1797 | void KABCore::showLicence() | ||
1798 | { | ||
1799 | KApplication::showLicence(); | ||
1800 | } | ||
1795 | void KABCore::removeVoice() | 1801 | void KABCore::removeVoice() |
1796 | { | 1802 | { |
1797 | if ( KMessageBox::questionYesNo( this, i18n("After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as \"other\".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?") ) == KMessageBox::No ) | 1803 | if ( KMessageBox::questionYesNo( this, i18n("After importing, phone numbers\nmay have two or more types.\n(E.g. work+voice)\nThese numbers are shown as \"other\".\nClick Yes to remove the voice type\nfrom numbers with more than one type.\n\nRemove voice type?") ) == KMessageBox::No ) |
1798 | return; | 1804 | return; |
diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index be39148..6bbdfd4 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h | |||
@@ -141,8 +141,9 @@ class KABCore : public QWidget | |||
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 | /** | 146 | /** |
146 | Is called whenever a contact is selected in the view. | 147 | Is called whenever a contact is selected in the view. |
147 | */ | 148 | */ |
148 | void setContactSelected( const QString &uid ); | 149 | void setContactSelected( const QString &uid ); |
@@ -406,8 +407,9 @@ class KABCore : public QWidget | |||
406 | KToggleAction *mActionDetails; | 407 | KToggleAction *mActionDetails; |
407 | KAction *mActionWhoAmI; | 408 | KAction *mActionWhoAmI; |
408 | KAction *mActionCategories; | 409 | KAction *mActionCategories; |
409 | KAction *mActionAboutKAddressbook; | 410 | KAction *mActionAboutKAddressbook; |
411 | KAction *mActionLicence; | ||
410 | 412 | ||
411 | KAction *mActionDeleteView; | 413 | KAction *mActionDeleteView; |
412 | 414 | ||
413 | QPopupMenu *viewMenu; | 415 | QPopupMenu *viewMenu; |