added wxStandardPaths::GetAppDocumentsDir() and use it by default for loading/saving documents in wxDocManager

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-01-21 14:01:30 +00:00
parent 0cdbed4cfa
commit d8efd2198f
6 changed files with 62 additions and 7 deletions

View File

@@ -53,6 +53,23 @@ public:
*/
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.
Example return values:
@@ -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;