[squeak-dev] The Trunk: ToolBuilder-Morphic-mt.301.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Feb 10 11:00:40 UTC 2022

Marcel Taeumel uploaded a new version of ToolBuilder-Morphic to project The Trunk:

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

Name: ToolBuilder-Morphic-mt.301
Author: mt
Time: 10 February 2022, 12:00:39.208307 pm
UUID: f81f1e8f-9eac-1741-a47a-33b0c4f0c727
Ancestors: ToolBuilder-Morphic-mt.300

Complements ToolBuilder-Kernel-mt.154

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

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)].	
  		on: aSpec model
  		text: aSpec getText 
  		accept: aSpec setText
  		readSelection: aSpec selection 
  		menu: aSpec menu.
+ 	aSpec textStyle
+ 		ifNotNil: [:ts |
+ 			ts isSymbol
+ 				ifTrue: [widget getTextStyleSelector: ts]
+ 				ifFalse: [widget setTextStyle: ts]]
+ 		ifNil: [
+ 			aSpec font ifNotNil: [:f |
+ 				f isSymbol
+ 					ifTrue: [widget getFontSelector: f]
+ 					ifFalse: [widget setTextStyle: f asNewTextStyle]] ].
- 	aSpec font ifNotNil: [:f | widget textStyle: f asNewTextStyle].
  	widget readOnly: aSpec readOnly.
  	widget plainTextOnly: aSpec plainTextOnly.
  	widget editTextSelector: aSpec editText.
  	widget wantsFrameAdornments: aSpec indicateUnacceptedChanges.
  	widget askBeforeDiscardingEdits: aSpec askBeforeDiscardingEdits.
  	widget setProperty: #alwaysAccept toValue: aSpec askBeforeDiscardingEdits not.
  	widget wrapFlag: (aSpec softLineWrap ifNil: [true]).
  	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].

More information about the Squeak-dev mailing list