X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fscreen_dialog.h;h=5ae369415e001cdf9cf145adeafdbf1bcb0d1573;hb=03dd6e03f5ee261b9c1ed9328ad2762ef3b62057;hp=3601a8f6c133e57a556ce22db289fa5bd732629a;hpb=41b7a04cf3dedaa93aaf3c050db7a693281417f7;p=dcpomatic.git diff --git a/src/wx/screen_dialog.h b/src/wx/screen_dialog.h index 3601a8f6c..5ae369415 100644 --- a/src/wx/screen_dialog.h +++ b/src/wx/screen_dialog.h @@ -17,32 +17,50 @@ */ +#include "editable_list.h" +#include #include #include -#include -#include "table_dialog.h" +#include class Progress; +class CertificateFileDialogWrapper; -class ScreenDialog : public TableDialog +class ScreenDialog : public wxDialog { 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::vector d = std::vector () + ); std::string name () const; - boost::shared_ptr certificate () const; - + boost::optional recipient () const; + std::vector trusted_devices () { + return _trusted_devices; + } + private: - void select_certificate (); - void load_certificate (boost::filesystem::path); - void download_certificate (); + 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; - wxChoice* _manufacturer; - wxButton* _load_certificate; - wxButton* _download_certificate; - wxTextCtrl* _certificate_text; + wxStaticText* _recipient_thumbprint; + wxButton* _get_recipient_from_file; + wxButton* _download_recipient; + EditableList* _trusted_device_list; - boost::shared_ptr _certificate; + boost::optional _recipient; + std::vector _trusted_devices; };