From 8689ae88f748ae6a635e3e86cbc0db61999d390a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 27 May 2010 15:07:15 +0000 Subject: refactor MidiRegionView event handling to avoid too much spaghetti as we move along git-svn-id: svn://localhost/ardour2/branches/3.0@7182 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/midi_region_view.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gtk2_ardour/midi_region_view.h') diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index 9950c03f86..f823de2e9a 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -372,6 +372,11 @@ class MidiRegionView : public RegionView ArdourCanvas::CanvasNote* _ghost_note; double _last_ghost_x; double _last_ghost_y; + double _drag_start_x; + double _drag_start_y; + double _last_x; + double _last_y; + ArdourCanvas::SimpleRect* _drag_rect; MouseState _mouse_state; int _pressed_button; @@ -416,6 +421,15 @@ class MidiRegionView : public RegionView PBD::ScopedConnection snap_changed_connection; void show_verbose_canvas_cursor (boost::shared_ptr) const; + + bool motion (GdkEventMotion*); + bool scroll (GdkEventScroll*); + bool key_press (GdkEventKey*); + bool key_release (GdkEventKey*); + bool button_press (GdkEventButton*); + bool button_release (GdkEventButton*); + bool enter_notify (GdkEventCrossing*); + bool leave_notify (GdkEventCrossing*); }; -- cgit v1.2.3