<?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>79082</bug_id>
          
          <creation_ts>2004-04-05 06:07:53 +0000</creation_ts>
          <short_desc>Load project toolbars when opening project</short_desc>
          <delta_ts>2004-04-06 18:46:13 +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>CVS HEAD</version>
          <rep_platform>Gentoo Packages</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="Magnus Määttä">magnus</reporter>
          <assigned_to name="András Manţia">amantia</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>221587</commentid>
    <comment_count>0</comment_count>
    <who name="Magnus Määttä">magnus</who>
    <bug_when>2004-04-05 06:07:53 +0000</bug_when>
    <thetext>Version:           CVS HEAD (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
OS:          Linux

I have made my own project toolbar with all buttons I need that are normally in the regular toolbar (and plugins toolbar). So I remove the regular toolbars and add my project toolbar.

That way I save 20-30 pixels of space, more space for my code!

Now I was thinking, having a way to have some or all project toolbars autoloaded when you open a project would be a really nice feature.

Also, it would be nice if I could hide the plugins toolbar like I can do with the normal toolbar (View-&gt;Show Toolbar) so I don&apos;t have to have it floating around.

I know you can do some hacky thing by putting and editing some file in your home dir. But you might not want to have same toolbar for different projects.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221615</commentid>
    <comment_count>1</comment_count>
    <who name="András Manţia">amantia</who>
    <bug_when>2004-04-05 10:28:12 +0000</bug_when>
    <thetext>&gt; Now I was thinking, having a way to have some or all project toolbars
&gt; autoloaded when you open a project would be a really nice feature.

Save a Project View and set it to the default view. Look at Project-&gt;Save 
Project View and Project-&gt;Project Options. Is it OK for you?

&gt; Also, it would be nice if I could hide the plugins toolbar like I can do
&gt; with the normal toolbar (View-&gt;Show Toolbar) so I don&apos;t have to have it
&gt; floating around.
Hm, right. ;-) 

Andras

&gt; I know you can do some hacky thing by putting and editing some file in your
&gt; home dir. But you might not want to have same toolbar for different
&gt; projects.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221626</commentid>
    <comment_count>2</comment_count>
    <who name="Magnus Määttä">magnus</who>
    <bug_when>2004-04-05 11:39:12 +0000</bug_when>
    <thetext>Ahh.. Yes.. That&apos;s perfect!
Didn&apos;t even know what that View stuff was =)

Anyway.. Just noticed something else too.. When you remove the main toolbar (via View-&gt;Show Toolbar), that won&apos;t be saved and you have to remove it at next startup again.. It&apos;s minor, but if it&apos;s possible to save it in some application setting that would be great.

Thanks for the great work!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221991</commentid>
    <comment_count>3</comment_count>
    <who name="András Manţia">amantia</who>
    <bug_when>2004-04-06 18:46:12 +0000</bug_when>
    <thetext>CVS commit by amantia: 



CCMAIL: 79082-done@bugs.kde.org


  M +3 -0      ChangeLog   1.205.2.30
  M +3 -0      quanta/quanta.cpp   1.414.2.19
  M +24 -19    quanta/quanta_init.cpp   1.399.2.9


--- quanta/ChangeLog  #1.205.2.29:1.205.2.30
@@ -4,4 +4,7 @@
     - bugfixes:
         - don&apos;t crash when source/VPL buttons are pressed while a plugin is visible [#76616]
+        - fix search problems when Preview is set to appear in the bottom area [#76832]
+        - fix restoration of the toolbar visibility setting [#79082]
+        - hide/show the plugin toolbar as well when Show Toolbar is unchecked/checked [#79082]
 
     - improvements:

--- quanta/quanta/quanta.cpp  #1.414.2.18:1.414.2.19
@@ -573,4 +573,5 @@ void QuantaApp::slotViewToolBar()
   QToolBar *ebar = toolBar(&quot;mainEditToolBar&quot;);
   QToolBar *nbar = toolBar(&quot;mainNaviToolBar&quot;);
+  QToolBar *pbar = toolBar(&quot;mainPluginsToolBar&quot;);
 
   if(mbar-&gt;isVisible()) {
@@ -578,4 +579,5 @@ void QuantaApp::slotViewToolBar()
     ebar-&gt;hide();
     nbar-&gt;hide();
+    pbar-&gt;hide();
   }
   else {
@@ -583,4 +585,5 @@ void QuantaApp::slotViewToolBar()
     ebar-&gt;show();
     mbar-&gt;show();
+    pbar-&gt;show();
   }
 }

--- quanta/quanta/quanta_init.cpp  #1.399.2.8:1.399.2.9
@@ -214,4 +214,22 @@ void QuantaApp::initQuanta()
   createGUI( QString::null, false /* conserveMemory */ );
 
+  KToggleAction *showToolbarAction = (KToggleAction *) actionCollection()-&gt;action( &quot;view_toolbar&quot; );
+  m_config-&gt;setGroup(&quot;General Options&quot;);
+  if (!m_config-&gt;readBoolEntry(&quot;Show Toolbar&quot;,true))
+  {
+    toolBar(&quot;mainToolBar&quot;)-&gt;hide();
+    toolBar(&quot;mainEditToolBar&quot;)-&gt;hide();
+    toolBar(&quot;mainNaviToolBar&quot;)-&gt;hide();
+    toolBar(&quot;mainPluginsToolBar&quot;)-&gt;hide();
+    showToolbarAction-&gt;setChecked(false);
+  } else
+  {
+    toolBar(&quot;mainToolBar&quot;)-&gt;show();
+    toolBar(&quot;mainEditToolBar&quot;)-&gt;show();
+    toolBar(&quot;mainNaviToolBar&quot;)-&gt;show();
+    toolBar(&quot;mainPluginsToolBar&quot;)-&gt;show();
+    showToolbarAction-&gt;setChecked(true);
+  }
+
 //Compatility code (read the action shortcuts from quantaui.rc)
 //TODO: Remove after upgrade from 3.1 is not supported
@@ -729,17 +747,4 @@ void QuantaApp::readOptions()
   qConfig.autosaveInterval = m_config-&gt;readNumEntry(&quot;Autosave interval&quot;, 1);
 
-  KToggleAction *showToolbarAction = (KToggleAction *) actionCollection()-&gt;action( &quot;view_toolbar&quot; );
-  if (!m_config-&gt;readBoolEntry(&quot;Show Toolbar&quot;,true))
-  {
-    toolBar(&quot;mainToolBar&quot;)-&gt;hide();
-    toolBar(&quot;mainEditToolBar&quot;)-&gt;hide();
-    toolBar(&quot;mainNaviToolBar&quot;)-&gt;hide();
-    showToolbarAction-&gt;setChecked(false);
-  } else
-  {
-    toolBar(&quot;mainToolBar&quot;)-&gt;show();
-    toolBar(&quot;mainEditToolBar&quot;)-&gt;show();
-    toolBar(&quot;mainNaviToolBar&quot;)-&gt;show();
-  }
   if (!m_config-&gt;readBoolEntry(&quot;Show Statusbar&quot;, true))
   {
@@ -750,5 +755,5 @@ void QuantaApp::readOptions()
   }
   slotViewStatusBar();
-  showToolbarAction  -&gt;setChecked(m_config-&gt;readBoolEntry(&quot;Show Toolbar&quot;,   true));
+//  showToolbarAction  -&gt;setChecked(m_config-&gt;readBoolEntry(&quot;Show Toolbar&quot;,   true));
   qConfig.enableDTDToolbar = m_config-&gt;readBoolEntry(&quot;Show DTD Toolbar&quot;,true);
   showDTDToolbar-&gt;setChecked(qConfig.enableDTDToolbar);


</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>