X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftext_view.h;h=b44742b6313afeeb524454f59577fbdc4e8f0700;hb=cc2ca33dbf5aeab23d3e80d7b9cb8005daa1e1b2;hp=8cec8d28444b902701f241d6fc04a52b4bd01396;hpb=df17bbd25da69fc38eb2dcd8b4a2531cf0bab0bc;p=dcpomatic.git diff --git a/src/wx/text_view.h b/src/wx/text_view.h index 8cec8d284..b44742b63 100644 --- a/src/wx/text_view.h +++ b/src/wx/text_view.h @@ -19,30 +19,38 @@ */ #include "lib/content_text.h" -#include +#include "lib/warnings.h" +DCPOMATIC_DISABLE_WARNINGS #include +DCPOMATIC_ENABLE_WARNINGS #include class Decoder; class FilmViewer; +class Film; class TextView : public wxDialog { public: TextView ( - wxWindow *, boost::shared_ptr, boost::shared_ptr content, boost::shared_ptr caption, boost::shared_ptr, FilmViewer* viewer + wxWindow *, + std::shared_ptr, + std::shared_ptr content, + std::shared_ptr caption, + std::shared_ptr, + std::weak_ptr viewer ); private: void data_start (ContentStringText cts); - void data_stop (ContentTime time); + void data_stop (dcpomatic::ContentTime time); void subtitle_selected (wxListEvent &); wxListCtrl* _list; int _subs; boost::optional _frc; boost::optional _last_count; - std::vector _start_times; - boost::weak_ptr _content; - FilmViewer* _film_viewer; + std::vector _start_times; + std::weak_ptr _content; + std::weak_ptr _film_viewer; };