Icon.st
changeset 264 6c886ecb050d
parent 219 106b86ca81da
child 269 6c70d392634b
equal deleted inserted replaced
263:091fa4a2f558 264:6c886ecb050d
    36 documentation
    36 documentation
    37 "
    37 "
    38     The Icon class keeps track of already loaded Images and caches
    38     The Icon class keeps track of already loaded Images and caches
    39     them for later reuse.
    39     them for later reuse.
    40     Icons are accessed by a symbolic name, so there is no need to
    40     Icons are accessed by a symbolic name, so there is no need to
    41     remember their names (they must have been remembered under that name
    41     remember their names (they must have been registered under that name
    42     before - of course).
    42     before - of course).
    43 
    43 
    44     Icon was mostly added for ST-80 Compatibility:
    44     Icon was mostly added for ST-80 Compatibility:
       
    45 
    45     Images are returned via the #constantNamed: message which is used by 
    46     Images are returned via the #constantNamed: message which is used by 
    46     some ST-80 PD classes and returns corresponding ST/X icons.
    47     some ST-80 PD classes and returns corresponding ST/X icons.
    47     Notice, that ST/X does not provide Icon instances - Icon only consists
    48     Notice, that ST/X does not provide Icon instances - Icon only consists
    48     of class mimicri protocol, to make your life easier.
    49     of class mimicri protocol, to make your life easier.
    49 
    50 
    52     name symbol 
    53     name symbol 
    53     (i.e. for the `Icon constantNamed:#foo', a 'foo.xbm' file is required).
    54     (i.e. for the `Icon constantNamed:#foo', a 'foo.xbm' file is required).
    54 
    55 
    55     You can grab those icons from manchester or from the PrimeTime Freeware 
    56     You can grab those icons from manchester or from the PrimeTime Freeware 
    56     (PTF) CD. A copy of those bitmaps (from the PTF-CD) is found in 
    57     (PTF) CD. A copy of those bitmaps (from the PTF-CD) is found in 
    57     goodies/bitmaps/st80bitmaps.
    58     'goodies/bitmaps/st80bitmaps'.
    58 
    59 
    59     CAVEAT:
    60     CAVEAT:
    60         masks are not yet implemented
    61         masks are not yet implemented
    61 
    62 
    62     [See also:]
    63     [See also:]
    87     ].
    88     ].
    88     ^ nil
    89     ^ nil
    89 !
    90 !
    90 
    91 
    91 replacementNames
    92 replacementNames
    92     "return an ST-80 constant name to ST/X file name translation."
    93     "return an ST-80 constant name to ST/X file name translation.
       
    94      This was added for ST-80 compatibility, to support code which uses
       
    95      things like 'Icon constantNamed:#categoryBrowser'."
    93 
    96 
    94     ^ #( 
    97     ^ #( 
    95 	#(file             FBrowser)
    98         #(file             FBrowser)
    96 	#(debugger         Debugger)
    99         #(debugger         Debugger)
    97 	#(systembrowser    SBrowser)
   100         #(systembrowser    SBrowser)
    98 	#(classbrowser     SBrowser)
   101         #(classbrowser     SBrowser)
    99 	#(categoryBrowser  SBrowser)
   102         #(categoryBrowser  SBrowser)
   100 	#(hierarchyBrowser SBrowser)
   103         #(hierarchyBrowser SBrowser)
   101 	#(methodBrowser    SBrowser)
   104         #(methodBrowser    SBrowser)
   102 	#(launcher         SmalltalkX)
   105         #(launcher         SmalltalkX)
   103 	#(workspace        SmalltalkX)
   106         #(workspace        SmalltalkX)
   104 	#(transcript       SmalltalkX)
   107         #(transcript       SmalltalkX)
   105 	#(inspector        Inspector)
   108         #(inspector        Inspector)
   106 	#(default          SmalltalkX)
   109         #(default          SmalltalkX)
   107        )
   110        )
       
   111 
       
   112     "
       
   113      Icon constantNamed:#categoryBrowser
       
   114      Icon constantNamed:#default
       
   115     "
       
   116 
       
   117     "Modified: 13.5.1996 / 10:29:43 / cg"
   108 ! !
   118 ! !
   109 
   119 
   110 !Icon class methodsFor:'accessing'!
   120 !Icon class methodsFor:'accessing'!
   111 
   121 
   112 constantNamed:aName
   122 constantNamed:aName
   158 ! !
   168 ! !
   159 
   169 
   160 !Icon class methodsFor:'documentation'!
   170 !Icon class methodsFor:'documentation'!
   161 
   171 
   162 version
   172 version
   163     ^ '$Header: /cvs/stx/stx/libview2/Icon.st,v 1.10 1996-04-25 16:21:10 cg Exp $'
   173     ^ '$Header: /cvs/stx/stx/libview2/Icon.st,v 1.11 1996-05-13 08:30:42 cg Exp $'
   164 ! !
   174 ! !
   165 Icon initialize!
   175 Icon initialize!