# HG changeset patch # User tz # Date 886545522 -3600 # Node ID 8d82e8f101c11db26cdf2db8aba408b193515831 # Parent b169cae281574c0a4d477623ca9edd0720978238 undo disabling diff -r b169cae28157 -r 8d82e8f101c1 ImageEditor.st --- a/ImageEditor.st Tue Feb 03 22:45:45 1998 +0100 +++ b/ImageEditor.st Tue Feb 03 23:38:42 1998 +0100 @@ -779,6 +779,7 @@ #'label:' 'Undo' #'value:' #undo #'activeHelpKey:' #editUndo + #'enabled:' #valueOfCanUndo ) #(#MenuItem #'label:' '-' @@ -1610,8 +1611,21 @@ loadFromClass - self loadFromInClassesOf: #Object. - + (self imageEditView loadFromClass) notNil + ifTrue: + [ + self image notNil + ifTrue: + [ + self listOfColors contents: self image usedColors asSet asOrderedCollection. + self findColorMapMode. + self updateInputFieldsAndLabelsAndHistory. + ] + ifFalse: + [ + self updateForNoneImage + ] + ] ! loadFromFile @@ -1673,25 +1687,6 @@ ] ! -loadFromInClassesOf: aSuperclassOrSymbol - - (self imageEditView loadFromInClassesOf: aSuperclassOrSymbol) notNil - ifTrue: - [ - self image notNil - ifTrue: - [ - self listOfColors contents: self image usedColors asSet asOrderedCollection. - self findColorMapMode. - self updateInputFieldsAndLabelsAndHistory. - ] - ifFalse: - [ - self updateForNoneImage - ] - ] -! - loadFromMessage: aMessage (self imageEditView loadFromMessage: aMessage) notNil