X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fkdm_dialog.h;h=48681a92e20f38893ab64d1926f02a349137a783;hb=5c306d46d8293e0f26fbc6bf8c48f7cdd2508e3a;hp=90354a2d1310dfc2e7f50138ab34f7bc4aea3336;hpb=e45fe284b7c334d64c2fe105c0564c5015d3747f;p=dcpomatic.git diff --git a/src/wx/kdm_dialog.h b/src/wx/kdm_dialog.h index 90354a2d1..48681a92e 100644 --- a/src/wx/kdm_dialog.h +++ b/src/wx/kdm_dialog.h @@ -17,12 +17,13 @@ */ -#include -#include -#include +#include "wx_util.h" +#include #include #include -#include "wx_util.h" +#include +#include +#include class wxTreeCtrl; class wxDatePickerCtrl; @@ -32,6 +33,8 @@ class DirPickerCtrl; class Cinema; class Screen; +class Film; +class CPLSummary; class KDMDialog : public wxDialog { @@ -39,11 +42,16 @@ public: KDMDialog (wxWindow *, boost::shared_ptr); std::list > screens () const; + + /** @return KDM from time in local time */ boost::posix_time::ptime from () const; + /** @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; + dcp::Formulation formulation () const; private: void add_cinema (boost::shared_ptr); @@ -57,9 +65,12 @@ 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 *); - + wxTreeCtrl* _targets; wxButton* _add_cinema; wxButton* _edit_cinema; @@ -71,7 +82,12 @@ 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; + wxChoice* _type; wxRadioButton* _write_to; #ifdef DCPOMATIC_USE_OWN_DIR_PICKER DirPickerCtrl* _folder; @@ -83,4 +99,5 @@ private: wxTreeItemId _root; std::map > _cinemas; std::map > _screens; + std::vector _cpls; };