ImageEditor.st
changeset 1910 4ca9f4b322c9
parent 1906 2d7a21c00135
child 1916 c91c39976bef
equal deleted inserted replaced
1909:1ccae0433175 1910:4ca9f4b322c9
  3055 !
  3055 !
  3056 
  3056 
  3057 updateLabelsAndHistory
  3057 updateLabelsAndHistory
  3058     "updates labels and history, if something has changed"
  3058     "updates labels and history, if something has changed"
  3059 
  3059 
  3060     self imageIsLoaded value: self image notNil.
  3060     |image|
  3061 
  3061 
  3062     self image isNil ifTrue: [^nil].
  3062     image := self image.
       
  3063 
       
  3064     self imageIsLoaded value: image notNil.
       
  3065     image isNil ifTrue: [^nil].
  3063 
  3066 
  3064     self updateInfoLabel.
  3067     self updateInfoLabel.
  3065 
  3068 
  3066     imageEditView resourceMessage asCollectionOfWords size = 2
  3069     imageEditView resourceMessage asCollectionOfWords size = 2
  3067         ifTrue: [self addToHistory: imageEditView resourceMessage -> #loadFromMessage:].
  3070         ifTrue: [self addToHistory: imageEditView resourceMessage -> #loadFromMessage:].
  3068 
  3071 
  3069     self image fileName notNil
  3072     image fileName notNil
  3070         ifTrue: [self addToHistory: self image fileName -> #loadFromFile:].
  3073         ifTrue: [self addToHistory: image fileName -> #loadFromFile:].
  3071 
       
  3072 
       
  3073 
       
  3074 !
  3074 !
  3075 
  3075 
  3076 updateListOfColorsAndColormapMode
  3076 updateListOfColorsAndColormapMode
  3077     |colorMap image|
  3077     |colorMap image|
  3078 
  3078