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:
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();
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();