[Panel-devel] [PATCH] Plasma Layouts

Andreas Aardal Hanssen ahanssen at trolltech.com
Mon May 21 09:08:21 CEST 2007


On Monday 21 May 2007 08:46, Aaron J. Seigo wrote:
> > > via inheritance from Plasma::Widget so the layout system can manage
> > > widgets in the same fashion that QWidgets are manager by QLayouts.
> > Wow, you're actually writing a _new_ layout system? I thought you were
> > just porting the one in Qt.
> 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. But maybe Plasma can 
get away with a simple solution for now? It won't be long until the first 
layout/wigdet code in Qt becomes available, though.

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

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

-- 
Andreas Aardal Hanssen / bibr - andreas . hanssen @ trolltech.com


More information about the Panel-devel mailing list