amaroK presentation

Gábor Lehel illissius at gmail.com
Wed May 24 14:12:04 UTC 2006


On 5/24/06, Max Howell <max.howell at methylblue.com> wrote:
> Max Howell wrote:
> > And making the playlist widget a million times less complex and
> > ridiculous.
>
> And by this I again mean the actual code, I don't think the playlist UI
> is complex.
>
> Although we can do some really interesting things to it with Qt4, we
> could have multiple different ways of viewing it, or make the view
> pluggable really easily. Theoretically the plugins could be Qt-binding
> scripts. All this because the model-view-controller framework abstracts
> the data from the view completely.
>
> It would be easy to have a collection view, rather than a traditional
> playlist. Not to say this is necessarily a good idea, but it's very easy
> to do. Certainly if the view was pluggable, someone would eventually
> make one.
>
> Max

I haven't done extensive thinking on this, but my basic idea is to
have the playlist be a QList<MetaBundle> (and build the Model around
that). The painting code in PlaylistItem can probably be reused for a
custom Delegate (that is, if we don't just rewrite it completely, as
it's pretty horrific).
Deciding which stuff belongs in the View, and which in the Model, will
likely require some brainjuice, however... (which this'll be a good
opportunity for ;)


-- 
Work is punishment for failing to procrastinate effectively.



More information about the Amarok mailing list