diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-11-15 18:38:47 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-11-15 18:38:47 +0000 |
| commit | 1a14ae26a73489ae8990bfda1a432d229c3bb2d5 (patch) | |
| tree | 077589ad4feef778d8646af7a4767cc2e3f870fe /src/wx/download_certificate_dialog.h | |
| parent | ffa5a512112809e2256cae7a01afcd14c99c83a6 (diff) | |
Rearrange cerficate download UI a bit.
Diffstat (limited to 'src/wx/download_certificate_dialog.h')
| -rw-r--r-- | src/wx/download_certificate_dialog.h | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/src/wx/download_certificate_dialog.h b/src/wx/download_certificate_dialog.h index 85d8f15ab..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 <cth@carlh.net> + Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net> 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,27 @@ */ -#ifndef DCPOMATIC_DOWNLOAD_CERTIFICATE_DIALOG_H -#define DCPOMATIC_DOWNLOAD_CERTIFICATE_DIALOG_H - #include <wx/wx.h> -#include <boost/function.hpp> -#include <boost/filesystem.hpp> -#include "table_dialog.h" +#include <wx/notebook.h> + +class DownloadCertificatePanel; -class DownloadCertificateDialog : public TableDialog +class DownloadCertificateDialog : public wxDialog { public: - DownloadCertificateDialog (wxWindow *, boost::function<void (boost::filesystem::path)>); + DownloadCertificateDialog (wxWindow* parent); -protected: - void add_common_widgets (); - void downloaded (bool done); + dcp::Certificate certificate () const; - boost::function<void (boost::filesystem::path)> _load; - wxStaticText* _message; - wxButton* _download; + void setup_sensitivity (); private: - virtual void download () = 0; -}; + void download (); + void page_changed (); -#endif + wxNotebook* _notebook; + std::vector<DownloadCertificatePanel*> _pages; + std::vector<bool> _setup; + wxButton* _download; + wxStaticText* _message; +}; |
