X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fscreen_dialog.h;h=c88b3bb312170660c710e7ca09c0120fbf424309;hb=c2ce6455ababea2f1db9fb5d8771fa1327c2fcdb;hp=385707ea839785dbd6c42a22b34e27f40a59ecce;hpb=5dc5a43bf61847cf863b29ef47d0046a9d4fdef0;p=dcpomatic.git diff --git a/src/wx/screen_dialog.h b/src/wx/screen_dialog.h index 385707ea8..c88b3bb31 100644 --- a/src/wx/screen_dialog.h +++ b/src/wx/screen_dialog.h @@ -17,31 +17,32 @@ */ +#include "table_dialog.h" +#include #include #include -#include class Progress; -class ScreenDialog : public wxDialog +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 select_certificate (); void load_certificate (boost::filesystem::path); void download_certificate (); void setup_sensitivity (); - + wxTextCtrl* _name; wxChoice* _manufacturer; wxButton* _load_certificate; wxButton* _download_certificate; wxTextCtrl* _certificate_text; - boost::shared_ptr _certificate; + boost::optional _certificate; };