summaryrefslogtreecommitdiffabout
authorulf69 <ulf69>2004-10-19 01:12:41 (UTC)
committer ulf69 <ulf69>2004-10-19 01:12:41 (UTC)
commit6fdb13cb4142ecde29fd537ff32a3e8e6cc30b26 (patch) (side-by-side diff)
tree760ad21fcdc4e2d885c5d875d91629a70ce89843
parentda724334d46c01ee9d4f04101dab5d048c35c833 (diff)
downloadkdepimpi-6fdb13cb4142ecde29fd537ff32a3e8e6cc30b26.zip
kdepimpi-6fdb13cb4142ecde29fd537ff32a3e8e6cc30b26.tar.gz
kdepimpi-6fdb13cb4142ecde29fd537ff32a3e8e6cc30b26.tar.bz2
added whats new page
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwm.cpp13
-rw-r--r--pwmanager/pwmanager/pwm.h1
2 files changed, 12 insertions, 2 deletions
diff --git a/pwmanager/pwmanager/pwm.cpp b/pwmanager/pwmanager/pwm.cpp
index 57b4432..26a44b1 100644
--- a/pwmanager/pwmanager/pwm.cpp
+++ b/pwmanager/pwmanager/pwm.cpp
@@ -130,13 +130,14 @@ enum {
#ifdef PWM_EMBEDDED
// Button IDs for "help" popup menu
enum {
BUTTON_POPUP_HELP_LICENSE = 0,
BUTTON_POPUP_HELP_FAQ,
BUTTON_POPUP_HELP_ABOUT,
- BUTTON_POPUP_HELP_SYNC
+ BUTTON_POPUP_HELP_SYNC,
+ BUTTON_POPUP_HELP_WHATSNEW
};
#endif
// Button IDs for toolbar
enum {
BUTTON_TOOL_NEW = 0,
@@ -360,12 +361,16 @@ void PwM::initMenubar()
BUTTON_POPUP_HELP_ABOUT);
helpPopup->insertItem(i18n("&Sync HowTo"), this,
SLOT(syncHowTo_slot()), 0,
BUTTON_POPUP_HELP_SYNC);
+ helpPopup->insertItem(i18n("&What's New"), this,
+ SLOT(whatsnew_slot()), 0,
+ BUTTON_POPUP_HELP_WHATSNEW);
+
#endif
menuBar()->insertItem(i18n("&Help"), helpPopup);
}
void PwM::initToolbar()
@@ -1285,25 +1290,29 @@ void PwM::focusInEvent(QFocusEvent *e)
}
}
#ifdef PWM_EMBEDDED
+void PwM::whatsnew_slot()
+{
+ KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" );
+}
+
void PwM::showLicense_slot()
{
KApplication::showLicence();
}
void PwM::faq_slot()
{
KApplication::showFile( "PWM/Pi FAQ", "kdepim/pwmanager/pwmanagerFAQ.txt" );
}
void PwM::syncHowTo_slot()
{
- qDebug("PwM::syncHowTo_slot");
KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" );
}
void PwM::createAboutData_slot()
{
diff --git a/pwmanager/pwmanager/pwm.h b/pwmanager/pwmanager/pwm.h
index 6ed9d34..fe1f7a1 100644
--- a/pwmanager/pwmanager/pwm.h
+++ b/pwmanager/pwmanager/pwm.h
@@ -171,12 +171,13 @@ public slots:
/** make backup image of the current card */
void makeCardBackup_slot();
/** write backup image to current card */
void replayCardBackup_slot();
#ifdef PWM_EMBEDDED
+ void whatsnew_slot();
void showLicense_slot();
void faq_slot();
void createAboutData_slot();
void syncHowTo_slot();
#endif