diff options
Diffstat (limited to 'gtk2_ardour/editor_drag.h')
-rw-r--r-- | gtk2_ardour/editor_drag.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index 44b2d50767..72a7534be2 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -458,6 +458,25 @@ class NoteDrag : public Drag double _note_height; }; +class NoteCreateDrag : public Drag +{ +public: + NoteCreateDrag (Editor *, ArdourCanvas::Item *, MidiRegionView *); + ~NoteCreateDrag (); + + void start_grab (GdkEvent *, Gdk::Cursor* c = 0); + void motion (GdkEvent *, bool); + void finished (GdkEvent *, bool); + void aborted (bool); + +private: + double y_to_region (double) const; + + MidiRegionView* _region_view; + ArdourCanvas::SimpleRect* _drag_rect; + framepos_t _note[2]; +}; + /** Drag to move MIDI patch changes */ class PatchChangeDrag : public Drag { |