diff options
author | Robin Gareus <robin@gareus.org> | 2019-03-30 01:19:47 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-03-30 01:19:47 +0100 |
commit | 56047a094cdc1f41b369c6796690cded85e2a2c6 (patch) | |
tree | bc7f93968c1743917902e91709d3c41c52b6d2b9 /gtk2_ardour/editor_drag.h | |
parent | 546d5d09b56082e1c4f3a287f5db6a611107a3dc (diff) |
AutomationRangeDrag tweaks for stacked layer view
Use y-pos and height of given TAV *layer* where the drag was initiated.
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 1147d82b96..c24ff32dc0 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -1244,7 +1244,7 @@ class AutomationRangeDrag : public Drag { public: AutomationRangeDrag (Editor *, AutomationTimeAxisView *, std::list<ARDOUR::AudioRange> const &); - AutomationRangeDrag (Editor *, std::list<RegionView*> const &, std::list<ARDOUR::AudioRange> const &, double y_origin); + AutomationRangeDrag (Editor *, std::list<RegionView*> const &, std::list<ARDOUR::AudioRange> const &, double y_origin, double y_height); void start_grab (GdkEvent *, Gdk::Cursor* c = 0); void motion (GdkEvent *, bool); @@ -1257,7 +1257,7 @@ public: private: void setup (std::list<boost::shared_ptr<AutomationLine> > const &); - double y_fraction (boost::shared_ptr<AutomationLine>, double global_y_position) const; + double y_fraction (double global_y_position) const; double value (boost::shared_ptr<ARDOUR::AutomationList> list, double x) const; std::list<ARDOUR::AudioRange> _ranges; @@ -1272,6 +1272,7 @@ private: std::list<Line> _lines; double _y_origin; + double _y_height; bool _nothing_to_drag; bool _integral; }; |