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

commits at source.squeak.org commits at source.squeak.org
Sun Apr 19 11:58:09 UTC 2015


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

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

Name: ToolBuilder-Morphic-mt.136
Author: mt
Time: 19 April 2015, 1:58:03.208 pm
UUID: b6a697b7-7eca-a946-8b8e-9bb8c533e54f
Ancestors: ToolBuilder-Morphic-mt.135

Text fields may be read-only.

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

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.
  
  	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.
  	parent ifNotNil:[self add: widget to: parent].
  	widget borderColor: Color lightGray.
  	widget color: Color white.
  	^widget!



More information about the Squeak-dev mailing list