20 #include <gtkmm/label.h>
21 #include <gtkmm/spinbutton.h>
22 #include <gtkmm/radiobutton.h>
23 #include <gtkmm/stock.h>
24 #include <gtkmm/progressbar.h>
34 :
ArdourDialog (more_than_one ?
_(
"Normalize regions") :
_(
"Normalize region"))
35 , _normalize_individually (0)
37 get_vbox()->set_spacing (12);
39 HBox* hbox = manage (
new HBox);
40 hbox->set_spacing (6);
41 hbox->set_border_width (6);
42 hbox->pack_start (*manage (
new Label (
_(
"Normalize to:"))),
false,
false);
43 _spin = manage (
new SpinButton (0.2, 2));
44 _spin->set_range (-112, 0);
45 _spin->set_increments (0.1, 1);
47 _spin->set_activates_default ();
48 hbox->pack_start (*
_spin,
false,
false);
49 hbox->pack_start (*manage (
new Label (
_(
"dbFS"))),
false,
false);
50 get_vbox()->pack_start (*hbox);
53 RadioButtonGroup group;
54 VBox* vbox = manage (
new VBox);
58 RadioButton* b = manage (
new RadioButton (group,
_(
"Normalize each region using the peak value of all regions")));
59 vbox->pack_start (*b);
64 get_vbox()->pack_start (*vbox);
72 add_button (Stock::CANCEL, RESPONSE_CANCEL);
73 add_button (
_(
"Normalize"), RESPONSE_ACCEPT);
74 set_default_response (RESPONSE_ACCEPT);
92 return _spin->get_value ();
104 int const r = ArdourDialog::run ();
115 if (r == RESPONSE_CANCEL) {
Gtk::ProgressBar * _progress_bar
Gtk::RadioButton * _normalize_individually
static double _last_normalization_value
static bool _last_normalize_individually
bool normalize_individually() const
void update_progress_gui(float)