]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/image.cpp
pressing PageDown and then PageUp should return to the same item
[wxWidgets.git] / src / common / image.cpp
index 14b9e91fe32631d69436b87a69d9d068079e58bf..10035ce9653fad70c0b0635ccae66715d56da02a 100644 (file)
@@ -1390,6 +1390,24 @@ void wxImage::CleanUpHandlers()
 }
 
 
+wxString wxImage::GetImageExtWildcard()
+{
+    wxString fmts;
+
+    wxList& Handlers = wxImage::GetHandlers();
+    wxNode* Node = Handlers.GetFirst();
+    while ( Node )
+    {
+        wxImageHandler* Handler = (wxImageHandler*)Node->GetData();
+        fmts += wxT("*.") + Handler->GetExtension();
+        Node = Node->GetNext();
+        if ( Node ) fmts += wxT(";");
+    }
+
+    return wxT("(") + fmts + wxT(")|") + fmts;
+}
+
+
 //-----------------------------------------------------------------------------
 // wxImageHandler
 //-----------------------------------------------------------------------------