]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stdpaths.h
fix the bug which prevented the same wxFile/DirDialog object from being used twice...
[wxWidgets.git] / include / wx / stdpaths.h
index 233fc7f3a835c7d4d0acbe34ab9c699c7808526d..1be4077d6596bf96a4ae66429b6439f84e608178 100644 (file)
@@ -17,6 +17,7 @@
 #if wxUSE_STDPATHS
 
 #include "wx/string.h"
+#include "wx/filefn.h"
 
 // ----------------------------------------------------------------------------
 // wxStandardPaths returns the standard locations in the file system
@@ -104,11 +105,18 @@ public:
     // prefix/share/locale/lang/LC_MESSAGES)
     virtual wxString
     GetLocalizedResourcesDir(const wxChar *lang,
-                             ResourceCat category = ResourceCat_None) const
+                             ResourceCat WXUNUSED(category)
+                                = ResourceCat_None) const
     {
         return GetResourcesDir() + wxFILE_SEP_PATH + lang;
     }
 
+    // return the "Documents" directory for the current user
+    //
+    // C:\Documents and Settings\username\Documents under Windows,
+    // $HOME under Unix and ~/Documents under Mac
+    virtual wxString GetDocumentsDir() const;
+
 
     // virtual dtor for the base class
     virtual ~wxStandardPathsBase();
@@ -147,6 +155,7 @@ public:
     virtual wxString GetLocalDataDir() const { return m_prefix; }
     virtual wxString GetUserDataDir() const { return m_prefix; }
     virtual wxString GetPluginsDir() const { return m_prefix; }
+    virtual wxString GetDocumentsDir() const { return m_prefix; }
 
 private:
     wxString m_prefix;