/*
- 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.
TimelineLabelsView::TimelineLabelsView (Timeline& tl)
: TimelineView (tl)
, _threed (true)
+ , _audio_tracks (0)
, _subtitle_tracks (0)
, _atmos (true)
{
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
_threed = s;
}
+void
+TimelineLabelsView::set_audio_tracks (int n)
+{
+ _audio_tracks = n;
+}
+
void
TimelineLabelsView::set_subtitle_tracks (int n)
{