-
- AudioContentList c = _parent->selected_audio ();
- for (AudioContentList::const_iterator i = c.begin(); i != c.end(); ++i) {
- (*i)->set_audio_processor (p);
+
+ list<string> why_not;
+ bool const can_reference = dcp && dcp->can_reference_audio (why_not);
+ setup_refer_button (_reference, dcp, can_reference, why_not);
+
+ if (_reference->GetValue ()) {
+ _gain->wrapped()->Enable (false);
+ _gain_calculate_button->Enable (false);
+ _show->Enable (true);
+ _peak->Enable (false);
+ _delay->wrapped()->Enable (false);
+ _mapping->Enable (false);
+ _description->Enable (false);
+ } else {
+ _gain->wrapped()->Enable (sel.size() == 1);
+ _gain_calculate_button->Enable (sel.size() == 1);
+ _show->Enable (sel.size() == 1);
+ _peak->Enable (sel.size() == 1);
+ _delay->wrapped()->Enable (sel.size() == 1);
+ _mapping->Enable (sel.size() == 1);
+ _description->Enable (sel.size() == 1);