From 212b08b42200c9cdb4b5f763759bca4c274084b3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 26 Mar 2021 23:50:47 +0100 Subject: [PATCH] Foldback: remove unused processor actions Also since foldback-busses are not selectable AxisViews, various keyboard-shortcut operations cannot be performed from the mixer-context. However the processox-box itself provides these actions for the fold-back bus. --- gtk2_ardour/foldback_strip.cc | 42 ----------------------------------- gtk2_ardour/foldback_strip.h | 7 ------ gtk2_ardour/mixer_ui.cc | 3 +++ 3 files changed, 3 insertions(+), 49 deletions(-) diff --git a/gtk2_ardour/foldback_strip.cc b/gtk2_ardour/foldback_strip.cc index 8f2c30b624..dc82101fad 100644 --- a/gtk2_ardour/foldback_strip.cc +++ b/gtk2_ardour/foldback_strip.cc @@ -1005,54 +1005,12 @@ FoldbackStrip::route_active_changed () reset_strip_style (); } -void -FoldbackStrip::copy_processors () -{ - insert_box->processor_operation (ProcessorBox::ProcessorsCopy); -} - -void -FoldbackStrip::cut_processors () -{ - insert_box->processor_operation (ProcessorBox::ProcessorsCut); -} - -void -FoldbackStrip::paste_processors () -{ - insert_box->processor_operation (ProcessorBox::ProcessorsPaste); -} - -void -FoldbackStrip::select_all_processors () -{ - insert_box->processor_operation (ProcessorBox::ProcessorsSelectAll); -} - void FoldbackStrip::deselect_all_processors () { insert_box->processor_operation (ProcessorBox::ProcessorsSelectNone); } -bool -FoldbackStrip::delete_processors () -{ - return insert_box->processor_operation (ProcessorBox::ProcessorsDelete); -} - -void -FoldbackStrip::toggle_processors () -{ - insert_box->processor_operation (ProcessorBox::ProcessorsToggleActive); -} - -void -FoldbackStrip::ab_plugins () -{ - insert_box->processor_operation (ProcessorBox::ProcessorsAB); -} - void FoldbackStrip::create_selected_sends (bool post_fader) { diff --git a/gtk2_ardour/foldback_strip.h b/gtk2_ardour/foldback_strip.h index daaca9ed1f..8cc14e9126 100644 --- a/gtk2_ardour/foldback_strip.h +++ b/gtk2_ardour/foldback_strip.h @@ -145,14 +145,7 @@ public: void route_active_changed (); - void copy_processors (); - void cut_processors (); - void paste_processors (); - void select_all_processors (); void deselect_all_processors (); - bool delete_processors (); //note: returns false if nothing was deleted - void toggle_processors (); - void ab_plugins (); private: void init (); diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index bdc2618dfb..e9f2f5158c 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -693,6 +693,9 @@ Mixer_UI::deselect_all_strip_processors () for (list::iterator i = strips.begin(); i != strips.end(); ++i) { (*i)->deselect_all_processors(); } + if (foldback_strip) { + foldback_strip->deselect_all_processors (); + } } void