From 026dc718eedc59bacdd83788b373b1737a57eaa9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 25 Jan 2016 12:51:10 -0500 Subject: [PATCH] set controls for VCA strip --- gtk2_ardour/vca_master_strip.cc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/vca_master_strip.cc b/gtk2_ardour/vca_master_strip.cc index 34637a1722..7761b6f973 100644 --- a/gtk2_ardour/vca_master_strip.cc +++ b/gtk2_ardour/vca_master_strip.cc @@ -16,15 +16,24 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include "ardour/vca.h" + #include "vca_master_strip.h" using namespace ARDOUR; +using std::string; -VCAMasterStrip::VCAMasterStrip (Session* s) +VCAMasterStrip::VCAMasterStrip (Session* s, boost::shared_ptr v) : AxisView (s) + , vca (v) , gain_meter (s, 250) { - name_button.set_text ("name"); + gain_meter.set_controls (boost::shared_ptr(), + boost::shared_ptr(), + boost::shared_ptr(), + vca->control()); + + name_button.set_text (vca->name()); active_button.set_text ("active"); pack_start (active_button, false, false); @@ -36,3 +45,8 @@ VCAMasterStrip::VCAMasterStrip (Session* s) gain_meter.show_all (); } +string +VCAMasterStrip::name() const +{ + return vca->name(); +}