The Trunk: ToolBuilder-Morphic-mt.145.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: ToolBuilder-Morphic-mt.145.mcz

commits-2
Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-mt.145.mcz

==================== Summary ====================

Name: ToolBuilder-Morphic-mt.145
Author: mt
Time: 5 May 2015, 2:37:52.882 pm
UUID: 7beaed04-a52a-b843-ab62-1351a8d79d97
Ancestors: ToolBuilder-Morphic-mt.144

Give models/tools the chance to restyle dependent widgets (text fields) if needed.

=============== Diff against ToolBuilder-Morphic-mt.144 ===============

Item was changed:
  ----- Method: PluggableTextMorphPlus>>hasUnacceptedEdits: (in category 'styling') -----
  hasUnacceptedEdits: aBoolean
  "re-implemented to re-style the text iff aBoolean is true"
 
  super hasUnacceptedEdits: aBoolean.
+ aBoolean ifTrue: [ self updateStyle ].!
- (aBoolean and: [self okToStyle])
- ifTrue: [ styler styleInBackgroundProcess: textMorph contents]!

Item was changed:
  ----- Method: PluggableTextMorphPlus>>update: (in category 'updating') -----
  update: what
  what ifNil:[^self].
  what == getColorSelector ifTrue:[self color: (model perform: getColorSelector)].
+ what == #styleChanged ifTrue: [self updateStyle].
+
  ^super update: what!

Item was added:
+ ----- Method: PluggableTextMorphPlus>>updateStyle (in category 'styling') -----
+ updateStyle
+
+ self okToStyle
+ ifTrue: [styler styleInBackgroundProcess: textMorph contents].!