Extender api review, round 2

Aaron J. Seigo aseigo at kde.org
Wed Jul 30 23:42:45 CEST 2008


On Wednesday 30 July 2008, Rob Scheepmaker wrote:
> On Wednesday 30 July 2008 21:18:06 Aaron J. Seigo wrote:
> > > Actually it moves the extender to somewhere in the topleft quadrant of
> > > the scene (negative coordinates). However, I'm actually thinking now
> > > that PopupApplet should handle this.
> >
> > that probably makes sense; or rather, Corona shold support a way to do
> > this easily, which is used by things that would benefit from it such as
> > PopupApplet.
>
> I could add something like this to corona:
>
> void addOffscreenWidget(QGW *)
> void removeOffscreenWidget(QGW *)

that would be sensible, yes.

> that add's/removes widgets to a layout in the topleft quadrant... This name
> is horrible though... any suggestions?

my imagination is failing me at the moment... will see if anythign percolates 
up later.

> > > > >             void setExtender(Extender *extender);
> > > > >             Extender *extender() const;
> > > >
> > > > Ah, now I'm confused... How is that different from the mandatory
> > > > extender provided in the ctor?
> > >
> > > This way the item can be moved between extenders... I'm not entirely
> > > sure if there are cases where that is useful though.
> >
> > does that happen when an item is moved between applets? or is a whole new
> > ExtenderItem created (would seem a bit wasteful?)
>
> Yes, it happens when an item is moved between applets. It moves it's
> configuration, removes the item from it's old extender, and adds itself to
> the new extender.

ok, so it makes lots of sense as-is then =)

> Example:
> The kuiserver applet could optionally use two extenders... one in which it
> shows running jobs, and one where finished jobs are move. In the panel it
> could show 2 icons, one for either extender.

hrm... i'd honestly prefer those all in one place.

any other use cases anyone can come up with?

-- 
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: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080730/dab79dc0/attachment.pgp 


More information about the Plasma-devel mailing list