diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-04 11:31:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-04 11:31:22 +0100 |
| commit | ea8bceee9e9d2e43fe4e49067013295931687f96 (patch) | |
| tree | 8b833ecce73bfaf83ad7223d2c31ad1502195ce3 /src/wx/timeline_labels_view.cc | |
| parent | 9e065519743ff8eac63207552a97314febca24c7 (diff) | |
More zoom / timeline tidying.
Diffstat (limited to 'src/wx/timeline_labels_view.cc')
| -rw-r--r-- | src/wx/timeline_labels_view.cc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/wx/timeline_labels_view.cc b/src/wx/timeline_labels_view.cc index 3d0b42651..43adfc936 100644 --- a/src/wx/timeline_labels_view.cc +++ b/src/wx/timeline_labels_view.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2016 Carl Hetherington <cth@carlh.net> + Copyright (C) 2016-2018 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -31,6 +31,7 @@ using std::max; TimelineLabelsView::TimelineLabelsView (Timeline& tl) : TimelineView (tl) , _threed (true) + , _audio_tracks (0) , _subtitle_tracks (0) , _atmos (true) { @@ -81,8 +82,10 @@ TimelineLabelsView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int> > fy = ty; } - ty = _timeline.tracks() * h; - gc->DrawText (_("Audio"), 0, (ty + fy) / 2 - 8); + if (_audio_tracks) { + ty = _timeline.tracks() * h; + gc->DrawText (_("Audio"), 0, (ty + fy) / 2 - 8); + } } void @@ -92,6 +95,12 @@ TimelineLabelsView::set_3d (bool s) } void +TimelineLabelsView::set_audio_tracks (int n) +{ + _audio_tracks = n; +} + +void TimelineLabelsView::set_subtitle_tracks (int n) { _subtitle_tracks = n; |
