The Trunk: Morphic-jl.1308.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-jl.1308.mcz

commits-2
Jens Lincke uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-jl.1308.mcz

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

Name: Morphic-jl.1308
Author: jl
Time: 21 September 2016, 5:09:23.877628 pm
UUID: 9e56c715-6e6d-d447-85fb-cf1869058d6b
Ancestors: Morphic-jl.1307

Make magic halos great again.

=============== Diff against Morphic-jl.1307 ===============

Item was changed:
  ----- Method: HaloMorph>>addHandle:on:send:to: (in category 'private') -----
  addHandle: handleSpec on: eventName send: selector to: recipient
  "Add a handle within the halo box as per the haloSpec, and set
  it up to respond to the given event by sending the given
  selector to the given recipient. Return the handle."
  | handle aPoint |
 
  aPoint := self
  positionIn: haloBox
  horizontalPlacement: handleSpec horizontalPlacement
  verticalPlacement: handleSpec verticalPlacement.
 
  handle := self
  addHandleAt: aPoint
  color: (Color colorFrom: handleSpec color)
  icon: handleSpec iconSymbol
  on: eventName
  send: selector
  to: recipient.
 
- self isMagicHalo
- ifTrue: [
- handle on: #mouseEnter send: #handleEntered to: self.
- handle on: #mouseLeave send: #handleLeft to: self].
-
  ^ handle!

Item was changed:
  ----- Method: HaloMorph>>isMagicHalo: (in category 'accessing') -----
  isMagicHalo: aBool
  self setProperty: #isMagicHalo toValue: aBool.
+ aBool
+ ifTrue: [
+ self on: #mouseEnter send: #handleEntered to: self.
+ self on: #mouseLeave send: #handleLeft to: self]
+ ifFalse:[
+ "Reset everything"
+ self eventHandler ifNotNil: [:eh |
+ eh forgetDispatchesTo: #handleEntered;
+ forgetDispatchesTo: #handleLeft].
+ self stopStepping. "get rid of all"
+ self startStepping. "only those of interest"].!
- aBool ifFalse:[
- "Reset everything"
- self stopStepping. "get rid of all"
- self startStepping. "only those of interest"
- ].!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Morphic-jl.1308.mcz

Bert Freudenberg
On Wed, Sep 21, 2016 at 5:09 PM, <[hidden email]> wrote:

Make magic halos great again.

LOL

This may be a good time to welcome Jens Linke as a new core developer. He's been working with Squeak since he was a student intern at impara 10 years ago, and now with a PhD under his belt he's himself working with students at HPI in Potsdam.

- Bert - 



Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Morphic-jl.1308.mcz

Eliot Miranda-2


On Wed, Sep 21, 2016 at 8:25 AM, Bert Freudenberg <[hidden email]> wrote:
On Wed, Sep 21, 2016 at 5:09 PM, <[hidden email]> wrote:

Make magic halos great again.

LOL

This may be a good time to welcome Jens Linke as a new core developer. He's been working with Squeak since he was a student intern at impara 10 years ago, and now with a PhD under his belt he's himself working with students at HPI in Potsdam.

Hi Jens,

   welcome!

_,,,^..^,,,_
best, Eliot