Add KDM directory configuration in player.
[dcpomatic.git] / src / wx / text_view.h
index 8cec8d28444b902701f241d6fc04a52b4bd01396..1fe07a99919f14b588edcc37ffe69351d02aad85 100644 (file)
 */
 
 #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 FilmViewer;
+class Film;
 
 class TextView : public wxDialog
 {
 public:
        TextView (
-               wxWindow *, boost::shared_ptr<Film>, boost::shared_ptr<Content> content, boost::shared_ptr<TextContent> caption, boost::shared_ptr<Decoder>, FilmViewer* viewer
+               wxWindow *,
+               boost::shared_ptr<Film>,
+               boost::shared_ptr<Content> content,
+               boost::shared_ptr<TextContent> caption,
+               boost::shared_ptr<Decoder>,
+               boost::weak_ptr<FilmViewer> viewer
                );
 
 private:
@@ -44,5 +51,5 @@ private:
        boost::optional<int> _last_count;
        std::vector<ContentTime> _start_times;
        boost::weak_ptr<Content> _content;
-       FilmViewer* _film_viewer;
+       boost::weak_ptr<FilmViewer> _film_viewer;
 };