diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-04-20 05:07:41 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-04-20 05:07:41 +0000 |
commit | 458db0525cf4cafab10904acf78b76a802081e8b (patch) | |
tree | 25f687d7a02eea781ecbde46fb9cdf6f3e463e46 /gtk2_ardour/shuttle_control.h | |
parent | b1ed372a8f9f8015ea9268f7f149cd19e093d19a (diff) |
reinstate MIDI binding for shuttle controller
git-svn-id: svn://localhost/ardour2/branches/3.0@9394 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/shuttle_control.h')
-rw-r--r-- | gtk2_ardour/shuttle_control.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/shuttle_control.h b/gtk2_ardour/shuttle_control.h index 4256d87536..76b7406589 100644 --- a/gtk2_ardour/shuttle_control.h +++ b/gtk2_ardour/shuttle_control.h @@ -21,6 +21,8 @@ #include <gtkmm/drawingarea.h> +#include "gtkmm2ext/binding_proxy.h" + #include "pbd/controllable.h" #include "ardour/session_handle.h" @@ -52,20 +54,21 @@ class ShuttleControl : public Gtk::DrawingArea, public ARDOUR::SessionHandlePtr ShuttleControl& sc; }; - ShuttleControllable& controllable() { return _controllable; } + boost::shared_ptr<ShuttleControllable> controllable() const { return _controllable; } protected: float shuttle_max_speed; float last_speed_displayed; bool shuttle_grabbed; double shuttle_fract; - ShuttleControllable _controllable; + boost::shared_ptr<ShuttleControllable> _controllable; cairo_pattern_t* pattern; ARDOUR::microseconds_t last_shuttle_request; PBD::ScopedConnection parameter_connection; Gtk::Menu* shuttle_unit_menu; Gtk::Menu* shuttle_style_menu; Gtk::Menu* shuttle_context_menu; + BindingProxy binding_proxy; void build_shuttle_context_menu (); void show_shuttle_context_menu (); |