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/automation_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/automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index a4b7a7b005..5798344b8a 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -454,13 +454,13 @@ AutomationTimeAxisView::clear_clicked () } void -AutomationTimeAxisView::set_height (uint32_t h) +AutomationTimeAxisView::set_height (uint32_t h, TrackHeightMode m) { bool const changed = (height != (uint32_t) h) || first_call_to_set_height; uint32_t const normal = preset_height (HeightNormal); bool const changed_between_small_and_normal = ( (height < normal && h >= normal) || (height >= normal || h < normal) ); - TimeAxisView::set_height (h); + TimeAxisView::set_height (h, m); _base_rect->set_y1 (h); |