diff options
author | Carl Hetherington <carl@carlh.net> | 2009-06-22 02:00:25 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-06-22 02:00:25 +0000 |
commit | 92f3bc5c4486bd9d26979baf60c742c95faea62e (patch) | |
tree | dc1ccd8975d8dedc1b5363bcbf28263eea985699 /gtk2_ardour/latency_gui.h | |
parent | 167929c25a4d2f839e078eeaa50ab40b8f544978 (diff) |
Some small fixes to the latency GUI.
git-svn-id: svn://localhost/ardour2/branches/3.0@5243 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/latency_gui.h')
-rw-r--r-- | gtk2_ardour/latency_gui.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/gtk2_ardour/latency_gui.h b/gtk2_ardour/latency_gui.h index 35fad9e296..9d36103ed7 100644 --- a/gtk2_ardour/latency_gui.h +++ b/gtk2_ardour/latency_gui.h @@ -20,6 +20,21 @@ namespace ARDOUR { class Latent; } +class LatencyGUI; + +class LatencyBarController : public Gtkmm2ext::BarController +{ +public: + LatencyBarController (Gtk::Adjustment& adj, LatencyGUI* g) + : BarController (adj, boost::shared_ptr<PBD::IgnorableControllable> (new PBD::IgnorableControllable ())), + _latency_gui (g) {} + +private: + LatencyGUI* _latency_gui; + + std::string get_label (int&); +}; + class LatencyGUI : public Gtk::VBox { public: @@ -31,8 +46,6 @@ class LatencyGUI : public Gtk::VBox void refresh (); private: - std::string get_label (int&); - ARDOUR::Latent& _latent; nframes64_t initial_value; nframes64_t sample_rate; @@ -40,7 +53,7 @@ class LatencyGUI : public Gtk::VBox boost::shared_ptr<PBD::IgnorableControllable> ignored; Gtk::Adjustment adjustment; - Gtkmm2ext::BarController bc; + LatencyBarController bc; Gtk::HBox hbox1; Gtk::HBox hbox2; Gtk::HButtonBox hbbox; @@ -51,6 +64,8 @@ class LatencyGUI : public Gtk::VBox void change_latency_from_button (int dir); + friend class LatencyBarController; + static std::vector<std::string> unit_strings; }; |