ardour
mixer_actor.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2000 Paul Davis
3 
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.
8 
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.
13 
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.
17 
18 */
19 
20 #ifndef __gtk2_ardour_mixer_actor_h__
21 #define __gtk2_ardour_mixer_actor_h__
22 
23 #include <glibmm/refptr.h>
24 #include <gtkmm2ext/bindings.h>
25 
27 
28 namespace Gtk {
29  class ActionGroup;
30 }
31 
32 class MixerActor : virtual public sigc::trackable
33 {
34  public:
35  MixerActor ();
36  virtual ~MixerActor ();
37 
39  void register_actions ();
40 
41  void load_bindings ();
43 
44  protected:
48 
49  virtual void set_route_targets_for_operation () = 0;
50 
51  void solo_action ();
52  void mute_action ();
53  void rec_enable_action ();
54  void step_gain_up_action ();
55  void step_gain_down_action ();
56  void unity_gain_action ();
57 
58  void copy_processors ();
59  void cut_processors ();
60  void paste_processors ();
61  void select_all_processors ();
62  void toggle_processors ();
63  void ab_plugins ();
64 
65  //this op is different because it checks _all_ mixer strips, and deletes selected plugins on any of them (ignores track selections)
66  //BUT... note that we have used mixerstrip's "Enter" to enforce the rule that only one strip will have an active selection
67  virtual void delete_processors () = 0;
68 
69  virtual void select_none () = 0;
70 
71 
72  /* these actions need access to a Session, do defer to
73  a derived class
74  */
75  virtual void toggle_midi_input_active (bool flip_others) = 0;
76 
77  /* these actions don't apply to the selection, so defer to
78  a derived class.
79  */
80  virtual void scroll_left () {}
81  virtual void scroll_right () {}
82 };
83 
84 #endif /* __gtk2_ardour_mixer_actor_h__ */
void select_all_processors()
Definition: mixer_actor.cc:221
RouteUISelection _route_targets
Definition: mixer_actor.h:46
virtual void delete_processors()=0
RouteProcessorSelection & selection()
Definition: mixer_actor.h:38
Definition: ardour_ui.h:130
void toggle_processors()
Definition: mixer_actor.cc:233
void cut_processors()
Definition: mixer_actor.cc:197
virtual void scroll_right()
Definition: mixer_actor.h:81
Gtkmm2ext::Bindings bindings
Definition: mixer_actor.h:42
void load_bindings()
Definition: mixer_actor.cc:80
void ab_plugins()
Definition: mixer_actor.cc:245
void solo_action()
Definition: mixer_actor.cc:97
void rec_enable_action()
Definition: mixer_actor.cc:129
Gtkmm2ext::ActionMap myactions
Definition: mixer_actor.h:47
virtual ~MixerActor()
Definition: mixer_actor.cc:48
void mute_action()
Definition: mixer_actor.cc:113
void copy_processors()
Definition: mixer_actor.cc:185
void step_gain_down_action()
Definition: mixer_actor.cc:158
void register_actions()
Definition: mixer_actor.cc:53
virtual void toggle_midi_input_active(bool flip_others)=0
virtual void set_route_targets_for_operation()=0
RouteProcessorSelection _selection
Definition: mixer_actor.h:45
void step_gain_up_action()
Definition: mixer_actor.cc:145
void paste_processors()
Definition: mixer_actor.cc:209
virtual void scroll_left()
Definition: mixer_actor.h:80
void unity_gain_action()
Definition: mixer_actor.cc:171
virtual void select_none()=0