use ActionManager namespace, rather than ActionMap objects, and remove all per-contex...
[ardour.git] / gtk2_ardour / mono_panner.h
index 7ceab6a8659c8ed4f70562f768f0dbdbe317c4b3..5022e9b52d83573bd0f9200662dfb6b5c6703af0 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <boost/shared_ptr.hpp>
 
-#include "gtkmm2ext/binding_proxy.h"
+#include "widgets/binding_proxy.h"
 
 #include "panner_interface.h"
 
@@ -38,7 +38,7 @@ namespace PBD {
 
 class MonoPanner : public PannerInterface
 {
-  public:
+public:
        MonoPanner (boost::shared_ptr<ARDOUR::PannerShell>);
        ~MonoPanner ();
 
@@ -47,7 +47,7 @@ class MonoPanner : public PannerInterface
        sigc::signal<void> StartGesture;
        sigc::signal<void> StopGesture;
 
-  protected:
+protected:
        bool on_expose_event (GdkEventExpose*);
        bool on_button_press_event (GdkEventButton*);
        bool on_button_release_event (GdkEventButton*);
@@ -55,7 +55,12 @@ class MonoPanner : public PannerInterface
        bool on_scroll_event (GdkEventScroll*);
        bool on_key_press_event (GdkEventKey*);
 
-  private:
+       boost::weak_ptr<PBD::Controllable> proxy_controllable () const
+       {
+               return boost::weak_ptr<PBD::Controllable> (position_binder.get_controllable());
+       }
+
+private:
        PannerEditor* editor ();
        boost::shared_ptr<ARDOUR::PannerShell> _panner_shell;
 
@@ -67,7 +72,7 @@ class MonoPanner : public PannerInterface
        double accumulated_delta;
        bool detented;
 
-       BindingProxy position_binder;
+       ArdourWidgets::BindingProxy position_binder;
 
        void set_tooltip ();