drag and drop of the tracks beneath a custom playlist
Bug #249286 reported by
AnthonyWaters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Won't Fix
|
Low
|
AnthonyWaters | ||
Bug Description
With the tracks showing beneath the custom playlist now it opens up some new doors for adding new drag/drop functionality (and also breaking some of the old stuff like dragging a track to the playlist tab throws an exception because it expects a playlist to be dragged not a track)
What I was thinking of adding for functionality was as follows
1. Drag the tracks to the playlist tab
2. Drag the tracks within the current playlist (for ordering them)
3. Drag tracks into other playlist (not sure if this one will be done, maybe hard to use for the user)
Changed in exaile: | |
assignee: | nobody → awaters1 |
Changed in exaile: | |
status: | New → In Progress |
To post a comment you must log in.
this is actually not as hard as you'd think. all you have to do is make sure all track dragging uses the same method (currently sends a list of locs), and then just put a tiny bit of logic in each potential destination to handle the insertion/deletion. it would be nice if we could get copy/paste also working via a similar manner.
a few additional notes on behavior:
if tracks are dragged onto an existing playlist, insert them at that point (if on the title append them)
if tracks are dragged into empty space, make a new playlist for them and ask the user for the name to give the playlist (hitting cancel in the naming dialog will cause the playlist to not be made)
if one playlist is dragged onto another, offer to merge them. insertion location works just as if all the contained tracks had been dragged instead.