X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fkdm_dialog.h;h=5588aa9f235ecf2f9a9d3a98a4d9d876eb7df156;hb=e02afbbc64a6f615e450a3c68b8900588bd21fd0;hp=0fc95db8443dee447023e7170b3ee964c0daef85;hpb=391d85619ac19a2a93696ddc35c222eb9bb5d9d6;p=dcpomatic.git diff --git a/src/wx/kdm_dialog.h b/src/wx/kdm_dialog.h index 0fc95db84..5588aa9f2 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,9 @@ class DirPickerCtrl; class Cinema; class Screen; +class Film; +class ScreensPanel; +struct CPLSummary; class KDMDialog : public wxDialog { @@ -44,37 +48,21 @@ public: boost::posix_time::ptime from () const; /** @return KDM until time in local time */ boost::posix_time::ptime until () 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); - void add_screen (boost::shared_ptr, boost::shared_ptr); - 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 (); 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; - wxButton* _remove_cinema; - wxButton* _add_screen; - wxButton* _edit_screen; - wxButton* _remove_screen; + + ScreensPanel* _screens; wxDatePickerCtrl* _from_date; wxDatePickerCtrl* _until_date; wxTimePickerCtrl* _from_time; @@ -93,8 +81,5 @@ private: #endif wxRadioButton* _email; - wxTreeItemId _root; - std::map > _cinemas; - std::map > _screens; std::vector _cpls; };