ImageSelectionBox.st
changeset 233 4979c1304456
parent 202 e00b0bb1d439
child 3150 e3a55f15ef7e
equal deleted inserted replaced
232:23dd09b9fbdf 233:4979c1304456
    15 	classVariableNames:''
    15 	classVariableNames:''
    16 	poolDictionaries:''
    16 	poolDictionaries:''
    17 	category:'Views-DialogBoxes'
    17 	category:'Views-DialogBoxes'
    18 !
    18 !
    19 
    19 
    20 !ImageSelectionBox class methodsFor:'documentation'!
    20 !ImageSelectionBox  class methodsFor:'documentation'!
    21 
    21 
    22 copyright
    22 copyright
    23 "
    23 "
    24  COPYRIGHT (c) 1995 by Claus Gittinger
    24  COPYRIGHT (c) 1995 by Claus Gittinger
    25 	      All Rights Reserved
    25 	      All Rights Reserved
   153                      for the thumbNail picture,
   153                      for the thumbNail picture,
   154                      we can temporarily switch to a rough dither.
   154                      we can temporarily switch to a rough dither.
   155                      (this speeds up the thing quite a bit
   155                      (this speeds up the thing quite a bit
   156                     "
   156                     "
   157                     (image depth > 2 
   157                     (image depth > 2 
   158                     and:[Color fixColors isNil]) ifTrue:[
   158                     and:[device fixColors isNil]) ifTrue:[
   159                         "temporarily go to a 3x3x2 colormap ..."
   159                         "temporarily go to a 3x3x2 colormap ..."
   160                         Object errorSignal handle:[:ex |
   160                         Object errorSignal handle:[:ex |
   161                             'very low resolution colors' infoPrintNL.
   161                             'very low resolution colors' infoPrintNL.
   162                             Object errorSignal handle:[:ex |
   162                             Object errorSignal handle:[:ex |
   163                                 'cannot allocate dither colors' infoPrintNL.
   163                                 'cannot allocate dither colors' infoPrintNL.
   164                                 ex return
   164                                 ex return
   165                             ] do:[
   165                             ] do:[
   166                                 Color getColorsRed:2 green:2 blue:2.
   166                                 Color getColorsRed:2 green:2 blue:2 on:device.
   167                             ]
   167                             ]
   168                         ] do:[
   168                         ] do:[
   169                             Color getColorsRed:5 green:5 blue:3.
   169                             Color getColorsRed:5 green:5 blue:3 on:device.
   170                         ].
   170                         ].
   171                         previewField label:image.
   171                         previewField label:image.
   172                         Color releaseDitherColors.
   172                         device releaseFixColors.
   173                     ] ifFalse:[
   173                     ] ifFalse:[
   174                         previewField label:image.
   174                         previewField label:image.
   175                     ]
   175                     ]
   176                 ]
   176                 ]
   177             ]
   177             ]
   179     ]
   179     ]
   180 
   180 
   181     "Modified: 7.6.1996 / 12:25:19 / cg"
   181     "Modified: 7.6.1996 / 12:25:19 / cg"
   182 ! !
   182 ! !
   183 
   183 
   184 !ImageSelectionBox class methodsFor:'documentation'!
   184 !ImageSelectionBox  class methodsFor:'documentation'!
   185 
   185 
   186 version
   186 version
   187     ^ '$Header: /cvs/stx/stx/libwidg2/ImageSelectionBox.st,v 1.4 1996-06-07 16:35:50 cg Exp $'
   187     ^ '$Header: /cvs/stx/stx/libwidg2/ImageSelectionBox.st,v 1.5 1996-08-02 19:03:37 cg Exp $'
   188 ! !
   188 ! !