Add GDC and accounts icon.
[dcpomatic.git] / src / wx / download_certificate_dialog.cc
index a2219cd6fec7a865d182d3a003a349a70130fae6..a1209700166524051984049ced10917ff475f211 100644 (file)
@@ -19,6 +19,9 @@
 */
 
 #include "dolby_doremi_certificate_panel.h"
+#include "barco_alchemy_certificate_panel.h"
+#include "christie_certificate_panel.h"
+#include "gdc_certificate_panel.h"
 #include "download_certificate_dialog.h"
 #include "wx_util.h"
 
@@ -42,7 +45,10 @@ DownloadCertificateDialog::DownloadCertificateDialog (wxWindow* parent)
        font.SetPointSize (font.GetPointSize() - 1);
        _message->SetFont (font);
 
-       _pages.push_back (new DolbyDoremiCertificatePanel (_notebook, _message, this));
+       _pages.push_back (new DolbyDoremiCertificatePanel (this));
+       _pages.push_back (new BarcoAlchemyCertificatePanel (this));
+       _pages.push_back (new ChristieCertificatePanel (this));
+       _pages.push_back (new GDCCertificatePanel (this));
 
        BOOST_FOREACH (DownloadCertificatePanel* i, _pages) {
                _notebook->AddPage (i, i->name(), true);
@@ -59,8 +65,9 @@ DownloadCertificateDialog::DownloadCertificateDialog (wxWindow* parent)
        _download->Bind (wxEVT_BUTTON, boost::bind (&DownloadCertificateDialog::download, this));
        _download->Enable (false);
 
-       wxNotebookEvent ev;
-       page_changed (ev);
+       _notebook->SetSelection (0);
+
+       setup_sensitivity ();
 }
 
 DownloadCertificateDialog::~DownloadCertificateDialog ()