X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fdownload_certificate_dialog.h;h=97d7d17ff205eb339534272775607543c3376433;hb=refs%2Fheads%2Fattic%2Fwarnings;hp=9fac23d58436e3aa0b6dd39bb09ced74bd41c41b;hpb=4438476ea07f171ef4909f0882b490dfcfb7094c;p=dcpomatic.git diff --git a/src/wx/download_certificate_dialog.h b/src/wx/download_certificate_dialog.h index 9fac23d58..97d7d17ff 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,29 +17,28 @@ */ -#ifndef DCPOMATIC_DOWNLOAD_CERTIFICATE_DIALOG_H -#define DCPOMATIC_DOWNLOAD_CERTIFICATE_DIALOG_H - #include -#include -#include -#include "table_dialog.h" +#include + +class DownloadCertificatePanel; -class DownloadCertificateDialog : public TableDialog +class DownloadCertificateDialog : public wxDialog { public: - DownloadCertificateDialog (wxWindow *, boost::function); + DownloadCertificateDialog (wxWindow* parent); + ~DownloadCertificateDialog (); -protected: - void add_common_widgets (); - - boost::function _load; - wxSizer* _overall_sizer; - wxStaticText* _message; - wxButton* _download; + dcp::Certificate certificate () const; + + void setup_sensitivity (); private: - virtual void download () = 0; -}; + void download (); + void page_changed (wxNotebookEvent &); -#endif + wxNotebook* _notebook; + std::vector _pages; + std::vector _setup; + wxButton* _download; + wxStaticText* _message; +};