changes to help strp silence
[ardour.git] / gtk2_ardour / automation_controller.h
index 05170b2a6bf5d45f4b4c0863ed164cea07c9d726..a2168700e27edbc26ad46f9947150f4cc527d9da 100644 (file)
@@ -23,7 +23,9 @@
 
 #include <boost/shared_ptr.hpp>
 #include <gtkmm.h>
-#include <gtkmm2ext/barcontroller.h>
+
+#include "gtkmm2ext/barcontroller.h"
+#include "pbd/signals.h"
 
 namespace ARDOUR {
        class Session;
@@ -32,7 +34,7 @@ namespace ARDOUR {
        class Automatable;
 }
 
-
+/** A BarController which displays the value and allows control of an AutomationControl */
 class AutomationController : public Gtkmm2ext::BarController {
 public:
        static boost::shared_ptr<AutomationController> create(
@@ -49,6 +51,8 @@ public:
        void display_effective_value();
        void value_adjusted();
 
+       void stop_updating ();
+
 private:
        AutomationController (boost::shared_ptr<ARDOUR::AutomationControl> ac, Gtk::Adjustment* adj);
        std::string get_label (int&);
@@ -63,6 +67,7 @@ private:
        boost::shared_ptr<ARDOUR::AutomationControl> _controllable;
        Gtk::Adjustment*                             _adjustment;
        sigc::connection                             _screen_update_connection;
+       PBD::ScopedConnection                        _changed_connection;
 };