diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-19 21:47:34 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-19 21:47:34 +0100 |
commit | f1ce87a699c9cca17197b4f33bec5da163810d4f (patch) | |
tree | b050b8ceeb6a2b23494da82cfb3f9d87cac9512f /gtk2_ardour/route_time_axis.cc | |
parent | 6874bca886ad9778a7bedd78a25d56f0bd277cf3 (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/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 20c9876519..502e24d8a0 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -961,7 +961,7 @@ RouteTimeAxisView::show_selection (TimeSelection& ts) } void -RouteTimeAxisView::set_height (uint32_t h) +RouteTimeAxisView::set_height (uint32_t h, TrackHeightMode m) { int gmlen = h - 9; bool height_changed = (height == 0) || (h != height); @@ -972,7 +972,7 @@ RouteTimeAxisView::set_height (uint32_t h) } gm.get_level_meter().setup_meters (gmlen, meter_width); - TimeAxisView::set_height (h); + TimeAxisView::set_height (h, m); if (_view) { _view->set_height ((double) current_height()); |