[PATCH] Several rows in taskbar

Marco Martin notmart at gmail.com
Sun Jan 20 13:44:12 CET 2008


On Saturday 19 January 2008 10:19:52 Olivier Goffart wrote:
> Hi,
>
> The patch add the support for showing taskbar entry in several rows  (with
> all the animations ans stuff)
> When there is too much task shown in the taskbar, it automatically take
> more rows.

Hi,
seems neat, only a couple of doubts:
like Chani said i would have gone with a grid layout, but not that i have 
tried so i can't say what effort would be needed, maybe this is ok, don't 
know...
most important i wonder how this will cope with some still not implemented 
features (some that i would try to do and i'm always procastinating :P)

little panels, where there is not room for a second line (put an hardcoded 
condition or maybe depending on font metrics?)

vertical panels, where the tasks are put in a column(yeah, not supported at 
the moment) this patch should be deactivated in this case
but i think the final woed will be when aaron will return and say us what he's 
cooking for the panel :D

Cheers,
Marco Martin

> The main modification is in Plasma::BoxLayout which i modified to be able
> to have severals row.
>
> Why did i modify this layout and not creating a ne "GridLayout"?  Because
> the API stay the same, and the code is the same if row==1.
>
> The way I calculate the number of row probably need some adjustement. Maybe
> a function  BoxLayout::setItemRatio(qreal) which would allow component to
> choose the better ratio for them.
>
> Please CC me replies.




More information about the Panel-devel mailing list