X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fclosed_captions_dialog.h;h=a599bc7036f8d048bb421a64fe30a9e974a506d8;hb=ded71cffd18962ebb6b9611a5eb6dfafe9e8e4ec;hp=ca19cc95ad97b0205c3955502a24dded4f5cdf1f;hpb=07d75f41aed77e340d927cc092dc4e7d74d03897;p=dcpomatic.git diff --git a/src/wx/closed_captions_dialog.h b/src/wx/closed_captions_dialog.h index ca19cc95a..a599bc703 100644 --- a/src/wx/closed_captions_dialog.h +++ b/src/wx/closed_captions_dialog.h @@ -19,24 +19,25 @@ */ #include "lib/dcpomatic_time.h" -#include "lib/player_caption.h" +#include "lib/player.h" #include -class ClosedCaptionsView : public wxDialog +class Player; + +class ClosedCaptionsDialog : public wxDialog { public: - ClosedCaptionsView (wxWindow* parent); + ClosedCaptionsDialog (wxWindow* parent); - void refresh (DCPTime); - void caption (PlayerCaption, DCPTimePeriod); + void update (DCPTime); void clear (); + void set_player (boost::weak_ptr); private: void paint (); - typedef std::pair Caption; - std::list _captions; std::vector _lines; + boost::weak_ptr _player; static int const _num_lines; static int const _num_chars_per_line; };