2 Copyright (C) 2015-2022 Carl Hetherington <cth@carlh.net>
4 This file is part of DCP-o-matic.
6 DCP-o-matic is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 DCP-o-matic is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
22 #include "lib/kdm_with_metadata.h"
24 #include <dcp/types.h>
26 #include <boost/filesystem.hpp>
32 class NameFormatEditor;
33 class wxDirPickerCtrl;
37 class KDMOutputPanel : public wxPanel
40 KDMOutputPanel (wxWindow* parent);
42 void setup_sensitivity ();
44 boost::filesystem::path directory () const;
45 dcp::Formulation formulation () const;
46 bool forensic_mark_video () const {
47 return _forensic_mark_video;
49 bool forensic_mark_audio () const {
50 return _forensic_mark_audio;
52 boost::optional<int> forensic_mark_audio_up_to () const {
53 return _forensic_mark_audio_up_to;
56 std::pair<std::shared_ptr<Job>, int> make (
57 std::list<KDMWithMetadataPtr> screen_kdms,
59 std::function<bool (boost::filesystem::path)> confirm_overwrite
63 void kdm_write_type_changed ();
64 void advanced_clicked ();
65 void write_to_changed ();
66 void email_changed ();
69 NameFormatEditor* _container_name_format;
70 NameFormatEditor* _filename_format;
71 wxCheckBox* _write_to;
72 #ifdef DCPOMATIC_USE_OWN_PICKER
73 DirPickerCtrl* _folder;
75 wxDirPickerCtrl* _folder;
77 wxRadioButton* _write_flat;
78 wxRadioButton* _write_folder;
79 wxRadioButton* _write_zip;
81 bool _forensic_mark_video;
82 bool _forensic_mark_audio;
83 boost::optional<int> _forensic_mark_audio_up_to;