Prevent crashes when coming out of the add screen dialog without giving a certificate.
[dcpomatic.git] / src / wx / screen_dialog.h
index 78869782f93bd629274f804d6287465ff2b959c3..271ae2055a884123bb916004f7602f41c444319f 100644 (file)
 */
 
 #include <wx/wx.h>
+#include <boost/shared_ptr.hpp>
+#include <libdcp/certificates.h>
 
 class ScreenDialog : public wxDialog
 {
 public:
-       ScreenDialog (wxWindow *, std::string, std::string name = "");
+       ScreenDialog (wxWindow *, std::string, std::string name = "", boost::shared_ptr<libdcp::Certificate> c = boost::shared_ptr<libdcp::Certificate> ());
 
        std::string name () const;
+       boost::shared_ptr<libdcp::Certificate> certificate () const;
        
 private:
+       void load_certificate ();
+       void setup_sensitivity ();
+       
        wxTextCtrl* _name;
+       wxButton* _certificate_load;
+       wxTextCtrl* _certificate_text;
+
+       boost::shared_ptr<libdcp::Certificate> _certificate;
 };