X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fkdm_dialog.h;h=db51d6d0380baf0dba4c8f510d5625396cac0c46;hb=9e758fddfb8bbadb1fc84e393daa815445d5e9d5;hp=4e449cee33e969b58c916ba55f59f883571f46b4;hpb=7f8062032e16d9c9cfc28659a6da67f8205dc27b;p=dcpomatic.git diff --git a/src/wx/kdm_dialog.h b/src/wx/kdm_dialog.h index 4e449cee3..db51d6d03 100644 --- a/src/wx/kdm_dialog.h +++ b/src/wx/kdm_dialog.h @@ -19,8 +19,10 @@ #include #include +#include #include #include +#include "wx_util.h" class wxTreeCtrl; class wxDatePickerCtrl; @@ -34,21 +36,33 @@ class Screen; class KDMDialog : public wxDialog { public: - KDMDialog (wxWindow *); + 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 directory () const; + bool write_to () const; private: void add_cinema (boost::shared_ptr); void add_screen (boost::shared_ptr, boost::shared_ptr); - void targets_selection_changed (wxCommandEvent &); - void add_cinema_clicked (wxCommandEvent &); - void edit_cinema_clicked (wxCommandEvent &); - void remove_cinema_clicked (wxCommandEvent &); - void add_screen_clicked (wxCommandEvent &); - void edit_screen_clicked (wxCommandEvent &); - void remove_screen_clicked (wxCommandEvent &); + void add_cinema_clicked (); + void edit_cinema_clicked (); + void remove_cinema_clicked (); + void add_screen_clicked (); + void edit_screen_clicked (); + void remove_screen_clicked (); std::list > > selected_cinemas () const; std::list > > selected_screens () const; void setup_sensitivity (); + + static boost::posix_time::ptime posix_time (wxDatePickerCtrl *, wxTimePickerCtrl *); wxTreeCtrl* _targets; wxButton* _add_cinema; @@ -58,14 +72,17 @@ private: wxButton* _edit_screen; wxButton* _remove_screen; wxDatePickerCtrl* _from_date; - wxDatePickerCtrl* _to_date; + wxDatePickerCtrl* _until_date; wxTimePickerCtrl* _from_time; - wxTimePickerCtrl* _to_time; -#ifdef __WXMSW__ + wxTimePickerCtrl* _until_time; + wxListCtrl* _dcps; + wxRadioButton* _write_to; +#ifdef DCPOMATIC_USE_OWN_DIR_PICKER DirPickerCtrl* _folder; #else wxDirPickerCtrl* _folder; #endif + wxRadioButton* _email; wxTreeItemId _root; std::map > _cinemas;