X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ffile_dialog_wrapper.h;h=8223371dbce0399b2d40ff221dff092eae9d22ec;hb=e887b089ca77d30f612e93bdcd70f77376b13af6;hp=251d1b71d15711462cd0be9cee6a0f038bbb6c9a;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/wx/file_dialog_wrapper.h b/src/wx/file_dialog_wrapper.h index 251d1b71d..8223371db 100644 --- a/src/wx/file_dialog_wrapper.h +++ b/src/wx/file_dialog_wrapper.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2015 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,8 +18,11 @@ */ + +#include "wx_util.h" #include + template class FileDialogWrapper { @@ -32,9 +35,9 @@ public: void set (T) {} - T get () + boost::optional get () { - return T (dcp::file_to_string (wx_to_std (_dialog->GetPath ()))); + return T (dcp::file_to_string(wx_to_std(_dialog->GetPath()))); } int ShowModal () @@ -49,7 +52,7 @@ public: delete this; } -private: +protected: wxWindow* _parent; wxFileDialog* _dialog; };