move cut/copy/delete/paste operations into EditingContext

derived classes (Editor and Pianoroll) provide ::cut_copy() to wrap the
context-specific logic, and then both defer to MidiView for MIDI-specific
operations.

Note that this also changes several action names in ardour.keys.in
This commit is contained in:
Paul Davis 2025-01-14 15:31:53 -07:00
parent 13161a3975
commit 4e8591da99
8 changed files with 136 additions and 37 deletions

View file

@ -4266,27 +4266,6 @@ Editor::delete_ ()
}
}
void
Editor::alt_delete_ ()
{
delete_ ();
}
/** Cut selected regions, automation points or a time range */
void
Editor::cut ()
{
cut_copy (Cut);
}
/** Copy selected regions, automation points or a time range */
void
Editor::copy ()
{
cut_copy (Copy);
}
/** @return true if a Cut, Copy or Clear is possible */
bool
Editor::can_cut_copy () const