Replace May/Done/NotDone signal sets with one signal and extend
[dcpomatic.git] / src / wx / subtitle_appearance_dialog.h
index 8d36d4da83e27bb99f266959bacc0d7fa2b97e85..80ef584704a17e2f3453aedc3ccca6ec90e55a25 100644 (file)
@@ -30,29 +30,38 @@ class wxGridBagSizer;
 class Content;
 class RGBAColourPicker;
 class FFmpegSubtitleStream;
+class wxCheckBox;
+class wxWidget;
 
 class SubtitleAppearanceDialog : public wxDialog
 {
 public:
-       SubtitleAppearanceDialog (wxWindow* parent, boost::shared_ptr<Content> content);
+       SubtitleAppearanceDialog (wxWindow* parent, 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);
 
        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;