Expose cut-copy-section in the editor

This is still a bit of an experiment, there may need to be a dedicated
ruler for sections, or a side-bar that allows arranging.
This commit is contained in:
Robin Gareus 2023-03-31 23:13:20 +02:00
parent 91c0f143ec
commit a0286f2e6f
4 changed files with 29 additions and 0 deletions

View file

@ -2708,6 +2708,16 @@ Editor::insert_source_list_selection (float times)
commit_reversible_command ();
}
void
Editor::cut_copy_section (bool copy)
{
timepos_t start, end;
if (!get_selection_extents (start, end) || !_session) {
return;
}
_session->cut_copy_section (start, end, get_preferred_edit_position(), copy);
}
/* BUILT-IN EFFECTS */
void