Squeak Class Documentation category index | class index  
 
PhraseTileMorph
  category: Morphic-Scripting Tiles
  superclass: TileLikeMorph
  subclasses: SystemQueryPhrase

Phrase Tile World: A single smalltalk expression in tiles. Like (car forwardBy: number), having 3 tiles.

type = command
rcvrType = #actor


In the Old Single tile world: Holder for a phrase of tiles as it came from the viewer and while it is being dragged by the hand.

instance methods
  all
  rowOfRightTypeFor:forActor:

  code generation
  codeString
storeCodeOn:indent:

  initialization
  currentVocabulary
initialize
setAssignmentRoot:type:rcvrType:argType:
setAssignmentRoot:type:rcvrType:argType:vocabulary:
setOperator:type:rcvrType:
setOperator:type:rcvrType:argType:
setSlotRefOperator:type:
vocabulary:

  miscellaneous
  actualObject
addCustomMenuItems:hand:
associatedPlayer
bePossessive
bringUpToDate
isCandidateForAutomaticViewing
justGrabbedFromViewer
justGrabbedFromViewer:
justGrabbedFromViewerOrNil
lastTile
operatorTile
resultType
setAsActionInButtonProperties:
sproutNewScriptor
tileRows
try
userScriptSelector
userScriptSelector:

  mouse
  catchDivideByZero:indent:
handlesMouseDown:
justDroppedInto:event:
morphToDropInPasteUp:
mouseDown:

  object fileIn
 

  queries
  isBoolean
isCommand
isPossessive
isTileScriptingElement

  tiles from method
 

class methods
  backward compatibility
  markViewerOrigination

instance methods
  all top  
 

rowOfRightTypeFor:forActor:


  code generation top  
 

codeString


 

storeCodeOn:indent:

Add in some smarts for division by zero.


  initialization top  
 

currentVocabulary

Answer the current vocabulary


 

initialize

Initialize a nascent instance


 

setAssignmentRoot:type:rcvrType:argType:


 

setAssignmentRoot:type:rcvrType:argType:vocabulary:

Add submorphs to make me constitute a setter of the given symbol


 

setOperator:type:rcvrType:


 

setOperator:type:rcvrType:argType:

Set the operator, type, receiver type, and argument type for the phrase


 

setSlotRefOperator:type:

Set the given symbol as the receiver's slot-reference operator, adding tiles to the receiver appropriately


 

vocabulary:

Set the vocabulary


  miscellaneous top  
 

actualObject

Answer the player that's the object of my attention


 

addCustomMenuItems:hand:

Add additional items to the halo manu


 

associatedPlayer

Answer the player that's the object of my attention


 

bePossessive

No way for doubly possessive stuff to work at present, so we just catch and swallow this request here.


 

bringUpToDate

Nothing here to do in the current architecture


 

isCandidateForAutomaticViewing


 

justGrabbedFromViewer

Answer whether the receiver originated in a Viewer. Only tiles that originated in a viewer will ever do that infernal sprouting of a new script around them. The nil branch is only for backward compatibility.


 

justGrabbedFromViewer:

Set the receiver's justGrabbedFromViewer instance variable


 

justGrabbedFromViewerOrNil

Answer the value of the receiver's justGrabbedFromViewer slot. Needed only for conversion methods


 

lastTile

The tile that might get an extension arrow


 

operatorTile

Answer the submorph which comprises the operator tile of the receiver. Ouch!


 

resultType

Answer the result type of the receiver


 

setAsActionInButtonProperties:


 

sproutNewScriptor

The receiver, operating as a naked phrase tile, wishes to get iself placed in a nascent script


 

tileRows

Answer a list of tile rows -- in this case exactly one row -- representing the receiver. The fullCopy is deeply problematical here in the presence of the formerOwner property, so it the latter is temporarily set aside


 

try


 

userScriptSelector


 

userScriptSelector:


  mouse top  
 

catchDivideByZero:indent:

See if I am have divide as my operator. If so, insert a test in the argument to divide.


 

handlesMouseDown:

Do I want to receive mouseDown events (mouseDown:, mouseMove:, mouseUp:)?


 

justDroppedInto:event:

Phrase tiles only auto-expand if they originate from viewers. Any phrase tile, once dropped, loses its auto-phrase-expansion thing


 

morphToDropInPasteUp:

Answer the morph to drop in aPasteUp, given that the receiver is the putative droppee


 

mouseDown:

Pretend we picked up the tile and then put it down for a trial positioning. -- The essence of ScriptEditor mouseEnter:


  object fileIn top  

  queries top  
 

isBoolean

Answer whether the receiver has a boolean type


 

isCommand

Answer whether the receiver is a true line of phrase-command. If not,
it is a fragment that will not be able to serve as a line of script on its
own


 

isPossessive


 

isTileScriptingElement


  tiles from method top  

class methods
  backward compatibility top  
 

markViewerOrigination

For bringing old content forward