- gc->SetFont (gc->CreateFont(*wxNORMAL_FONT, wxColour (0, 0, 0)));
- gc->DrawText (_("Video"), 0, h / 2);
- gc->DrawText (_("Subtitles"), 0, 3 * h / 2);
- gc->DrawText (_("Audio"), 0, h + _timeline.tracks() * h / 2);
+ gc->SetFont (gc->CreateFont(wxNORMAL_FONT->Bold(), wxColour (0, 0, 0)));
+
+ int fy = 0;
+ int ty = _threed ? 2 * h : h;
+ gc->DrawText (_("Video"), 0, _timeline.tracks_position().y + (ty + fy) / 2 - 8);
+ fy = ty;
+
+ if (_subtitle) {
+ ty = fy + h;
+ gc->DrawText (_("Subtitles"), 0, _timeline.tracks_position().y + (ty + fy) / 2 - 8);
+ fy = ty;
+ }
+
+ if (_atmos) {
+ ty = fy + h;
+ gc->DrawText (_("Atmos"), 0, _timeline.tracks_position().y + (ty + fy) / 2 - 8);
+ fy = ty;
+ }
+
+ ty = _timeline.tracks() * h;
+ gc->DrawText (_("Audio"), 0, _timeline.tracks_position().y + (ty + fy) / 2 - 8);
+}
+
+void
+TimelineLabelsView::set_3d (bool s)
+{
+ _threed = s;
+}
+
+void
+TimelineLabelsView::set_subtitle (bool s)
+{
+ _subtitle = s;
+}
+
+void
+TimelineLabelsView::set_atmos (bool s)
+{
+ _atmos = s;