[Panel-devel] [PATCH] Plasma Layouts

Aaron J. Seigo aseigo at kde.org
Mon May 21 09:32:32 CEST 2007


On Monday 21 May 2007, Andreas Aardal Hanssen wrote:
> > do you have a suggestion on how to port the QLayout classes in a way that
> > isn't invasive to Qt itself to be able to handle QGraphicsItems?
>
> Maybe Plasma won't need everything, but I suppose not much time will pass
> before we'll need to support spanning cells and size policies. There is
> much more to layouts than margins and spacing, unfortunately.

indeed there is. however, we'll keep things intentionally simple for now to 
try and avoid that for as long as possible.

> But maybe 
> Plasma can get away with a simple solution for now?

that's the plan.

> It won't be long until 
> the first layout/wigdet code in Qt becomes available, though.

wicked =)

> > > Is this going to be part of kdelibs?
> >
> > no ... it will stay in libplasma.
>
> Good, my worries are stilled :-). As long as we can basically do all and
> any porting work we need without worrying about SC/BC, I'm fine with Plasma
> using a good-enough system until we can finish our stuff in Qt. But I hope

perfect; i really liked the stuff i saw when i was in there in oslo, but we 
need something in the short term to do basic things.

> we can avoid the duplicated api/work mid-long-term, otherwise we'll quickly
> end up having Plasma full of two branches or radio buttons and
> boxlayouts... :-(

hopefully we can ditch much of this stuff for 4.1 ... it's annoying / 
unfortunate that the work needs to be done like this, but obviously we can't 
wait .. it'll be a bit of an annoyance to port applets to the Qt stuff, but 
it probably won't be a big deal as long as:

a) we don't deviate too far from what Qt already does API-wise
b) we keep the plasma stuff simple so there aren't complex cases to deal with
c) we don't spend too much time obsessing over widgets and layouts in plasma 
and spend most of our time for 4.0.x working on other infrastructure; which 
there is lots of =)

> Our work will start showing up on Labs quite soon (in a week or two).
> That'll be Jasmin's brand new research on a new, light-weight and
> easier-to-use and more consistent layout system than what we have had in Qt
> so far. And GV will be the test bed. We'll be focusing on the same widgets
> that Plasma needs (we'll start with buttons, frame/label/lineedit, sliders

brilliant. can't wait to start trying it out.. will it be work with qt 4.3 or 
will it require something more bleeding edge than that when it is released?

> and so on). And we'll be working on the scrollarea, which is actually quite
> tricky to get right, scroll optimization, device-coordinate-caching,
> font/palette/style functionality and everything else that Plasma'll just
> reap benefits from...

ah, beautiful =) we luv TT ... 

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

Full time KDE developer sponsored by Trolltech (http://www.trolltech.com)
-------------- 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/20070521/2eaeba08/attachment.pgp 


More information about the Panel-devel mailing list