diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-24 21:59:57 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-25 01:48:29 +0100 |
commit | b637c2223f0d2bbe5eff1f10ad7b1ba0c5ccc86a (patch) | |
tree | b320da0fe5d9bbadea3fb168bd2487c8aac0ecb7 /gtk2_ardour/editor_drag.h | |
parent | 089c334d0c4f2878f81b6767ee2230256e1fc949 (diff) |
Major rework of DnD.
Allow dragging multiple regions from multiple
tracks across any number of hidden tracks and
automation lanes.
fixes #6176 and #6172
Diffstat (limited to 'gtk2_ardour/editor_drag.h')
-rw-r--r-- | gtk2_ardour/editor_drag.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index c25c24839b..ae4191909e 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -292,6 +292,7 @@ protected: /** a list of the non-hidden TimeAxisViews sorted by editor order key */ std::vector<TimeAxisView*> _time_axis_views; int find_time_axis_view (TimeAxisView *) const; + int apply_track_delta (const int start, const int delta, const int skip) const; int _visible_y_low; int _visible_y_high; @@ -326,7 +327,7 @@ public: protected: double compute_x_delta (GdkEvent const *, ARDOUR::framepos_t *); - virtual bool y_movement_allowed (int, double) const; + virtual bool y_movement_allowed (int, double, int skip_invisible = 0) const; bool _brushing; ARDOUR::framepos_t _last_frame_position; ///< last position of the thing being dragged @@ -436,7 +437,7 @@ public: void finished (GdkEvent *, bool); void aborted (bool); protected: - bool y_movement_allowed (int delta_track, double delta_layer) const; + bool y_movement_allowed (int delta_track, double delta_layer, int skip_invisible = 0) const; private: TimeAxisView *prev_tav; // where regions were most recently dragged from |