X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fscreen_dialog.h;h=3e110d230bb4c48bfa6e9fe16e8de939c12efb33;hb=6de35d058821acc092d2aae75543024a97026b8a;hp=0cd7d3c4963f77da9ab7eb0f0bcb7b1cc073d1f2;hpb=cc3900735839ff4b0da0c046b5c606c440ba917a;p=dcpomatic.git diff --git a/src/wx/screen_dialog.h b/src/wx/screen_dialog.h index 0cd7d3c49..3e110d230 100644 --- a/src/wx/screen_dialog.h +++ b/src/wx/screen_dialog.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 Carl Hetherington + Copyright (C) 2012-2014 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 @@ -20,22 +20,29 @@ #include #include #include +#include "table_dialog.h" -class ScreenDialog : public wxDialog +class Progress; + +class ScreenDialog : public TableDialog { public: - ScreenDialog (wxWindow *, std::string, std::string name = "", boost::shared_ptr c = boost::shared_ptr ()); + ScreenDialog (wxWindow *, std::string, std::string name = "", boost::optional c = boost::optional ()); std::string name () const; - boost::shared_ptr certificate () const; + boost::optional certificate () const; private: - void load_certificate (); + void select_certificate (); + void load_certificate (boost::filesystem::path); + void download_certificate (); void setup_sensitivity (); wxTextCtrl* _name; - wxButton* _certificate_load; + wxChoice* _manufacturer; + wxButton* _load_certificate; + wxButton* _download_certificate; wxTextCtrl* _certificate_text; - boost::shared_ptr _certificate; + boost::optional _certificate; };