2 Copyright (C) 2000 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef __gtk2_ardour_mixer_actor_h__
21 #define __gtk2_ardour_mixer_actor_h__
23 #include <glibmm/refptr.h>
24 #include <gtkmm2ext/bindings.h>
26 #include "route_processor_selection.h"
36 class MixerActor : virtual public sigc::trackable
40 virtual ~MixerActor ();
42 RouteProcessorSelection& selection() { return _selection; }
43 void register_actions ();
45 void load_bindings ();
46 Gtkmm2ext::Bindings* bindings;
49 Gtkmm2ext::ActionMap myactions;
50 RouteProcessorSelection _selection;
51 RouteUISelection _route_targets;
53 virtual void set_route_targets_for_operation () = 0;
55 void vca_assign (boost::shared_ptr<ARDOUR::VCA>);
56 void vca_unassign (boost::shared_ptr<ARDOUR::VCA>);
60 void rec_enable_action ();
61 void step_gain_up_action ();
62 void step_gain_down_action ();
63 void unity_gain_action ();
65 void copy_processors ();
66 void cut_processors ();
67 void paste_processors ();
68 void select_all_processors ();
69 void toggle_processors ();
72 //this op is different because it checks _all_ mixer strips, and deletes selected plugins on any of them (ignores track selections)
73 //BUT... note that we have used mixerstrip's "Enter" to enforce the rule that only one strip will have an active selection
74 virtual void delete_processors () = 0;
76 virtual void select_none () = 0;
79 /* these actions need access to a Session, do defer to
82 virtual void toggle_midi_input_active (bool flip_others) = 0;
84 /* these actions don't apply to the selection, so defer to
87 virtual void scroll_left () {}
88 virtual void scroll_right () {}
91 #endif /* __gtk2_ardour_mixer_actor_h__ */