#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;
};