using boost::bind;
using boost::optional;
using std::shared_ptr;
-using boost::function;
+using std::function;
#if BOOST_VERSION >= 106100
using namespace boost::placeholders;
#endif
CertificateChainEditor::export_chain ()
{
auto d = new wxFileDialog (
- this, _("Select Chain File"), wxEmptyString, _("certificate_chain.pem"), wxT("PEM files (*.pem)|*.pem"),
+ this, _("Select Chain File"), wxEmptyString, wxT("certificate_chain.pem"), wxT("PEM files (*.pem)|*.pem"),
wxFD_SAVE | wxFD_OVERWRITE_PROMPT
);
chain->set_key (dcp::file_to_string (p));
_set (chain);
update_private_key ();
- } catch (dcp::MiscError& e) {
+ } catch (std::exception& e) {
error_dialog (this, _("Could not read certificate file."), std_to_wx(e.what()));
}
}
}
auto d = new wxFileDialog (
- this, _("Select Key File"), wxEmptyString, _("private_key.pem"), wxT ("PEM files (*.pem)|*.pem"),
+ this, _("Select Key File"), wxEmptyString, wxT("private_key.pem"), wxT("PEM files (*.pem)|*.pem"),
wxFD_SAVE | wxFD_OVERWRITE_PROMPT
);
{
auto m = new StaticText (_panel, _("Decrypting KDMs"));
m->SetFont (subheading_font);
- sizer->Add (m, 0, wxALL, _border);
+ sizer->Add (m, 0, wxALL | wxEXPAND, _border);
}
auto buttons = new wxBoxSizer (wxVERTICAL);
{
auto m = new StaticText (_panel, _("Signing DCPs and KDMs"));
m->SetFont (subheading_font);
- sizer->Add (m, 0, wxALL, _border);
+ sizer->Add (m, 0, wxALL | wxEXPAND, _border);
}
auto signing_advanced = new Button (_panel, _("Advanced..."));
if (!config->dcp_issuer().empty()) {
default_name += "_" + std_to_wx(careful_string_filter(config->dcp_issuer()));
}
- /// TRANSLATORS: this is the suffix of the defautl filename used when exporting KDM decryption leaf certificates
- default_name += _("_kdm_decryption_cert.pem");
+ default_name += wxT("_kdm_decryption_cert.pem");
auto d = new wxFileDialog (
_panel, _("Select Certificate File"), wxEmptyString, default_name, wxT("PEM files (*.pem)|*.pem"),
wxBitmap
LocationsPage::GetLargeIcon () const
{
- return wxBitmap ("locations", wxBITMAP_TYPE_PNG_RESOURCE);
+ return wxBitmap(bitmap_path("locations"), wxBITMAP_TYPE_PNG);
}
#endif