Use ScopeGuard for _no_check_selection
[dcpomatic.git] / src / wx / player_information.h
index af18cfb76dc8646dccae7f559fee48832d585591..2ce49371431e3f6e8162aedd66105918e22a40d2 100644 (file)
 
 */
 
+
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
+LIBDCP_ENABLE_WARNINGS
+#include <boost/scoped_ptr.hpp>
+
 
 class FilmViewer;
 
+
 class PlayerInformation : public wxPanel
 {
 public:
-       PlayerInformation (wxWindow* parent, FilmViewer* viewer);
+       PlayerInformation(wxWindow* parent, FilmViewer const& viewer);
 
-       void update ();
+       void triggered_update ();
 
 private:
 
-       FilmViewer* _viewer;
+       void periodic_update ();
+
+       FilmViewer const& _viewer;
+       wxPanel* _kdm_panel;
        wxSizer* _sizer;
-       wxStaticText* _cpl_name;
-       wxStaticText* _size;
-       wxStaticText* _length;
+       wxStaticText** _dcp;
+       wxStaticText* _kdm_from;
+       wxStaticText* _kdm_to;
+       wxStaticText* _dropped;
+       wxStaticText* _decode_resolution;
+       boost::scoped_ptr<wxTimer> _timer;
 };