#include "barco_alchemy_certificate_panel.h"
#include "christie_certificate_panel.h"
#include "gdc_certificate_panel.h"
+#include "qube_certificate_panel.h"
#include "download_certificate_dialog.h"
#include "static_text.h"
#include "wx_util.h"
+#include "dcpomatic_button.h"
using boost::optional;
_notebook = new wxNotebook (this, wxID_ANY);
sizer->Add (_notebook, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
- _download = new wxButton (this, wxID_ANY, _("Download"));
+ _download = new Button (this, _("Download"));
sizer->Add (_download, 0, wxEXPAND | wxALL, DCPOMATIC_SIZER_GAP);
_message = new StaticText (this, wxT (""));
_pages.push_back (new BarcoAlchemyCertificatePanel (this));
_pages.push_back (new ChristieCertificatePanel (this));
_pages.push_back (new GDCCertificatePanel (this));
+ _pages.push_back (new QubeCertificatePanel (this, N_("QXI")));
+ _pages.push_back (new QubeCertificatePanel (this, N_("QXPD")));
- BOOST_FOREACH (DownloadCertificatePanel* i, _pages) {
+ for (auto i: _pages) {
_notebook->AddPage (i, i->name(), true);
}
_notebook->SetSelection (0);
+ SetMinSize (wxSize(640, -1));
+
setup_sensitivity ();
}
}
void
-DownloadCertificateDialog::page_changed (wxNotebookEvent &)
+DownloadCertificateDialog::page_changed (wxNotebookEvent& ev)
{
setup_sensitivity ();
+ ev.Skip ();
}