summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-03-17 17:39:21 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-03-17 17:39:21 +0000
commit5e836403adcb62a59141226baa32515ae7789661 (patch)
tree40e47327306f1328f504ce16b81981206572af5d /gtk2_ardour/editor.cc
parent6097ce578b9dc4d51f421c2e4cca2de64948aa66 (diff)
lots of fidgety work to get track renaming to work correctly now that we have to rename audio files too; some GUI tweaks
git-svn-id: svn://localhost/trunk/ardour2@404 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc49
1 files changed, 29 insertions, 20 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 88f1d05f3b..b68c1d3f6a 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -427,20 +427,18 @@ Editor::Editor (AudioEngine& eng)
edit_packer.set_col_spacings (0);
edit_packer.set_row_spacings (0);
edit_packer.set_homogeneous (false);
+ edit_packer.set_border_width (0);
edit_packer.set_name ("EditorWindow");
+
+ edit_packer.attach (edit_vscrollbar, 0, 1, 1, 3, FILL, FILL|EXPAND, 0, 0);
- edit_packer.attach (edit_hscrollbar, 1, 2, 0, 1, FILL|EXPAND, FILL, 0, 0);
-
- edit_packer.attach (time_button_event_box, 0, 1, 1, 2, FILL, FILL, 0, 0);
- edit_packer.attach (time_canvas_event_box, 1, 2, 1, 2, FILL|EXPAND, FILL, 0, 0);
+ edit_packer.attach (time_button_event_box, 1, 2, 0, 1, FILL, FILL, 0, 0);
+ edit_packer.attach (time_canvas_event_box, 2, 3, 0, 1, FILL|EXPAND, FILL, 0, 0);
- edit_packer.attach (controls_layout, 0, 1, 2, 3, FILL, FILL|EXPAND, 0, 0);
- edit_packer.attach (track_canvas_event_box, 1, 2, 2, 3, FILL|EXPAND, FILL|EXPAND, 0, 0);
- edit_packer.attach (edit_vscrollbar, 2, 3, 2, 3, FILL, FILL|EXPAND, 0, 0);
+ edit_packer.attach (controls_layout, 1, 2, 1, 2, FILL, FILL|EXPAND, 0, 0);
+ edit_packer.attach (track_canvas_event_box, 2, 3, 1, 2, FILL|EXPAND, FILL|EXPAND, 0, 0);
- edit_frame.set_name ("BaseFrame");
- edit_frame.set_shadow_type (SHADOW_IN);
- edit_frame.add (edit_packer);
+ edit_packer.attach (edit_hscrollbar, 2, 3, 2, 3, FILL|EXPAND, FILL, 0, 0);
zoom_in_button.set_name ("EditorTimeButton");
zoom_out_button.set_name ("EditorTimeButton");
@@ -637,20 +635,31 @@ Editor::Editor (AudioEngine& eng)
snapshot_display.get_selection()->signal_changed().connect (mem_fun(*this, &Editor::snapshot_display_selection_changed));
snapshot_display.signal_button_press_event().connect (mem_fun (*this, &Editor::snapshot_display_button_press), false);
- the_notebook.append_page (region_list_scroller, _("Regions"));
- the_notebook.append_page (route_list_scroller, _("Tracks/Busses"));
- the_notebook.append_page (snapshot_display_scroller, _("Snapshots"));
- the_notebook.append_page (*edit_group_display_packer, _("Edit Groups"));
- the_notebook.append_page (named_selection_scroller, _("Chunks"));
+ Gtk::Label* nlabel;
+
+ nlabel = manage (new Label (_("Regions")));
+ nlabel->set_angle (-90);
+ the_notebook.append_page (region_list_scroller, *nlabel);
+ nlabel = manage (new Label (_("Tracks/Busses")));
+ nlabel->set_angle (-90);
+ the_notebook.append_page (route_list_scroller, *nlabel);
+ nlabel = manage (new Label (_("Snapshots")));
+ nlabel->set_angle (-90);
+ the_notebook.append_page (snapshot_display_scroller, *nlabel);
+ nlabel = manage (new Label (_("Edit Groups")));
+ nlabel->set_angle (-90);
+ the_notebook.append_page (*edit_group_display_packer, *nlabel);
+ nlabel = manage (new Label (_("Chunks")));
+ nlabel->set_angle (-90);
+ the_notebook.append_page (named_selection_scroller, *nlabel);
+
the_notebook.set_show_tabs (true);
the_notebook.set_scrollable (true);
the_notebook.popup_enable ();
+ the_notebook.set_tab_pos (Gtk::POS_RIGHT);
- TearOff *notebook_tearoff = manage (new TearOff (the_notebook, true));
- notebook_tearoff->tearoff_window().set_size_request (200, 400);
-
- edit_pane.pack1 (edit_frame, true, true);
- edit_pane.pack2 (*notebook_tearoff, false, true);
+ edit_pane.pack1 (edit_packer, true, true);
+ edit_pane.pack2 (the_notebook, false, true);
edit_pane.signal_size_allocate().connect_notify (bind (mem_fun(*this, &Editor::pane_allocation_handler), static_cast<Paned*> (&edit_pane)));