<br><br><div class="gmail_quote">2010/3/31 Aaron J. Seigo <span dir="ltr">&lt;<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On March 30, 2010, Ivan Ruchkin wrote:<br>
&gt; 2010/3/29 Aaron J. Seigo &lt;<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt;<br>
&gt;<br>
&gt; &gt; On March 28, 2010, you wrote:<br>
&gt; &gt; &gt; My name is Ivan, I&#39;d like to improve global Mac-OS style menu bar as my<br>
&gt; &gt; &gt; GSoC project.<br>
&gt; &gt; &gt; Can you please point me to the development code of it?<br>
&gt; &gt; &gt; How does it corellate with XBar plasmoid?<br>
&gt; &gt;<br>
&gt; &gt; there is a fairly old start to such a plasmoid in:<br>
&gt; &gt;        /trunk/playground/base/plasma/applets/menubar/<br>
&gt; &gt;<br>
&gt; &gt; it has no relation to the xbar plasmoid, which only works with bespin.<br>
&gt; &gt;<br>
&gt; &gt; done &quot;right&quot;, i think what really ought to happen is this:<br>
&gt; &gt;<br>
&gt; &gt; * add a &quot;global menubar&quot; option to the Desktop -&gt; Workspace control panel<br>
&gt; &gt; in<br>
&gt; &gt; system settings<br>
&gt;<br>
&gt; That seems more or less clear. That&#39;s systemsettings application<br>
&gt; (kdebase/workspace/systemsettings). But where can I find code that<br>
&gt; configures the exact panel &quot;Desktop-&gt;Workspace&quot;?<br>
&gt;<br>
&gt; &gt; * create a Plasma::Containment of type Panel for the menubar; it would be<br>
&gt; &gt; much<br>
&gt; &gt; like the current Panel containment, but it would have the implementation<br>
&gt; &gt; of the menubar directly inside it, and it would arrange other plasmoids<br>
&gt; &gt; around it. this means that the menubar itself wouldn&#39;t be so much a<br>
&gt; &gt; separate plasmoid<br>
&gt; &gt; as it would a Plasma::Contaiment. this would go into<br>
&gt; &gt; kdebase/workspace/plasma/desktop/containments/.<br>
&gt;<br>
&gt; So, that&#39;s a subclass of Plasma::Containment, but most of code is copied<br>
&gt; from Panel and some special features added?<br>
<br>
</div></div>yes. (not that there is all that much code in the Panel containment; and some<br>
of what is there could probably be done cleaner at this point)<br></blockquote><div><br><br>
And then KDE applications should add their applet-menus into the menubar containment? <br><br>Or maybe a special interface should be created for adding something like QMenu there and encapsulate applet creation inside menubar?<br>
<br><br>Anyway, this project will probably need some demostration of really working MacOS menubar. Thus some applications should be hacked to provide their menus (or applets with menus) for menubar?<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im"><br>
&gt; &gt; top of the screen, it would not be resizeable (always the height of the<br>
&gt; &gt; menubar) and it would not be directly removable (system settings would<br>
&gt; &gt; control<br>
&gt; &gt; it)<br>
&gt;<br>
&gt; I didn&#39;t really get the idea of that passage. I&#39;m a newbie in Plasma, so<br>
&gt; can you please tell me what&#39;s the responsibility of PanelView (didn&#39;t<br>
<br>
</div>PanelView is the actual window. it is a QGraphicsView which views an area of<br>
the QGraphicsScene (the Corona class), in particular it shows the area of the<br>
scene on which the panel Containment is. PanelView is responsible for the<br>
position on screen, autohiding, those sorts of things.<br>
<div class="im"><br>
&gt; understand it from docs and code) -- to create Containments like Desktop<br>
&gt; and Panel?<br>
<br>
</div>that&#39;s handled by the Corona. the View just displays them.<br>
<div class="im"><br>
&gt; And what&#39;s &quot;that configuration option&quot;?<br>
<br>
</div>the &quot;global menubar&quot; option in the Desktop -&gt; Workspace control panel. so when<br>
the user turns that on, plasma-desktop will then create the menubar view<br>
automatically.<br>
<br>
this is how it was done, eventually, in kicker in kde3 as well. prior to that<br>
the user had to set it all up themself: add a new panel, add the menubar<br>
applet, turn the configuration option on in kcontrol, etc, etc. it was a<br>
hassle and not clear at all how to do it. so i ended up rewriting it so that<br>
just turning the option on in kcontrol made kicker set up the panel for the<br>
user automatically.<br>
<br>
this would be the same goal with plasma-desktop.<br></blockquote><div><br>Okay, I see. Thanks for explaining. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im"><br>
&gt; About keeping it always on the top of screen: maybe the position (top or<br>
&gt; botton) of menubar should be configured in control panel as well?<br>
<br>
</div>does it make any sense to have the menubar at the bottom of the screen?<br>
(certainly doesn&#39;t on the left/right, we know that much for sure ;)<br></blockquote><div><br> </div><div>As for me, I keep a panel with  taskbar and icons in the top of screen, so I may want to have menubar in the bottom. Sounds wild, but why not..?<br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
--<br>
Aaron J. Seigo<br>
humru othro a kohnu se<br>
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43<br>
<br>
KDE core developer sponsored by Qt Development Frameworks<br>
</div>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</blockquote></div><br>