summaryrefslogtreecommitdiff
path: root/src/wx/file_picker_ctrl.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-01-16 00:33:05 +0100
committerCarl Hetherington <cth@carlh.net>2024-01-16 21:33:29 +0100
commitd464a939f9f851e835b2a4926fafd6eadaa183de (patch)
tree824a491f85ef056d401b37f006bbced3f63919a5 /src/wx/file_picker_ctrl.h
parent4790b63ceadc38fba77954f531a455fff28f8b13 (diff)
Cleanup: rename some methods in FilePickerCtrl and use boost::filesystem::path more.
Diffstat (limited to 'src/wx/file_picker_ctrl.h')
-rw-r--r--src/wx/file_picker_ctrl.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/wx/file_picker_ctrl.h b/src/wx/file_picker_ctrl.h
index df7226655..2411254fa 100644
--- a/src/wx/file_picker_ctrl.h
+++ b/src/wx/file_picker_ctrl.h
@@ -18,25 +18,28 @@
*/
+
#include <dcp/warnings.h>
LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
LIBDCP_ENABLE_WARNINGS
+#include <boost/filesystem.hpp>
+
class FilePickerCtrl : public wxPanel
{
public:
FilePickerCtrl (wxWindow* parent, wxString prompt, wxString wildcard, bool open, bool warn_overwrite);
- wxString GetPath () const;
- void SetPath (wxString);
- void SetWildcard (wxString);
+ boost::filesystem::path path() const;
+ void set_path(boost::filesystem::path path);
+ void set_wildcard(wxString);
private:
void browse_clicked ();
wxButton* _file;
- wxString _path;
+ boost::filesystem::path _path;
wxSizer* _sizer;
wxString _prompt;
wxString _wildcard;