mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
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:
parent
13161a3975
commit
4e8591da99
8 changed files with 136 additions and 37 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue