X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ffilm_name_location_dialog.h;h=a659ab22f2f925ab351fc28af7f9dd72cfa311a2;hb=HEAD;hp=cfa29670154db5e4751a23697ce10231b7c74eaa;hpb=0f42e807a707249cd1a60fa6e476cb47a4147c5a;p=dcpomatic.git diff --git a/src/wx/film_name_location_dialog.h b/src/wx/film_name_location_dialog.h index cfa296701..083d07cd4 100644 --- a/src/wx/film_name_location_dialog.h +++ b/src/wx/film_name_location_dialog.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2014 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,18 +18,24 @@ */ + +#include "table_dialog.h" +#include "wx_util.h" +#include +LIBDCP_DISABLE_WARNINGS #include #include -#include "wx_util.h" -#include "table_dialog.h" +LIBDCP_ENABLE_WARNINGS + +class CheckBox; class DirPickerCtrl; + class FilmNameLocationDialog : public TableDialog { public: FilmNameLocationDialog (wxWindow *, wxString title, bool offer_templates); - ~FilmNameLocationDialog (); boost::filesystem::path path () const; bool check_path (); @@ -37,6 +43,8 @@ public: private: void use_template_clicked (); + void setup_sensitivity (); + void folder_changed (); wxTextCtrl* _name; #ifdef DCPOMATIC_USE_OWN_PICKER @@ -44,7 +52,8 @@ private: #else wxDirPickerCtrl* _folder; #endif - wxCheckBox* _use_template; + CheckBox* _use_template; wxChoice* _template_name; static boost::optional _directory; }; +