[Pkg] The Trunk: ToolBuilder-Morphic-mt.138.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Apr 27 14:02:23 UTC 2015


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

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

Name: ToolBuilder-Morphic-mt.138
Author: mt
Time: 27 April 2015, 4:02:14.059 pm
UUID: 3f9b6ea5-1b62-3345-a2b0-e5d5e2e42aa8
Ancestors: ToolBuilder-Morphic-mt.137

Consider configuration options for line wrapping when construction pluggable text morphs or input fields.

Note: Hard wrapping not yet supported.

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

Item was changed:
  ----- Method: MorphicToolBuilder>>buildPluggableInputField: (in category 'widgets optional') -----
  buildPluggableInputField: aSpec
  	| widget |
  	widget := self buildPluggableText: aSpec.
  	widget minimumHeight: 0.
  	widget acceptOnCR: true.
  	widget hideScrollBarsIndefinitely.
- 	widget textMorph
- 		autoFit: false;
- 		wrapFlag: true;
- 		width: 999999.
  	^widget!

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 font: Preferences standardCodeFont.
+ 	aSpec softLineWrap ifNotNil: [:b | widget wrapFlag: b].
  
+ 	widget isAutoFit
+ 		ifTrue: [widget hideHScrollBarIndefinitely]
+ 		ifFalse: [widget showHScrollBarOnlyWhenNeeded].
- 	widget textMorph isAutoFit ifTrue: [
- 		widget hideHScrollBarIndefinitely ].
  	
  	self register: widget id: aSpec name.
  	widget getColorSelector: aSpec color.
  	self buildHelpFor: widget spec: aSpec.
  	 
  	self setFrame: aSpec frame in: widget.
  	self setLayoutHintsFor: widget spec: aSpec.
  	
  	parent ifNotNil:[self add: widget to: parent].
  	widget borderColor: Color lightGray.
  	widget color: Color white.
  	^widget!



More information about the Packages mailing list