<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>62888</bug_id>
          
          <creation_ts>2003-08-18 16:20:59 +0000</creation_ts>
          <short_desc>Back and forward buttons available in context menu</short_desc>
          <delta_ts>2004-01-21 16:23:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kdevelop</product>
          <component>doctreeview</component>
          <version>3.0.0a5</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Jonsson">rj</reporter>
          <assigned_to name="KDevelop Developers">kdevelop-devel</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>152906</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jonsson">rj</who>
    <bug_when>2003-08-18 16:20:59 +0000</bug_when>
    <thetext>Version:           3.0.0a5 (using KDE 3.1.3)
Compiler:          gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-0.7mdk)
OS:          Linux (i686) release 2.4.21-0.13mdk

The back/forward buttons up in the toolbar. It strikes me as a great addition to add these to the document-context-menu also. Similar to the way a web browser handles this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194647</commentid>
    <comment_count>1</comment_count>
      <attachid>4155</attachid>
    <who name="Dan Christensen">daniel_l_christensen</who>
    <bug_when>2004-01-14 00:58:59 +0000</bug_when>
    <thetext>Created attachment 4155
Suggested Patch

This was annoying me as well. Here is a suggested patch to add the &quot;Back&quot; and
&quot;Forward&quot; actions to the context menu in the documentation viewer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194650</commentid>
    <comment_count>2</comment_count>
    <who name="Jens Dagerbo">jens.dagerbo</who>
    <bug_when>2004-01-14 01:22:40 +0000</bug_when>
    <thetext>Nice. Will apply when CVS freeze is over. Thanks for the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197226</commentid>
    <comment_count>3</comment_count>
    <who name="Jens Dagerbo">jens.dagerbo</who>
    <bug_when>2004-01-21 16:23:32 +0000</bug_when>
    <thetext>Subject: kdevelop/src

CVS commit by dagerbo: 

Commit suggested patch for bug 62888.

Thanks to Dan Christensen for the patch.

CCMAIL: 62888-done@bugs.kde.org


  M +14 -0     documentationpart.cpp   1.18


--- kdevelop/src/documentationpart.cpp  #1.17:1.18
@@ -6,6 +6,9 @@
 #include &lt;kpopupmenu.h&gt;
 #include &lt;kiconloader.h&gt;
+#include &lt;kmainwindow.h&gt;
 
+#include &quot;kdevmainwindow.h&quot;
 #include &quot;partcontroller.h&quot;
+#include &quot;toplevel.h&quot;
 
 
@@ -41,4 +44,15 @@ void DocumentationPart::popup( const QSt
   KPopupMenu *m_popup = new KPopupMenu( i18n( &quot;Documentation Viewer&quot; ), this-&gt;widget() );
 
+  // Install the global back and forward actions, if they are available
+  KActionCollection *actions = TopLevel::getInstance()-&gt;main()-&gt;actionCollection();
+  KAction *backAction = actions-&gt;action(&quot;browser_back&quot;);
+  KAction *forwardAction = actions-&gt;action(&quot;browser_forward&quot;);
+  if(backAction &amp;&amp; forwardAction)
+  {
+    backAction-&gt;plug(m_popup);
+    forwardAction-&gt;plug(m_popup);
+    m_popup-&gt;insertSeparator();
+  }
+  
   duplicateAction-&gt;plug(m_popup);
   int idNewWindow = -2;


</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4155</attachid>
            <date>2004-01-14 00:58:59 +0000</date>
            <delta_ts>2004-01-14 00:58:59 +0000</delta_ts>
            <desc>Suggested Patch</desc>
            <filename>documentationpart.patch</filename>
            <type>text/plain</type>
            <size>757</size>
            <attacher name="Dan Christensen">daniel_l_christensen</attacher>
            
              <data encoding="base64">SW5kZXg6IGRvY3VtZW50YXRpb25wYXJ0LmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvaG9tZS9r
ZGUva2RldmVsb3Avc3JjL2RvY3VtZW50YXRpb25wYXJ0LmNwcCx2CnJldHJpZXZpbmcgcmV2aXNp
b24gMS4xNwpkaWZmIC1yMS4xNyBkb2N1bWVudGF0aW9ucGFydC5jcHAKN2E4Cj4gI2luY2x1ZGUg
PGttYWlud2luZG93Lmg+CjhhMTAKPiAjaW5jbHVkZSAia2Rldm1haW53aW5kb3cuaCIKOWExMgo+
ICNpbmNsdWRlICJ0b3BsZXZlbC5oIgo0MmE0Niw1Ngo+ICAgLy8gSW5zdGFsbCB0aGUgZ2xvYmFs
IGJhY2sgYW5kIGZvcndhcmQgYWN0aW9ucywgaWYgdGhleSBhcmUgYXZhaWxhYmxlCj4gICBLQWN0
aW9uQ29sbGVjdGlvbiAqYWN0aW9ucyA9IFRvcExldmVsOjpnZXRJbnN0YW5jZSgpLT5tYWluKCkt
PmFjdGlvbkNvbGxlY3Rpb24oKTsKPiAgIEtBY3Rpb24gKmJhY2tBY3Rpb24gPSBhY3Rpb25zLT5h
Y3Rpb24oImJyb3dzZXJfYmFjayIpOwo+ICAgS0FjdGlvbiAqZm9yd2FyZEFjdGlvbiA9IGFjdGlv
bnMtPmFjdGlvbigiYnJvd3Nlcl9mb3J3YXJkIik7Cj4gICBpZihiYWNrQWN0aW9uICYmIGZvcndh
cmRBY3Rpb24pCj4gICB7Cj4gICAgIGJhY2tBY3Rpb24tPnBsdWcobV9wb3B1cCk7Cj4gICAgIGZv
cndhcmRBY3Rpb24tPnBsdWcobV9wb3B1cCk7Cj4gICAgIG1fcG9wdXAtPmluc2VydFNlcGFyYXRv
cigpOwo+ICAgfQo+ICAgCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>