- position_clock.set_session (_session);
- end_clock.set_session (_session);
- length_clock.set_session (_session);
- sync_offset_relative_clock.set_session (_session);
- sync_offset_absolute_clock.set_session (_session);
- start_clock.set_session (_session);
-
- ARDOUR_UI::instance()->set_tip (audition_button, _("audition this region"));
-
- audition_button.unset_flags (Gtk::CAN_FOCUS);
-
- audition_button.set_events (audition_button.get_events() & ~(Gdk::ENTER_NOTIFY_MASK|Gdk::LEAVE_NOTIFY_MASK));
-
- name_entry.set_name ("AudioRegionEditorEntry");
- name_label.set_name ("AudioRegionEditorLabel");
- position_label.set_name ("AudioRegionEditorLabel");
- position_label.set_text (_("Position:"));
- end_label.set_name ("AudioRegionEditorLabel");
- end_label.set_text (_("End:"));
- length_label.set_name ("AudioRegionEditorLabel");
- length_label.set_text (_("Length:"));
- sync_relative_label.set_name ("AudioRegionEditorLabel");
- sync_relative_label.set_text (_("Sync point (relative to region):"));
- sync_absolute_label.set_name ("AudioRegionEditorLabel");
- sync_absolute_label.set_text (_("Sync point (absolute):"));
- start_label.set_name ("AudioRegionEditorLabel");
- 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);