[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Thoughts on applet layouts
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2008-03-13 15:16:35
Message-ID: 200803130916.39144.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Thursday 13 March 2008, Alex Merry wrote:
> On Thursday 13 March 2008 13:17:21 Christopher Blauvelt wrote:
> > > virtual Containment::layout(QList<Applet*>);
> > >
> > > Containment::layout(QList<Applet*> applets)
> > > {
> >
> > if (FormFactor == Planar) {
> > layout applets in a grid like icons if desired.
> > }
>
> I'm not sure that belongs in the default containment implementation.  I
> said i t should be virtual so that desktop containments, for example, can
> override it to provide this functionality.

hm... what about a:

	protected:
		virtual void createLayout();

method with a default implementation that does what we do now. override that 
to set a layout manger, or if you prefer to just do it manually.

i'd really like to avoid encouraging manual relayouting in the containments 
themselves (people will do it even though they don't have to) and using 
layout managers really is probably the nicest / easiest way to do this for 
most situations.

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

["signature.asc" (application/pgp-signature)]

_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic