From 8969587a712a76fefbe929823c1aa0984ae798e8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 6 Apr 2019 00:15:10 +0100 Subject: Option to choose CCAP track (part of #1516). --- src/wx/closed_captions_dialog.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/wx/closed_captions_dialog.h') diff --git a/src/wx/closed_captions_dialog.h b/src/wx/closed_captions_dialog.h index 3818e3812..4b407fa5a 100644 --- a/src/wx/closed_captions_dialog.h +++ b/src/wx/closed_captions_dialog.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2018 Carl Hetherington + Copyright (C) 2018-2019 Carl Hetherington This file is part of DCP-o-matic. @@ -24,21 +24,28 @@ #include class Butler; +class FilmViewer; class ClosedCaptionsDialog : public wxDialog { public: - explicit ClosedCaptionsDialog (wxWindow* parent); + explicit ClosedCaptionsDialog (wxWindow* parent, FilmViewer* viewer); void update (DCPTime); void clear (); - void set_butler (boost::weak_ptr); + void set_film_and_butler (boost::shared_ptr, boost::weak_ptr); private: void paint (); + void track_selected (); + FilmViewer* _viewer; + wxPanel* _display; + wxChoice* _track; boost::optional _current; bool _current_in_lines; std::vector _lines; + std::vector _tracks; boost::weak_ptr _butler; + DCPTime _last_update; }; -- cgit v1.2.3