]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix typo in wxStandardPathsBase::ResourceCat description and document it.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 27 Sep 2010 11:51:50 +0000 (11:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 27 Sep 2010 11:51:50 +0000 (11:51 +0000)
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
interface/wx/stdpaths.h

index 0b6f8479d41d477c11be87e81c823179f84073be..eac35d3957af580dabbb076571904144217bcf8c 100644 (file)
@@ -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
index 3b9f022f666065982d87e4187fb5c6f859658a5f..4d251364135683aa9b886c183729f567ce4d8bd5 100644 (file)
 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.