diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-01-19 18:05:31 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-01-19 18:05:31 +0000 |
commit | e1ad4e0a532b10e78b6286537e8b0ec1142fcf6b (patch) | |
tree | 9cf96cbb0ae2939c6b1bcb91c8b9e9efcb4e0166 /gtk2_ardour/ardour_ui2.cc | |
parent | 5eb4a701f3c233b0f49b581b3350eb6fdf3c1012 (diff) |
F11 now toggles maximal editor space
git-svn-id: svn://localhost/trunk/ardour2@280 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui2.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui2.cc | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc index a58b38d62b..8d026a43a4 100644 --- a/gtk2_ardour/ardour_ui2.cc +++ b/gtk2_ardour/ardour_ui2.cc @@ -225,7 +225,11 @@ ARDOUR_UI::setup_transport () static_cast<Widget*>(&transport_frame))); transport_tearoff->Attach.connect (bind (mem_fun(*this, &ARDOUR_UI::reattach_tearoff), static_cast<Box*> (&top_packer), static_cast<Widget*> (&transport_frame), 1)); - + transport_tearoff->Hidden.connect (bind (mem_fun(*this, &ARDOUR_UI::detach_tearoff), static_cast<Box*>(&top_packer), + static_cast<Widget*>(&transport_frame))); + transport_tearoff->Visible.connect (bind (mem_fun(*this, &ARDOUR_UI::reattach_tearoff), static_cast<Box*> (&top_packer), + static_cast<Widget*> (&transport_frame), 1)); + shuttle_box.set_name ("TransportButton"); goto_start_button.set_name ("TransportButton"); goto_end_button.set_name ("TransportButton"); @@ -857,3 +861,25 @@ ARDOUR_UI::sync_option_changed () session->request_slave_source (Session::JACK); } } + +void +ARDOUR_UI::maximise_editing_space () +{ + if (!editor) { + return; + } + + transport_tearoff->set_visible (false); + editor->maximise_editing_space (); +} + +void +ARDOUR_UI::restore_editing_space () +{ + if (!editor) { + return; + } + + transport_tearoff->set_visible (true); + editor->restore_editing_space (); +} |