From e0ff70cf86c01c42f98faf8b0eaf1a8ccf867946 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 16 May 2016 07:30:28 -0400 Subject: first vaguely working version using PresentationInfo remote control ID and "order keys" have been removed. --- libs/ardour/vca.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libs/ardour/vca.cc') diff --git a/libs/ardour/vca.cc b/libs/ardour/vca.cc index 3310c924cb..d3c614debf 100644 --- a/libs/ardour/vca.cc +++ b/libs/ardour/vca.cc @@ -65,7 +65,7 @@ VCA::get_next_vca_number () } VCA::VCA (Session& s, uint32_t num, const string& name) - : Stripable (s, name) + : Stripable (s, name, PresentationInfo (num, PresentationInfo::VCA)) , Muteable (s, name) , Automatable (s) , _number (num) @@ -106,6 +106,8 @@ VCA::get_state () node->add_property (X_("name"), _name); node->add_property (X_("number"), _number); + Stripable::add_state (*node); + node->add_child_nocopy (_gain_control->get_state()); node->add_child_nocopy (_solo_control->get_state()); node->add_child_nocopy (_mute_control->get_state()); @@ -121,6 +123,8 @@ VCA::set_state (XMLNode const& node, int version) { XMLProperty const* prop; + Stripable::set_state (node, version); + if ((prop = node.property ("name")) != 0) { set_name (prop->value()); } -- cgit v1.2.3