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

commits at source.squeak.org commits at source.squeak.org
Fri Nov 19 17:14:55 UTC 2021

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

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

Name: ToolBuilder-Morphic-mt.278
Author: mt
Time: 19 November 2021, 6:14:54.873971 pm
UUID: b1c12018-9676-e14f-bb54-4541acf63a27
Ancestors: ToolBuilder-Morphic-mt.277

Complements Morphic-mt.1792

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

Item was changed:
  ----- Method: MorphicToolBuilder>>buildPluggableWindow: (in category 'widgets required') -----
  buildPluggableWindow: aSpec
  	| widget |
  	aSpec layout == #proportional ifFalse:[
  		"This needs to be implemented - probably by adding a single pane and then the rest"
  		^self error: 'Not implemented'.
  	widget := (self windowClassFor: aSpec) new.
  	self register: widget id: aSpec name.
  	widget model: aSpec model.
  	"Set child dependent layout properties."
  	widget wantsPaneSplitters: (aSpec wantsResizeHandles ifNil: [true]).
  	MorphicProject worldGridEnabled ifTrue: [
  		"Snap both #position and #extent to grid."
  		aSpec horizontalResizing ifNil: [aSpec horizontalResizing: #spaceFill].
  		aSpec verticalResizing ifNil: [aSpec verticalResizing: #spaceFill]].		
  	self setLayoutHintsFor: widget spec: aSpec.
  	widget layoutInset: (aSpec padding ifNil: [ProportionalSplitterMorph gripThickness]).
  	widget cellGap: (aSpec spacing ifNil: [ProportionalSplitterMorph gripThickness]).
  	widget morphicLayerNumber: widget class windowLayer.
  	"Now create the children."
  	panes := OrderedCollection new.
  	aSpec children isSymbol
  		ifTrue: [
  			widget getChildrenSelector: aSpec children.
  			widget update: aSpec children]
  		ifFalse: [
  			self buildAll: aSpec children in: widget].
  	widget setUpdatablePanesFrom: panes.
+ 	aSpec defaultFocus ifNotNil: [:name |
+ 		widget defaultFocusMorph: name].
  	aSpec label ifNotNil: [:label|
  		label isSymbol 
  			ifTrue:[widget getLabelSelector: label]
  			ifFalse:[widget setLabel: label]].
  	aSpec multiWindowStyle notNil ifTrue:
  		[widget savedMultiWindowState: (SavedMultiWindowState on: aSpec model)].
  	widget closeWindowSelector: aSpec closeAction.
  	self buildHelpFor: widget spec: aSpec. 
  	widget bounds: (RealEstateAgent 
  		initialFrameFor: widget 
  		initialExtent: (aSpec extent ifNil:[widget initialExtent])
  		world: self currentWorld).
  	widget refreshWindowColor.
  	^ widget!

More information about the Squeak-dev mailing list