Browse Source

Add Help button to access help handbook.

This resolves bug report 1869.
tags/r14.0.0
Darrell Anderson 5 years ago
parent
commit
ba75ba6f43
3 changed files with 19 additions and 3 deletions
  1. 7
    0
      src/kstreamripper.cpp
  2. 4
    3
      src/kstreamripper.h
  3. 8
    0
      src/kstreamripperbase.ui

+ 7
- 0
src/kstreamripper.cpp View File

@@ -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();

+ 4
- 3
src/kstreamripper.h View File

@@ -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);

+ 8
- 0
src/kstreamripperbase.ui View File

@@ -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">

Loading…
Cancel
Save