]> git.saurik.com Git - wxWidgets.git/commitdiff
adding more native icons, fixes #8778
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 23 Mar 2009 16:12:02 +0000 (16:12 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 23 Mar 2009 16:12:02 +0000 (16:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/icon.cpp

index ddd2dd43dc0dd9983d095b6852efe2996b2e9984..704608f33ed209b70c0848f2788a04907daa9892 100644 (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 ;