summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_controller.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-11-29 14:49:03 +0100
committerRobin Gareus <robin@gareus.org>2014-11-29 14:49:03 +0100
commit48bb90eb88202c683f3bb78f7ddf11da6114c1ab (patch)
tree4425f49558f5edd3227c2e4bbecf2b7038eee68b /gtk2_ardour/automation_controller.h
parent58663db3743dbb5feddd9fc4221e7a328ef3b4ed (diff)
show values on faders (fixes bug in 55c6165)
Diffstat (limited to 'gtk2_ardour/automation_controller.h')
-rw-r--r--gtk2_ardour/automation_controller.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_controller.h b/gtk2_ardour/automation_controller.h
index db79ac249e..c5d64c16c7 100644
--- a/gtk2_ardour/automation_controller.h
+++ b/gtk2_ardour/automation_controller.h
@@ -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:
@@ -72,7 +84,6 @@ private:
AutomationController (boost::shared_ptr<ARDOUR::Automatable> printer,
boost::shared_ptr<ARDOUR::AutomationControl> ac,
Gtk::Adjustment* adj);
- std::string get_label (double&);
void start_touch();
void end_touch();