Extract common code out into kdm_for_screen()
[dcpomatic.git] / src / wx / video_waveform_dialog.h
index aa134f7a5f9ad236cd7a48697914dd895dcd98a0..ac3a72dde524a331b4d427ff58c876df2c6b6a2c 100644 (file)
@@ -28,7 +28,7 @@ class Film;
 class VideoWaveformDialog : public wxDialog
 {
 public:
-       VideoWaveformDialog (wxWindow* parent, boost::weak_ptr<const Film> film, FilmViewer* viewer);
+       VideoWaveformDialog (wxWindow* parent, boost::weak_ptr<const Film> film, boost::weak_ptr<FilmViewer> viewer);
 
 private:
        void shown (wxShowEvent &);
@@ -36,7 +36,7 @@ private:
        void contrast_changed ();
        void mouse_moved (int x1, int x2, int y1, int y2);
 
-       FilmViewer* _viewer;
+       boost::weak_ptr<FilmViewer> _viewer;
        VideoWaveformPlot* _plot;
        wxChoice* _component;
        wxSlider* _contrast;