X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fscreen_dialog.h;h=2985516c48870a6f6d68cb1613eef8b288c3470c;hb=e170d9908c191180aefe71ff7cfa81a5ba08ed83;hp=5c6d964b8297681405d501543c14843f463d5253;hpb=308488324dbc4d8b709d3fb1dc9fee0479346c21;p=dcpomatic.git diff --git a/src/wx/screen_dialog.h b/src/wx/screen_dialog.h index 5c6d964b8..2985516c4 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 FileDialogWrapper; -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; };