X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fsimple_video_view.h;h=d271416528390ad39b04377614d53098f3791962;hp=2eb62ab5f57dc1730e74a6f73c5a7a7143d122ff;hb=7c33cdd95a23ff784c0e0731a9d1444ce9bb8f09;hpb=a8e31120a793f09ab56cc2847d76944ba698ba95 diff --git a/src/wx/simple_video_view.h b/src/wx/simple_video_view.h index 2eb62ab5f..d27141652 100644 --- a/src/wx/simple_video_view.h +++ b/src/wx/simple_video_view.h @@ -18,17 +18,34 @@ */ +#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 (); + + void start (); + private: + void paint (); + void timer (); + bool get (bool lazy); + wxPanel* _panel; + boost::shared_ptr _image; + wxTimer _timer; };