Add FilmViewer::time_until_next_frame.
[dcpomatic.git] / src / wx / player_information.h
index 7d784d7156351eb57e6538dc41e060a3ab8baf8e..b932281746b0fe37c2e00c4860f3ce8d58935404 100644 (file)
 */
 
 #include <wx/wx.h>
+#include <boost/scoped_ptr.hpp>
+#include <boost/weak_ptr.hpp>
 
 class FilmViewer;
 
 class PlayerInformation : public wxPanel
 {
 public:
-       PlayerInformation (wxWindow* parent, FilmViewer* viewer);
+       PlayerInformation (wxWindow* parent, boost::weak_ptr<FilmViewer> viewer);
 
-       void update ();
+       void triggered_update ();
 
 private:
 
-       FilmViewer* _viewer;
+       void periodic_update ();
+
+       boost::weak_ptr<FilmViewer> _viewer;
        wxSizer* _sizer;
-       wxStaticText* _cpl_name;
-       wxStaticText* _decoded_fps;
+       wxStaticText** _dcp;
+       wxStaticText* _dropped;
+       wxStaticText* _decode_resolution;
+       boost::scoped_ptr<wxTimer> _timer;
 };