Bug 113064

Summary: Hide main menu bar
Product: [Unmaintained] quanta Reporter: Willy Morin <willy.morin>
Component: generalAssignee: András Manţia <amantia>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Willy Morin 2005-09-22 14:40:41 UTC
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.
Comment 1 András Manţia 2005-09-22 16:04:42 UTC
*** Bug 113063 has been marked as a duplicate of this bug. ***
Comment 2 Nicolas Dietrich 2005-11-30 03:16:44 UTC
looks like a duplicate of bug #92524
Comment 3 András Manţia 2006-03-03 18:11:38 UTC
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'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 @@
 <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
-<kpartgui version="32075" name="quanta" >
+<kpartgui version="32076" name="quanta" >
     <MenuBar noMerge="1" >
         <Menu noMerge="1" name="file" >
             <text>&amp;File</text>
@@ -148,6 +148,7 @@
         </Menu>
         <Menu noMerge="1" name="settings" >
             <text>&amp;Settings</text>
+            <Action name="options_show_menubar" />
             <Merge name="StandardToolBarMenuHandler" />
             <Action name="view_dtd_toolbar" />
             <Action name="options_show_statusbar" />
--- branches/KDE/3.5/kdewebdev/quanta/src/quanta.cpp #515408:515409
@@ -1106,6 +1106,14 @@
   ToolbarTabWidget::ref()->setCurrentPage(currentPageIndex);
 }
 
+void QuantaApp::slotShowMenuBar()
+{
+  if (menuBar()->isVisible())
+    menuBar()->hide();
+  else
+    menuBar()->show();
+}
+
 void QuantaApp::slotOptionsConfigureActions()
 {
   ActionConfigDialog dlg(m_toolbarList, this, "actions_config_dlg", 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, "configure_actions" );
 
+    KStdAction::showMenubar(m_quanta, SLOT(slotShowMenuBar()), ac, "options_show_menubar");
     KStdAction::keyBindings(m_quanta, SLOT( slotOptionsConfigureKeys() ), ac, "configure_shortcuts");
     KStdAction::configureToolbars( m_quanta, SLOT( slotOptionsConfigureToolbars() ), ac, "options_configure_toolbars");
     KStdAction::preferences(m_quanta, SLOT( slotOptions() ), ac, "general_options");