Re-work OpenGL video view to use modern shaders / APIs.
[dcpomatic.git] / src / wx / closed_captions_dialog.h
index fb4e9d59b40c5569e90a02c5013f28bd2a051531..1f0e450ff3203bc632ec2601d898af05a57963c6 100644 (file)
 #include "lib/dcpomatic_time.h"
 #include "lib/player.h"
 #include "lib/text_ring_buffers.h"
+#include "lib/warnings.h"
+DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
+DCPOMATIC_ENABLE_WARNINGS
 
 class Butler;
 class FilmViewer;
@@ -31,11 +34,13 @@ class ClosedCaptionsDialog : public wxDialog
 public:
        explicit ClosedCaptionsDialog (wxWindow* parent, FilmViewer* viewer);
 
-       void update (dcpomatic::DCPTime);
        void clear ();
-       void set_film_and_butler (boost::shared_ptr<Film>, boost::weak_ptr<Butler>);
+       void update_tracks (std::shared_ptr<const Film> film);
+       void set_butler (std::weak_ptr<Butler>);
 
 private:
+       void shown (wxShowEvent);
+       void update ();
        void paint ();
        void track_selected ();
 
@@ -46,6 +51,6 @@ private:
        bool _current_in_lines;
        std::vector<wxString> _lines;
        std::vector<DCPTextTrack> _tracks;
-       boost::weak_ptr<Butler> _butler;
-       dcpomatic::DCPTime _last_update;
+       std::weak_ptr<Butler> _butler;
+       wxTimer _timer;
 };