mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
Facilitate multiple section paste operations
This commit is contained in:
parent
4cdcdb9ee7
commit
299e67f250
2 changed files with 21 additions and 1 deletions
|
|
@ -2715,7 +2715,26 @@ Editor::cut_copy_section (bool copy)
|
||||||
if (!get_selection_extents (start, end) || !_session) {
|
if (!get_selection_extents (start, end) || !_session) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_session->cut_copy_section (start, end, get_preferred_edit_position(), copy);
|
timepos_t to (get_preferred_edit_position ());
|
||||||
|
_session->cut_copy_section (start, end, to, copy);
|
||||||
|
|
||||||
|
timepos_t to_end (to + start.distance (end));
|
||||||
|
|
||||||
|
switch (UIConfiguration::instance().get_after_section_op ()) {
|
||||||
|
case SectionSelectNoop:
|
||||||
|
return;
|
||||||
|
case SectionSelectClear:
|
||||||
|
selection->clear ();
|
||||||
|
break;
|
||||||
|
case SectionSelectRetainAndMovePlayhead:
|
||||||
|
_session->request_locate (copy ? to_end.samples (): to.samples ());
|
||||||
|
/* fallthough */
|
||||||
|
case SectionSelectRetain:
|
||||||
|
if (!copy || to < end) {
|
||||||
|
selection->set (to, to_end);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* BUILT-IN EFFECTS */
|
/* BUILT-IN EFFECTS */
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@ UI_CONFIG_VARIABLE (ARDOUR::ClockDeltaMode, secondary_clock_delta_mode, "seconda
|
||||||
UI_CONFIG_VARIABLE (ARDOUR::samplecnt_t, clock_display_limit, "clock-display-limit", 359999) /* seconds; default 99h, 0 = unlimited */
|
UI_CONFIG_VARIABLE (ARDOUR::samplecnt_t, clock_display_limit, "clock-display-limit", 359999) /* seconds; default 99h, 0 = unlimited */
|
||||||
UI_CONFIG_VARIABLE (bool, show_track_meters, "show-track-meters", true)
|
UI_CONFIG_VARIABLE (bool, show_track_meters, "show-track-meters", true)
|
||||||
UI_CONFIG_VARIABLE (bool, follow_edits, "follow-edits", false)
|
UI_CONFIG_VARIABLE (bool, follow_edits, "follow-edits", false)
|
||||||
|
UI_CONFIG_VARIABLE (ARDOUR::TimeSelectionAfterSectionPaste, after_section_op, "after-section-op", ARDOUR::SectionSelectRetainAndMovePlayhead)
|
||||||
UI_CONFIG_VARIABLE (bool, super_rapid_clock_update, "super-rapid-clock-update", false)
|
UI_CONFIG_VARIABLE (bool, super_rapid_clock_update, "super-rapid-clock-update", false)
|
||||||
UI_CONFIG_VARIABLE (bool, autoscroll_editor, "autoscroll-editor", true)
|
UI_CONFIG_VARIABLE (bool, autoscroll_editor, "autoscroll-editor", true)
|
||||||
UI_CONFIG_VARIABLE (bool, link_region_and_track_selection, "link-region-and-track-selection", false) // DEPRECATED
|
UI_CONFIG_VARIABLE (bool, link_region_and_track_selection, "link-region-and-track-selection", false) // DEPRECATED
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue