add explicit "duplicate-regions" action
This commit is contained in:
parent
7f31a40932
commit
67540ad0f5
|
@ -2000,6 +2000,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||
/* duplication */
|
||||
|
||||
void duplicate_range (bool with_dialog);
|
||||
void duplicate_regions (float times);
|
||||
|
||||
/** computes the timeline frame (sample) of an event whose coordinates
|
||||
* are in canvas units (pixels, scroll offset included).
|
||||
|
|
|
@ -4822,6 +4822,13 @@ Editor::paste_internal (framepos_t position, float times, const int32_t sub_num)
|
|||
commit_reversible_command ();
|
||||
}
|
||||
|
||||
void
|
||||
Editor::duplicate_regions (float times)
|
||||
{
|
||||
RegionSelection rs (get_regions_from_selection_and_entered());
|
||||
duplicate_some_regions (rs, times);
|
||||
}
|
||||
|
||||
void
|
||||
Editor::duplicate_some_regions (RegionSelection& regions, float times)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user