ImageEditor.st
changeset 450 845121b3901b
parent 449 dac8dc1f9dc8
child 460 9d141cb07d5e
equal deleted inserted replaced
449:dac8dc1f9dc8 450:845121b3901b
  1444             fileFilters: FileSelectionBrowser loadImageFileNameFilters)
  1444             fileFilters: FileSelectionBrowser loadImageFileNameFilters)
  1445 !
  1445 !
  1446 
  1446 
  1447 loadFromFile: aFileName
  1447 loadFromFile: aFileName
  1448 
  1448 
  1449     (aFileName notNil and: [(self imageEditView loadFromFile: aFileName) notNil])
  1449     aFileName notNil 
       
  1450     ifTrue:
       
  1451     [
       
  1452         self imageEditView loadFromFile: aFileName
       
  1453     ].
       
  1454     self image notNil
  1450     ifTrue:
  1455     ifTrue:
  1451     [          
  1456     [          
  1452         self image colorMap notNil
  1457         self image colorMap notNil
  1453         ifTrue:
  1458         ifTrue:
  1454         [
  1459         [
  1467     ]
  1472     ]
  1468 !
  1473 !
  1469 
  1474 
  1470 loadFromImage: image
  1475 loadFromImage: image
  1471 
  1476 
  1472     (self imageEditView image: image) notNil
  1477     self imageEditView image: image.
       
  1478     self image notNil
  1473     ifTrue:
  1479     ifTrue:
  1474     [    
  1480     [    
  1475         self image colorMap notNil
  1481         self image colorMap notNil
  1476         ifTrue:
  1482         ifTrue:
  1477         [
  1483         [
  1506     ]
  1512     ]
  1507 !
  1513 !
  1508 
  1514 
  1509 loadFromMessage: aMessage
  1515 loadFromMessage: aMessage
  1510 
  1516 
  1511     (self imageEditView loadFromMessage: aMessage) notNil
  1517     self imageEditView loadFromMessage: aMessage.
       
  1518     self image notNil
  1512     ifTrue:
  1519     ifTrue:
  1513     [
  1520     [
  1514         self listOfColors contents: self image usedColors asSet asOrderedCollection.
  1521         self listOfColors contents: self image usedColors asSet asOrderedCollection.
  1515         self findColorMapMode.
  1522         self findColorMapMode.
  1516         self updateInputFieldsAndLabelsAndHistory.
  1523         self updateInputFieldsAndLabelsAndHistory.