adding more native icons, fixes #8778

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-03-23 16:12:02 +00:00
parent b4857be372
commit 910e9b3be4

View File

@@ -203,6 +203,54 @@ bool wxIcon::LoadFile(
{
theId = kGenericDocumentIcon ;
}
else if ( filename == wxT("wxICON_CDROM") )
{
theId = kGenericCDROMIcon ;
}
else if ( filename == wxT("wxICON_FLOPPY") )
{
theId = kGenericFloppyIcon ;
}
else if ( filename == wxT("wxICON_HARDDISK") )
{
theId = kGenericHardDiskIcon ;
}
else if ( filename == wxT("wxICON_REMOVABLE") )
{
theId = kGenericRemovableMediaIcon ;
}
else if ( filename == wxT("wxICON_DELETE") )
{
theId = kTrashIcon ;
}
else if ( filename == wxT("wxICON_GO_BACK") )
{
theId = kBackwardArrowIcon ;
}
else if ( filename == wxT("wxICON_GO_FORWARD") )
{
theId = kForwardArrowIcon ;
}
else if ( filename == wxT("wxICON_GO_HOME") )
{
theId = kUserFolderIcon ;
}
else if ( filename == wxT("wxICON_HELP_FOLDER") )
{
theId = kHelpFolderIcon ;
}
else if ( filename == wxT("wxICON_HELP_SETTINGS") )
{
theId = kGenericFontIcon ;
}
else if ( filename == wxT("wxICON_HELP_PAGE") )
{
theId = kGenericDocumentIcon ;
}
else if ( filename == wxT("wxICON_PRINT") )
{
theId = kPrintMonitorFolderIcon ;
}
else
{
IconRef iconRef = NULL ;