13
0

update track-height scaling:

“number of visible tracks”: count automation lanes
as tracks. Distribute equally.

“Summary View”: the visual lane represents both
track + automation. Set the total height.

Left to do: recursive “Shrink” and “Expand” tools
if there is no explicit selection.
This commit is contained in:
Robin Gareus 2015-03-19 21:55:28 +01:00
parent f1ce87a699
commit 1ca9cd228e
2 changed files with 2 additions and 2 deletions

View File

@ -3769,7 +3769,7 @@ Editor::set_visible_track_count (int32_t n)
}
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
(*i)->set_height (h);
(*i)->set_height (h, TimeAxisView::HeightPerLane);
}
if (str != visible_tracks_selector.get_text()) {

View File

@ -972,7 +972,7 @@ EditorSummary::set_editor_y (pair<double, double> const y)
}
if (yc.first <= 0 && yc.second >= _track_height) {
(*i)->set_height (max (TimeAxisView::preset_height (HeightSmall), (uint32_t) ((*i)->effective_height() * scale)));
(*i)->set_height (max (TimeAxisView::preset_height (HeightSmall), (uint32_t) ((*i)->effective_height() * scale)), TimeAxisView::TotalHeight);
}
yc.first -= _track_height;