]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/filename.h
set wxDIALOG_UNIT_COMPATIBILITY to 0 by default
[wxWidgets.git] / include / wx / filename.h
index 131b6fc51e38aa93e4d6146408837135145b9d48..b3b961c056d148031e0326c95f2fe5fe4529f51a 100644 (file)
@@ -367,9 +367,11 @@ public:
     void RemoveLastDir() { RemoveDir(GetDirCount() - 1); }
 
     // Other accessors
-    void SetExt( const wxString &ext )          { m_ext = ext; }
+    void SetExt( const wxString &ext )          { m_ext = ext; m_hasExt = !m_ext.empty(); }
+    void ClearExt()                             { m_ext = wxEmptyString; m_hasExt = false; }
+    void SetEmptyExt()                          { m_ext = wxT(""); m_hasExt = true; }
     wxString GetExt() const                     { return m_ext; }
-    bool HasExt() const                         { return !m_ext.empty(); }
+    bool HasExt() const                         { return m_hasExt; }
 
     void SetName( const wxString &name )        { m_name = name; }
     wxString GetName() const                    { return m_name; }
@@ -424,7 +426,7 @@ public:
                           wxString *path,
                           wxString *name,
                           wxString *ext,
-                          wxPathFormat format = wxPATH_NATIVE)
+                          wxPathFormat format)
     {
         SplitPath(fullpath, volume, path, name, ext, NULL, format);
     }