diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-05 22:56:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-09 13:44:47 +0100 |
| commit | e02afbbc64a6f615e450a3c68b8900588bd21fd0 (patch) | |
| tree | ece9c71c5f0bc3315ae44ccc4c89ee4c7c163d58 /src/wx/kdm_dialog.h | |
| parent | c6578d685186e594c5d2f527d533e5894d9925c2 (diff) | |
Split screens panel from KDMDialog.
Diffstat (limited to 'src/wx/kdm_dialog.h')
| -rw-r--r-- | src/wx/kdm_dialog.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/wx/kdm_dialog.h b/src/wx/kdm_dialog.h index 2621cbbfe..5588aa9f2 100644 --- a/src/wx/kdm_dialog.h +++ b/src/wx/kdm_dialog.h @@ -34,6 +34,7 @@ class DirPickerCtrl; class Cinema; class Screen; class Film; +class ScreensPanel; struct CPLSummary; class KDMDialog : public wxDialog @@ -54,16 +55,6 @@ public: dcp::Formulation formulation () const; private: - void add_cinema (boost::shared_ptr<Cinema>); - void add_screen (boost::shared_ptr<Cinema>, boost::shared_ptr<Screen>); - 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<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 (); @@ -71,13 +62,7 @@ private: 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; @@ -96,8 +81,5 @@ private: #endif wxRadioButton* _email; - wxTreeItemId _root; - std::map<wxTreeItemId, boost::shared_ptr<Cinema> > _cinemas; - std::map<wxTreeItemId, boost::shared_ptr<Screen> > _screens; std::vector<CPLSummary> _cpls; }; |
