1581 fileFilters: FileSelectionBrowser loadImageFileNameFilters) |
1581 fileFilters: FileSelectionBrowser loadImageFileNameFilters) |
1582 ! |
1582 ! |
1583 |
1583 |
1584 loadFromFile: aFileName |
1584 loadFromFile: aFileName |
1585 |
1585 |
1586 aFileName notNil |
1586 (self imageEditView loadFromFile: aFileName) notNil |
1587 ifTrue: |
1587 ifTrue: |
1588 [ |
1588 [ |
1589 self imageEditView loadFromFile: aFileName |
1589 self image notNil |
1590 ]. |
|
1591 self image notNil |
|
1592 ifTrue: |
|
1593 [ |
|
1594 self image colorMap notNil |
|
1595 ifTrue: |
1590 ifTrue: |
1596 [ |
1591 [ |
1597 self listOfColors contents: self image usedColors asSet. |
1592 self image colorMap notNil |
|
1593 ifTrue: |
|
1594 [ |
|
1595 self listOfColors contents: self image usedColors asSet. |
|
1596 ] |
|
1597 ifFalse: |
|
1598 [ |
|
1599 self listOfColors removeAll. |
|
1600 ]. |
|
1601 self findColorMapMode. |
|
1602 self updateInputFieldsAndLabelsAndHistory. |
1598 ] |
1603 ] |
1599 ifFalse: |
1604 ifFalse: |
1600 [ |
1605 [ |
1601 self listOfColors removeAll. |
1606 self updateForNoneImage |
1602 ]. |
1607 ] |
1603 self findColorMapMode. |
|
1604 self updateInputFieldsAndLabelsAndHistory. |
|
1605 ] |
|
1606 ifFalse: |
|
1607 [ |
|
1608 self updateForNoneImage |
|
1609 ] |
1608 ] |
1610 ! |
1609 ! |
1611 |
1610 |
1612 loadFromImage: image |
1611 loadFromImage: image |
1613 |
1612 |
1633 ] |
1632 ] |
1634 ! |
1633 ! |
1635 |
1634 |
1636 loadFromInClassesOf: aSuperclassOrSymbol |
1635 loadFromInClassesOf: aSuperclassOrSymbol |
1637 |
1636 |
1638 self imageEditView loadFromInClassesOf: aSuperclassOrSymbol. |
1637 (self imageEditView loadFromInClassesOf: aSuperclassOrSymbol) notNil |
1639 self image notNil |
|
1640 ifTrue: |
1638 ifTrue: |
1641 [ |
1639 [ |
1642 self listOfColors contents: self image usedColors asSet asOrderedCollection. |
1640 self image notNil |
1643 self findColorMapMode. |
1641 ifTrue: |
1644 self updateInputFieldsAndLabelsAndHistory. |
1642 [ |
|
1643 self listOfColors contents: self image usedColors asSet asOrderedCollection. |
|
1644 self findColorMapMode. |
|
1645 self updateInputFieldsAndLabelsAndHistory. |
|
1646 ] |
|
1647 ifFalse: |
|
1648 [ |
|
1649 self updateForNoneImage |
|
1650 ] |
1645 ] |
1651 ] |
1646 ifFalse: |
|
1647 [ |
|
1648 self updateForNoneImage |
|
1649 ] |
|
1650 ! |
1652 ! |
1651 |
1653 |
1652 loadFromMessage: aMessage |
1654 loadFromMessage: aMessage |
1653 |
1655 |
1654 self imageEditView loadFromMessage: aMessage. |
1656 (self imageEditView loadFromMessage: aMessage) notNil |
1655 self image notNil |
|
1656 ifTrue: |
1657 ifTrue: |
1657 [ |
1658 [ |
1658 self listOfColors contents: self image usedColors asSet asOrderedCollection. |
1659 self image notNil |
1659 self findColorMapMode. |
1660 ifTrue: |
1660 self updateInputFieldsAndLabelsAndHistory. |
1661 [ |
|
1662 self listOfColors contents: self image usedColors asSet asOrderedCollection. |
|
1663 self findColorMapMode. |
|
1664 self updateInputFieldsAndLabelsAndHistory. |
|
1665 ] |
|
1666 ifFalse: |
|
1667 [ |
|
1668 self updateForNoneImage |
|
1669 ] |
1661 ] |
1670 ] |
1662 ifFalse: |
|
1663 [ |
|
1664 self updateForNoneImage |
|
1665 ] |
|
1666 |
|
1667 ! |
1671 ! |
1668 |
1672 |
1669 loadFromOrPrepareForMessage: aMessage |
1673 loadFromOrPrepareForMessage: aMessage |
1670 |
1674 |
1671 (self imageEditView loadFromMessage: aMessage) notNil |
1675 (self imageEditView loadFromMessage: aMessage) notNil |