Fix up SimpleVideoView.
[dcpomatic.git] / src / wx / simple_video_view.h
index 2eb62ab5f57dc1730e74a6f73c5a7a7143d122ff..8b3ec9f0bda91233857c978b25116c99baf46d20 100644 (file)
 
 */
 
+#include "video_view.h"
+#include <wx/wx.h>
+
+class FilmViewer;
+
 class SimpleVideoView : public VideoView
 {
 public:
-       SimpleVideoView (wxWindow* parent);
+       SimpleVideoView (FilmViewer* viewer, wxWindow* parent);
 
-       void set_image (boost::shared_ptr<const Image> image);
+       void set_image (boost::shared_ptr<const Image> image) {
+               _image = image;
+       }
 
        wxWindow* get () const {
                return _panel;
        }
 
 private:
+       void paint ();
+
+       FilmViewer* _viewer;
        wxPanel* _panel;
+       boost::shared_ptr<const Image> _image;
 };