/* Copyright (C) 2023 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 "lib/enum_indexed_vector.h" #include "lib/film.h" #include #include #include class CheckBox; class DCPContent; class Film; class wxBoxSizer; class wxGridBagSizer; class DCPReferencingDialog : public wxDialog { public: DCPReferencingDialog(wxWindow* parent, std::shared_ptr film); private: enum class Part { VIDEO, AUDIO, SUBTITLES, CLOSED_CAPTIONS, COUNT }; void setup(); void checkbox_changed(std::weak_ptr content, CheckBox* check_box, Part part); void film_changed(ChangeType type, FilmProperty property); void film_content_changed(ChangeType type, int property); std::shared_ptr _film; wxGridBagSizer* _dcp_grid; wxBoxSizer* _overall_sizer; struct DCP { std::shared_ptr content; EnumIndexedVector check_box; }; std::vector _dcps; boost::signals2::scoped_connection _film_connection; boost::signals2::scoped_connection _film_content_connection; };