mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
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:
parent
b21dd1212e
commit
a06e519296
7 changed files with 92 additions and 184 deletions
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue