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

List:       kde-panel-devel
Subject:    Re: Review Request: Adapt Device Notifier to PopupApplet
From:       "=?ISO-8859-1?Q?Alexis_M=E9nard?=" <darktears31 () gmail ! com>
Date:       2008-07-26 16:42:17
Message-ID: 81941aea0807260942s765b8bf6p5c1a8ca94bbfebc () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


My idea was to port the notifier to extender if it possible...i have to tak=
e
a look...

On Sat, Jul 26, 2008 at 6:48 PM, Marco Martin <notmart@gmail.com> wrote:

> On Saturday 26 July 2008, Alexis M=E9nard wrote:
> > in h file i use a Plasma::Dialog (inherits of QWidget) and i do a new
> > QWidget in desktop and a new Plasma::Dialog in taskbar...
> >
> > It's not a good way i think but there some stuff to do in plasma popup
> > applet to avoid that...Perhaps we can take a look together in
> akademy...It
> > can be done quickly...
> i think popupapplet should also have a way to make popup with graphicsvie=
ws
> (like the notifier applet, like extenders.. using extenders perhaps?)
> otherwise we wil ever only be able to do popups with plain qwidgets, a bi=
t
> limiting...
>
> Cheers,
> Marco Martin
>
> >
> > On Sat, Jul 26, 2008 at 6:33 PM, Marco Martin <notmart@gmail.com> wrote=
:
> > > On Saturday 26 July 2008, Alexis M=E9nard wrote:
> > > > In branches/work/ter-notifier, i just use dialog when the applet is
> in
> > > > a taskbar and i use a simple qwidget when the applet is in the
> > > > desktop...
> > > >
> > > > It solves the double background painting...
> > >
> > > yeah, i like that :)
> > >
> > > Cheers,
> > > Marco Martin
> > >
> > > > On Sat, Jul 26, 2008 at 6:17 PM, Marco Martin <notmart@gmail.com>
> wrote:
> > > > > -----------------------------------------------------------
> > > > > This is an automatically generated e-mail. To reply, visit:
> > > > > http://reviewboard.vidsolbach.de/r/109/#review86
> > > > > -----------------------------------------------------------
> > > > >
> > > > >
> > > > > about putting plasma::Dialog into the desktop there would be only
> one
> > > > > problem:
> > > > > this applet would be forced to have no background and
> > > > > reimplementations of popupapplet can not change its own backgroun=
d
> > > > > hints
> > > > > and on desktop the dialog svg would be displayed.
> > > > > what i would do is:
> > > > > use this patch nearly as is, but add a method (private with
> > > > > popupapplet friend?) to Plasma::dialog to disable its own
> background,
> > > > > so would
> > >
> > > still
> > >
> > > > > be popupapplet to draw the background.
> > > > > would this cause other problems?
> > > > >
> > > > > - Marco
> > > > >
> > > > > On 2008-07-26 08:56:10, Loic Marteau wrote:
> > > > > > -----------------------------------------------------------
> > > > > > This is an automatically generated e-mail. To reply, visit:
> > > > > > http://reviewboard.vidsolbach.de/r/109/
> > > > > > -----------------------------------------------------------
> > > > > >
> > > > > > (Updated 2008-07-26 08:56:10)
> > > > > >
> > > > > >
> > > > > > Review request for Plasma.
> > > > > >
> > > > > >
> > > > > > Summary
> > > > > > -------
> > > > > >
> > > > > > Here is a patch to adapt Device Notifier to use
> > > > > > Plasma::PopupApplet.
> > > > > >
> > > > > > I have add some timer stuff in popupApplet so we can say how ti=
me
> > > > > > we want
> > > > >
> > > > > popup the applet in panel.
> > > > >
> > > > > > I have change a little the way popupApplet work on Desktop mode
> by
> > > > > > using
> > > > >
> > > > > the same Plasma::dialog widget than we use in Panel Mode.
> > > > >
> > > > > > Perhaps it is not a good idea ?!
> > > > > >
> > > > > > If we prefer not using Plasma:Dialog in Desktop mode i have to
> > > > > > found
> > >
> > > a
> > >
> > > > > correct way to use the plasma theme inside the proxyWidget, which
> is
> > >
> > > not
> > >
> > > > > the case in the actual code.
> > > > >
> > > > > > Diffs
> > > > > > -----
> > > > > >
> > > > > >   /trunk/KDE/kdebase/workspace/libs/plasma/popupapplet.h
> > > > > >   /trunk/KDE/kdebase/workspace/libs/plasma/popupapplet.cpp
> > >
> > >
> /trunk/KDE/kdebase/workspace/plasma/applets/devicenotifier/devicenotifier
> > >
> > > > >.h
> > >
> > >
> /trunk/KDE/kdebase/workspace/plasma/applets/devicenotifier/devicenotifier
> > >
> > > > >.cpp
> > > > >
> > > > > > Diff: http://reviewboard.vidsolbach.de/r/109/diff
> > > > > >
> > > > > >
> > > > > > Testing
> > > > > > -------
> > > > > >
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Loic
> > > > >
> > > > > _______________________________________________
> > > > > Plasma-devel mailing list
> > > > > Plasma-devel@kde.org
> > > > > https://mail.kde.org/mailman/listinfo/plasma-devel
>
>
>

[Attachment #5 (text/html)]

<div dir="ltr">My idea was to port the notifier to extender if it possible...i have \
to take a look...<br><br><div class="gmail_quote">On Sat, Jul 26, 2008 at 6:48 PM, \
Marco Martin <span dir="ltr">&lt;<a \
href="mailto:notmart@gmail.com">notmart@gmail.com</a>&gt;</span> wrote:<br> \
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Saturday 26 \
July 2008, Alexis Ménard wrote:<br> </div><div class="Ih2E3d">&gt; in h file i use a \
Plasma::Dialog (inherits of QWidget) and i do a new<br> &gt; QWidget in desktop and a \
new Plasma::Dialog in taskbar...<br> &gt;<br>
&gt; It&#39;s not a good way i think but there some stuff to do in plasma popup<br>
&gt; applet to avoid that...Perhaps we can take a look together in akademy...It<br>
&gt; can be done quickly...<br>
</div>i think popupapplet should also have a way to make popup with graphicsviews<br>
(like the notifier applet, like extenders.. using extenders perhaps?)<br>
otherwise we wil ever only be able to do popups with plain qwidgets, a bit<br>
limiting...<br>
<div><div></div><div class="Wj3C7c"><br>
Cheers,<br>
Marco Martin<br>
<br>
&gt;<br>
&gt; On Sat, Jul 26, 2008 at 6:33 PM, Marco Martin &lt;<a \
href="mailto:notmart@gmail.com">notmart@gmail.com</a>&gt; wrote:<br> &gt; &gt; On \
Saturday 26 July 2008, Alexis Ménard wrote:<br> &gt; &gt; &gt; In \
branches/work/ter-notifier, i just use dialog when the applet is in<br> &gt; &gt; \
&gt; a taskbar and i use a simple qwidget when the applet is in the<br> &gt; &gt; \
&gt; desktop...<br> &gt; &gt; &gt;<br>
&gt; &gt; &gt; It solves the double background painting...<br>
&gt; &gt;<br>
&gt; &gt; yeah, i like that :)<br>
&gt; &gt;<br>
&gt; &gt; Cheers,<br>
&gt; &gt; Marco Martin<br>
&gt; &gt;<br>
&gt; &gt; &gt; On Sat, Jul 26, 2008 at 6:17 PM, Marco Martin &lt;<a \
href="mailto:notmart@gmail.com">notmart@gmail.com</a>&gt; wrote:<br> &gt; &gt; &gt; \
&gt; -----------------------------------------------------------<br> &gt; &gt; &gt; \
&gt; This is an automatically generated e-mail. To reply, visit:<br> &gt; &gt; &gt; \
&gt; <a href="http://reviewboard.vidsolbach.de/r/109/#review86" \
target="_blank">http://reviewboard.vidsolbach.de/r/109/#review86</a><br> &gt; &gt; \
&gt; &gt; -----------------------------------------------------------<br> &gt; &gt; \
&gt; &gt;<br> &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; about putting plasma::Dialog into the desktop there would be only \
one<br> &gt; &gt; &gt; &gt; problem:<br>
&gt; &gt; &gt; &gt; this applet would be forced to have no background and<br>
&gt; &gt; &gt; &gt; reimplementations of popupapplet can not change its own \
background<br> &gt; &gt; &gt; &gt; hints<br>
&gt; &gt; &gt; &gt; and on desktop the dialog svg would be displayed.<br>
&gt; &gt; &gt; &gt; what i would do is:<br>
&gt; &gt; &gt; &gt; use this patch nearly as is, but add a method (private with<br>
&gt; &gt; &gt; &gt; popupapplet friend?) to Plasma::dialog to disable its own \
background,<br> &gt; &gt; &gt; &gt; so would<br>
&gt; &gt;<br>
&gt; &gt; still<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; be popupapplet to draw the background.<br>
&gt; &gt; &gt; &gt; would this cause other problems?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; - Marco<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On 2008-07-26 08:56:10, Loic Marteau wrote:<br>
&gt; &gt; &gt; &gt; &gt; \
-----------------------------------------------------------<br> &gt; &gt; &gt; &gt; \
&gt; This is an automatically generated e-mail. To reply, visit:<br> &gt; &gt; &gt; \
&gt; &gt; <a href="http://reviewboard.vidsolbach.de/r/109/" \
target="_blank">http://reviewboard.vidsolbach.de/r/109/</a><br> &gt; &gt; &gt; &gt; \
&gt; -----------------------------------------------------------<br> &gt; &gt; &gt; \
&gt; &gt;<br> &gt; &gt; &gt; &gt; &gt; (Updated 2008-07-26 08:56:10)<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Review request for Plasma.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Summary<br>
&gt; &gt; &gt; &gt; &gt; -------<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Here is a patch to adapt Device Notifier to use<br>
&gt; &gt; &gt; &gt; &gt; Plasma::PopupApplet.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I have add some timer stuff in popupApplet so we can say how \
time<br> &gt; &gt; &gt; &gt; &gt; we want<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; popup the applet in panel.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I have change a little the way popupApplet work on Desktop \
mode by<br> &gt; &gt; &gt; &gt; &gt; using<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; the same Plasma::dialog widget than we use in Panel Mode.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Perhaps it is not a good idea ?!<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; If we prefer not using Plasma:Dialog in Desktop mode i have \
to<br> &gt; &gt; &gt; &gt; &gt; found<br>
&gt; &gt;<br>
&gt; &gt; a<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; correct way to use the plasma theme inside the proxyWidget, which \
is<br> &gt; &gt;<br>
&gt; &gt; not<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; the case in the actual code.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Diffs<br>
&gt; &gt; &gt; &gt; &gt; -----<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; &nbsp; \
/trunk/KDE/kdebase/workspace/libs/plasma/popupapplet.h<br> &gt; &gt; &gt; &gt; &gt; \
&nbsp; /trunk/KDE/kdebase/workspace/libs/plasma/popupapplet.cpp<br> &gt; &gt;<br>
&gt; &gt; /trunk/KDE/kdebase/workspace/plasma/applets/devicenotifier/devicenotifier<br>
 &gt; &gt;<br>
&gt; &gt; &gt; &gt;.h<br>
&gt; &gt;<br>
&gt; &gt; /trunk/KDE/kdebase/workspace/plasma/applets/devicenotifier/devicenotifier<br>
 &gt; &gt;<br>
&gt; &gt; &gt; &gt;.cpp<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Diff: <a href="http://reviewboard.vidsolbach.de/r/109/diff" \
target="_blank">http://reviewboard.vidsolbach.de/r/109/diff</a><br> &gt; &gt; &gt; \
&gt; &gt;<br> &gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Testing<br>
&gt; &gt; &gt; &gt; &gt; -------<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Loic<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; Plasma-devel mailing list<br>
&gt; &gt; &gt; &gt; <a \
href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br> &gt; &gt; &gt; &gt; \
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> <br>
<br>
</div></div></blockquote></div><br></div>



_______________________________________________
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