Rearrange cerficate download UI a bit.
[dcpomatic.git] / src / wx / download_certificate_dialog.h
index 11f1afe424a55591f67699b7b1e3226f1b870632..7d319dcfe5e64f26f9ebca8e6e5afdf57addecca 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 
 */
 
-#ifndef DCPOMATIC_DOWNLOAD_CERTIFICATE_DIALOG_H
-#define DCPOMATIC_DOWNLOAD_CERTIFICATE_DIALOG_H
-
 #include <wx/wx.h>
-#include <boost/function.hpp>
-#include <boost/filesystem.hpp>
+#include <wx/notebook.h>
+
+class DownloadCertificatePanel;
 
 class DownloadCertificateDialog : public wxDialog
 {
 public:
-       DownloadCertificateDialog (wxWindow *, boost::function<void (boost::filesystem::path)>);
-       virtual void setup () {}
-
-protected:
-       void add_common_widgets ();
-       
-       boost::function<void (boost::filesystem::path)> _load;
-       wxSizer* _overall_sizer;
-       wxGauge* _gauge;
-       wxStaticText* _message;
-       wxButton* _download;
+       DownloadCertificateDialog (wxWindow* parent);
+
+       dcp::Certificate certificate () const;
+
+       void setup_sensitivity ();
 
 private:
-       virtual void download () = 0;
-};
+       void download ();
+       void page_changed ();
 
-#endif
+       wxNotebook* _notebook;
+       std::vector<DownloadCertificatePanel*> _pages;
+       std::vector<bool> _setup;
+       wxButton* _download;
+       wxStaticText* _message;
+};