[Panel-devel] [PATCH] Applet Handles

Beaudoin Gael gaboo at gaboo.org
Sat Nov 10 09:20:52 CET 2007


Le Saturday 10 November 2007 01:02:27 Kevin Ottens, vous avez écrit :
> Hello list,
>
> After sleep less nights fighting with my misunderstanding of the almighty
> QGraphicsView and QTranform, after horrendous stabbing in the dark... I
> think I've seen the light! I've been touched by the grace of the great
> graphics ninja master and produced the attached patch.
>
> Brothers, I've made a dream:
>  - No horrible context menu anymore
>  - No "size" setting duplicated in applet configuration anymore
>  - No random moving of applets by mistake
>
> Let me introduce you the "Applet Handle 2007"(tm)! Basically it's stealing
> the idea of the live transform from the frame applet and generalizes it for
> more wet dream and fame.
>
> On applet hover, if the applet is on the desktop, a frame appears slowly in
> technicolor(tm) with controls to move, configure, remove or rotatandresize
> the aformentioned applet. When the cursor leave this frame, fading to
> black, they lived happy and got lot of children, the end, thank you.
>
> And now, I need a real sleep probably with dreams about fame, ninjas
> stabbing in the dark and flying with QTransform objects... *plop*
>
> Regards.
>
> PS: If anything in this mail made sense for you feel free to take a look at
> the patch, test it, be excited and brain damaged like me.
> PPS: Yes I know it can be sloppy with some of our applets which are even
> more braindamaged than me.
> PPPS: Just in case that not completely crazy, you can tell me I can commit
> it... be careful I've the finger on the trigger.

Hey, cool, great, fun !!

So after svn upping everything related to plasma to r733806, it works, but 
with some strange things too :)

When I add a widget, I have to quickly stop hovering it for the tool overlay 
to disapear, otherwise I have what you can see in handle1.png[1], and the 
widget disapear (with the fade out).

If I add the widget and don't hover it at drop (not easy :p), it's ok.

Moving works well, although the icon is not well self explaining. I like the 
fact that if I put my applet on the left, the tools apears on the right !

The borders don't seams to be antialiased.

After changing size/rotating the widgets "jumps" some pixels.

The fonts are sometimes bizarre when a widget is rotated.

And then a screenshot because you're worth it [2] ;)

Oh, and the newsticker widget continues to animate nicely.

I'll try to svn up and apply this now, last time I've tried I had "previously 
defined here" like errors.

Plasma is really becoming more and more fun ...

gaboo --

[1] http://pixels.gaboo.org/public/handle1.png
[2] http://pixels.gaboo.org/public/handlefun1.png

-------------- next part --------------
#6  0xb7ea22e7 in Plasma::Phase::timerEvent (this=0x8198f50, event=0xbfc68698)
    at /home/kde-devel/kdesvn/kdebase/workspace/libs/plasma/phase.cpp:526
#7  0xb7d92255 in QObject::event (this=0x8198f50, e=0x0)
    at /home/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:1097
#8  0xb6a602a0 in QApplicationPrivate::notify_helper (this=0x806b190, 
    receiver=0x8198f50, e=0xbfc68698)
    at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:3558
#9  0xb6a661b9 in QApplication::notify (this=0xbfc688d4, receiver=0x8198f50, 
    e=0xbfc68698)
    at /home/kde-devel/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:3117
#10 0xb78fa1da in KApplication::notify (this=0xbfc688d4, receiver=0x8198f50, 
    event=0xbfc68698)
    at /home/kde-devel/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:319
#11 0xb7d841eb in QCoreApplication::notifyInternal (this=0xbfc688d4, 
    receiver=0x8198f50, event=0xbfc68698)
    at /home/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:532
#12 0xb7da7a2d in QTimerInfoList::activateTimers (this=0x806ee7c)
    at ../../include/QtCore/../../../../kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.h:202
#13 0xb7da51b0 in timerSourceDispatch (source=0x806ee48)
    at /home/kde-devel/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:157


More information about the Panel-devel mailing list