X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fkdm_output_panel.h;h=0025b0072655292f837ccbd424c15bc84e5beebd;hb=d5d9e143a5778928c5f386a7bd9cb140d4f1191a;hp=ee6a94e6857d68ba795557e297651eefb1201b63;hpb=f4964573a60155545e02cbbebc47199f7480cf14;p=dcpomatic.git diff --git a/src/wx/kdm_output_panel.h b/src/wx/kdm_output_panel.h index ee6a94e68..0025b0072 100644 --- a/src/wx/kdm_output_panel.h +++ b/src/wx/kdm_output_panel.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2015 Carl Hetherington + Copyright (C) 2015-2022 Carl Hetherington This file is part of DCP-o-matic. @@ -18,37 +18,66 @@ */ + +#include "lib/kdm_with_metadata.h" #include "wx_util.h" -#include "name_format_editor.h" -#include "lib/kdm_filename_format.h" #include #include #include -class wxDirPickerCtrl; + class DirPickerCtrl; +class Job; +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; - bool write_to () const; dcp::Formulation formulation () const; - KDMFilenameFormat name_format () 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; + } - void setup_sensitivity (); - void save_kdm_name_format () const; + std::pair, int> make ( + std::list screen_kdms, + std::string name, + std::function confirm_overwrite + ); private: + void kdm_write_type_changed (); + void advanced_clicked (); + void write_to_changed (); + void email_changed (); + wxChoice* _type; - NameFormatEditor* _filename_format; - wxRadioButton* _write_to; + NameFormatEditor* _container_name_format; + NameFormatEditor* _filename_format; + wxCheckBox* _write_to; #ifdef DCPOMATIC_USE_OWN_PICKER DirPickerCtrl* _folder; #else wxDirPickerCtrl* _folder; #endif - wxRadioButton* _email; + wxRadioButton* _write_flat; + wxRadioButton* _write_folder; + wxRadioButton* _write_zip; + wxCheckBox* _email; + bool _forensic_mark_video; + bool _forensic_mark_audio; + boost::optional _forensic_mark_audio_up_to; };