I’m developing a rudimentary DAW interface and I was wondering what the best strategy would be to implement the following dragging behaviour using JUCE:
Mainly vertical dragging across tracks is giving me a headache (horizontal I can easily do with a custom written
MultiComponentDragger). Especially because all my
ClipComponents live within
TrackComponents, it’s not as easy as just changing their bounds; I’d have to add and remove them from parent tracks dynamically.
I also thought about using the
DragAndDropTarget system for this, or even ditching
TrackComponents altogether and going for some sort of multi-track clip container component without hierarchy.
I’d be very curious to hear your thoughts. I’ve been racking my brain over this for a while now and none of the solutions I came up with seem satisfactory (how does Tracktion handle this?).