X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43c48e1e53d74cef62d15f08f015d9efeb45a0c1..ae901b234c4a0aa7c1777b3bd181dd7f8517ad21:/interface/wx/stdpaths.h diff --git a/interface/wx/stdpaths.h b/interface/wx/stdpaths.h index 5cd13375d7..af4dac1d29 100644 --- a/interface/wx/stdpaths.h +++ b/interface/wx/stdpaths.h @@ -51,7 +51,24 @@ public: /** Returns reference to the unique global standard paths object. */ - static wxStandardPathsBase Get(); + static wxStandardPathsBase& Get(); + + /** + Return the directory for the document files used by this application. + + If the application-specific directory doesn't exist, this function + returns GetDocumentsDir(). + + Example return values: + - Unix: @c ~/appname + - Windows: @c "C:\Documents and Settings\username\My Documents\appname" + - Mac: @c ~/Documents/appname + + @since 2.9.0 + + @see GetAppDocumentsDir() + */ + virtual wxString GetAppDocumentsDir() const; /** Return the directory containing the system config files. @@ -78,12 +95,15 @@ public: /** Return the directory containing the current user's documents. + Example return values: - Unix: @c ~ (the home directory) - Windows: @c "C:\Documents and Settings\username\My Documents" - Mac: @c ~/Documents @since 2.7.0 + + @see GetAppDocumentsDir() */ virtual wxString GetDocumentsDir() const;