Add basic KDM information to the player (#2225).
[dcpomatic.git] / src / wx / player_information.h
index f82cd7aa4b1d2198afc531ff11dee20a96b32361..b311847cb17be9a6c638eff14e71be36ad081848 100644 (file)
 
 */
 
+
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
+LIBDCP_ENABLE_WARNINGS
 #include <boost/scoped_ptr.hpp>
 
-class ControlFilmViewer;
+
+class FilmViewer;
+
 
 class PlayerInformation : public wxPanel
 {
 public:
-       PlayerInformation (wxWindow* parent, ControlFilmViewer* viewer);
+       PlayerInformation (wxWindow* parent, std::weak_ptr<FilmViewer> viewer);
 
        void triggered_update ();
 
@@ -34,9 +40,12 @@ private:
 
        void periodic_update ();
 
-       ControlFilmViewer* _viewer;
+       std::weak_ptr<FilmViewer> _viewer;
+       wxPanel* _kdm_panel;
        wxSizer* _sizer;
        wxStaticText** _dcp;
+       wxStaticText* _kdm_from;
+       wxStaticText* _kdm_to;
        wxStaticText* _dropped;
        wxStaticText* _decode_resolution;
        boost::scoped_ptr<wxTimer> _timer;