+ wxCheckBox* _check_for_updates;
+ wxCheckBox* _check_for_test_updates;
+};
+
+class CertificateChainEditor : public wxDialog
+{
+public:
+ CertificateChainEditor (
+ wxWindow* parent,
+ wxString title,
+ int border,
+ boost::function<void (boost::shared_ptr<dcp::CertificateChain>)> set,
+ boost::function<boost::shared_ptr<const dcp::CertificateChain> (void)> get,
+ boost::function<bool (void)> nag_alter
+ );
+
+ void add_button (wxWindow* button);
+
+private:
+ void add_certificate ();
+ void remove_certificate ();
+ void export_certificate ();
+ void update_certificate_list ();
+ void remake_certificates ();
+ void update_sensitivity ();
+ void update_private_key ();
+ void import_private_key ();
+ void export_private_key ();
+ void export_chain ();
+
+ wxListCtrl* _certificates;
+ wxButton* _add_certificate;
+ wxButton* _export_certificate;
+ wxButton* _remove_certificate;
+ wxButton* _remake_certificates;
+ wxStaticText* _private_key;
+ wxButton* _import_private_key;
+ wxButton* _export_private_key;
+ wxButton* _export_chain;
+ wxStaticText* _private_key_bad;
+ wxSizer* _sizer;
+ wxBoxSizer* _button_sizer;
+ boost::function<void (boost::shared_ptr<dcp::CertificateChain>)> _set;
+ boost::function<boost::shared_ptr<const dcp::CertificateChain> (void)> _get;
+ boost::function<bool (void)> _nag_alter;
+};
+
+class KeysPage : public Page
+{
+public:
+ KeysPage (wxSize panel_size, int border)
+ : Page (panel_size, border)
+ {}
+
+ wxString GetName () const;
+
+#ifdef DCPOMATIC_OSX
+ wxBitmap GetLargeIcon () const
+ {
+ return wxBitmap ("keys", wxBITMAP_TYPE_PNG_RESOURCE);
+ }