diff options
Diffstat (limited to 'src/wx/text_view.h')
| -rw-r--r-- | src/wx/text_view.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/wx/text_view.h b/src/wx/text_view.h index 12cbb6d08..1fe07a999 100644 --- a/src/wx/text_view.h +++ b/src/wx/text_view.h @@ -19,12 +19,14 @@ */ #include "lib/content_text.h" -#include <boost/shared_ptr.hpp> #include <wx/wx.h> #include <wx/listctrl.h> +#include <boost/shared_ptr.hpp> +#include <boost/weak_ptr.hpp> class Decoder; -class ControlFilmViewer; +class FilmViewer; +class Film; class TextView : public wxDialog { @@ -35,7 +37,7 @@ public: boost::shared_ptr<Content> content, boost::shared_ptr<TextContent> caption, boost::shared_ptr<Decoder>, - ControlFilmViewer* viewer + boost::weak_ptr<FilmViewer> viewer ); private: @@ -49,5 +51,5 @@ private: boost::optional<int> _last_count; std::vector<ContentTime> _start_times; boost::weak_ptr<Content> _content; - ControlFilmViewer* _film_viewer; + boost::weak_ptr<FilmViewer> _film_viewer; }; |
