summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_actor.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-04 17:53:21 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-04 17:53:21 +0000
commit8f078d7fd40878d08ad4d048f0606a27901c7475 (patch)
tree8eb652e8fcd0769c952b1b85e8cbd39a8d84fce3 /gtk2_ardour/mixer_actor.h
parentfd2aea103790a1f49211f3bec7e9cdc246762e77 (diff)
drastic overhaul of keyboard handling in mixer window. real bindings, key events handled at window level, actions for all processor ops. still the confusing mess of old crap for the processor box context menu (it will die, i feel it)
git-svn-id: svn://localhost/ardour2/branches/3.0@10442 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_actor.h')
-rw-r--r--gtk2_ardour/mixer_actor.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/gtk2_ardour/mixer_actor.h b/gtk2_ardour/mixer_actor.h
new file mode 100644
index 0000000000..980938f8a2
--- /dev/null
+++ b/gtk2_ardour/mixer_actor.h
@@ -0,0 +1,74 @@
+/*
+ Copyright (C) 2000 Paul Davis
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#ifndef __gtk2_ardour_mixer_actor_h__
+#define __gtk2_ardour_mixer_actor_h__
+
+#include <glibmm/refptr.h>
+#include <gtkmm2ext/bindings.h>
+
+#include "route_processor_selection.h"
+
+namespace Gtk {
+ class ActionGroup;
+}
+
+class MixerActor : virtual public sigc::trackable
+{
+ public:
+ MixerActor ();
+ virtual ~MixerActor ();
+
+ RouteRedirectSelection& selection() { return _selection; }
+ void register_actions ();
+
+ void load_bindings ();
+ Gtkmm2ext::Bindings bindings;
+
+ protected:
+ RouteRedirectSelection _selection;
+ RouteUISelection _route_targets;
+ Gtkmm2ext::ActionMap myactions;
+
+ virtual void set_route_targets_for_operation () = 0;
+
+ void solo_action ();
+ void mute_action ();
+ void rec_enable_action ();
+ void step_gain_up_action ();
+ void step_gain_down_action ();
+ void unity_gain_action ();
+
+ void copy_processors ();
+ void cut_processors ();
+ void paste_processors ();
+ void select_all_processors ();
+ void delete_processors ();
+ void toggle_processors ();
+ void ab_plugins ();
+
+ /* these actions don't apply to the selection, so defer to
+ a derived class.
+ */
+
+ virtual void scroll_left () {}
+ virtual void scroll_right () {}
+};
+
+#endif /* __gtk2_ardour_mixer_actor_h__ */