GUI code changes to follow new CoreSelection API

This removes ::add_grouped_tracks() from Editor selection and
RouteProcessorSelection, since adding grouped stripables is now
a CoreSelection function, and should not be attempted by UI-side
elements
This commit is contained in:
Paul Davis 2024-08-02 11:50:14 -06:00
parent b21dd1212e
commit a06e519296
7 changed files with 92 additions and 184 deletions

View file

@ -1142,24 +1142,30 @@ RouteTimeAxisView::selection_click (GdkEventButton* ev)
return;
}
_editor.begin_reversible_selection_op (X_("Selection Click"));
switch (ArdourKeyboard::selection_type (ev->state)) {
case SelectionToggle:
_editor.begin_reversible_selection_op (X_("Selection toggle"));
_editor.get_selection().toggle (this);
break;
case SelectionSet:
_editor.begin_reversible_selection_op (X_("Selection set"));
_editor.get_selection().set (this);
break;
case SelectionExtend:
_editor.begin_reversible_selection_op (X_("Selection extend"));
_editor.extend_selection_to_track (*this);
break;
case SelectionAdd:
_editor.begin_reversible_selection_op (X_("Selection add"));
_editor.get_selection().add (this);
break;
default:
/* remove not done here */
break;
}
_editor.commit_reversible_selection_op ();