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

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

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

Name: ToolBuilder-Morphic-mt.140
Author: mt
Time: 28 April 2015, 12:09:31.498 pm
UUID: 2863255f-7979-1f41-8997-0806be778606
Ancestors: ToolBuilder-Morphic-mt.139

Text fields now correctly respect #font in spec.

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

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].
 
  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!