a few more Location related lua bindings
[ardour.git] / gtk2_ardour / automation_controller.h
index db79ac249e0e7063d4fa11169c30d1fc00b25285..4d5826023e35d50c5af9f0d34657d78dcc4a4599 100644 (file)
@@ -42,6 +42,18 @@ namespace ARDOUR {
        class Automatable;
 }
 
+class AutomationBarController : public Gtkmm2ext::BarController {
+public:
+       AutomationBarController(boost::shared_ptr<ARDOUR::Automatable>       printer,
+                               boost::shared_ptr<ARDOUR::AutomationControl> ac,
+                               Gtk::Adjustment*                             adj);
+       ~AutomationBarController();
+private:
+       std::string get_label (double&);
+       boost::shared_ptr<ARDOUR::Automatable>       _printer;
+       boost::shared_ptr<ARDOUR::AutomationControl> _controllable;
+};
+
 /** A BarController which displays the value and allows control of an AutomationControl */
 class AutomationController : public Gtk::Alignment {
 public:
@@ -49,7 +61,8 @@ public:
                boost::shared_ptr<ARDOUR::Automatable>       parent,
                const Evoral::Parameter&                     param,
                const ARDOUR::ParameterDescriptor&           desc,
-               boost::shared_ptr<ARDOUR::AutomationControl> ac);
+               boost::shared_ptr<ARDOUR::AutomationControl> ac,
+               bool                                         use_knob = false);
 
        ~AutomationController();
 
@@ -65,14 +78,11 @@ public:
 
        void stop_updating ();
 
-       sigc::signal<void> StartGesture;
-       sigc::signal<void> StopGesture;
-
 private:
        AutomationController (boost::shared_ptr<ARDOUR::Automatable>       printer,
                              boost::shared_ptr<ARDOUR::AutomationControl> ac,
-                             Gtk::Adjustment*                             adj);
-       std::string get_label (double&);
+                             Gtk::Adjustment*                             adj,
+                             bool                                         use_knob);
 
        void start_touch();
        void end_touch();