X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d9e80dce156d700ec0140a5f84909c6d2be608d1..57f2175441c318e0c39c0e44e606194fd875b5bc:/interface/wx/filename.h diff --git a/interface/wx/filename.h b/interface/wx/filename.h index e4bd0a4dca..050141ad67 100644 --- a/interface/wx/filename.h +++ b/interface/wx/filename.h @@ -42,7 +42,7 @@ enum wxPathNormalize //! and in addition under Windows @c "%var%" is also. wxPATH_NORM_ENV_VARS = 0x0001, - wxPATH_NORM_DOTS = 0x0002, //!< Squeeze all @c ".." and @c "." and prepend the current working directory. + wxPATH_NORM_DOTS = 0x0002, //!< Squeeze all @c ".." and @c ".". wxPATH_NORM_TILDE = 0x0004, //!< Replace @c "~" and @c "~user" (Unix only). wxPATH_NORM_CASE = 0x0008, //!< If the platform is case insensitive, make lowercase the path. wxPATH_NORM_ABSOLUTE = 0x0010, //!< Make the path absolute. @@ -1074,6 +1074,16 @@ public: */ void SetName(const wxString& name); + /** + Sets the full path. + + The @a path argument includes both the path (and the volume, if + supported by @a format) and the name and extension. + + @see GetPath() + */ + void SetPath(const wxString& path, wxPathFormat format = wxPATH_NATIVE); + /** Sets the file creation and last access/modification times (any of the pointers may be @NULL).