From: Stefan Csomor Date: Mon, 23 Mar 2009 16:12:02 +0000 (+0000) Subject: adding more native icons, fixes #8778 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/910e9b3be4d63ae8901dad154af1b6b6bdf5e56b adding more native icons, fixes #8778 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/carbon/icon.cpp b/src/osx/carbon/icon.cpp index ddd2dd43dc..704608f33e 100644 --- a/src/osx/carbon/icon.cpp +++ b/src/osx/carbon/icon.cpp @@ -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 ;