UIPainter.st
changeset 2399 1ae184ce9595
parent 2397 07ab2bdac066
child 2400 40e49dac643e
equal deleted inserted replaced
2398:bdefc2be920a 2399:1ae184ce9595
    70                                 as opposed to a regular painter, which stores the spec in a class.
    70                                 as opposed to a regular painter, which stores the spec in a class.
    71                                 A spec-only painter has no class to store additional specs (esp.
    71                                 A spec-only painter has no class to store additional specs (esp.
    72                                 menu- and tabSpecs) and should not offer postBuild and other
    72                                 menu- and tabSpecs) and should not offer postBuild and other
    73                                 callback functions.
    73                                 callback functions.
    74 "
    74 "
       
    75 ! !
       
    76 
       
    77 !UIPainter class methodsFor:'initialization'!
       
    78 
       
    79 initialize
       
    80     SelectionPanelClass isNil ifTrue:[
       
    81         SelectionPanelClass := UISelectionPanel
       
    82     ].
    75 ! !
    83 ! !
    76 
    84 
    77 !UIPainter class methodsFor:'instance creation'!
    85 !UIPainter class methodsFor:'instance creation'!
    78 
    86 
    79 openOnClass:aClass andSelector:aSelector
    87 openOnClass:aClass andSelector:aSelector
  1014     ^Icon
  1022     ^Icon
  1015         constantNamed:'UIPainter class iconResizeTB'
  1023         constantNamed:'UIPainter class iconResizeTB'
  1016         ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
  1024         ifAbsentPut:[(Depth2Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(2)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
  1017 @@@@@@@@@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@G@@@@@@@G@@@@@@@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@@@G@@@@@@
  1025 @@@@@@@@@@@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@G@@@@@@@G@@@@@@@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@@@G@G@G@@@G@@@@@@
  1018 @G@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@B@@@@@@@BO??0O??2G#C@G'''' G/?0G''''#G'''' G'''' G'''' G'''' G''''"G/?0G'''' G#C@O??1O??0@@@A@@@B@@@@') ; yourself); yourself]
  1026 @G@@@@@@@@@@@@@@B*****(@B*****(@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 255 255 255 0 0 127 170 170 170]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@B@@@@@@@BO??0O??2G#C@G'''' G/?0G''''#G'''' G'''' G'''' G'''' G''''"G/?0G'''' G#C@O??1O??0@@@A@@@B@@@@') ; yourself); yourself]
  1019 ! !
       
  1020 
       
  1021 !UIPainter class methodsFor:'initialize'!
       
  1022 
       
  1023 initialize
       
  1024     SelectionPanelClass isNil ifTrue:[
       
  1025         SelectionPanelClass := UISelectionPanel
       
  1026     ].
       
  1027 ! !
  1027 ! !
  1028 
  1028 
  1029 !UIPainter class methodsFor:'interface specs'!
  1029 !UIPainter class methodsFor:'interface specs'!
  1030 
  1030 
  1031 dialogSpecForDefiningClassAndSelector
  1031 dialogSpecForDefiningClassAndSelector