- left.attach (*l, 0, 1, 3, 4, FILL);
- left.attach (*selection_length, 1, 2, 3, 4);
-
- punch_in_button.set_name ("punch button");
- punch_out_button.set_name ("punch button");
- punch_in_button.set_text (_("In"));
- punch_out_button.set_text (_("Out"));
-
- Glib::RefPtr<Action> act = ActionManager::get_action ("Transport", "TogglePunchIn");
- punch_in_button.set_related_action (act);
- act = ActionManager::get_action ("Transport", "TogglePunchOut");
- punch_out_button.set_related_action (act);
-
- Gtkmm2ext::UI::instance()->set_tip (punch_in_button, _("Start recording at auto-punch start"));
- Gtkmm2ext::UI::instance()->set_tip (punch_out_button, _("Stop recording at auto-punch end"));
-
- punch_title.set_name ("TimeInfoSelectionTitle");
- right.attach (punch_title, 2, 4, 0, 1);
- right.attach (punch_in_button, 2, 3, 1, 2, FILL, SHRINK);
- right.attach (*punch_start, 3, 4, 1, 2);
- right.attach (punch_out_button, 2, 3, 2, 3, FILL, SHRINK);
- right.attach (*punch_end, 3, 4, 2, 3);
+ table.attach (*l, 0, 1, 3, 4, FILL);
+ table.attach (*selection_length, 1, 2, 3, 4);
+
+ if (with_punch_clock) {
+ punch_start = new AudioClock ("punch-start", false, "punch", false, false, false, false);
+ punch_end = new AudioClock ("punch-end", false, "punch", false, false, false, false);
+ punch_title.set_text (_("Punch"));
+
+ punch_title.set_name ("TimeInfoSelectionTitle");
+ table.attach (punch_title, 2, 3, 0, 1);
+ table.attach (*punch_start, 2, 3, 1, 2);
+ table.attach (*punch_end, 2, 3, 2, 3);
+ }