X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftimeline_labels_view.h;h=fb80b1bf3311ec9533fdd6e280620750516c188d;hb=56e0452ce0f436e7c54a49c68b272797f92a7ffe;hp=25302cc33eabb370f9b8ebc2dc82f49f8da3a721;hpb=ea8bceee9e9d2e43fe4e49067013295931687f96;p=dcpomatic.git diff --git a/src/wx/timeline_labels_view.h b/src/wx/timeline_labels_view.h index 25302cc33..fb80b1bf3 100644 --- a/src/wx/timeline_labels_view.h +++ b/src/wx/timeline_labels_view.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2016-2018 Carl Hetherington + Copyright (C) 2016-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,28 +18,31 @@ */ + #include "timeline_view.h" + class wxWindow; + class TimelineLabelsView : public TimelineView { public: explicit TimelineLabelsView (Timeline& tl); - dcpomatic::Rect bbox () const; + dcpomatic::Rect bbox () const override; - void set_3d (bool s); + void set_video_tracks (int n); void set_audio_tracks (int n); - void set_subtitle_tracks (int n); + void set_text_tracks (int n); void set_atmos (bool s); private: - void do_paint (wxGraphicsContext* gc, std::list > overlaps); + void do_paint (wxGraphicsContext* gc, std::list> overlaps) override; - int _width; - bool _threed; - int _audio_tracks; - int _subtitle_tracks; - bool _atmos; + int _width = 0; + int _video_tracks = 0; + int _audio_tracks = 0; + int _text_tracks = 0; + bool _atmos = true; };