From f1b08e84a191caaa975569e0cac89658058c7730 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 27 Sep 2010 11:51:50 +0000 Subject: [PATCH] Fix typo in wxStandardPathsBase::ResourceCat description and document it. Document the enum itself and also correct GetLocalizedResourcesDir() documentation which didn't specify the default value for the category parameter. Closes #12523. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/stdpaths.h | 2 +- interface/wx/stdpaths.h | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/include/wx/stdpaths.h b/include/wx/stdpaths.h index 0b6f8479d4..eac35d3957 100644 --- a/include/wx/stdpaths.h +++ b/include/wx/stdpaths.h @@ -28,7 +28,7 @@ class WXDLLIMPEXP_FWD_BASE wxStandardPaths; class WXDLLIMPEXP_BASE wxStandardPathsBase { public: - // possible resources categorires + // possible resources categories enum ResourceCat { // no special category diff --git a/interface/wx/stdpaths.h b/interface/wx/stdpaths.h index 3b9f022f66..4d25136413 100644 --- a/interface/wx/stdpaths.h +++ b/interface/wx/stdpaths.h @@ -54,6 +54,17 @@ class wxStandardPaths { public: + /// Possible values for category parameter of GetLocalizedResourcesDir(). + enum ResourceCat + { + /// No special category, this is the default. + ResourceCat_None, + + /// Message catalog resources category. + ResourceCat_Messages + }; + + /** MSW-specific function undoing the effect of IgnoreAppSubDir() calls. @@ -174,8 +185,9 @@ public: @since 2.7.0 */ - virtual wxString GetLocalizedResourcesDir(const wxString& lang, - ResourceCat category) const; + virtual wxString + GetLocalizedResourcesDir(const wxString& lang, + ResourceCat category = ResourceCat_None) const; /** Return the directory where the loadable modules (plugins) live. -- 2.45.2