Allow optional override of the initial path taken from the key.
[dcpomatic.git] / src / wx / file_dialog.h
index f4a7ad81edc51810df599ce2d5f9eaceb2875a1c..cc6d720c1e388ccedaccc0f40360d9f5bba2ed6d 100644 (file)
@@ -24,6 +24,7 @@ LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
 LIBDCP_ENABLE_WARNINGS
 #include <boost/filesystem.hpp>
+#include <boost/optional.hpp>
 #include <vector>
 
 
@@ -35,7 +36,8 @@ public:
                wxString title,
                wxString allowed,
                long style,
-               std::string initial_path_key
+               std::string initial_path_key,
+               boost::optional<boost::filesystem::path> override_path = boost::optional<boost::filesystem::path>()
                );
 
        /** @return true if OK was clicked */