diff options
author | Carl Hetherington <carl@carlh.net> | 2010-05-25 23:14:41 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-05-25 23:14:41 +0000 |
commit | f7bff95fbce75cb0d4c717b1400677edd814f7be (patch) | |
tree | ad4e1bce3e7d30f5e22ece30dd3df740dac1e73e /gtk2_ardour/midi_region_view.h | |
parent | 6b19aee3b511eaae2800837175e9b9a931d325e7 (diff) |
Rudimentary ghost note when adding MIDI notes to a region, as per #3180.
git-svn-id: svn://localhost/ardour2/branches/3.0@7162 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r-- | gtk2_ardour/midi_region_view.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index 77215e9b90..3fb3cfd1e3 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -369,6 +369,9 @@ class MidiRegionView : public RegionView ArdourCanvas::Group* _note_group; ARDOUR::MidiModel::DeltaCommand* _delta_command; ARDOUR::MidiModel::DiffCommand* _diff_command; + ArdourCanvas::CanvasNote* _ghost_note; + double _last_ghost_x; + double _last_ghost_y; MouseState _mouse_state; int _pressed_button; @@ -400,12 +403,17 @@ class MidiRegionView : public RegionView void update_note (ArdourCanvas::CanvasNote*); void update_hit (ArdourCanvas::CanvasHit*); + void create_ghost_note (double, double); + void update_ghost_note (double, double); MidiListEditor* _list_editor; bool no_sound_notes; PBD::ScopedConnection note_delete_connection; void maybe_remove_deleted_note_from_selection (ArdourCanvas::CanvasNoteEvent*); + + void snap_changed (); + PBD::ScopedConnection snap_changed_connection; }; |