summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2014-02-17 18:52:06 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2014-02-17 18:52:06 -0600
commitba75ba6f436291092ce388fec1eda80a685a511d (patch)
tree761143849c1f3d460122293052e5677b67598cfd
parent93774484615a3a2451f0cc23d3abc40f45f22026 (diff)
downloadkstreamripper-ba75ba6f436291092ce388fec1eda80a685a511d.tar.gz
kstreamripper-ba75ba6f436291092ce388fec1eda80a685a511d.zip
Add Help button to access help handbook.
This resolves bug report 1869.
-rw-r--r--src/kstreamripper.cpp7
-rw-r--r--src/kstreamripper.h7
-rw-r--r--src/kstreamripperbase.ui8
3 files changed, 19 insertions, 3 deletions
diff --git a/src/kstreamripper.cpp b/src/kstreamripper.cpp
index 74842b1..d04e512 100644
--- a/src/kstreamripper.cpp
+++ b/src/kstreamripper.cpp
@@ -25,6 +25,7 @@
#include <tdefiledialog.h>
#include <tdeaboutapplication.h>
+#include <tdeapplication.h>
#include <tqpushbutton.h>
#include <tqlistview.h>
#include <tqlineedit.h>
@@ -96,6 +97,7 @@ KStreamRipper::KStreamRipper( TQWidget* parent, const char* name )
connect(m_ripButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(ripButtonClicked()));
connect(m_stopRipButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(stopRipButtonClicked()));
connect(m_browseButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(browseButtonClicked()));
+ connect(m_helpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(helpButtonClicked()));
connect(m_aboutButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(aboutButtonClicked()));
connect(m_quitButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(quitButtonClicked()));
@@ -243,6 +245,11 @@ void KStreamRipper::browseButtonClicked()
m_destEdit->setText( openDest );
}
+void KStreamRipper::helpButtonClicked()
+{
+ kapp->invokeHelp( TQString(), "kstreamripper" );
+}
+
void KStreamRipper::aboutButtonClicked()
{
TDEAboutApplication *aboutApp = new TDEAboutApplication();
diff --git a/src/kstreamripper.h b/src/kstreamripper.h
index b274929..b8b0baf 100644
--- a/src/kstreamripper.h
+++ b/src/kstreamripper.h
@@ -42,7 +42,7 @@ class KStreamRipper : public KStreamRipperBase
public:
-
+
KStreamRipper( TQWidget* parent = 0, const char* name = 0 );
~KStreamRipper();
@@ -59,13 +59,14 @@ protected slots:
void ripButtonClicked();
void stopRipButtonClicked();
void browseButtonClicked();
+ void helpButtonClicked();
void aboutButtonClicked();
void quitButtonClicked();
-
+
void selectedNewListItem();
void descriptionChanged();
void urlChanged();
-
+
void addStreamFinished( AddNewStreamImpl* );
#if KDE_IS_VERSION(3,3,90)
void serviceAdded(DNSSD::RemoteService::Ptr srv);
diff --git a/src/kstreamripperbase.ui b/src/kstreamripperbase.ui
index 5079c5e..0642c6f 100644
--- a/src/kstreamripperbase.ui
+++ b/src/kstreamripperbase.ui
@@ -54,6 +54,14 @@
</property>
<widget class="TQPushButton">
<property name="name">
+ <cstring>m_helpButton</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Help</string>
+ </property>
+ </widget>
+ <widget class="TQPushButton">
+ <property name="name">
<cstring>m_aboutButton</cstring>
</property>
<property name="text">