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

@@ -131,6 +131,11 @@ public:
// $HOME under Unix and ~/Documents under Mac
virtual wxString GetDocumentsDir() const;
// return the directory for the documents files used by this application:
// it's a subdirectory of GetDocumentsDir() constructed using the
// application name/vendor if it exists or just GetDocumentsDir() otherwise
virtual wxString GetAppDocumentsDir() const;
// return the temporary directory for the current user
virtual wxString GetTempDir() const;
@@ -151,8 +156,8 @@ public:
protected:
// append the path component, with a leading path seperator if a
// path seperator or dot (.) is not already at the end of dir
// append the path component, with a leading path separator if a
// path separator or dot (.) is not already at the end of dir
static wxString AppendPathComponent(const wxString& dir, const wxString& component);
// append application information determined by m_usedAppInfo to dir