X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmixer_actor.cc;h=ffd68ff6c4e8bdddaf5120534e4bd37d0c8f5e32;hb=22b07e0233a29d9633ffa825a79503befaf2e16e;hp=090293612b440f612b18a2c850db679da6d20938;hpb=23e7cf10191270d70357ccf0ed9294f020c7b7ab;p=ardour.git diff --git a/gtk2_ardour/mixer_actor.cc b/gtk2_ardour/mixer_actor.cc index 090293612b..ffd68ff6c4 100644 --- a/gtk2_ardour/mixer_actor.cc +++ b/gtk2_ardour/mixer_actor.cc @@ -67,12 +67,12 @@ MixerActor::register_actions () myactions.register_action ("Mixer", "select-all-processors", _("Select All (visible) Processors"), sigc::mem_fun (*this, &MixerActor::select_all_processors)); myactions.register_action ("Mixer", "toggle-processors", _("Toggle Selected Processors"), sigc::mem_fun (*this, &MixerActor::toggle_processors)); myactions.register_action ("Mixer", "ab-plugins", _("Toggle Selected Plugins"), sigc::mem_fun (*this, &MixerActor::ab_plugins)); - + myactions.register_action ("Mixer", "select-none", _("Deselect all strips and processors"), sigc::mem_fun (*this, &MixerActor::select_none)); myactions.register_action ("Mixer", "scroll-left", _("Scroll Mixer Window to the left"), sigc::mem_fun (*this, &MixerActor::scroll_left)); myactions.register_action ("Mixer", "scroll-right", _("Scroll Mixer Window to the left"), sigc::mem_fun (*this, &MixerActor::scroll_right)); - myactions.register_action ("Mixer", "toggle-midi-input-active", _("Toggle MIDI Input Active for Mixer-Selected Tracks/Busses"), + myactions.register_action ("Mixer", "toggle-midi-input-active", _("Toggle MIDI Input Active for Mixer-Selected Tracks/Busses"), sigc::bind (sigc::mem_fun (*this, &MixerActor::toggle_midi_input_active), false)); } @@ -80,7 +80,7 @@ void MixerActor::load_bindings () { /* XXX move this to a better place */ - + bindings.set_action_map (myactions); std::string binding_file; @@ -172,6 +172,7 @@ MixerActor::unity_gain_action () { set_route_targets_for_operation (); +printf("setting gain to unity (?)"); BOOST_FOREACH(RouteUI* r, _route_targets) { boost::shared_ptr rp = r->route(); if (rp) { @@ -229,18 +230,6 @@ MixerActor::select_all_processors () } } void -MixerActor::delete_processors () -{ - set_route_targets_for_operation (); - - BOOST_FOREACH(RouteUI* r, _route_targets) { - MixerStrip* ms = dynamic_cast (r); - if (ms) { - ms->delete_processors (); - } - } -} -void MixerActor::toggle_processors () { set_route_targets_for_operation ();