summaryrefslogtreecommitdiff
path: root/src/wx/simple_video_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-09 01:17:46 +0100
committerCarl Hetherington <cth@carlh.net>2019-05-10 23:43:55 +0100
commit6743eacf57a1209270f4021684425865bb72b00f (patch)
tree7177fa161b2bb0202dff085e9d31fcd355e95305 /src/wx/simple_video_view.h
parent676737031d1957bc39814e7104257b8fe93f11bb (diff)
Fix up SimpleVideoView.
Diffstat (limited to 'src/wx/simple_video_view.h')
-rw-r--r--src/wx/simple_video_view.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/wx/simple_video_view.h b/src/wx/simple_video_view.h
index 2eb62ab5f..8b3ec9f0b 100644
--- a/src/wx/simple_video_view.h
+++ b/src/wx/simple_video_view.h
@@ -18,17 +18,28 @@
*/
+#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;
};