Note that newer libsub version is required.
[dcpomatic.git] / src / wx / film_name_location_dialog.h
index f2f0826803c3ec98ec1deddc13ea4252f1b2eb07..083d07cd4d227c5b257a56a87ba5bf5cb302a2a6 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
-#include "wx_util.h"
+
 #include "table_dialog.h"
-#include "lib/warnings.h"
-DCPOMATIC_DISABLE_WARNINGS
+#include "wx_util.h"
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
 #include <wx/filepicker.h>
-DCPOMATIC_ENABLE_WARNINGS
+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 ();
@@ -40,6 +43,8 @@ public:
 
 private:
        void use_template_clicked ();
+       void setup_sensitivity ();
+       void folder_changed ();
 
        wxTextCtrl* _name;
 #ifdef DCPOMATIC_USE_OWN_PICKER
@@ -47,7 +52,8 @@ private:
 #else
        wxDirPickerCtrl* _folder;
 #endif
-       wxCheckBox* _use_template;
+       CheckBox* _use_template;
        wxChoice* _template_name;
        static boost::optional<boost::filesystem::path> _directory;
 };
+