X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ffile_dialog_wrapper.h;h=dd63ff2dae447bfdaccd6a9842e0f02092fd8d20;hb=c49d716e46274a23f516812ff48ec636396d397e;hp=d30d6ef91e3926c55b6e88e0a181e9bbd30a3088;hpb=4caa756210d97b7aa253375028b72797ba9616f0;p=dcpomatic.git diff --git a/src/wx/file_dialog_wrapper.h b/src/wx/file_dialog_wrapper.h index d30d6ef91..dd63ff2da 100644 --- a/src/wx/file_dialog_wrapper.h +++ b/src/wx/file_dialog_wrapper.h @@ -1,19 +1,20 @@ /* Copyright (C) 2012-2015 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -31,7 +32,7 @@ public: void set (T) {} - T get () + boost::optional get () { return T (dcp::file_to_string (wx_to_std (_dialog->GetPath ()))); } @@ -48,7 +49,7 @@ public: delete this; } -private: +protected: wxWindow* _parent; wxFileDialog* _dialog; };