Heuraka! Nightmarish rework of DnD code.

Allow to drag multiple regions from different tracks
to/from the dropzone.

Busses & Automation-lanes are ignored, as are
hidden tracks.

Any region may serve as mouse drag anchor.

fixes #6172 and #6176
This commit is contained in:
Robin Gareus 2015-03-26 21:55:04 +01:00
parent 502361c001
commit 1dfee48139
2 changed files with 154 additions and 127 deletions

View file

@ -296,6 +296,7 @@ protected:
int _visible_y_low;
int _visible_y_high;
uint32_t _ntracks;
friend class DraggingView;
@ -335,6 +336,11 @@ protected:
int _last_pointer_time_axis_view;
double _last_pointer_layer;
bool _single_axis;
private:
uint32_t _ndropzone;
uint32_t _pdropzone;
uint32_t _ddropzone;
};