X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fsimple_video_view.h;h=40924839fad7dc900f97c2b6bbb14a92ec810075;hp=2eb62ab5f57dc1730e74a6f73c5a7a7143d122ff;hb=e153d7f5dc128d97160e41bdda3c4e4a05c7140b;hpb=a8e31120a793f09ab56cc2847d76944ba698ba95 diff --git a/src/wx/simple_video_view.h b/src/wx/simple_video_view.h index 2eb62ab5f..40924839f 100644 --- a/src/wx/simple_video_view.h +++ b/src/wx/simple_video_view.h @@ -18,17 +18,30 @@ */ +#include "video_view.h" +#include + +class FilmViewer; + class SimpleVideoView : public VideoView { public: - SimpleVideoView (wxWindow* parent); + SimpleVideoView (FilmViewer* viewer, wxWindow* parent); - void set_image (boost::shared_ptr image); + void set_image (boost::shared_ptr image) { + _image = image; + } wxWindow* get () const { return _panel; } + void update (); + private: + void paint (); + + FilmViewer* _viewer; wxPanel* _panel; + boost::shared_ptr _image; };