The Trunk: ToolBuilder-Morphic-mt.185.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.185.mcz

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

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

Name: ToolBuilder-Morphic-mt.185
Author: mt
Time: 16 August 2016, 1:35:55.348602 pm
UUID: b6d9df46-d533-6340-b52e-bfd75c874510
Ancestors: ToolBuilder-Morphic-mt.184

Fixes test result colors in TestRunner.

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

Item was changed:
  ----- Method: MorphicToolBuilder>>buildPluggableText: (in category 'widgets required') -----
  buildPluggableText: aSpec
  | widget |
  widget := self textPaneClass new.
  aSpec stylerClass ifNotNil: [:c | widget styler: (c new view: widget)].
  widget
  on: aSpec model
  text: aSpec getText
  accept: aSpec setText
  readSelection: aSpec selection
  menu: aSpec menu.
  aSpec font ifNotNil: [:f | widget font: f].
 
  widget readOnly: aSpec readOnly.
  widget editTextSelector: aSpec editText.
  widget wantsFrameAdornments: aSpec indicateUnacceptedChanges.
 
  widget askBeforeDiscardingEdits: aSpec askBeforeDiscardingEdits.
  widget setProperty: #alwaysAccept toValue: aSpec askBeforeDiscardingEdits not.
 
  aSpec softLineWrap ifNotNil: [:b | widget wrapFlag: b].
 
  widget isAutoFit
  ifTrue: [widget hideHScrollBarIndefinitely]
  ifFalse: [widget showHScrollBarOnlyWhenNeeded].
 
  self register: widget id: aSpec name.
  widget getColorSelector: aSpec color.
+ widget getTextColorSelector: aSpec textColor.
  self buildHelpFor: widget spec: aSpec.
 
  self setFrame: aSpec frame in: widget.
  self setLayoutHintsFor: widget spec: aSpec.
 
  parent ifNotNil:[self add: widget to: parent].
  ^widget!

Item was changed:
  PluggableTextMorph subclass: #PluggableTextMorphPlus
+ instanceVariableNames: 'getColorSelector acceptAction unstyledAcceptText styler getTextColorSelector'
- instanceVariableNames: 'getColorSelector acceptAction unstyledAcceptText styler'
  classVariableNames: ''
  poolDictionaries: ''
  category: 'ToolBuilder-Morphic'!
 
  !PluggableTextMorphPlus commentStamp: 'ar 2/11/2005 21:53' prior: 0!
  A pluggable text morph with support for color.!

Item was added:
+ ----- Method: PluggableTextMorphPlus>>getTextColorSelector (in category 'accessing') -----
+ getTextColorSelector
+ ^getTextColorSelector!

Item was added:
+ ----- Method: PluggableTextMorphPlus>>getTextColorSelector: (in category 'accessing') -----
+ getTextColorSelector: aSymbol
+ getTextColorSelector := aSymbol.
+ self update: getTextColorSelector.!

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