Cleanup: rename some methods in FilePickerCtrl and use boost::filesystem::path more.
[dcpomatic.git] / src / wx / file_picker_ctrl.h
index df7226655ecbb75fd69b47b97a514aea4b678923..2411254faa53c0c385164ad3f0eeb168f364e692 100644 (file)
 
 */
 
+
 #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;