]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/filename.h
wxConfig clean up and bug fix for record defaults
[wxWidgets.git] / include / wx / filename.h
index 0c51ce5c0c2dd4d998c58aae3a90632d2539e4b7..36680b9fcb6db27bbe0f10d1105fbf105814e5c1 100644 (file)
@@ -231,6 +231,18 @@ public:
                    const wxString& cwd = wxEmptyString,
                    wxPathFormat format = wxPATH_NATIVE);
 
+        // get a path path relative to the given base directory, i.e. opposite
+        // of Normalize
+        //
+        // pass an empty string to get a path relative to the working directory
+        //
+        // returns TRUE if the file name was modified, FALSE if we failed to do
+        // anything with it (happens when the file is on a different volume,
+        // for example)
+    bool MakeRelativeTo(const wxString& pathBase = _T(""),
+                        wxPathFormat format = wxPATH_NATIVE);
+
+
     // Comparison
 
         // compares with the rules of this platform