Split KDM output stuff into a separate panel.
[dcpomatic.git] / src / wx / kdm_dialog.h
index 5588aa9f235ecf2f9a9d3a98a4d9d876eb7df156..6400ebb6c807b8cba9cedf499c580b70540a4753 100644 (file)
 #include <map>
 
 class wxTreeCtrl;
-class wxDatePickerCtrl;
-class wxTimePickerCtrl;
-class wxDirPickerCtrl;
-class DirPickerCtrl;
 
 class Cinema;
 class Screen;
 class Film;
 class ScreensPanel;
+class KDMTimingPanel;
+class KDMOutputPanel;
 struct CPLSummary;
 
 class KDMDialog : public wxDialog
@@ -43,13 +41,13 @@ public:
        KDMDialog (wxWindow *, boost::shared_ptr<const Film>);
 
        std::list<boost::shared_ptr<Screen> > 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 cpl () const;
+
        boost::filesystem::path directory () const;
        bool write_to () const;
        dcp::Formulation formulation () const;
@@ -60,26 +58,14 @@ private:
        void update_cpl_summary ();
        void cpl_browse_clicked ();
 
-       static boost::posix_time::ptime posix_time (wxDatePickerCtrl *, wxTimePickerCtrl *);
-
        ScreensPanel* _screens;
-       wxDatePickerCtrl* _from_date;
-       wxDatePickerCtrl* _until_date;
-       wxTimePickerCtrl* _from_time;
-       wxTimePickerCtrl* _until_time;
+       KDMTimingPanel* _timing;
+       KDMOutputPanel* _output;
        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;
-#else
-       wxDirPickerCtrl* _folder;
-#endif
-       wxRadioButton* _email;
 
        std::vector<CPLSummary> _cpls;
 };