]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/private/fswatcher.h
Just remove redundant wxDocument::SetDocumentTemplate() call.
[wxWidgets.git] / include / wx / private / fswatcher.h
index abdc8e244c9ade20e01068480fac2297bd22761d..cfffba4a899fcbf3165683fd1f8a916f314b19e9 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     File system watcher impl classes
 // Author:      Bartosz Bekier
 // Created:     2009-05-26
-// RCS-ID:      $Id$
 // Copyright:   (c) 2009 Bartosz Bekier <bartosz.bekier@gmail.com>
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -89,6 +88,12 @@ public:
         return true;
     }
 
+    // Check whether any filespec matches the file's ext (if present)
+    bool MatchesFilespec(const wxFileName& fn, const wxString& filespec) const
+    {
+        return filespec.empty() || wxMatchWild(filespec, fn.GetFullName());
+    }
+
 protected:
     virtual bool DoAdd(wxSharedPtr<wxFSWatchEntry> watch) = 0;