Take Film pointer out of Content.
[dcpomatic.git] / src / wx / subtitle_appearance_dialog.h
index 6cced717bae1cbcf5bb6cbbdcf584beef1c69285..d02e283d90a8d80e06eba09e6ee1ac1919fa42e7 100644 (file)
@@ -32,11 +32,12 @@ class RGBAColourPicker;
 class FFmpegSubtitleStream;
 class wxCheckBox;
 class wxWidget;
+class Film;
 
 class SubtitleAppearanceDialog : public wxDialog
 {
 public:
-       SubtitleAppearanceDialog (wxWindow* parent, boost::shared_ptr<Content> content, boost::shared_ptr<TextContent> caption);
+       SubtitleAppearanceDialog (wxWindow* parent, boost::shared_ptr<const Film> film, boost::shared_ptr<Content> content, boost::shared_ptr<TextContent> caption);
 
        void apply ();
 
@@ -44,7 +45,9 @@ private:
        void setup_sensitivity ();
        void restore ();
        wxCheckBox* set_to (wxWindow* w, int& r);
+       void content_change (ChangeType type);
 
+       boost::weak_ptr<const Film> _film;
        wxCheckBox* _force_colour;
        wxColourPickerCtrl* _colour;
        wxCheckBox* _force_effect;