diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-11-11 22:54:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-11-11 22:54:51 +0100 |
| commit | 8282169ec34b0186f5052a2d931360779c932492 (patch) | |
| tree | 96d70cd1ee52d51bfbb51d2adb291d82c86fc531 | |
| parent | e631609fae5ea0ac452c98a4a8623996df37e4be (diff) | |
Add FileDialog::path().
| -rw-r--r-- | src/wx/file_dialog.cc | 7 | ||||
| -rw-r--r-- | src/wx/file_dialog.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/wx/file_dialog.cc b/src/wx/file_dialog.cc index b65077784..bed8b4e0d 100644 --- a/src/wx/file_dialog.cc +++ b/src/wx/file_dialog.cc @@ -56,6 +56,13 @@ FileDialog::FileDialog( } +boost::filesystem::path +FileDialog::path() const +{ + return wx_to_std(GetPath()); +} + + vector<boost::filesystem::path> FileDialog::paths() const { diff --git a/src/wx/file_dialog.h b/src/wx/file_dialog.h index cc6d720c1..022c3dbed 100644 --- a/src/wx/file_dialog.h +++ b/src/wx/file_dialog.h @@ -43,6 +43,7 @@ public: /** @return true if OK was clicked */ bool show(); + boost::filesystem::path path() const; std::vector<boost::filesystem::path> paths() const; private: |
