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 @@
25 25
 #include <tdefiledialog.h>
26 26
 #include <tdeaboutapplication.h>
27 27
 
28
+#include <tdeapplication.h>
28 29
 #include <tqpushbutton.h>
29 30
 #include <tqlistview.h>
30 31
 #include <tqlineedit.h>
@@ -96,6 +97,7 @@ KStreamRipper::KStreamRipper( TQWidget* parent, const char* name )
96 97
     connect(m_ripButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(ripButtonClicked()));
97 98
     connect(m_stopRipButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(stopRipButtonClicked()));
98 99
     connect(m_browseButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(browseButtonClicked()));
100
+    connect(m_helpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(helpButtonClicked()));
99 101
     connect(m_aboutButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(aboutButtonClicked()));
100 102
     connect(m_quitButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(quitButtonClicked()));
101 103
 	
@@ -243,6 +245,11 @@ void KStreamRipper::browseButtonClicked()
243 245
     m_destEdit->setText( openDest );
244 246
 }
245 247
 
248
+void KStreamRipper::helpButtonClicked()
249
+{
250
+    kapp->invokeHelp( TQString(), "kstreamripper" );
251
+}
252
+
246 253
 void KStreamRipper::aboutButtonClicked()
247 254
 {
248 255
     TDEAboutApplication *aboutApp = new TDEAboutApplication();

+ 4
- 3
src/kstreamripper.h View File

@@ -42,7 +42,7 @@ class KStreamRipper : public KStreamRipperBase
42 42
   
43 43
 
44 44
 public:
45
- 
45
+
46 46
     KStreamRipper( TQWidget* parent = 0, const char* name = 0 );
47 47
     ~KStreamRipper();
48 48
 
@@ -59,13 +59,14 @@ protected slots:
59 59
     void ripButtonClicked();
60 60
     void stopRipButtonClicked();
61 61
     void browseButtonClicked();
62
+    void helpButtonClicked();
62 63
     void aboutButtonClicked();
63 64
     void quitButtonClicked();
64
-    
65
+
65 66
     void selectedNewListItem();
66 67
     void descriptionChanged();
67 68
     void urlChanged();
68
-	
69
+
69 70
     void addStreamFinished( AddNewStreamImpl* );
70 71
 #if KDE_IS_VERSION(3,3,90)
71 72
     void serviceAdded(DNSSD::RemoteService::Ptr srv);

+ 8
- 0
src/kstreamripperbase.ui View File

@@ -54,6 +54,14 @@
54 54
                 </property>
55 55
                 <widget class="TQPushButton">
56 56
                     <property name="name">
57
+                        <cstring>m_helpButton</cstring>
58
+                    </property>
59
+                    <property name="text">
60
+                        <string>&amp;Help</string>
61
+                    </property>
62
+                </widget>
63
+                <widget class="TQPushButton">
64
+                    <property name="name">
57 65
                         <cstring>m_aboutButton</cstring>
58 66
                     </property>
59 67
                     <property name="text">

Loading…
Cancel
Save