[vlc-devel] vlc playlist development in general (was: [PATCH] QT4 playlist: even better DragNDrop policy)

Rémi Denis-Courmont remi at remlab.net
Tue Aug 11 19:45:12 CEST 2009


Le mardi 11 août 2009 20:20:06 Jakob Leben, vous avez écrit :
> I would like to add my opinion on this: from my perspective the core
> playlist design is a bigger problem and it's the non-practicality of that
> design that makes the implementation of the Qt4 playlist model rather
> difficult.

Yes. The design of the playlist is not very good. It was converted from a flat 
list to a tree, while trying to keep a flat view for backward compatibility 
with certain interfaces.

But the real "problem" might be that the Qt MVC system is not meant to mirror 
an external model. Really, the model and the controller are in VLC core, and 
Qt4 is just a view, as are all other interfaces. And much of the complexity 
comes from that.

> Namely, the core playlist api allows a number of actions which don't make
> sense according to the data on which they are executed. Qt4 playlist model
> had to (and I have also added to that) implement protection against such
> senseless actions from end-user's point of view (erm, point of
> interaction), while I believe that should be implemented in the core code
> already.

Makes sense.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list