summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-03-19 21:47:34 +0100
committerRobin Gareus <robin@gareus.org>2015-03-19 21:47:34 +0100
commitf1ce87a699c9cca17197b4f33bec5da163810d4f (patch)
treeb050b8ceeb6a2b23494da82cfb3f9d87cac9512f /gtk2_ardour/midi_time_axis.cc
parent6874bca886ad9778a7bedd78a25d56f0bd277cf3 (diff)
add API to select TAV height mode.
preparation for further Summary and Number of visible track count fixes. * “Only Self”: don’t resize child-views (old default) * “Total Height”: distribute height equally among all visible child [automation] lanes * “Height per Lane”: given height should be applied to all sub-views.
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index 304593227c..cf1b8a1b3b 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -467,7 +467,7 @@ MidiTimeAxisView::midi_view()
}
void
-MidiTimeAxisView::set_height (uint32_t h)
+MidiTimeAxisView::set_height (uint32_t h, TrackHeightMode m)
{
if (h >= MIDI_CONTROLS_BOX_MIN_HEIGHT) {
_midi_controls_box.show ();
@@ -496,7 +496,7 @@ MidiTimeAxisView::set_height (uint32_t h)
which needs to know if we have just shown or hidden a scroomer /
piano roll.
*/
- RouteTimeAxisView::set_height (h);
+ RouteTimeAxisView::set_height (h, m);
}
void