- transport_tearoff_hbox.pack_start (*svbox, false, false, 3);
-
- if (Profile->get_sae()) {
- transport_tearoff_hbox.pack_start (auto_loop_button);
- transport_tearoff_hbox.pack_start (roll_button);
- } else {
- transport_tearoff_hbox.pack_start (auto_loop_button, false, false);
- play_range_hbox.pack_start (play_selection_button, false, false);
- play_range_hbox.pack_start (roll_button, false, false);
- play_range_vbox.pack_start (play_range_hbox, false, false);
- play_range_vbox.pack_start (join_play_range_button, false, false);
- transport_tearoff_hbox.pack_start (play_range_vbox, false, false);
- }
- transport_tearoff_hbox.pack_start (stop_button, false, false);
- transport_tearoff_hbox.pack_start (rec_button, false, false, 6);
+ Glib::RefPtr<SizeGroup> transport_button_size_group = SizeGroup::create (SIZE_GROUP_BOTH);
+ transport_button_size_group->add_widget (goto_start_button);
+ transport_button_size_group->add_widget (goto_end_button);
+ transport_button_size_group->add_widget (auto_loop_button);
+ transport_button_size_group->add_widget (rec_button);
+ transport_button_size_group->add_widget (play_selection_button);
+ transport_button_size_group->add_widget (roll_button);
+ transport_button_size_group->add_widget (stop_button);
+
+ HBox* tbox1 = manage (new HBox);
+ HBox* tbox2 = manage (new HBox);
+ HBox* tbox3 = manage (new HBox);
+ HBox* tbox = manage (new HBox);
+
+ VBox* vbox1 = manage (new VBox);
+ VBox* vbox2 = manage (new VBox);
+ VBox* vbox3 = manage (new VBox);
+
+ Alignment* a1 = manage (new Alignment);
+ Alignment* a2 = manage (new Alignment);
+ Alignment* a3 = manage (new Alignment);
+
+ tbox1->set_spacing (2);
+ tbox2->set_spacing (2);
+ tbox3->set_spacing (2);
+ tbox->set_spacing (2);
+
+ tbox1->pack_start (midi_panic_button, false, false);
+ tbox1->pack_start (goto_start_button, false, false);
+ tbox1->pack_start (goto_end_button, false, false);
+ tbox1->pack_start (auto_loop_button, false, false);
+
+ play_selection_button.set_rounded_corner_mask (0x1); /* upper left only */
+ roll_button.set_rounded_corner_mask (0x2); /* upper right only */
+
+ tbox2->pack_start (*transport_joiner, false, false);
+
+ tbox3->pack_start (stop_button, false, false);
+ tbox3->pack_start (rec_button, false, false, 6);
+
+ vbox1->pack_start (*tbox1, false, false);
+ vbox2->pack_start (*tbox2, false, false);
+ vbox3->pack_start (*tbox3, false, false);
+
+ a1->add (*vbox1);
+ a1->set (0.5, 1.0, 0.0, 0.0);
+ a2->add (*vbox2);
+ a2->set (0.5, 1.0, 0.0, 0.0);
+ a3->add (*vbox3);
+ a3->set (0.5, 1.0, 0.0, 0.0);
+
+ tbox->pack_start (*a1, false, false);
+ tbox->pack_start (*a2, false, false);
+ tbox->pack_start (*a3, false, false);