Port 'Cut time' code from Mixbus
authorColin Fletcher <colin.m.fletcher@googlemail.com>
Wed, 16 Oct 2013 21:25:35 +0000 (22:25 +0100)
committerBen Loftis <ben@harrisonconsoles.com>
Tue, 21 Apr 2015 15:22:27 +0000 (10:22 -0500)
commit84f0dceefb2e4079e1f015a17e538f0cd795ba2e
treecfddf5f6e8c45b1bde5dd8a1884a893f7d71bac1
parent17546f47b6927c21fe50ce5e784f2f4952d69473
Port 'Cut time' code from Mixbus

Copy the 'Cut time' code from Mixbus, making a few obvious fixes to work in
A3 (e.g. nframes_t => framepos_t / framecnt_t).

Seems to work to move & remove markers, tempo & meter markers, and regions on
selected tracks.

Still TODO:
 - use existing A3 'Insert time' dialogue
 - make it respect 'No selection = all tracks'
 - rename the command to something like 'Remove time' or 'Delete time': 'Cut'
   sounds to me as if the removed range should end up on the clipboard ready
   to be pasted somewhere, which of course it doesn't.
gtk2_ardour/ardour.menus.in
gtk2_ardour/editor.h
gtk2_ardour/editor_actions.cc
gtk2_ardour/editor_ops.cc
libs/ardour/ardour/tempo.h
libs/ardour/tempo.cc