- add_label_to_grid_bag_sizer (grid, this, _("Audio Gain"), true, wxGBPosition (r, 0));
- _gain = new wxSpinCtrl (this);
- grid->Add (_gain, wxGBPosition (r, 1));
- add_label_to_grid_bag_sizer (grid, this, _("dB"), false, wxGBPosition (r, 2));
+ _show = new wxButton (this, wxID_ANY, _("Show graph of audio levels..."));
+ grid->Add (_show, wxGBPosition (r, 0), wxGBSpan (1, 2));
+ _peak = new wxStaticText (this, wxID_ANY, wxT (""));
+ grid->Add (_peak, wxGBPosition (r, 2), wxGBSpan (1, 2), wxALIGN_CENTER_VERTICAL);
+ ++r;
+
+ add_label_to_sizer (grid, this, _("Gain"), true, wxGBPosition (r, 0));
+ _gain = new ContentSpinCtrlDouble<AudioContent> (
+ this,
+ new wxSpinCtrlDouble (this),
+ AudioContentProperty::AUDIO_GAIN,
+ boost::mem_fn (&AudioContent::audio_gain),
+ boost::mem_fn (&AudioContent::set_audio_gain)
+ );
+
+ _gain->add (grid, wxGBPosition (r, 1));
+ add_label_to_sizer (grid, this, _("dB"), false, wxGBPosition (r, 2));