diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-05-28 23:25:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-05-28 23:25:11 +0100 |
| commit | 93439dbc6d93dafd88e80d51d6473c8d97aa02c7 (patch) | |
| tree | 60696c8c2e35a7035800aa2b8b4becdd56b339a8 /src/wx/kdm_dialog.h | |
| parent | 487b34e3dfdcbeea608aa89d4999c6f201a74583 (diff) | |
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.
Diffstat (limited to 'src/wx/kdm_dialog.h')
| -rw-r--r-- | src/wx/kdm_dialog.h | 12 |
1 files changed, 10 insertions, 2 deletions
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<std::pair<wxTreeItemId, boost::shared_ptr<Cinema> > > selected_cinemas () const; std::list<std::pair<wxTreeItemId, boost::shared_ptr<Screen> > > 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<wxTreeItemId, boost::shared_ptr<Cinema> > _cinemas; std::map<wxTreeItemId, boost::shared_ptr<Screen> > _screens; + std::vector<CPLSummary> _cpls; }; |
