X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ffile_dialog.h;h=a87c6539515becc62c158eb3ade25e5ae99f4e70;hb=HEAD;hp=f4a7ad81edc51810df599ce2d5f9eaceb2875a1c;hpb=13fae8b9710e1f630fafdc62ecd06c723edf7ff0;p=dcpomatic.git diff --git a/src/wx/file_dialog.h b/src/wx/file_dialog.h index f4a7ad81e..a87c65395 100644 --- a/src/wx/file_dialog.h +++ b/src/wx/file_dialog.h @@ -24,26 +24,34 @@ LIBDCP_DISABLE_WARNINGS #include LIBDCP_ENABLE_WARNINGS #include +#include #include class FileDialog : public wxFileDialog { public: + /** @param initial_path_key key in config to use to store and read the initial path + * @param override_path if not-none, this is used as the initial path regardless of the initial_path_key + */ FileDialog( wxWindow* parent, wxString title, wxString allowed, long style, - std::string initial_path_key + std::string initial_path_key, + boost::optional initial_filename = boost::optional(), + boost::optional override_path = boost::optional() ); /** @return true if OK was clicked */ bool show(); + boost::filesystem::path path() const; std::vector paths() const; private: std::string _initial_path_key; + bool _multiple; };