Take Film pointer out of Content.
[dcpomatic.git] / src / wx / subtitle_appearance_dialog.h
index 8d36d4da83e27bb99f266959bacc0d7fa2b97e85..d02e283d90a8d80e06eba09e6ee1ac1919fa42e7 100644 (file)
@@ -30,29 +30,40 @@ class wxGridBagSizer;
 class Content;
 class RGBAColourPicker;
 class FFmpegSubtitleStream;
+class wxCheckBox;
+class wxWidget;
+class Film;
 
 class SubtitleAppearanceDialog : public wxDialog
 {
 public:
-       SubtitleAppearanceDialog (wxWindow* parent, boost::shared_ptr<Content> content);
+       SubtitleAppearanceDialog (wxWindow* parent, boost::shared_ptr<const Film> film, boost::shared_ptr<Content> content, boost::shared_ptr<TextContent> caption);
 
        void apply ();
 
 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;
        wxChoice* _effect;
+       wxCheckBox* _force_effect_colour;
        wxColourPickerCtrl* _effect_colour;
+       wxCheckBox* _force_fade_in;
        Timecode<ContentTime>* _fade_in;
+       wxCheckBox* _force_fade_out;
        Timecode<ContentTime>* _fade_out;
        wxSpinCtrl* _outline_width;
        wxGridBagSizer* _table;
        std::map<RGBA, RGBAColourPicker*> _pickers;
 
        boost::shared_ptr<Content> _content;
+       boost::shared_ptr<TextContent> _caption;
        boost::shared_ptr<FFmpegSubtitleStream> _stream;
 
        boost::signals2::scoped_connection _content_connection;