Make filters option respect OK/Cancel.
[dcpomatic.git] / src / wx / content_advanced_dialog.h
index b01669bac1e44c0cb4d16b6158aa543152fa6e2b..26c1a374afc2dab02ea7487faf0a0eb77bf30f78 100644 (file)
 */
 
 
-#include "lib/warnings.h"
-DCPOMATIC_DISABLE_WARNINGS
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
-DCPOMATIC_ENABLE_WARNINGS
-#include <boost/shared_ptr.hpp>
+LIBDCP_ENABLE_WARNINGS
+#include <memory>
 #include <vector>
 
 
 class Content;
 class Filter;
+class LanguageTagWidget;
 
 
 class ContentAdvancedDialog : public wxDialog
 {
 public:
-       ContentAdvancedDialog (wxWindow* parent, boost::shared_ptr<Content> content);
+       ContentAdvancedDialog (wxWindow* parent, std::shared_ptr<Content> content);
+
+       bool ignore_video() const;
+       std::vector<Filter const*> filters() {
+               return _filters_list;
+       }
 
 private:
-       void ignore_video_changed (wxCommandEvent& ev);
        void edit_filters ();
        void filters_changed (std::vector<Filter const *> filters);
        void setup_filters ();
        void set_video_frame_rate ();
        void video_frame_rate_changed ();
+       void setup_sensitivity ();
+       void burnt_subtitle_changed ();
+       void burnt_subtitle_language_changed ();
 
-       boost::shared_ptr<Content> _content;
+       std::shared_ptr<Content> _content;
+       bool _filters_allowed = false;
+       std::vector<Filter const*> _filters_list;
 
        wxStaticText* _filters;
        wxButton* _filters_button;
        wxTextCtrl* _video_frame_rate;
        wxButton* _set_video_frame_rate;
+       wxCheckBox* _burnt_subtitle;
+       LanguageTagWidget* _burnt_subtitle_language;
+       wxCheckBox* _ignore_video;
 };