/*
- Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
*/
+
+#include "wx_util.h"
#include <dcp/util.h>
+
template <class T>
class FileDialogWrapper
{
void set (T) {}
- T get ()
+ boost::optional<T> 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 ()
delete this;
}
-private:
+protected:
wxWindow* _parent;
wxFileDialog* _dialog;
};