Add control-focus notifications from bindable widgets.
[ardour.git] / libs / ardour / panner.cc
index 0713e48fe50fd7d7b486ec954e3f98b5ac90a5b8..a388b5fdc28ce74f3d7c823f18921f17b59967bd 100644 (file)
 
 */
 
-#include "pbd/boost_debug.h"
-
-#include "ardour/audio_buffer.h"
 #include "ardour/buffer_set.h"
 #include "ardour/debug.h"
 #include "ardour/panner.h"
 #include "ardour/pannable.h"
-#include "ardour/session.h"
-#include "ardour/utils.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace ARDOUR;
 
 Panner::Panner (boost::shared_ptr<Pannable> p)
+       : _frozen (0)
 {
        // boost_debug_shared_ptr_mark_interesting (this, "panner");
        _pannable = p;
@@ -70,12 +66,6 @@ Panner::distribute_automated (BufferSet& ibufs, BufferSet& obufs,
        }
 }
 
-void
-Panner::set_automation_style (AutoStyle style)
-{
-       _pannable->set_automation_style (style);
-}
-
 void
 Panner::set_automation_state (AutoState state)
 {
@@ -88,12 +78,6 @@ Panner::automation_state () const
        return _pannable->automation_state();
 }
 
-AutoStyle
-Panner::automation_style () const
-{
-       return _pannable->automation_style ();
-}
-
 bool
 Panner::touching () const
 {
@@ -113,7 +97,7 @@ Panner::describe_parameter (Evoral::Parameter p)
 }
 
 string
-Panner::value_as_string (boost::shared_ptr<AutomationControl> ac) const
+Panner::value_as_string (boost::shared_ptr<const AutomationControl> ac) const
 {
        return _pannable->value_as_string (ac);
 }
@@ -123,3 +107,17 @@ Panner::set_state (XMLNode const &, int)
 {
        return 0;
 }
+
+void
+Panner::freeze ()
+{
+       _frozen++;
+}
+
+void
+Panner::thaw ()
+{
+       if (_frozen > 0.0) {
+               _frozen--;
+       }
+}