[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-01 21:02:34
Message-ID: i2n4d2ac2511004011402n267e27b4mdf2076e02b9405c5 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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?


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?


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

Okay, I see. Thanks for explaining.

>
> > 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..?



>
> --
> 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/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>



_______________________________________________
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