summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui2.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-09 17:29:23 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-09 17:29:23 +0000
commit17da9339c26d3967b2bdd175ddaf9b409178c683 (patch)
tree87d6dcab6a76bf29aab76a3a1ee5e732aa82e742 /gtk2_ardour/ardour_ui2.cc
parent121860f9d40a9e7ce39d49cecebc538d6a5ec17e (diff)
move auto-input into session options/properties dialog, move auto-play and auto-return next to the transport buttons; show ">24hrs" when there is truly a lot of disk space available
git-svn-id: svn://localhost/ardour2/branches/3.0@10507 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui2.cc')
-rw-r--r--gtk2_ardour/ardour_ui2.cc45
1 files changed, 25 insertions, 20 deletions
diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc
index 076f9f2f52..e663b149de 100644
--- a/gtk2_ardour/ardour_ui2.cc
+++ b/gtk2_ardour/ardour_ui2.cc
@@ -388,6 +388,27 @@ ARDOUR_UI::setup_transport ()
transport_tearoff_hbox.pack_start (*transport_vbox, false, false, 0);
+ /* transport related toggle controls */
+
+ HBox* toggle_box = manage(new HBox);
+ VBox* auto_box = manage (new VBox);
+ auto_box->set_spacing (2);
+ auto_box->set_homogeneous (true);
+ toggle_box->set_spacing (2);
+ toggle_box->set_homogeneous (true);
+ auto_box->pack_start (auto_play_button, true, false);
+ auto_box->pack_start (auto_return_button, true, false);
+ if (!Profile->get_small_screen()) {
+ toggle_box->pack_start (*auto_box, false, false);
+ }
+ //VBox* io_box = manage (new VBox);
+ //io_box->pack_start (auto_input_button, false, false);
+ //io_box->pack_start (click_button, false, false);
+ //if (!Profile->get_small_screen()) {
+ // toggle_box->pack_start (*io_box, false, false);
+ //}
+ transport_tearoff_hbox.pack_start (*toggle_box, false, false, 4);
+
Table* time_controls_table = manage (new Table (2, 2));
time_controls_table->set_col_spacings (6);
time_controls_table->attach (sync_button, 0, 1, 0, 1, Gtk::AttachOptions(FILL|EXPAND), Gtk::AttachOptions(0));
@@ -401,27 +422,7 @@ ARDOUR_UI::setup_transport ()
time_info_box = manage (new TimeInfoBox);
transport_tearoff_hbox.pack_start (*time_info_box, false, false);
- HBox* toggle_box = manage(new HBox);
-
- VBox* auto_box = manage (new VBox);
- auto_box->pack_start (auto_play_button, false, false);
- auto_box->pack_start (auto_return_button, false, false);
- if (!Profile->get_small_screen()) {
- toggle_box->pack_start (*auto_box, false, false);
- }
-
- VBox* io_box = manage (new VBox);
- io_box->pack_start (auto_input_button, false, false);
- //io_box->pack_start (click_button, false, false);
- if (!Profile->get_small_screen()) {
- toggle_box->pack_start (*io_box, false, false);
- }
-
- /* desensitize */
-
- set_transport_sensitivity (false);
- transport_tearoff_hbox.pack_start (*toggle_box, false, false, 4);
if (Profile->get_small_screen()) {
transport_tearoff_hbox.pack_start (_editor_transport_box, false, false, 4);
}
@@ -432,6 +433,10 @@ ARDOUR_UI::setup_transport ()
transport_tearoff_hbox.pack_end (*img, false, false, 6);
}
+ /* desensitize */
+
+ set_transport_sensitivity (false);
+
XMLNode* tnode = tearoff_settings ("transport");
if (tnode) {
transport_tearoff->set_state (*tnode);