X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fscreen_dialog.h;h=5ae369415e001cdf9cf145adeafdbf1bcb0d1573;hb=03dd6e03f5ee261b9c1ed9328ad2762ef3b62057;hp=78869782f93bd629274f804d6287465ff2b959c3;hpb=7f8062032e16d9c9cfc28659a6da67f8205dc27b;p=dcpomatic.git diff --git a/src/wx/screen_dialog.h b/src/wx/screen_dialog.h index 78869782f..5ae369415 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 @@ -17,15 +17,50 @@ */ +#include "editable_list.h" +#include #include +#include +#include + +class Progress; +class CertificateFileDialogWrapper; class ScreenDialog : public wxDialog { public: - ScreenDialog (wxWindow *, std::string, std::string name = ""); + ScreenDialog ( + wxWindow *, + std::string, + std::string name = "", + boost::optional c = boost::optional (), + std::vector d = std::vector () + ); std::string name () const; - + boost::optional recipient () const; + std::vector trusted_devices () { + return _trusted_devices; + } + private: + void get_recipient_from_file (); + void load_recipient (boost::filesystem::path); + void download_recipient (); + void setup_sensitivity (); + void set_recipient (boost::optional); + + void set_trusted_devices (std::vector d) { + _trusted_devices = d; + } + + wxGridBagSizer* _sizer; wxTextCtrl* _name; + wxStaticText* _recipient_thumbprint; + wxButton* _get_recipient_from_file; + wxButton* _download_recipient; + EditableList* _trusted_device_list; + + boost::optional _recipient; + std::vector _trusted_devices; };