Stop butler getting full in 3D projects with only 2D content (#1469).
[dcpomatic.git] / src / wx / closed_captions_dialog.h
index e3f13f62f5f5d469b4f1a3ca3a50433322ddafe3..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
 {
@@ -31,11 +32,13 @@ public:
 
        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;
 };