diff options
author | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2013-10-16 22:25:35 +0100 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2015-04-21 10:22:27 -0500 |
commit | 84f0dceefb2e4079e1f015a17e538f0cd795ba2e (patch) | |
tree | cfddf5f6e8c45b1bde5dd8a1884a893f7d71bac1 /gtk2_ardour/editor.h | |
parent | 17546f47b6927c21fe50ce5e784f2f4952d69473 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/editor.h')
-rw-r--r-- | gtk2_ardour/editor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index 9f37f9d1f2..e0737626ac 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -1261,6 +1261,9 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD void do_insert_time (); void insert_time (framepos_t, framecnt_t, Editing::InsertTimeOption, bool, bool, bool, bool, bool, bool); + void do_cut_time (); + void cut_time (framepos_t pos, framecnt_t distance, Editing::InsertTimeOption opt, bool ignore_music_glue, bool markers_too, bool tempo_too); + void tab_to_transient (bool forward); void set_tempo_from_region (); |