13
0

Scale the piano roll right with stacked tracks, as well.

git-svn-id: svn://localhost/ardour2/branches/3.0@12713 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-06-13 20:58:12 +00:00
parent c785552d8f
commit da6f9ab807

View File

@ -172,14 +172,17 @@ MidiTimeAxisView::set_route (boost::shared_ptr<Route> rt)
_range_scroomer->DragStarting.connect (sigc::mem_fun (*midi_view(), &MidiStreamView::suspend_updates)); _range_scroomer->DragStarting.connect (sigc::mem_fun (*midi_view(), &MidiStreamView::suspend_updates));
_range_scroomer->DragFinishing.connect (sigc::mem_fun (*midi_view(), &MidiStreamView::resume_updates)); _range_scroomer->DragFinishing.connect (sigc::mem_fun (*midi_view(), &MidiStreamView::resume_updates));
/* Put the scroomer in a VBox with a padding label so that it can be reduced in height /* Put the scroomer and the keyboard in a VBox with a padding
for stacked-view tracks. label so that they can be reduced in height for stacked-view
tracks.
*/ */
VBox* b = manage (new VBox); VBox* v = manage (new VBox);
b->pack_start (*_range_scroomer, false, false); HBox* h = manage (new HBox);
b->pack_start (*manage (new Label ("")), true, true); h->pack_start (*_range_scroomer);
controls_hbox.pack_start(*b); h->pack_start (*_piano_roll_header);
controls_hbox.pack_start(*_piano_roll_header); v->pack_start (*h, false, false);
v->pack_start (*manage (new Label ("")), true, true);
controls_hbox.pack_start(*v);
controls_ebox.set_name ("MidiTrackControlsBaseUnselected"); controls_ebox.set_name ("MidiTrackControlsBaseUnselected");
controls_base_selected_name = "MidiTrackControlsBaseSelected"; controls_base_selected_name = "MidiTrackControlsBaseSelected";