+ /* and widget text */
+ auto_return_button.set_text(_("Auto Return"));
+ follow_edits_button.set_text(_("Follow Range"));
+ punch_in_button.set_text (_("In"));
+ punch_out_button.set_text (_("Out"));
+ layered_button.set_text (_("Non-Layered"));
+
+ monitor_in_button.set_text (_("All In"));
+ monitor_disk_button.set_text (_("All Disk"));
+ auto_input_button.set_text (_("Auto-Input"));
+
+ punch_label.set_text (_("Punch:"));
+ layered_label.set_text (_("Rec:"));
+
+ /* and tooltips */
+
+ Gtkmm2ext::UI::instance()->set_tip (editor_visibility_button,
+ string_compose (_("Drag this tab to the desktop to show %1 in its own window\n\n"
+ "To re-attach the window, use the Window > %1 > Attach menu action"), editor->name()));
+
+ Gtkmm2ext::UI::instance()->set_tip (mixer_visibility_button,
+ string_compose (_("Drag this tab to the desktop to show %1 in its own window\n\n"
+ "To re-attach the window, use the Window > %1 > Attach menu action"), mixer->name()));
+
+ Gtkmm2ext::UI::instance()->set_tip (prefs_visibility_button,
+ string_compose (_("Drag this tab to the desktop to show %1 in its own window\n\n"
+ "To re-attach the window, use the Window > %1 > Attach menu action"), rc_option_editor->name()));
+
+ 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"));
+
+ Gtkmm2ext::UI::instance()->set_tip (monitor_in_button, _("Force all tracks to monitor Input, unless they are explicitly set to monitor Disk"));
+ Gtkmm2ext::UI::instance()->set_tip (monitor_disk_button, _("Force all tracks to monitor Disk playback, unless they are explicitly set to Input"));
+
+ /* transport control size-group */
+
+ Glib::RefPtr<SizeGroup> punch_button_size_group = SizeGroup::create (Gtk::SIZE_GROUP_HORIZONTAL);
+ punch_button_size_group->add_widget (punch_in_button);
+ punch_button_size_group->add_widget (punch_out_button);
+
+ Glib::RefPtr<SizeGroup> monitor_button_size_group = SizeGroup::create (Gtk::SIZE_GROUP_HORIZONTAL);
+ monitor_button_size_group->add_widget (monitor_in_button);
+ monitor_button_size_group->add_widget (monitor_disk_button);
+
+ /* and now the layout... */
+
+ /* top level packing */
+ transport_table.set_spacings (0);
+ transport_table.set_row_spacings (4);
+ transport_table.set_border_width (0);
+
+ transport_frame.set_name ("TransportFrame");
+ transport_frame.set_shadow_type (Gtk::SHADOW_NONE);
+
+ /* An event box to hold the table. We use this because we want specific
+ control over the background color, and without this event box,
+ nothing inside the transport_sample actually draws a background. We
+ would therefore end up seeing the background of the parent widget,
+ which is probably some default color. Adding the EventBox adds a
+ widget that will draw the background, using a style based on
+ the parent, "TransportFrame".
+ */
+ Gtk::EventBox* ebox = manage (new Gtk::EventBox);
+ transport_frame.add (*ebox);
+ ebox->add (transport_table);
+
+ /* alert box sub-group */
+ VBox* alert_box = manage (new VBox);
+ alert_box->set_homogeneous (true);
+ alert_box->set_spacing (1);
+ alert_box->set_border_width (0);
+ alert_box->pack_start (solo_alert_button, true, true);
+ alert_box->pack_start (auditioning_alert_button, true, true);
+ alert_box->pack_start (feedback_alert_button, true, true);
+
+ /* clock button size groups */
+ Glib::RefPtr<SizeGroup> button_height_size_group = SizeGroup::create (Gtk::SIZE_GROUP_VERTICAL);
+ button_height_size_group->add_widget (follow_edits_button);
+ button_height_size_group->add_widget (*primary_clock->left_btn());
+ button_height_size_group->add_widget (*primary_clock->right_btn());
+ button_height_size_group->add_widget (*secondary_clock->left_btn());
+ button_height_size_group->add_widget (*secondary_clock->right_btn());
+
+ button_height_size_group->add_widget (transport_ctrl.size_button ());
+// button_height_size_group->add_widget (sync_button);
+ button_height_size_group->add_widget (auto_return_button);
+
+ //tab selections
+ button_height_size_group->add_widget (editor_visibility_button);
+ button_height_size_group->add_widget (mixer_visibility_button);
+
+ //punch section
+ button_height_size_group->add_widget (punch_in_button);
+ button_height_size_group->add_widget (punch_out_button);
+ button_height_size_group->add_widget (layered_button);
+
+ //input monitoring section
+ button_height_size_group->add_widget (monitor_in_button);
+ button_height_size_group->add_widget (monitor_disk_button);
+ button_height_size_group->add_widget (auto_input_button);
+
+ Glib::RefPtr<SizeGroup> clock1_size_group = SizeGroup::create (SIZE_GROUP_HORIZONTAL);
+ clock1_size_group->add_widget (*primary_clock->left_btn());
+ clock1_size_group->add_widget (*primary_clock->right_btn());
+
+ Glib::RefPtr<SizeGroup> clock2_size_group = SizeGroup::create (SIZE_GROUP_HORIZONTAL);
+ clock2_size_group->add_widget (*secondary_clock->left_btn());
+ clock2_size_group->add_widget (*secondary_clock->right_btn());
+
+ /* sub-layout for Sync | Shuttle (grow) */
+ HBox* ssbox = manage (new HBox);
+ ssbox->set_spacing (PX_SCALE(2));
+ ssbox->pack_start (sync_button, false, false, 0);
+ ssbox->pack_start (shuttle_box, true, true, 0);
+ ssbox->pack_start (*shuttle_box.info_button(), false, false, 0);
+
+
+ /* and the main table layout */
+ int vpadding = 1;
+ int hpadding = 2;
+ int col = 0;
+#define TCOL col, col + 1
+
+ transport_table.attach (transport_ctrl, TCOL, 0, 1 , SHRINK, SHRINK, 0, 0);
+ transport_table.attach (*ssbox, TCOL, 1, 2 , FILL, SHRINK, 0, 0);
+ ++col;
+
+ transport_table.attach (*(manage (new ArdourVSpacer ())), TCOL, 0, 2 , SHRINK, EXPAND|FILL, 3, 0);
+ ++col;
+
+ transport_table.attach (punch_label, TCOL, 0, 1 , FILL, SHRINK, 3, 0);
+ transport_table.attach (layered_label, TCOL, 1, 2 , FILL, SHRINK, 3, 0);
+ ++col;
+
+ transport_table.attach (punch_in_button, col, col + 1, 0, 1 , FILL, SHRINK, hpadding, vpadding);
+ transport_table.attach (punch_space, col + 1, col + 2, 0, 1 , FILL, SHRINK, 0, vpadding);
+ transport_table.attach (punch_out_button, col + 2, col + 3, 0, 1 , FILL, SHRINK, hpadding, vpadding);
+ transport_table.attach (layered_button, col, col + 3, 1, 2 , FILL, SHRINK, hpadding, vpadding);
+ col += 3;
+
+ transport_table.attach (recpunch_spacer, TCOL, 0, 2 , SHRINK, EXPAND|FILL, 3, 0);
+ ++col;
+
+ transport_table.attach (auto_input_button, col, col + 3, 0, 1 , FILL, SHRINK, hpadding, vpadding);
+ transport_table.attach (monitor_in_button, col, col + 1, 1, 2 , FILL, SHRINK, hpadding, vpadding);
+ transport_table.attach (mon_space, col + 1, col + 2, 1, 2 , FILL, SHRINK, 2, vpadding);
+ transport_table.attach (monitor_disk_button, col + 2, col + 3, 1, 2 , FILL, SHRINK, hpadding, vpadding);
+ col += 3;
+
+ transport_table.attach (monitoring_spacer, TCOL, 0, 2 , SHRINK, EXPAND|FILL, 3, 0);
+ ++col;
+
+ transport_table.attach (follow_edits_button, TCOL, 0, 1 , FILL, SHRINK, hpadding, vpadding);
+ transport_table.attach (auto_return_button, TCOL, 1, 2 , FILL, SHRINK, hpadding, vpadding);
+ ++col;
+
+ transport_table.attach (*(manage (new ArdourVSpacer ())), TCOL, 0, 2 , SHRINK, EXPAND|FILL, 3, 0);
+ ++col;
+
+ transport_table.attach (*primary_clock, col, col + 2, 0, 1 , FILL, SHRINK, hpadding, 0);
+ transport_table.attach (*primary_clock->left_btn(), col, col + 1, 1, 2 , FILL, SHRINK, hpadding, 0);
+ transport_table.attach (*primary_clock->right_btn(), col + 1, col + 2, 1, 2 , FILL, SHRINK, hpadding, 0);
+ col += 2;
+
+ transport_table.attach (*(manage (new ArdourVSpacer ())), TCOL, 0, 2 , SHRINK, EXPAND|FILL, 3, 0);
+ ++col;