[Panel-devel] trashcan applet

Aaron J. Seigo aseigo at kde.org
Mon Nov 26 20:07:32 CET 2007


On Monday 26 November 2007, Marco Martin wrote:
> > yes, this needs to go into a generic method in plasma.cpp, really. just
> > as we did with kicker.
>
> i would say in the containment because the calculation could be a little
> bit different if the applet is on the desktop or on a panel

it also needs the geometry of the applet, and while it will need some 
information from the containment, the API should be in Applet to prevent 
people having to do if (containment()) { containment()-> .... etc  in their 
code over and over to get popup positions. so i take back the "in plasma.cpp" 
part; probably put it in applet.cpp for fun and glory; this works since 
everything is an applet these days.

> > > -now it looks like an usual desktop icon so it does not have the
> > > standard background and has some text below the icon ("trash" and the
> > > number of items in the trash) the problem is that the text is always
> > > black, so it can become invisible over the background
> > > -the text under the icon is displayed only on planar and mediacenter
> > > formfactors
> > >
> > > maybe the last two points could make sense also for the launcher
> > > applet?
> >
> > yes, probably some opportunity for code sharing indeed.
>
> maybe a base class for applets that use only one icon?

well, the icon stuff should all go into the icon Plasma::Widget, and the popup 
stuff probably only need a convenience method somewhere.

> > > the problem with drag and drop it's still here (dragging multiple files
> > > only one is "seen") but i noticed two strange things:
> > > printing the text of the qmimedata all the dropped urls appear
> > > and if i drop multiple files with the kde3 konqueror it works perfectly
> >
> > so ... you're saying that dragging multiple files from a kde4 app (which
> > one? all?) is only giving you one url?
>
> yeah, i tried with dolphin, konqueror and the file selection dialog

seems dragging is buggy in the new file view, yes.. =/

-- 
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 Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071126/f7e7afd2/attachment.pgp 


More information about the Panel-devel mailing list