[squeak-dev] The Trunk: ToolBuilder-Morphic-ct.289.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jan 27 01:24:48 UTC 2022

Christoph Thiede uploaded a new version of ToolBuilder-Morphic to project The Trunk:

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

Name: ToolBuilder-Morphic-ct.289
Author: ct
Time: 27 January 2022, 2:24:47.033143 am
UUID: 0696d64a-f983-2749-9855-98789e7c8266
Ancestors: ToolBuilder-Morphic-ct.288

Complements ToolBuilder-Kernel-ct.151 (PluggableTreeSpec>>#dragType).

=============== Diff against ToolBuilder-Morphic-ct.288 ===============

Item was changed:
  ----- Method: MorphicToolBuilder>>buildPluggableTree: (in category 'widgets required') -----
  buildPluggableTree: aSpec
  	| widget |
  	widget := self treeClass new.
  	self register: widget id: aSpec name.
  	widget getLabelSelector: aSpec label.
  	widget getIconSelector: aSpec icon.
  	widget model: aSpec model.
  	widget nodeClass: aSpec nodeClass.
  	widget getRootsSelector: aSpec roots.
  	widget getChildrenSelector: aSpec getChildren.
  	widget hasChildrenSelector: aSpec hasChildren.
  	widget getSelectedSelector: aSpec getSelected.
  	widget setSelectedSelector: aSpec setSelected.
  	widget getSelectedPathSelector: aSpec getSelectedPath.
  	widget setSelectedPathSelector: aSpec setSelectedPath.
  	widget setSelectedParentSelector: aSpec setSelectedParent.
  	widget getHelpSelector: aSpec help.
  	widget getMenuSelector: aSpec menu.
  	widget keystrokeActionSelector: aSpec keyPress.
  	widget autoDeselect: aSpec autoDeselect.
  	widget doubleClickSelector: aSpec doubleClick.
  	widget dropItemSelector: aSpec dropItem.
  	widget wantsDropSelector: aSpec dropAccept.
  	widget dragItemSelector: aSpec dragItem.
  	widget dragStartedSelector: aSpec dragStarted.
+ 	widget dragTypeSelector: aSpec dragType.
  	widget columns: aSpec columns.
  	"Override default scroll bar policies if needed. Widget will use preference values otherwise."
  	aSpec hScrollBarPolicy ifNotNil: [:policy |
  		policy caseOf: {
  			[#always] -> [widget alwaysShowHScrollBar].
  			[#never] -> [widget hideHScrollBarIndefinitely].
  			[#whenNeeded] -> [widget showHScrollBarOnlyWhenNeeded]. } ].
  	aSpec vScrollBarPolicy ifNotNil: [:policy |
  		policy caseOf: {
  			[#always] -> [widget alwaysShowVScrollBar].
  			[#never] -> [widget hideVScrollBarIndefinitely].
  			[#whenNeeded] -> [widget showVScrollBarOnlyWhenNeeded]. } ].	
  	self setFrame: aSpec frame in: widget.
  	self setLayoutHintsFor: widget spec: aSpec.
  	parent ifNotNil:[self add: widget to: parent].
  "	panes ifNotNil:[
  		aSpec roots ifNotNil:[panes add: aSpec roots].
  	].	"

More information about the Squeak-dev mailing list