Make filters option respect OK/Cancel.
[dcpomatic.git] / src / wx / content_advanced_dialog.h
index 84ad4afac196b896e78151a4ecbe45a033ac53fc..26c1a374afc2dab02ea7487faf0a0eb77bf30f78 100644 (file)
 */
 
 
-#include "lib/warnings.h"
-DCPOMATIC_DISABLE_WARNINGS
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
-DCPOMATIC_ENABLE_WARNINGS
+LIBDCP_ENABLE_WARNINGS
 #include <memory>
 #include <vector>
 
@@ -37,8 +37,12 @@ class ContentAdvancedDialog : public wxDialog
 public:
        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 ();
@@ -49,6 +53,8 @@ private:
        void burnt_subtitle_language_changed ();
 
        std::shared_ptr<Content> _content;
+       bool _filters_allowed = false;
+       std::vector<Filter const*> _filters_list;
 
        wxStaticText* _filters;
        wxButton* _filters_button;
@@ -56,5 +62,6 @@ private:
        wxButton* _set_video_frame_rate;
        wxCheckBox* _burnt_subtitle;
        LanguageTagWidget* _burnt_subtitle_language;
+       wxCheckBox* _ignore_video;
 };