[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:22:43
Message-ID: 81941aea0807260922sda45323r5e964b864bf9bb5b () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

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 background 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 time 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">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...<br><br>It \
solves the double background painting...<br><br><div class="gmail_quote"> On Sat, Jul \
26, 2008 at 6:17 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"><br>
-----------------------------------------------------------<br>
This is an automatically generated e-mail. To reply, visit:<br>
</div><a href="http://reviewboard.vidsolbach.de/r/109/#review86" \
                target="_blank">http://reviewboard.vidsolbach.de/r/109/#review86</a><br>
                
-----------------------------------------------------------<br>
<br>
<br>
about putting plasma::Dialog into the desktop there would be only one problem:<br>
this applet would be forced to have no background and reimplementations of \
popupapplet can not change its own background hints<br> and on desktop the dialog svg \
would be displayed.<br> what i would do is:<br>
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.<br> would this cause other problems?<br>
<br>
- Marco<br>
<div class="Ih2E3d"><br>
<br>
On 2008-07-26 08:56:10, Loic Marteau wrote:<br>
&gt;<br>
&gt; -----------------------------------------------------------<br>
&gt; This is an automatically generated e-mail. To reply, visit:<br>
&gt; <a href="http://reviewboard.vidsolbach.de/r/109/" \
target="_blank">http://reviewboard.vidsolbach.de/r/109/</a><br> &gt; \
-----------------------------------------------------------<br> &gt;<br>
</div>&gt; (Updated 2008-07-26 08:56:10)<br>
<div><div></div><div class="Wj3C7c">&gt;<br>
&gt;<br>
&gt; Review request for Plasma.<br>
&gt;<br>
&gt;<br>
&gt; Summary<br>
&gt; -------<br>
&gt;<br>
&gt; Here is a patch to adapt Device Notifier to use Plasma::PopupApplet.<br>
&gt;<br>
&gt; I have add some timer stuff in popupApplet so we can say how time we want popup \
the applet in panel.<br> &gt;<br>
&gt; 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.<br> &gt; Perhaps it is not a \
good idea ?!<br> &gt;<br>
&gt; 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.<br> &gt;<br>
&gt;<br>
&gt; Diffs<br>
&gt; -----<br>
&gt;<br>
&gt; &nbsp; /trunk/KDE/kdebase/workspace/libs/plasma/popupapplet.h<br>
&gt; &nbsp; /trunk/KDE/kdebase/workspace/libs/plasma/popupapplet.cpp<br>
&gt; &nbsp; /trunk/KDE/kdebase/workspace/plasma/applets/devicenotifier/devicenotifier.h<br>
 &gt; &nbsp; /trunk/KDE/kdebase/workspace/plasma/applets/devicenotifier/devicenotifier.cpp<br>
 &gt;<br>
&gt; Diff: <a href="http://reviewboard.vidsolbach.de/r/109/diff" \
target="_blank">http://reviewboard.vidsolbach.de/r/109/diff</a><br> &gt;<br>
&gt;<br>
&gt; Testing<br>
&gt; -------<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Loic<br>
&gt;<br>
&gt;<br>
<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></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