diff options
author | nick_m <mainsbridge@gmail.com> | 2016-05-08 03:03:12 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-05-27 23:38:16 +1000 |
commit | 86b0268e8be554e9286aebd544757fc13fe76dac (patch) | |
tree | 959f2fb0dbe33a738e15caf8186a56a58beace56 /gtk2_ardour/editor_drag.h | |
parent | 652a59b3178b0d0905f8d9610500a71f0924edc0 (diff) |
Tempo ramps - add visualtempo curve, dragging bbt or music rulers with constraint modifier dilates previous tempo.
Diffstat (limited to 'gtk2_ardour/editor_drag.h')
-rw-r--r-- | gtk2_ardour/editor_drag.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index caee8ad6ba..5b5ca6d432 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -741,6 +741,31 @@ private: XMLNode* before_state; }; +/** BBT Ruler drag */ +class BBTRulerDrag : public Drag +{ +public: + BBTRulerDrag (Editor *, ArdourCanvas::Item *); + + void start_grab (GdkEvent *, Gdk::Cursor* c = 0); + void motion (GdkEvent *, bool); + void finished (GdkEvent *, bool); + void aborted (bool); + + bool allow_vertical_autoscroll () const { + return false; + } + + bool y_movement_matters () const { + return false; + } + + void setup_pointer_frame_offset (); + +private: + + XMLNode* before_state; +}; /** Drag of the playhead cursor */ class CursorDrag : public Drag |