X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fsimple_video_view.h;h=323047adaca9182fcc237c0dfa6a330aa3f6cfd7;hb=ed94e34207c9d8dbd495ca4b0ef468b79126f26a;hp=798356cee448e30bfe90189478ff16ae36048509;hpb=ff64d7f42884bb21e61c5f5b242c41415a5934b1;p=dcpomatic.git diff --git a/src/wx/simple_video_view.h b/src/wx/simple_video_view.h index 798356cee..323047ada 100644 --- a/src/wx/simple_video_view.h +++ b/src/wx/simple_video_view.h @@ -19,7 +19,12 @@ */ #include "video_view.h" +#include "lib/position.h" +#include "lib/warnings.h" +#include +DCPOMATIC_DISABLE_WARNINGS #include +DCPOMATIC_ENABLE_WARNINGS class FilmViewer; @@ -28,23 +33,26 @@ class SimpleVideoView : public VideoView public: SimpleVideoView (FilmViewer* viewer, wxWindow* parent); - void set_image (boost::shared_ptr image) { - _image = image; - } - wxWindow* get () const { return _panel; } void update (); - void start (); + bool display_next_frame (bool non_blocking); private: + void set_image (boost::shared_ptr image) { + _image = image; + } + + void refresh_panel (); void paint (); void timer (); wxPanel* _panel; boost::shared_ptr _image; wxTimer _timer; + Position _inter_position; + dcp::Size _inter_size; };