Give a message when changed files are re-examined.
[dcpomatic.git] / src / wx / closed_captions_dialog.h
index be5b3664d4fb3c25e836d34c3b8f4b691c7ca32b..3da7f65225b7fc5330c928036c6bdbe9c8f387b3 100644 (file)
 #include "lib/player.h"
 #include <wx/wx.h>
 
-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<Player>);
+       void set_butler (boost::weak_ptr<Butler>);
 
 private:
        void paint ();
 
+       boost::optional<std::pair<PlayerText, DCPTimePeriod> > _current;
+       bool _current_in_lines;
        std::vector<wxString> _lines;
-       boost::weak_ptr<Player> _player;
+       boost::weak_ptr<Butler> _butler;
 };