<?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>113064</bug_id>
          
          <creation_ts>2005-09-22 14:40:41 +0000</creation_ts>
          <short_desc>Hide main menu bar</short_desc>
          <delta_ts>2006-03-03 18:11:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>quanta</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Debian testing</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>0</everconfirmed>
          <reporter name="Willy Morin">willy.morin</reporter>
          <assigned_to name="András Manţia">amantia</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>5</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>374875</commentid>
    <comment_count>0</comment_count>
    <who name="Willy Morin">willy.morin</who>
    <bug_when>2005-09-22 14:40:41 +0000</bug_when>
    <thetext>Version:           3.4.0 (using KDE KDE 3.4.90)
Installed from:    Debian testing/unstable Packages
OS:                Linux

It would be great to be able to hide the menu bar like in some kde apps (kopete, konsole...). And with a shortcut like ctrl + M it would be perfect. I remove all bar in quanta but the only one I cannot remove is the menu bar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374896</commentid>
    <comment_count>1</comment_count>
    <who name="András Manţia">amantia</who>
    <bug_when>2005-09-22 16:04:42 +0000</bug_when>
    <thetext>*** Bug 113063 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>394028</commentid>
    <comment_count>2</comment_count>
    <who name="Nicolas Dietrich">nidi</who>
    <bug_when>2005-11-30 03:16:44 +0000</bug_when>
    <thetext>looks like a duplicate of bug #92524</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>418933</commentid>
    <comment_count>3</comment_count>
    <who name="András Manţia">amantia</who>
    <bug_when>2006-03-03 18:11:38 +0000</bug_when>
    <thetext>SVN commit 515409 by amantia:

Add the standard show/hide menubar action.

BUG: 113064 

 M  +1 -0      ChangeLog  
 M  +2 -1      data/config/quantaui.rc  
 M  +8 -0      src/quanta.cpp  
 M  +2 -1      src/quanta.h  
 M  +1 -0      src/quanta_init.cpp  


--- branches/KDE/3.5/kdewebdev/quanta/ChangeLog #515408:515409
@@ -15,6 +15,7 @@
         - don&apos;t try to remove an empty, unmodified buffer, if it is the last
           opened one [#111599]
         - remember cursor position for project documents [#101966]
+        - add the standard show/hide menubar action [#113064]
 
 
 Version 3.5.1 (Release date: 23-01-2006; Started 30-11-2005):
--- branches/KDE/3.5/kdewebdev/quanta/data/config/quantaui.rc #515408:515409
@@ -1,5 +1,5 @@
 &lt;!DOCTYPE kpartgui SYSTEM &quot;kpartgui.dtd&quot;&gt;
-&lt;kpartgui version=&quot;32075&quot; name=&quot;quanta&quot; &gt;
+&lt;kpartgui version=&quot;32076&quot; name=&quot;quanta&quot; &gt;
     &lt;MenuBar noMerge=&quot;1&quot; &gt;
         &lt;Menu noMerge=&quot;1&quot; name=&quot;file&quot; &gt;
             &lt;text&gt;&amp;amp;File&lt;/text&gt;
@@ -148,6 +148,7 @@
         &lt;/Menu&gt;
         &lt;Menu noMerge=&quot;1&quot; name=&quot;settings&quot; &gt;
             &lt;text&gt;&amp;amp;Settings&lt;/text&gt;
+            &lt;Action name=&quot;options_show_menubar&quot; /&gt;
             &lt;Merge name=&quot;StandardToolBarMenuHandler&quot; /&gt;
             &lt;Action name=&quot;view_dtd_toolbar&quot; /&gt;
             &lt;Action name=&quot;options_show_statusbar&quot; /&gt;
--- branches/KDE/3.5/kdewebdev/quanta/src/quanta.cpp #515408:515409
@@ -1106,6 +1106,14 @@
   ToolbarTabWidget::ref()-&gt;setCurrentPage(currentPageIndex);
 }
 
+void QuantaApp::slotShowMenuBar()
+{
+  if (menuBar()-&gt;isVisible())
+    menuBar()-&gt;hide();
+  else
+    menuBar()-&gt;show();
+}
+
 void QuantaApp::slotOptionsConfigureActions()
 {
   ActionConfigDialog dlg(m_toolbarList, this, &quot;actions_config_dlg&quot;, true);
--- branches/KDE/3.5/kdewebdev/quanta/src/quanta.h #515408:515409
@@ -306,8 +306,9 @@
   void slotContextMenuAboutToShow();
 
   /** options slots */
+  void slotShowMenuBar();
   void slotPreviewOptions();
-  void slotOptions();
+  void slotOptions(); 
   void slotOptionsConfigureKeys();
   void slotOptionsConfigureToolbars();
   void slotNewToolbarConfig();
--- branches/KDE/3.5/kdewebdev/quanta/src/quanta_init.cpp #515408:515409
@@ -888,6 +888,7 @@
                         m_quanta, SLOT( slotOptionsConfigureActions() ),
                         ac, &quot;configure_actions&quot; );
 
+    KStdAction::showMenubar(m_quanta, SLOT(slotShowMenuBar()), ac, &quot;options_show_menubar&quot;);
     KStdAction::keyBindings(m_quanta, SLOT( slotOptionsConfigureKeys() ), ac, &quot;configure_shortcuts&quot;);
     KStdAction::configureToolbars( m_quanta, SLOT( slotOptionsConfigureToolbars() ), ac, &quot;options_configure_toolbars&quot;);
     KStdAction::preferences(m_quanta, SLOT( slotOptions() ), ac, &quot;general_options&quot;);
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>