X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fclosed_captions_dialog.h;h=3818e38124d9a583a6f7e51dc4ed73abd8b5557c;hb=2a0ad7979b208f84916b13f7a37998aa3701e371;hp=be5b3664d4fb3c25e836d34c3b8f4b691c7ca32b;hpb=4843bf7b6820fe9f027699cf30c41804e714fbac;p=dcpomatic.git diff --git a/src/wx/closed_captions_dialog.h b/src/wx/closed_captions_dialog.h index be5b3664d..3818e3812 100644 --- a/src/wx/closed_captions_dialog.h +++ b/src/wx/closed_captions_dialog.h @@ -20,22 +20,25 @@ #include "lib/dcpomatic_time.h" #include "lib/player.h" +#include "lib/text_ring_buffers.h" #include -class Player; +class Butler; class ClosedCaptionsDialog : public wxDialog { public: - ClosedCaptionsDialog (wxWindow* parent); + explicit ClosedCaptionsDialog (wxWindow* parent); void update (DCPTime); void clear (); - void set_player (boost::weak_ptr); + void set_butler (boost::weak_ptr); private: void paint (); + boost::optional _current; + bool _current_in_lines; std::vector _lines; - boost::weak_ptr _player; + boost::weak_ptr _butler; };