- start_label.set_text (_("FILE START:"));
-
- time_table.set_col_spacings (2);
- time_table.set_row_spacings (5);
- time_table.set_border_width (5);
-
- position_alignment.set (1.0, 0.5);
- end_alignment.set (1.0, 0.5);
- length_alignment.set (1.0, 0.5);
- sync_alignment.set (1.0, 0.5);
- start_alignment.set (1.0, 0.5);
-
- position_alignment.add (position_label);
- end_alignment.add (end_label);
- length_alignment.add (length_label);
- sync_alignment.add (sync_label);
- start_alignment.add (start_label);
-
- time_table.attach (position_alignment, 0, 1, 0, 1, Gtk::FILL, Gtk::FILL);
- time_table.attach (position_clock, 1, 2, 0, 1, Gtk::FILL, Gtk::FILL);
-
- time_table.attach (end_alignment, 0, 1, 1, 2, Gtk::FILL, Gtk::FILL);
- time_table.attach (end_clock, 1, 2, 1, 2, Gtk::FILL, Gtk::FILL);
-
- time_table.attach (length_alignment, 0, 1, 2, 3, Gtk::FILL, Gtk::FILL);
- time_table.attach (length_clock, 1, 2, 2, 3, Gtk::FILL, Gtk::FILL);
-
- time_table.attach (sync_alignment, 0, 1, 3, 4, Gtk::FILL, Gtk::FILL);
- time_table.attach (sync_offset_clock, 1, 2, 3, 4, Gtk::FILL, Gtk::FILL);
-
- time_table.attach (start_alignment, 0, 1, 4, 5, Gtk::FILL, Gtk::FILL);
- time_table.attach (start_clock, 1, 2, 4, 5, Gtk::FILL, Gtk::FILL);
-
- lower_hbox.pack_start (time_table, true, true);
- lower_hbox.pack_start (sep1, false, false);
- lower_hbox.pack_start (sep2, false, false);
-
- get_vbox()->pack_start (top_row_hbox, true, true);
- get_vbox()->pack_start (sep3, false, false);
- get_vbox()->pack_start (lower_hbox, true, true);
+ start_label.set_text (_("File start:"));
+
+ _table.set_col_spacings (12);
+ _table.set_row_spacings (6);
+ _table.set_border_width (12);
+
+ name_label.set_alignment (1, 0.5);
+ position_label.set_alignment (1, 0.5);
+ end_label.set_alignment (1, 0.5);
+ length_label.set_alignment (1, 0.5);
+ sync_relative_label.set_alignment (1, 0.5);
+ sync_absolute_label.set_alignment (1, 0.5);
+ start_label.set_alignment (1, 0.5);
+ gain_label.set_alignment (1, 0.5);
+
+ Gtk::HBox* nb = Gtk::manage (new Gtk::HBox);
+ nb->set_spacing (6);
+ nb->pack_start (name_entry);
+ nb->pack_start (audition_button);
+
+ _table.attach (name_label, 0, 1, 0, 1, Gtk::FILL, Gtk::FILL);
+ _table.attach (*nb, 1, 2, 0, 1, Gtk::FILL, Gtk::FILL);
+
+ _table.attach (position_label, 0, 1, 1, 2, Gtk::FILL, Gtk::FILL);
+ _table.attach (position_clock, 1, 2, 1, 2, Gtk::FILL, Gtk::FILL);
+
+ _table.attach (end_label, 0, 1, 2, 3, Gtk::FILL, Gtk::FILL);
+ _table.attach (end_clock, 1, 2, 2, 3, Gtk::FILL, Gtk::FILL);
+
+ _table.attach (length_label, 0, 1, 3, 4, Gtk::FILL, Gtk::FILL);
+ _table.attach (length_clock, 1, 2, 3, 4, Gtk::FILL, Gtk::FILL);
+
+ _table.attach (sync_relative_label, 0, 1, 4, 5, Gtk::FILL, Gtk::FILL);
+ _table.attach (sync_offset_relative_clock, 1, 2, 4, 5, Gtk::FILL, Gtk::FILL);
+
+ _table.attach (sync_absolute_label, 0, 1, 5, 6, Gtk::FILL, Gtk::FILL);
+ _table.attach (sync_offset_absolute_clock, 1, 2, 5, 6, Gtk::FILL, Gtk::FILL);
+
+ _table.attach (start_label, 0, 1, 6, 7, Gtk::FILL, Gtk::FILL);
+ _table.attach (start_clock, 1, 2, 6, 7, Gtk::FILL, Gtk::FILL);
+
+ Gtk::HBox* gb = Gtk::manage (new Gtk::HBox);
+ gb->set_spacing (6);
+ gb->pack_start (gain_entry);
+ gb->pack_start (*Gtk::manage (new Gtk::Label (_("dB"))), false, false);
+
+ gain_label.set_name ("AudioRegionEditorLabel");
+ gain_label.set_text (_("Region gain:"));
+ gain_entry.configure (gain_adjustment, 0.0, 1);
+ _table.attach (gain_label, 0, 1, 7, 8, Gtk::FILL, Gtk::FILL);
+ _table.attach (*gb, 1, 2, 7, 8, Gtk::FILL, Gtk::FILL);
+
+ get_vbox()->pack_start (_table, true, true);
+
+ add_button (Gtk::Stock::CLOSE, Gtk::RESPONSE_ACCEPT);