From ccc8409dceedcf71872b2846b9b4a4dea9042bda Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 3 Mar 2017 12:14:56 +0000 Subject: Move common KDM creation / email code into KDMOutputPanel. --- src/wx/kdm_output_panel.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'src/wx/kdm_output_panel.h') diff --git a/src/wx/kdm_output_panel.h b/src/wx/kdm_output_panel.h index 98e2622a9..772c12a0d 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-2017 Carl Hetherington This file is part of DCP-o-matic. @@ -18,6 +18,7 @@ */ +#include "lib/screen_kdm.h" #include "wx_util.h" #include "name_format_editor.h" #include @@ -26,20 +27,27 @@ class wxDirPickerCtrl; class DirPickerCtrl; +class KDMTimingPanel; +class Job; +class Log; class KDMOutputPanel : public wxPanel { public: KDMOutputPanel (wxWindow* parent, bool interop); + void setup_sensitivity (); + boost::filesystem::path directory () const; - bool write_to () const; - bool email () const; dcp::Formulation formulation () const; - dcp::NameFormat name_format () const; - void setup_sensitivity (); - void save_kdm_name_format () const; + std::pair, int> make ( + std::list screen_kdms, + std::string name, + KDMTimingPanel* timing, + boost::function confirm_overwrite, + boost::shared_ptr log + ); private: wxChoice* _type; -- cgit v1.2.3