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

List:       kde-core-devel
Subject:    Re: [Patch] Add two new tree-based modes to KDirOperator
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2008-07-11 23:04:34
Message-ID: 20080711230432.GB25123 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]

On 11.07.08 22:08:59, Ingo Klöcker wrote:
> On Thursday 10 July 2008, Peter Penz wrote:
> > On Thursday, 10. July 2008 16:27:40 Rafael Fernández López wrote:
> > > Hi,
> > >
> > > > Having tested this a bit, it works fine and I can't see any
> > > > problems with the code itself. Peter, Rafael what do you think?
> > >
> > > I have to say I haven't tested it, but the patch seems OK. This is
> > > an OK from my side.
> >
> > +1 from my side (I also did not test it, but have checked the code)
> 
> I have no real knowledge of KDirOperator, so all I can give is a general 
> advise: Adding n different modes to a single class is not really good 
> design. I suggest to look into using the Strategy pattern.

If you look at the API docs you'll notice this is already possible, if a
client wants a completely different view he can set his own itemview on
the widget. However having a treeview available "out of the box" is a
good idea nevertheless as this allows to share some code among the apps
that want to use this as a toolview widget where you need a treeview for
space-reasons.

Andreas

-- 
Stay the curse.
[prev in list] [next in list] [prev in thread] [next in thread] 

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