<br><br><div class="gmail_quote">2010/3/31 Aaron J. Seigo <span dir="ltr"><<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>></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>
> 2010/3/29 Aaron J. Seigo <<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>><br>
><br>
> > On March 28, 2010, you wrote:<br>
> > > My name is Ivan, I'd like to improve global Mac-OS style menu bar as my<br>
> > > GSoC project.<br>
> > > Can you please point me to the development code of it?<br>
> > > How does it corellate with XBar plasmoid?<br>
> ><br>
> > there is a fairly old start to such a plasmoid in:<br>
> > /trunk/playground/base/plasma/applets/menubar/<br>
> ><br>
> > it has no relation to the xbar plasmoid, which only works with bespin.<br>
> ><br>
> > done "right", i think what really ought to happen is this:<br>
> ><br>
> > * add a "global menubar" option to the Desktop -> Workspace control panel<br>
> > in<br>
> > system settings<br>
><br>
> That seems more or less clear. That's systemsettings application<br>
> (kdebase/workspace/systemsettings). But where can I find code that<br>
> configures the exact panel "Desktop->Workspace"?<br>
><br>
> > * create a Plasma::Containment of type Panel for the menubar; it would be<br>
> > much<br>
> > like the current Panel containment, but it would have the implementation<br>
> > of the menubar directly inside it, and it would arrange other plasmoids<br>
> > around it. this means that the menubar itself wouldn't be so much a<br>
> > separate plasmoid<br>
> > as it would a Plasma::Contaiment. this would go into<br>
> > kdebase/workspace/plasma/desktop/containments/.<br>
><br>
> So, that's a subclass of Plasma::Containment, but most of code is copied<br>
> 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>
> > top of the screen, it would not be resizeable (always the height of the<br>
> > menubar) and it would not be directly removable (system settings would<br>
> > control<br>
> > it)<br>
><br>
> I didn't really get the idea of that passage. I'm a newbie in Plasma, so<br>
> can you please tell me what's the responsibility of PanelView (didn'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>
> understand it from docs and code) -- to create Containments like Desktop<br>
> and Panel?<br>
<br>
</div>that's handled by the Corona. the View just displays them.<br>
<div class="im"><br>
> And what's "that configuration option"?<br>
<br>
</div>the "global menubar" option in the Desktop -> 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>
> About keeping it always on the top of screen: maybe the position (top or<br>
> 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'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>