Emit no audio from DCPs if none is mapped
[dcpomatic.git] / src / wx / file_dialog.h
index f4a7ad81edc51810df599ce2d5f9eaceb2875a1c..a87c6539515becc62c158eb3ade25e5ae99f4e70 100644 (file)
@@ -24,26 +24,34 @@ LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
 LIBDCP_ENABLE_WARNINGS
 #include <boost/filesystem.hpp>
+#include <boost/optional.hpp>
 #include <vector>
 
 
 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<std::string> initial_filename = boost::optional<std::string>(),
+               boost::optional<boost::filesystem::path> override_path = boost::optional<boost::filesystem::path>()
                );
 
        /** @return true if OK was clicked */
        bool show();
 
+       boost::filesystem::path path() const;
        std::vector<boost::filesystem::path> paths() const;
 
 private:
        std::string _initial_path_key;
+       bool _multiple;
 };