[squeak-dev] The Trunk: Morphic-kfr.1094.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Mar 16 19:30:54 UTC 2016


Karl Ramberg uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-kfr.1094.mcz

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

Name: Morphic-kfr.1094
Author: kfr
Time: 16 March 2016, 8:29:46.384817 pm
UUID: 94780b73-cfa6-44fd-b7ed-ee2807f9ceae
Ancestors: Morphic-mt.1093

Snap dropped morphs to grid if gridding is on

=============== Diff against Morphic-mt.1093 ===============

Item was changed:
  ----- Method: PasteUpMorph>>acceptDroppingMorph:event: (in category 'dropping/grabbing') -----
  acceptDroppingMorph: dropped event: evt
  	"The supplied morph, known to be acceptable to the receiver, is now to be assimilated; the precipitating event is supplied"
  
  	| aMorph |
  	aMorph := self morphToDropFrom: dropped.
  	self isWorldMorph
  		ifTrue:["Add the given morph to this world and start stepping it if it wants to be."
  				self addMorphFront: aMorph.
  				(aMorph fullBounds intersects: self viewBox) ifFalse:
  					[Beeper beep.  aMorph position: self bounds center]]
  		ifFalse:[super acceptDroppingMorph: aMorph event: evt].
  
  	aMorph submorphsDo: [:m | (m isKindOf: HaloMorph) ifTrue: [m delete]].
  	aMorph allMorphsDo:  "Establish any penDown morphs in new world"
  		[:m | | tfm mm |
  		m player ifNotNil:
  			[m player getPenDown ifTrue:
  				[((mm := m player costume) notNil and: [(tfm := mm owner transformFrom: self) notNil])
  					ifTrue: [self noteNewLocation: (tfm localPointToGlobal: mm referencePosition)
  									forPlayer: m player]]]].
  
  	self isPartsBin
  		ifTrue:
  			[aMorph isPartsDonor: true.
  			aMorph stopSteppingSelfAndSubmorphs.
  			aMorph suspendEventHandler]
  		ifFalse:
  			[self world startSteppingSubmorphsOf: aMorph].
  
  "	self presenter morph: aMorph droppedIntoPasteUpMorph: self."
+ 	self griddingOn ifTrue: [aMorph position: (self gridPoint: aMorph position)].
- 
  	self showingListView ifTrue:
  		[self sortSubmorphsBy: (self valueOfProperty: #sortOrder).
  		self currentWorld abandonAllHalos].
  
  	self bringTopmostsToFront.
  !



More information about the Squeak-dev mailing list