Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.803.mcz
==================== Summary ====================
Name: Morphic-mt.803
Author: mt
Time: 1 April 2015, 4:41:58.498 pm
UUID: 2b489690-f83f-5e41-82a7-cfba13ce7e54
Ancestors: Morphic-mt.802
Recompose the paragraph if text or runs changed after keyboard input.
We did not notice this bug because Shout/Tools did this in #stylerStyled:. Only some jerky scrolling behavior occured from time to time because the first text morph update (while Shout was background-styling) was without paragraph recomposition.
=============== Diff against Morphic-mt.802 ===============
Item was changed:
----- Method: TextMorph>>handleInteraction:fromEvent: (in category 'editing') -----
handleInteraction: interactionBlock fromEvent: evt
"Perform the changes in interactionBlock, noting any change in selection
and possibly a change in the size of the paragraph (ar 9/22/2001 - added for TextPrintIts)"
| oldEditor oldParagraph oldText |
oldEditor := editor.
oldParagraph := paragraph.
oldText := oldParagraph text copy.
self selectionChanged. "Note old selection"
interactionBlock value.
(oldParagraph == paragraph) ifTrue:[
"this will not work if the paragraph changed"
editor := oldEditor. "since it may have been changed while in block"
].
self selectionChanged. "Note new selection"
(oldText = paragraph text and: [ oldText runs = paragraph text runs ])
+ ifFalse:[
+ self paragraph composeAll.
+ self updateFromParagraph ].
- ifFalse:[ self updateFromParagraph ].
self setCompositionWindow.!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.803.mcz
==================== Summary ====================
Name: Morphic-mt.803
Author: mt
Time: 1 April 2015, 4:41:58.498 pm
UUID: 2b489690-f83f-5e41-82a7-cfba13ce7e54
Ancestors: Morphic-mt.802
Recompose the paragraph if text or runs changed after keyboard input.
We did not notice this bug because Shout/Tools did this in #stylerStyled:. Only some jerky scrolling behavior occured from time to time because the first text morph update (while Shout was background-styling) was without paragraph recomposition.
=============== Diff against Morphic-mt.802 ===============
Item was changed:
----- Method: TextMorph>>handleInteraction:fromEvent: (in category 'editing') -----
handleInteraction: interactionBlock fromEvent: evt
"Perform the changes in interactionBlock, noting any change in selection
and possibly a change in the size of the paragraph (ar 9/22/2001 - added for TextPrintIts)"
| oldEditor oldParagraph oldText |
oldEditor := editor.
oldParagraph := paragraph.
oldText := oldParagraph text copy.
self selectionChanged. "Note old selection"
interactionBlock value.
(oldParagraph == paragraph) ifTrue:[
"this will not work if the paragraph changed"
editor := oldEditor. "since it may have been changed while in block"
].
self selectionChanged. "Note new selection"
(oldText = paragraph text and: [ oldText runs = paragraph text runs ])
+ ifFalse:[
+ self paragraph composeAll.
+ self updateFromParagraph ].
- ifFalse:[ self updateFromParagraph ].
self setCompositionWindow.!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.803.mcz
==================== Summary ====================
Name: Morphic-mt.803
Author: mt
Time: 1 April 2015, 4:41:58.498 pm
UUID: 2b489690-f83f-5e41-82a7-cfba13ce7e54
Ancestors: Morphic-mt.802
Recompose the paragraph if text or runs changed after keyboard input.
We did not notice this bug because Shout/Tools did this in #stylerStyled:. Only some jerky scrolling behavior occured from time to time because the first text morph update (while Shout was background-styling) was without paragraph recomposition.
=============== Diff against Morphic-mt.802 ===============
Item was changed:
----- Method: TextMorph>>handleInteraction:fromEvent: (in category 'editing') -----
handleInteraction: interactionBlock fromEvent: evt
"Perform the changes in interactionBlock, noting any change in selection
and possibly a change in the size of the paragraph (ar 9/22/2001 - added for TextPrintIts)"
| oldEditor oldParagraph oldText |
oldEditor := editor.
oldParagraph := paragraph.
oldText := oldParagraph text copy.
self selectionChanged. "Note old selection"
interactionBlock value.
(oldParagraph == paragraph) ifTrue:[
"this will not work if the paragraph changed"
editor := oldEditor. "since it may have been changed while in block"
].
self selectionChanged. "Note new selection"
(oldText = paragraph text and: [ oldText runs = paragraph text runs ])
+ ifFalse:[
+ self paragraph composeAll.
+ self updateFromParagraph ].
- ifFalse:[ self updateFromParagraph ].
self setCompositionWindow.!
Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.111.mcz
==================== Summary ====================
Name: ToolBuilder-Morphic-mt.111
Author: mt
Time: 1 April 2015, 4:34:47.411 pm
UUID: df7f741e-5af0-c14f-b019-03ed2d822fc9
Ancestors: ToolBuilder-Morphic-mt.110
Fixed should background-styling to update text morph runs only from within the morphic UI process.
=============== Diff against ToolBuilder-Morphic-mt.110 ===============
Item was changed:
----- Method: PluggableTextMorphPlus>>stylerStyledInBackground: (in category 'styling') -----
stylerStyledInBackground: styledCopyOfText
"Sent after the styler completed styling of the text"
"It is possible that the text string has changed since the styling began. Disregard the styles if styledCopyOfText's string differs with the current textMorph contents string"
+ Project current addDeferredUIMessage: [
+ textMorph contents string = styledCopyOfText string
+ ifTrue: [self stylerStyled: styledCopyOfText]].!
- textMorph contents string = styledCopyOfText string
- ifTrue: [self stylerStyled: styledCopyOfText]!
Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.111.mcz
==================== Summary ====================
Name: ToolBuilder-Morphic-mt.111
Author: mt
Time: 1 April 2015, 4:34:47.411 pm
UUID: df7f741e-5af0-c14f-b019-03ed2d822fc9
Ancestors: ToolBuilder-Morphic-mt.110
Fixed should background-styling to update text morph runs only from within the morphic UI process.
=============== Diff against ToolBuilder-Morphic-mt.110 ===============
Item was changed:
----- Method: PluggableTextMorphPlus>>stylerStyledInBackground: (in category 'styling') -----
stylerStyledInBackground: styledCopyOfText
"Sent after the styler completed styling of the text"
"It is possible that the text string has changed since the styling began. Disregard the styles if styledCopyOfText's string differs with the current textMorph contents string"
+ Project current addDeferredUIMessage: [
+ textMorph contents string = styledCopyOfText string
+ ifTrue: [self stylerStyled: styledCopyOfText]].!
- textMorph contents string = styledCopyOfText string
- ifTrue: [self stylerStyled: styledCopyOfText]!