Squeak Class Documentation category index | class index  
 
MorphWorldController
  category: ST80-Morphic
  superclass: Controller
  subclasses:

I am a controller for SceneViews. I support gestures for scrolling, click-selection, and area selection of scene glyphs. (See the class comment in GestureController for more details about gestures.) I also support construction operations such as inserting new glyphs and merging glyphs to make them share a common point.

The mapping of gestures to actions is as follows (see GestureController comment for more about gestures):

Click:
click on glyph select glyph
shift-click on glyph toggle selection of that glyph
click on background clear selection
Double click:
double-click on glyph inspect glyph
double-click on background select all
Hold/Drag/Sweep:
hold (no movement) yellow-button menu
drag (up/left movement) scrolling hand
sweep (down/right movement) select glyphs in region
shift-sweep toggle selection of glyphs in region

instance methods
  control sequence
  controlActivity
controlInitialize
controlLoop
controlTerminate
isControlActive

class methods
  no messages
 

instance methods
  control sequence top  
 

controlActivity

Do one step of the Morphic interaction loop. Called repeatedly while window is active.


 

controlInitialize

This window is becoming active.


 

controlLoop

Overridden to keep control active when the hand goes out of the view


 

controlTerminate

This window is becoming inactive; restore the normal cursor.


 

isControlActive

Answer whether receiver wishes to continue evaluating its controlLoop
method. It is sent by Controller|controlLoop in order to determine when
the receiver's control loop should terminate, and should be redefined in
a subclass if some special condition for terminating the main control loop
is needed.


class methods
  no messages top