/*
- 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
*/
-#include <boost/bind.hpp>
-#include "download_certificate_dialog.h"
#include "wx_util.h"
+#include "download_certificate_dialog.h"
+#include <boost/bind.hpp>
using boost::function;
DownloadCertificateDialog::DownloadCertificateDialog (wxWindow* parent, function<void (boost::filesystem::path)> load)
: TableDialog (parent, _("Download certificate"), 2, true)
, _load (load)
+ , _message (0)
+ , _download (0)
{
}
_download->Enable (false);
layout ();
+
+ wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
+ ok->Enable (false);
}
+
+void
+DownloadCertificateDialog::downloaded (bool done)
+{
+ wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
+ ok->Enable (done);
+}
+
+