X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/70cd62e95ce3f56d2e219f3448e1923a1a988a0d..0b49ccf8d66e2568e2b0de85c25b406aad39f3b1:/src/common/image.cpp?ds=sidebyside diff --git a/src/common/image.cpp b/src/common/image.cpp index 14b9e91fe3..10035ce965 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -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 //-----------------------------------------------------------------------------