Support cut/copy/paste of several regions and lines at once.
authorDavid Robillard <d@drobilla.net>
Sun, 16 Nov 2014 22:04:27 +0000 (17:04 -0500)
committerDavid Robillard <d@drobilla.net>
Mon, 17 Nov 2014 03:35:45 +0000 (22:35 -0500)
commit2fa6caad95d81f058326d931532f687a157361be
tree2981806b2bfec9351d62ccfc7e5d0e7dfe3581aa
parent5393982c8022d4117a6fe29340f8ecf2d115648d
Support cut/copy/paste of several regions and lines at once.

The idea here is to do the reasonable thing, and copy objects of some
type (e.g. MIDI region, gain line) to tracks with a matching type.  The user
can override this with a track selection, which will be used straight-up.

Lost: ability to copy/paste lines across types, e.g. gain to pan.  This is
often questionable, but sometimes useful, so we will need to implement some
sort of "greedy mode" to make it possible.  Implementation simple, but not sure
what to do.  Perhaps this should only be possible if one automation track is
explicitly (i.e. via track selection) involved, and the types are at least
compatible-ish?
15 files changed:
gtk2_ardour/automation_region_view.cc
gtk2_ardour/automation_region_view.h
gtk2_ardour/automation_selection.h
gtk2_ardour/automation_streamview.cc
gtk2_ardour/automation_streamview.h
gtk2_ardour/automation_time_axis.cc
gtk2_ardour/automation_time_axis.h
gtk2_ardour/editor.cc
gtk2_ardour/editor_ops.cc
gtk2_ardour/item_counts.h [new file with mode: 0644]
gtk2_ardour/playlist_selection.h
gtk2_ardour/route_time_axis.cc
gtk2_ardour/route_time_axis.h
gtk2_ardour/selection.cc
gtk2_ardour/time_axis_view.h