diff options
author | Carl Hetherington <carl@carlh.net> | 2010-11-24 01:04:53 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-11-24 01:04:53 +0000 |
commit | e131fd391ded68c2a0634f26edb03410b5f46349 (patch) | |
tree | 270931b286ea06a0a9f3d486f333409046bcc940 /gtk2_ardour/midi_region_view.h | |
parent | d40e61c91490896663d264995fb042d9698441f7 (diff) |
Put MIDI notes into their own canvas group, and reparent this group during start trims to stop the notes moving. Improves the visual display on start trim of a MIDI region.
git-svn-id: svn://localhost/ardour2/branches/3.0@8080 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 794ec867c6..de9851aa20 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -282,6 +282,9 @@ class MidiRegionView : public RegionView void selection_as_notelist (Notes& selected, bool allow_all_if_none_selected = false); void enable_display (bool); + + void trim_start_starting (); + void trim_start_ending (); protected: /** Allows derived types to specify their visibility requirements @@ -373,6 +376,11 @@ class MidiRegionView : public RegionView Evoral::MusicalTime _step_edit_cursor_width; Evoral::MusicalTime _step_edit_cursor_position; + /** A group used to temporarily reparent _note_group to during start trims, so + * that the notes don't move with the parent region view. + */ + ArdourCanvas::Group* _temporary_note_group; + MouseState _mouse_state; int _pressed_button; |