From 93439dbc6d93dafd88e80d51d6473c8d97aa02c7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 28 May 2014 23:25:11 +0100 Subject: Modify KDM generation to work with CPLs rather than DCPs, and allow user to specify a particular CPL to use. Tidy up the KDM dialog a bit. --- src/wx/kdm_dialog.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/wx/kdm_dialog.h') diff --git a/src/wx/kdm_dialog.h b/src/wx/kdm_dialog.h index db51d6d03..6327b29e8 100644 --- a/src/wx/kdm_dialog.h +++ b/src/wx/kdm_dialog.h @@ -45,7 +45,7 @@ public: /** @return KDM until time in local time */ boost::posix_time::ptime until () const; - boost::filesystem::path dcp () const; + boost::filesystem::path cpl () const; boost::filesystem::path directory () const; bool write_to () const; @@ -61,6 +61,9 @@ private: std::list > > selected_cinemas () const; std::list > > selected_screens () const; void setup_sensitivity (); + void update_cpl_choice (); + void update_cpl_summary (); + void cpl_browse_clicked (); static boost::posix_time::ptime posix_time (wxDatePickerCtrl *, wxTimePickerCtrl *); @@ -75,7 +78,11 @@ private: wxDatePickerCtrl* _until_date; wxTimePickerCtrl* _from_time; wxTimePickerCtrl* _until_time; - wxListCtrl* _dcps; + wxChoice* _cpl; + wxButton* _cpl_browse; + wxStaticText* _dcp_directory; + wxStaticText* _cpl_id; + wxStaticText* _cpl_annotation_text; wxRadioButton* _write_to; #ifdef DCPOMATIC_USE_OWN_DIR_PICKER DirPickerCtrl* _folder; @@ -87,4 +94,5 @@ private: wxTreeItemId _root; std::map > _cinemas; std::map > _screens; + std::vector _cpls; }; -- cgit v1.2.3