mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
pack zoom controls into upper right of editor table/packer
git-svn-id: svn://localhost/ardour2/branches/3.0@5209 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
65d10c219c
commit
daf0e333a9
4 changed files with 18 additions and 12 deletions
|
|
@ -90,6 +90,7 @@ ActionManager::init ()
|
|||
}
|
||||
|
||||
if (!loaded) {
|
||||
cerr << _("ardour will not work without a valid ardour.menus file") << endl;
|
||||
error << _("ardour will not work without a valid ardour.menus file") << endmsg;
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -407,7 +407,7 @@ Editor::Editor ()
|
|||
tempo_label.set_no_show_all();
|
||||
meter_label.set_name ("EditorTimeButton");
|
||||
meter_label.set_size_request (-1, (int)timebar_height);
|
||||
meter_label.set_alignment (0.0, 0.5);
|
||||
meter_label.set_alignment (1.0, 0.5);
|
||||
meter_label.set_padding (5,0);
|
||||
meter_label.hide();
|
||||
meter_label.set_no_show_all();
|
||||
|
|
@ -482,8 +482,8 @@ Editor::Editor ()
|
|||
pad_line_1->show();
|
||||
time_pad->show();
|
||||
|
||||
//time_canvas_vbox.set_size_request (-1, (int)(timebar_height * visible_timebars) + 2);
|
||||
//time_canvas_vbox.set_size_request (-1, -1);
|
||||
time_canvas_vbox.set_size_request (-1, (int)(timebar_height * visible_timebars) + 2);
|
||||
time_canvas_vbox.set_size_request (-1, -1);
|
||||
|
||||
ruler_label_event_box.add (ruler_label_vbox);
|
||||
ruler_label_event_box.set_events (Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK);
|
||||
|
|
@ -508,14 +508,18 @@ Editor::Editor ()
|
|||
edit_packer.set_border_width (0);
|
||||
edit_packer.set_name ("EditorWindow");
|
||||
|
||||
edit_packer.attach (zoom_vbox, 0, 1, 0, 2, SHRINK, FILL, 0, 0);
|
||||
/* labels for the rulers */
|
||||
edit_packer.attach (ruler_label_event_box, 1, 2, 0, 1, FILL, SHRINK, 0, 0);
|
||||
/* labels for the marker "tracks" */
|
||||
edit_packer.attach (time_button_event_box, 1, 2, 1, 2, FILL, SHRINK, 0, 0);
|
||||
|
||||
/* the rulers */
|
||||
edit_packer.attach (time_canvas_event_box, 2, 3, 0, 1, FILL|EXPAND, FILL, 0, 0);
|
||||
|
||||
edit_packer.attach (controls_layout, 1, 2, 2, 3, FILL, FILL|EXPAND, 0, 0);
|
||||
/* track controls */
|
||||
edit_packer.attach (controls_layout, 0, 2, 2, 3, FILL, FILL|EXPAND, 0, 0);
|
||||
/* main canvas */
|
||||
edit_packer.attach (track_canvas_event_box, 2, 3, 1, 3, FILL|EXPAND, FILL|EXPAND, 0, 0);
|
||||
|
||||
/* summary widget at bottom */
|
||||
edit_packer.attach (*_summary, 0, 3, 3, 4, FILL|EXPAND, SHRINK, 0, 0);
|
||||
|
||||
bottom_hbox.set_border_width (2);
|
||||
|
|
@ -3129,9 +3133,9 @@ Editor::setup_toolbar ()
|
|||
zoom_box.pack_start (zoom_out_full_button, false, false);
|
||||
|
||||
HBox* zbc = manage (new HBox);
|
||||
zbc->pack_start (zoom_focus_selector, false, false);
|
||||
zoom_vbox.pack_start (*zbc, false, false);
|
||||
zoom_vbox.pack_start (zoom_box, false, false);
|
||||
zbc->pack_start (zoom_focus_selector, PACK_SHRINK);
|
||||
zoom_vbox.pack_start (*zbc, PACK_SHRINK);
|
||||
zoom_vbox.pack_start (zoom_box, PACK_SHRINK);
|
||||
|
||||
snap_box.set_spacing (1);
|
||||
snap_box.set_border_width (2);
|
||||
|
|
|
|||
|
|
@ -407,8 +407,8 @@ Editor::controls_layout_size_request (Requisition* req)
|
|||
controls_layout.property_width () = vbox_width;
|
||||
controls_layout.property_width_request () = vbox_width;
|
||||
|
||||
time_button_event_box.property_width_request () = vbox_width;
|
||||
zoom_box.property_width_request () = vbox_width;
|
||||
// time_button_event_box.property_width_request () = vbox_width;
|
||||
// zoom_box.property_width_request () = vbox_width;
|
||||
}
|
||||
|
||||
if (req->height != height) {
|
||||
|
|
|
|||
|
|
@ -347,6 +347,7 @@ def build(bld):
|
|||
obj.argv = menus_argv
|
||||
obj.stdin = 'ardour.menus.in'
|
||||
obj.stdout = 'ardour.menus'
|
||||
obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3')
|
||||
|
||||
# Keybindings
|
||||
keybindings_dict = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue