X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fkdm_output_panel.h;h=040815392d0036cd2a69b84a1643e65b2a00d827;hb=790db8faab093231664c402fcc33b0b96687e222;hp=c52fa7a1530ca6418b1493e194f36cb87604c511;hpb=006e38346a8bcdcc889979b7c00802d9bb8fc6f8;p=dcpomatic.git diff --git a/src/wx/kdm_output_panel.h b/src/wx/kdm_output_panel.h index c52fa7a15..040815392 100644 --- a/src/wx/kdm_output_panel.h +++ b/src/wx/kdm_output_panel.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2015-2017 Carl Hetherington + Copyright (C) 2015-2022 Carl Hetherington This file is part of DCP-o-matic. @@ -18,24 +18,30 @@ */ -#include "lib/screen_kdm.h" + #include "wx_util.h" -#include "name_format_editor.h" +#include "lib/kdm_with_metadata.h" #include +#include +LIBDCP_DISABLE_WARNINGS #include +LIBDCP_ENABLE_WARNINGS #include -class wxRadioButton; -class wxDirPickerCtrl; + +class CheckBox; class DirPickerCtrl; -class KDMTimingPanel; class Job; -class Log; +class KDMChoice; +class NameFormatEditor; +class wxDirPickerCtrl; +class wxRadioButton; + class KDMOutputPanel : public wxPanel { public: - KDMOutputPanel (wxWindow* parent, bool interop); + KDMOutputPanel (wxWindow* parent); void setup_sensitivity (); @@ -47,22 +53,27 @@ public: bool forensic_mark_audio () const { return _forensic_mark_audio; } + boost::optional forensic_mark_audio_up_to () const { + return _forensic_mark_audio_up_to; + } - std::pair, int> make ( - std::list > screen_kdms, + std::pair, int> make ( + std::list screen_kdms, std::string name, - KDMTimingPanel* timing, - boost::function confirm_overwrite + std::function confirm_overwrite ); private: void kdm_write_type_changed (); void advanced_clicked (); + void write_to_changed (); + void email_changed (); + void add_email_addresses_clicked (); - wxChoice* _type; + KDMChoice* _type; NameFormatEditor* _container_name_format; NameFormatEditor* _filename_format; - wxCheckBox* _write_to; + CheckBox* _write_to; #ifdef DCPOMATIC_USE_OWN_PICKER DirPickerCtrl* _folder; #else @@ -71,7 +82,9 @@ private: wxRadioButton* _write_flat; wxRadioButton* _write_folder; wxRadioButton* _write_zip; - wxCheckBox* _email; + CheckBox* _email; bool _forensic_mark_video; bool _forensic_mark_audio; + boost::optional _forensic_mark_audio_up_to; + std::vector _extra_addresses; };