Use libdcp's warnings.h
[dcpomatic.git] / src / wx / player_information.h
index 7d784d7156351eb57e6538dc41e060a3ab8baf8e..269a9e6c7357555167fc6f7c6e585fbaeacf799a 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, std::weak_ptr<FilmViewer> viewer);
 
-       void update ();
+       void triggered_update ();
 
 private:
 
-       FilmViewer* _viewer;
+       void periodic_update ();
+
+       std::weak_ptr<FilmViewer> _viewer;
        wxSizer* _sizer;
-       wxStaticText* _cpl_name;
-       wxStaticText* _decoded_fps;
+       wxStaticText** _dcp;
+       wxStaticText* _dropped;
+       wxStaticText* _decode_resolution;
+       boost::scoped_ptr<wxTimer> _timer;
 };