/* Copyright (C) 2020 Carl Hetherington This file is part of DCP-o-matic. DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with DCP-o-matic. If not, see . */ #include #include LIBDCP_DISABLE_WARNINGS #include LIBDCP_ENABLE_WARNINGS #include #include #include class CheckBox; class Content; class Filter; class LanguageTagWidget; class ContentAdvancedDialog : public wxDialog { public: ContentAdvancedDialog(wxWindow* parent, std::shared_ptr content); bool ignore_video() const; std::vector filters() { return _filters_list; } boost::optional video_frame_rate() const; boost::optional burnt_subtitle_language() const; private: void edit_filters(); void filters_changed(std::vector const& filters); void setup_filters(); void set_video_frame_rate(); void video_frame_rate_changed(); void setup_sensitivity(); void burnt_subtitle_changed(); std::shared_ptr _content; bool _filters_allowed = false; std::vector _filters_list; wxStaticText* _filters; wxButton* _filters_button; wxTextCtrl* _video_frame_rate; wxButton* _set_video_frame_rate; CheckBox* _burnt_subtitle; LanguageTagWidget* _burnt_subtitle_language; CheckBox* _ignore_video; boost::optional _video_frame_rate_value; };