diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-10-05 15:36:45 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-10-05 15:36:45 +0000 |
commit | b462493f44d9004853a6d242ae295496af12478c (patch) | |
tree | 66f8a04b9fcc9c7083d33ecfb4915b94dfbfc770 /gtk2_ardour/gain_meter.h | |
parent | f138091f7e6413623390cd2168aaac7d0a7d71c2 (diff) |
make RouteUI and its children and relations able to switch the Route/IO object they refer to (significant architectural changes)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3869 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/gain_meter.h')
-rw-r--r-- | gtk2_ardour/gain_meter.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/gain_meter.h b/gtk2_ardour/gain_meter.h index cef6c02024..3e025656c5 100644 --- a/gtk2_ardour/gain_meter.h +++ b/gtk2_ardour/gain_meter.h @@ -57,10 +57,12 @@ namespace Gtk { class GainMeterBase : virtual public sigc::trackable { public: - GainMeterBase (boost::shared_ptr<ARDOUR::IO>, ARDOUR::Session&, const Glib::RefPtr<Gdk::Pixbuf>& pix, + GainMeterBase ( ARDOUR::Session&, const Glib::RefPtr<Gdk::Pixbuf>& pix, bool horizontal); virtual ~GainMeterBase (); + virtual void set_io (boost::shared_ptr<ARDOUR::IO>); + void update_gain_sensitive (); void update_meters (); void effective_gain_display (); @@ -79,6 +81,7 @@ class GainMeterBase : virtual public sigc::trackable friend class MixerStrip; boost::shared_ptr<ARDOUR::IO> _io; ARDOUR::Session& _session; + std::vector<sigc::connection> connections; bool ignore_toggle; bool next_release_selects; @@ -166,9 +169,11 @@ class GainMeterBase : virtual public sigc::trackable class GainMeter : public GainMeterBase, public Gtk::VBox { public: - GainMeter (boost::shared_ptr<ARDOUR::IO>, ARDOUR::Session&); + GainMeter (ARDOUR::Session&); ~GainMeter () {} + void set_io (boost::shared_ptr<ARDOUR::IO>); + int get_gm_width (); void setup_meters (int len=0); |