X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fkdm_dialog.h;h=0c6076fb4c1e7d65802931a054be8cec50c70757;hb=313319ba2d8544bc25524e02e634804a503b54f1;hp=7d64fea7776783e36fde90d627dfe89ae565fa60;hpb=736b3a068ba5a402b541d32f270669e6e1a4e5c4;p=dcpomatic.git diff --git a/src/wx/kdm_dialog.h b/src/wx/kdm_dialog.h index 7d64fea77..0c6076fb4 100644 --- a/src/wx/kdm_dialog.h +++ b/src/wx/kdm_dialog.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 Carl Hetherington + Copyright (C) 2012-2016 Carl Hetherington This file is part of DCP-o-matic. @@ -18,48 +18,41 @@ */ + #include "wx_util.h" -#include "lib/kdm_name_format.h" #include #include -#include #include #include + +namespace dcpomatic { + class Screen; +} + class Cinema; -class Screen; class Film; -class ScreensPanel; -class KDMTimingPanel; -class KDMOutputPanel; class KDMCPLPanel; +class KDMOutputPanel; +class KDMTimingPanel; +class ScreensPanel; struct CPLSummary; + class KDMDialog : public wxDialog { public: - KDMDialog (wxWindow *, boost::shared_ptr); - - std::list > screens () const; - /** @return KDM from time in local time; note that ptime has no time zone information */ - boost::posix_time::ptime from () const; - /** @return KDM until time in local time; note that ptime has no time zone information */ - boost::posix_time::ptime until () const; - - boost::filesystem::path cpl () const; - - boost::filesystem::path directory () const; - bool write_to () const; - dcp::Formulation formulation () const; - KDMNameFormat name_format () const; - - int ShowModal (); + KDMDialog (wxWindow *, std::shared_ptr film); private: void setup_sensitivity (); + void make_clicked (); + bool confirm_overwrite (boost::filesystem::path path); + std::weak_ptr _film; ScreensPanel* _screens; KDMTimingPanel* _timing; KDMCPLPanel* _cpl; KDMOutputPanel* _output; + wxButton* _make; };