X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fclosed_captions_dialog.h;h=fb4e9d59b40c5569e90a02c5013f28bd2a051531;hb=a713e8258acc3f0e960c4e87ba8684902d29a591;hp=3818e38124d9a583a6f7e51dc4ed73abd8b5557c;hpb=1db0293ad36605da9ca8daa8736ef581f4f6a34e;p=dcpomatic.git diff --git a/src/wx/closed_captions_dialog.h b/src/wx/closed_captions_dialog.h index 3818e3812..fb4e9d59b 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 update (dcpomatic::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; + dcpomatic::DCPTime _last_update; };