diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-05-27 15:07:15 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-05-27 15:07:15 +0000 |
commit | 8689ae88f748ae6a635e3e86cbc0db61999d390a (patch) | |
tree | 104770e4bb812286e27b6bce53362732e5c679d7 /gtk2_ardour/midi_region_view.h | |
parent | d15082d828edf5a8823eeaacbc982e85ab28807c (diff) |
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
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r-- | gtk2_ardour/midi_region_view.h | 14 |
1 files changed, 14 insertions, 0 deletions
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<NoteType>) 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*); }; |