Drag and drop re-ordering of tracks.
It'd be nice to have drag and drop along side the current method of using ctrl+arrow key.
Original issue: http://buzztrax.org/bugs/?do=view_issue&issue=11
Idea: To add the drag and drop feature we can just detect when a user has clicked and dragged based on the mouse position offset, then we can use the mouse position to detect how far to the left or how far to the right the pointer is from the original location (in pixels?). Then, we can simply detect the pixel location of each tab, and if the position of the mouse is between two tabs, we can simply add a left or right border to the tab to indicate where the tab will be moved to. When the user releases the mouse, we can simply execute a certain number of ctrl+arrowKey-equivalent function calls (or modify the relevant function so it can move more than one position at a time?) so that the tabs moves to the proper position. We can even add a highlight to the tab so the user can see which tab is being moved.
It wouldn't be animated like when dragging tabs in Chrome, but it'd work for now. I would imagine it wouldn't be as difficult as making a real drag animation.
What do you think?