Extract common code out into kdm_for_screen()
[dcpomatic.git] / src / wx / timeline_labels_view.cc
index af9cb771e29273b8c088d5c02e028940b464c42f..d3aa02afcc68b20b981a3029499721f5d40de0c6 100644 (file)
@@ -32,13 +32,13 @@ TimelineLabelsView::TimelineLabelsView (Timeline& tl)
        : TimelineView (tl)
        , _threed (true)
        , _audio_tracks (0)
-       , _caption_tracks (0)
+       , _text_tracks (0)
        , _atmos (true)
 {
        wxString labels[] = {
                _("Video"),
                _("Audio"),
-               _("Captions"),
+               _("Subtitles/captions"),
                _("Atmos")
        };
 
@@ -50,7 +50,7 @@ TimelineLabelsView::TimelineLabelsView (Timeline& tl)
                _width = max (_width, size.GetWidth());
        }
 
-       _width += 16;
+       _width += 24;
 }
 
 dcpomatic::Rect<int>
@@ -70,9 +70,9 @@ TimelineLabelsView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int> >
        gc->DrawText (_("Video"), 0, (ty + fy) / 2 - 8);
        fy = ty;
 
-       if (_caption_tracks) {
-               ty = fy + _caption_tracks * h;
-               gc->DrawText (_("Captions"), 0, (ty + fy) / 2 - 8);
+       if (_text_tracks) {
+               ty = fy + _text_tracks * h;
+               gc->DrawText (_("Subtitles/captions"), 0, (ty + fy) / 2 - 8);
                fy = ty;
        }
 
@@ -101,9 +101,9 @@ TimelineLabelsView::set_audio_tracks (int n)
 }
 
 void
-TimelineLabelsView::set_caption_tracks (int n)
+TimelineLabelsView::set_text_tracks (int n)
 {
-       _caption_tracks = n;
+       _text_tracks = n;
 }
 
 void