mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
many substantive changes in the handling of ARDOUR::Location, Markers and drags/clicks on Markers.
It would have been nice to split this commit into parts, but it is all very interconnected and was not possible to subdivide.
This commit is contained in:
parent
eb7d7bd44f
commit
0472453d94
12 changed files with 544 additions and 397 deletions
|
|
@ -4332,8 +4332,6 @@ Editor::set_samples_per_pixel (framecnt_t spp)
|
|||
refresh_location_display();
|
||||
_summary->set_overlays_dirty ();
|
||||
|
||||
update_marker_labels ();
|
||||
|
||||
instant_save ();
|
||||
}
|
||||
|
||||
|
|
@ -4518,6 +4516,7 @@ Editor::set_loop_range (framepos_t start, framepos_t end, string cmd)
|
|||
Location* tll;
|
||||
|
||||
if ((tll = transport_loop_location()) == 0) {
|
||||
cerr << "Set loop with new loc\n";
|
||||
Location* loc = new Location (*_session, start, end, _("Loop"), Location::IsAutoLoop);
|
||||
XMLNode &before = _session->locations()->get_state();
|
||||
_session->locations()->add (loc, true);
|
||||
|
|
@ -4525,6 +4524,7 @@ Editor::set_loop_range (framepos_t start, framepos_t end, string cmd)
|
|||
XMLNode &after = _session->locations()->get_state();
|
||||
_session->add_command (new MementoCommand<Locations>(*(_session->locations()), &before, &after));
|
||||
} else {
|
||||
cerr << "Set loop with existing loc " << tll << endl;
|
||||
XMLNode &before = tll->get_state();
|
||||
tll->set_hidden (false, this);
|
||||
tll->set (start, end);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue