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

[Attachment #2 (multipart/alternative)]


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

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 reimplementatio=
ns
> > > 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 popupappl=
et
> > > 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 w=
e
> > > > 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 foun=
d
> 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 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...<br><br>It&#39;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...<br> <br><div \
class="gmail_quote">On Sat, Jul 26, 2008 at 6:33 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> &gt; In branches/work/ter-notifier, i just use \
dialog when the applet is in a<br> &gt; taskbar and i use a simple qwidget when the \
applet is in the desktop...<br> &gt;<br>
&gt; It solves the double background painting...<br>
</div>yeah, i like that :)<br>
<br>
Cheers,<br>
<font color="#888888">Marco Martin<br>
</font><div><div></div><div class="Wj3C7c"><br>
&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; \
-----------------------------------------------------------<br> &gt; &gt; This is an \
automatically generated e-mail. To reply, visit:<br> &gt; &gt; <a \
href="http://reviewboard.vidsolbach.de/r/109/#review86" \
target="_blank">http://reviewboard.vidsolbach.de/r/109/#review86</a><br> &gt; &gt; \
-----------------------------------------------------------<br> &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; about putting plasma::Dialog into the desktop there would be only one<br>
&gt; &gt; problem:<br>
&gt; &gt; this applet would be forced to have no background and reimplementations<br>
&gt; &gt; of popupapplet can not change its own background hints<br>
&gt; &gt; and on desktop the dialog svg would be displayed.<br>
&gt; &gt; what i would do is:<br>
&gt; &gt; use this patch nearly as is, but add a method (private with popupapplet<br>
&gt; &gt; friend?) to Plasma::dialog to disable its own background, so would \
still<br> &gt; &gt; be popupapplet to draw the background.<br>
&gt; &gt; would this cause other problems?<br>
&gt; &gt;<br>
&gt; &gt; - Marco<br>
&gt; &gt;<br>
&gt; &gt; On 2008-07-26 08:56:10, Loic Marteau wrote:<br>
&gt; &gt; &gt; -----------------------------------------------------------<br>
&gt; &gt; &gt; This is an automatically generated e-mail. To reply, visit:<br>
&gt; &gt; &gt; <a href="http://reviewboard.vidsolbach.de/r/109/" \
target="_blank">http://reviewboard.vidsolbach.de/r/109/</a><br> &gt; &gt; &gt; \
-----------------------------------------------------------<br> &gt; &gt; &gt;<br>
&gt; &gt; &gt; (Updated 2008-07-26 08:56:10)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Review request for Plasma.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Summary<br>
&gt; &gt; &gt; -------<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Here is a patch to adapt Device Notifier to use \
Plasma::PopupApplet.<br> &gt; &gt; &gt;<br>
&gt; &gt; &gt; I have add some timer stuff in popupApplet so we can say how time \
we<br> &gt; &gt; &gt; want<br>
&gt; &gt;<br>
&gt; &gt; popup the applet in panel.<br>
&gt; &gt;<br>
&gt; &gt; &gt; I have change a little the way popupApplet work on Desktop mode by<br>
&gt; &gt; &gt; using<br>
&gt; &gt;<br>
&gt; &gt; the same Plasma::dialog widget than we use in Panel Mode.<br>
&gt; &gt;<br>
&gt; &gt; &gt; Perhaps it is not a good idea ?!<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; If we prefer not using Plasma:Dialog in Desktop mode i have to found \
a<br> &gt; &gt;<br>
&gt; &gt; correct way to use the plasma theme inside the proxyWidget, which is \
not<br> &gt; &gt; the case in the actual code.<br>
&gt; &gt;<br>
&gt; &gt; &gt; Diffs<br>
&gt; &gt; &gt; -----<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; /trunk/KDE/kdebase/workspace/libs/plasma/popupapplet.h<br>
&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;.h<br>
&gt; &gt;<br>
&gt; &gt; /trunk/KDE/kdebase/workspace/plasma/applets/devicenotifier/devicenotifier<br>
 &gt; &gt;.cpp<br>
&gt; &gt;<br>
&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;<br> &gt; &gt; &gt;<br>
&gt; &gt; &gt; Testing<br>
&gt; &gt; &gt; -------<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Loic<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Plasma-devel mailing list<br>
&gt; &gt; <a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
&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