[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: global menu bar for gsoc
From:       Ivan Ruchkin <ruchkin.ivan () gmail ! com>
Date:       2010-04-04 14:22:32
Message-ID: w2u4d2ac2511004040722hfdd8d877uebbc7ff4e3189b2d () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


2010/4/2 Aaron J. Seigo <aseigo@kde.org>

> On April 1, 2010, Ivan Ruchkin wrote:
> > 2010/3/31 Aaron J. Seigo <aseigo@kde.org>
> >
> > > On March 30, 2010, Ivan Ruchkin wrote:
> > > > 2010/3/29 Aaron J. Seigo <aseigo@kde.org>
> > > >
> > > > > On March 28, 2010, you wrote:
> > > > > > My name is Ivan, I'd like to improve global Mac-OS style menu bar
> > > > > > as
> > >
> > > my
> > >
> > > > > > GSoC project.
> > > > > > Can you please point me to the development code of it?
> > > > > > How does it corellate with XBar plasmoid?
> > > > >
> > > > > there is a fairly old start to such a plasmoid in:
> > > > >        /trunk/playground/base/plasma/applets/menubar/
> > > > >
> > > > > it has no relation to the xbar plasmoid, which only works with
> > > > > bespin.
> > > > >
> > > > > done "right", i think what really ought to happen is this:
> > > > >
> > > > > * add a "global menubar" option to the Desktop -> Workspace control
> > >
> > > panel
> > >
> > > > > in
> > > > > system settings
> > > >
> > > > That seems more or less clear. That's systemsettings application
> > > > (kdebase/workspace/systemsettings). But where can I find code that
> > > > configures the exact panel "Desktop->Workspace"?
> > > >
> > > > > * create a Plasma::Containment of type Panel for the menubar; it
> > > > > would
> > >
> > > be
> > >
> > > > > much
> > > > > like the current Panel containment, but it would have the
> > >
> > > implementation
> > >
> > > > > of the menubar directly inside it, and it would arrange other
> > > > > plasmoids around it. this means that the menubar itself wouldn't be
> > > > > so much a separate plasmoid
> > > > > as it would a Plasma::Contaiment. this would go into
> > > > > kdebase/workspace/plasma/desktop/containments/.
> > > >
> > > > So, that's a subclass of Plasma::Containment, but most of code is
> > > > copied from Panel and some special features added?
> > >
> > > yes. (not that there is all that much code in the Panel containment;
> and
> > > some
> > > of what is there could probably be done cleaner at this point)
> >
> > And then KDE applications should add their applet-menus into the menubar
> > containment?
> >
> > Or maybe a special interface should be created for adding something like
> > QMenu there and encapsulate applet creation inside menubar?
>
> there are a few approaches to this, including using xembed or a dbus based
> system (e.g. where the active window can be queried for its top level
> menubar
> entries, and a signal sent to the application to show the corresponding
> menu
> in the correct location when it is activated). perhaps look at how bespin
> is
> doing this currently, how the menubar kick applet in kde3 did it and
> perhaps
> look at how other systems on x11 do this (if any do?)
>

Why can't we just take the dbus client-server mechanism from Bespin and
XBar? Menubar containment will serve as server and every application as a
client.

Or that's not in scope of that project?


>
> > > > About keeping it always on the top of screen: maybe the position (top
> > > > or botton) of menubar should be configured in control panel as well?
> > >
> > > does it make any sense to have the menubar at the bottom of the screen?
> > > (certainly doesn't on the left/right, we know that much for sure ;)
> >
> > 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..?
>
> because offering configuration options that make no sense is inelegant and
> comes at a cost to testability, quality and usability.
>
> --
> Aaron J. Seigo
> humru othro a kohnu se
> GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
>
> KDE core developer sponsored by Qt Development Frameworks
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">2010/4/2 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 April 1, 2010, \
Ivan Ruchkin wrote:<br> &gt; 2010/3/31 Aaron J. Seigo &lt;<a \
href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt;<br> &gt;<br>
&gt; &gt; On March 30, 2010, Ivan Ruchkin wrote:<br>
&gt; &gt; &gt; 2010/3/29 Aaron J. Seigo &lt;<a \
href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt;<br> &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On March 28, 2010, you wrote:<br>
&gt; &gt; &gt; &gt; &gt; My name is Ivan, I&#39;d like to improve global Mac-OS style \
menu bar<br> &gt; &gt; &gt; &gt; &gt; as<br>
&gt; &gt;<br>
&gt; &gt; my<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; GSoC project.<br>
&gt; &gt; &gt; &gt; &gt; Can you please point me to the development code of it?<br>
&gt; &gt; &gt; &gt; &gt; How does it corellate with XBar plasmoid?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; there is a fairly old start to such a plasmoid in:<br>
&gt; &gt; &gt; &gt;        /trunk/playground/base/plasma/applets/menubar/<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; it has no relation to the xbar plasmoid, which only works \
with<br> &gt; &gt; &gt; &gt; bespin.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; done &quot;right&quot;, i think what really ought to happen is \
this:<br> &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; * add a &quot;global menubar&quot; option to the Desktop -&gt; \
Workspace control<br> &gt; &gt;<br>
&gt; &gt; panel<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; in<br>
&gt; &gt; &gt; &gt; system settings<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; That seems more or less clear. That&#39;s systemsettings \
application<br> &gt; &gt; &gt; (kdebase/workspace/systemsettings). But where can I \
find code that<br> &gt; &gt; &gt; configures the exact panel \
&quot;Desktop-&gt;Workspace&quot;?<br> &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; * create a Plasma::Containment of type Panel for the menubar; \
it<br> &gt; &gt; &gt; &gt; would<br>
&gt; &gt;<br>
&gt; &gt; be<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; much<br>
&gt; &gt; &gt; &gt; like the current Panel containment, but it would have the<br>
&gt; &gt;<br>
&gt; &gt; implementation<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; of the menubar directly inside it, and it would arrange other<br>
&gt; &gt; &gt; &gt; plasmoids around it. this means that the menubar itself \
wouldn&#39;t be<br> &gt; &gt; &gt; &gt; so much a separate plasmoid<br>
&gt; &gt; &gt; &gt; as it would a Plasma::Contaiment. this would go into<br>
&gt; &gt; &gt; &gt; kdebase/workspace/plasma/desktop/containments/.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; So, that&#39;s a subclass of Plasma::Containment, but most of code \
is<br> &gt; &gt; &gt; copied from Panel and some special features added?<br>
&gt; &gt;<br>
&gt; &gt; yes. (not that there is all that much code in the Panel containment; \
and<br> &gt; &gt; some<br>
&gt; &gt; of what is there could probably be done cleaner at this point)<br>
&gt;<br>
&gt; And then KDE applications should add their applet-menus into the menubar<br>
&gt; containment?<br>
&gt;<br>
&gt; Or maybe a special interface should be created for adding something like<br>
&gt; QMenu there and encapsulate applet creation inside menubar?<br>
<br>
</div></div>there are a few approaches to this, including using xembed or a dbus \
based<br> system (e.g. where the active window can be queried for its top level \
menubar<br> entries, and a signal sent to the application to show the corresponding \
menu<br> in the correct location when it is activated). perhaps look at how bespin \
is<br> doing this currently, how the menubar kick applet in kde3 did it and \
perhaps<br> look at how other systems on x11 do this (if any \
do?)<br></blockquote><div><br>Why can&#39;t we just take the dbus client-server \
mechanism from Bespin and XBar? Menubar containment will serve as server and every \
application as a client.<br> <br>Or that&#39;s not in scope of that project?<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; &gt; About keeping it always on the top of screen: maybe the position \
(top<br> &gt; &gt; &gt; or botton) of menubar should be configured in control panel \
as well?<br> &gt; &gt;<br>
&gt; &gt; does it make any sense to have the menubar at the bottom of the screen?<br>
&gt; &gt; (certainly doesn&#39;t on the left/right, we know that much for sure ;)<br>
&gt;<br>
&gt; As for me, I keep a panel with taskbar and icons in the top of screen, so I<br>
&gt; may want to have menubar in the bottom. Sounds wild, but why not..?<br>
<br>
</div>because offering configuration options that make no sense is inelegant and<br>
comes at a cost to testability, quality and usability.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">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>
_______________________________________________<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> \
</div></div></blockquote></div><br>



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic