Applied patch [ 710608 ] wxImage::GetImageExtWildcard for image load/save dialogs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-06-01 16:10:17 +00:00
parent b1b3ddd840
commit 939fadc8aa
3 changed files with 44 additions and 1 deletions

View 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
//-----------------------------------------------------------------------------