macOS alignment fixes (#2045).
[dcpomatic.git] / src / wx / player_information.h
index af18cfb76dc8646dccae7f559fee48832d585591..0dd6c4ad0e8f9c41f584b90ca43d729afc291dc2 100644 (file)
 
 */
 
+#include "lib/warnings.h"
+DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
+DCPOMATIC_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* _size;
-       wxStaticText* _length;
+       wxStaticText** _dcp;
+       wxStaticText* _dropped;
+       wxStaticText* _decode_resolution;
+       boost::scoped_ptr<wxTimer> _timer;
 };