+ /// TRANSLATORS: this is an abbreviation for milliseconds, the unit of time
+ _delay_ms_label = create_label (this, _("ms"), false);
+
+ _mapping = new AudioMappingView (this, _("Content"), _("content"), _("DCP"), _("DCP"));
+ _sizer->Add (_mapping, 1, wxEXPAND | wxALL, 6);
+
+ _description = new StaticText (this, wxT(" \n"), wxDefaultPosition, wxDefaultSize);
+ _sizer->Add (_description, 0, wxALL, 12);
+ _description->SetFont (font);
+
+ _gain->wrapped()->SetRange (-60, 60);
+ _gain->wrapped()->SetDigits (1);
+ _gain->wrapped()->SetIncrement (0.5);
+ _delay->wrapped()->SetRange (-1000, 1000);
+
+ content_selection_changed ();
+ film_changed (Film::AUDIO_CHANNELS);
+ film_changed (Film::VIDEO_FRAME_RATE);
+ film_changed (Film::REEL_TYPE);
+
+ _reference->Bind (wxEVT_CHECKBOX, boost::bind (&AudioPanel::reference_clicked, this));
+ _show->Bind (wxEVT_BUTTON, boost::bind (&AudioPanel::show_clicked, this));
+ _gain_calculate_button->Bind (wxEVT_BUTTON, boost::bind (&AudioPanel::gain_calculate_button_clicked, this));
+
+ _mapping_connection = _mapping->Changed.connect (boost::bind (&AudioPanel::mapping_changed, this, _1));
+ _active_jobs_connection = JobManager::instance()->ActiveJobsChanged.connect (boost::bind (&AudioPanel::active_jobs_changed, this, _1, _2));
+
+ add_to_grid ();
+}
+
+void
+AudioPanel::add_to_grid ()
+{
+ bool const full = Config::instance()->interface_complexity() == Config::INTERFACE_FULL;
+
+ int r = 0;
+
+ _reference->Show (full);
+ _reference_note->Show (full);
+
+ if (full) {
+ wxBoxSizer* reference_sizer = new wxBoxSizer (wxVERTICAL);
+ reference_sizer->Add (_reference, 0);
+ reference_sizer->Add (_reference_note, 0);
+ _grid->Add (reference_sizer, wxGBPosition(r, 0), wxGBSpan(1, 4));
+ ++r;