X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fkdm_output_panel.h;h=3b82321c6c2aa58c8d2b64bc8753653868358bdd;hb=f23b9491dcd25d02f7966f39dfdbb0ad998aa5ad;hp=772c12a0d31ba9b124ae1cc08af8a6bcf6f786f0;hpb=ccc8409dceedcf71872b2846b9b4a4dea9042bda;p=dcpomatic.git diff --git a/src/wx/kdm_output_panel.h b/src/wx/kdm_output_panel.h index 772c12a0d..3b82321c6 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,45 +18,81 @@ */ -#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 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 (); boost::filesystem::path directory () const; dcp::Formulation formulation () const; + bool forensic_mark_video () const { + return _forensic_mark_video; + } + 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, - boost::shared_ptr log + std::function confirm_overwrite ); + bool method_selected() const; + + void set_annotation_text(std::string text); + std::string annotation_text() const; + + boost::signals2::signal MethodChanged; + private: - wxChoice* _type; + void kdm_write_type_changed (); + void advanced_clicked (); + void write_to_changed (); + void email_changed (); + void add_email_addresses_clicked (); + + KDMChoice* _type; + wxTextCtrl* _annotation_text; + NameFormatEditor* _container_name_format; NameFormatEditor* _filename_format; - wxCheckBox* _write_to; + CheckBox* _write_to; #ifdef DCPOMATIC_USE_OWN_PICKER DirPickerCtrl* _folder; #else wxDirPickerCtrl* _folder; #endif - wxCheckBox* _email; + wxRadioButton* _write_flat; + wxRadioButton* _write_folder; + wxRadioButton* _write_zip; + CheckBox* _email; + bool _forensic_mark_video; + bool _forensic_mark_audio; + boost::optional _forensic_mark_audio_up_to; + std::vector _extra_addresses; };