I said we were in string freeze, but only nl_NL has come in so
[dcpomatic.git] / src / wx / closed_captions_dialog.h
index 4b47d593fc2a5ace624c1bf04c428506af311613..3818e38124d9a583a6f7e51dc4ed73abd8b5557c 100644 (file)
 
 #include "lib/dcpomatic_time.h"
 #include "lib/player.h"
+#include "lib/text_ring_buffers.h"
 #include <wx/wx.h>
 
-class Player;
+class Butler;
 
 class ClosedCaptionsDialog : public wxDialog
 {
 public:
-       ClosedCaptionsDialog (explicit 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<TextRingBuffers::Data> _current;
+       bool _current_in_lines;
        std::vector<wxString> _lines;
-       boost::weak_ptr<Player> _player;
+       boost::weak_ptr<Butler> _butler;
 };