-
- HBox* hbox = manage (new HBox);
- hbox->set_spacing (6);
- hbox->set_border_width (6);
- hbox->pack_start (*manage (new Label (_("Normalize to:"))), false, false);
- _spin = manage (new SpinButton (0.2, 2));
- _spin->set_range (-112, 0);
- _spin->set_increments (0.1, 1);
- _spin->set_value (_last_normalization_value);
- hbox->pack_start (*_spin, false, false);
- hbox->pack_start (*manage (new Label (_("dbFS"))), false, false);
- get_vbox()->pack_start (*hbox);
+
+ Table* tbl = manage (new Table);
+ tbl->set_spacings (6);
+ tbl->set_border_width (6);
+
+ _spin_peak = manage (new SpinButton (0.2, 2));
+ _spin_peak->set_range (-112, 0);
+ _spin_peak->set_increments (0.1, 1);
+ _spin_peak->set_value (_last_normalization_value);
+ _spin_peak->set_activates_default ();
+
+ _constrain_rms = manage (new CheckButton (_("Constrain RMS to:")));
+ _constrain_rms->set_active (_last_constrain_rms);
+ _spin_rms = manage (new SpinButton (0.2, 2));
+ _spin_rms->set_range (-112, 0);
+ _spin_rms->set_increments (0.1, 1);
+ _spin_rms->set_value (_last_rms_target_value);
+
+ tbl->attach (*manage (new Label (_("Normalize to:"), ALIGN_END)), 0, 1, 0, 1, FILL, SHRINK);
+ tbl->attach (*_spin_peak, 1, 2, 0, 1, SHRINK, SHRINK);
+ tbl->attach (*manage (new Label (_("dBFS"))), 2, 3, 0, 1, SHRINK, SHRINK);
+
+ tbl->attach (*_constrain_rms, 0, 1, 1, 2, SHRINK, SHRINK);
+ tbl->attach (*_spin_rms, 1, 2, 1, 2, SHRINK, SHRINK);
+ tbl->attach (*manage (new Label (_("dBFS"))), 2, 3, 1, 2, SHRINK, SHRINK);
+
+ get_vbox()->pack_start (*tbl);