Emit no audio from DCPs if none is mapped
[dcpomatic.git] / src / wx / video_waveform_dialog.h
index ac3a72dde524a331b4d427ff58c876df2c6b6a2c..e524dc92148c0d58f3ffa4a6a4cdc2e39406ec77 100644 (file)
 
 */
 
+
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
-#include <boost/weak_ptr.hpp>
+LIBDCP_ENABLE_WARNINGS
+#include <memory>
+
 
 class VideoWaveformPlot;
 class FilmViewer;
 class Film;
 
+
 class VideoWaveformDialog : public wxDialog
 {
 public:
-       VideoWaveformDialog (wxWindow* parent, boost::weak_ptr<const Film> film, boost::weak_ptr<FilmViewer> viewer);
+       VideoWaveformDialog(wxWindow* parent, std::weak_ptr<const Film> film, FilmViewer& viewer);
 
 private:
        void shown (wxShowEvent &);
@@ -36,7 +42,7 @@ private:
        void contrast_changed ();
        void mouse_moved (int x1, int x2, int y1, int y2);
 
-       boost::weak_ptr<FilmViewer> _viewer;
+       FilmViewer& _viewer;
        VideoWaveformPlot* _plot;
        wxChoice* _component;
        wxSlider* _contrast;