equal
deleted
inserted
replaced
1463 loadFromFile: aFileName |
1463 loadFromFile: aFileName |
1464 "loads an image from aFileName and sets up color map list and other info labels" |
1464 "loads an image from aFileName and sets up color map list and other info labels" |
1465 |
1465 |
1466 |img| |
1466 |img| |
1467 |
1467 |
1468 (imageEditView loadFromFile: aFileName) notNil ifTrue:[ |
1468 self withCursor:Cursor wait do:[ |
1469 (img := self image) notNil ifTrue:[ |
1469 (imageEditView loadFromFile: aFileName) notNil ifTrue:[ |
1470 img colorMap notNil ifTrue:[ |
1470 (img := self image) notNil ifTrue:[ |
1471 self listOfColors contents:(img usedColors asSet asOrderedCollection). |
1471 img colorMap notNil ifTrue:[ |
|
1472 self listOfColors contents:(img usedColors asSet asOrderedCollection). |
|
1473 ] ifFalse:[ |
|
1474 self listOfColors removeAll. |
|
1475 ]. |
|
1476 self findColorMapMode. |
|
1477 self updateLabelsAndHistory. |
1472 ] ifFalse:[ |
1478 ] ifFalse:[ |
1473 self listOfColors removeAll. |
1479 self updateForNoneImage |
1474 ]. |
1480 ] |
1475 self findColorMapMode. |
|
1476 self updateLabelsAndHistory. |
|
1477 ] ifFalse:[ |
|
1478 self updateForNoneImage |
|
1479 ] |
1481 ] |
1480 ] |
1482 ] |
1481 |
1483 |
1482 "Modified: / 18.8.1998 / 17:03:54 / cg" |
1484 "Modified: / 18.8.1998 / 17:03:54 / cg" |
1483 ! |
1485 ! |