[Panel-devel] BorderLayout
Wade Olson
wade at corefunction.com
Fri Sep 14 18:49:22 CEST 2007
On 9/14/07, Ivan Čukić <ivan.cukic+kde at gmail.com> wrote:
> Hi all,
>
> This one I've made for my Lancelot plasmoid/application and thought that it
> could be useful to others.
>
> It is inspired by Java's BorderLayout - there are 5 items that can be shown.
> One central and one for each border - left, right, top and bottom.
>
> +--------------------------+
> | top |
> +---+------------------+---+
> | l | | r |
> | e | | i |
> | f | center | g |
> | t | | h |
> | | | t |
> +---+------------------+---+
> | bottom |
> +--------------------------+
>
I like this mock-up almost as much as Nuno's!
> Border items are sized to match sizeHints - top and bottom obey height, left
> and right obey width, and the central component is stretched without
> consulting sizeHint.
>
> There is a possibility to disable the usage of sizeHints for borders using the
> void set*FixedSize()
> methods.
>
> The diffs are attached
>
> Cheers.
>
> --
> You know, there are many people in the country today who,
> through no fault of their own, are sane. Some of them were born sane.
> Some of them became sane later in their lives...
> -- Monty Python's Flying Circus
>
> _______________________________________________
> Panel-devel mailing list
> Panel-devel at kde.org
> https://mail.kde.org/mailman/listinfo/panel-devel
>
>
>
More information about the Panel-devel
mailing list