X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fdownload_certificate_dialog.h;h=7d319dcfe5e64f26f9ebca8e6e5afdf57addecca;hb=1a14ae26a73489ae8990bfda1a432d229c3bb2d5;hp=11f1afe424a55591f67699b7b1e3226f1b870632;hpb=5dc5a43bf61847cf863b29ef47d0046a9d4fdef0;p=dcpomatic.git diff --git a/src/wx/download_certificate_dialog.h b/src/wx/download_certificate_dialog.h index 11f1afe42..7d319dcfe 100644 --- a/src/wx/download_certificate_dialog.h +++ b/src/wx/download_certificate_dialog.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2015 Carl Hetherington 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 @@ -17,30 +17,27 @@ */ -#ifndef DCPOMATIC_DOWNLOAD_CERTIFICATE_DIALOG_H -#define DCPOMATIC_DOWNLOAD_CERTIFICATE_DIALOG_H - #include -#include -#include +#include + +class DownloadCertificatePanel; class DownloadCertificateDialog : public wxDialog { public: - DownloadCertificateDialog (wxWindow *, boost::function); - virtual void setup () {} - -protected: - void add_common_widgets (); - - boost::function _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 _pages; + std::vector _setup; + wxButton* _download; + wxStaticText* _message; +};