Squeak Class Documentation category index | class index  
 
Presenter
  category: Morphic-Scripting
  superclass: Object
  subclasses:

Optionally associated with a PasteUpMorph, provides a local scope for the running of scripts.

Once more valuable, may be again, but at present occupies primarily a historical niche.

Maintains a playerList cache.

Holds, optionally three 'standard items' -- standardPlayer standardPlayfield standardPalette -- originally providing idiomatic support of ongoing squeak-team internal work, but now extended to more general applicability.

instance methods
  access
  associatedMorph
associatedMorph:
world

  accessing
 

  button creation
  addTrashCan

  intialize
  adaptedToWorld:

  misc
  currentlyViewing:
drawingJustCompleted:
morph:droppedIntoPasteUpMorph:
printOn:
standardPlayfield:
tempCommand

  object fileIn
 

  palette & parts bin
  ownStandardPalette
standardPalette:
systemQueryPhraseWithActionString:labelled:

  playerList
  allExtantPlayers
allKnownScriptSelectors
allPlayersWithUniclasses
flushPlayerListCache
reinvigorateAllScriptsTool:
reportPlayersAndScripts
toolToViewScriptInstantiations
uniclassesAndCounts

  standardPlayer etc
  createStandardPlayer
positionStandardPlayer
standardPlayer

  stop-step-go buttons
  allGoButtons
allStepButtons
allStopButtons
goButtonState:
goUp:with:
startRunningScripts
startRunningScriptsFrom:
stepButtonState:
stepDown:with:
stepStillDown:with:
stepUp:with:
stopButtonState:
stopRunningScripts
stopRunningScriptsFrom:
stopUp:with:

  tile support
  arithmeticTiles
booleanTiles
constantTile:
phraseForReceiver:op:arg:resultType:
typeForConstant:
valueTiles

  viewer
  cacheSpecs:
nascentPartsViewer
nascentPartsViewerFor:
updateViewer:
updateViewer:forceToShow:
viewMorph:
viewObject:
viewObjectDirectly:

class methods
  no messages
 

instance methods
  access top  
 

associatedMorph


 

associatedMorph:


 

world


  accessing top  

  button creation top  
 

addTrashCan


  intialize top  
 

adaptedToWorld:

If I refer to a world or a hand, return the corresponding items in the new world.


  misc top  
 

currentlyViewing:

Only detects viewers in tabs


 

drawingJustCompleted:


 

morph:droppedIntoPasteUpMorph:


 

printOn:

Append to the argument, aStream, a sequence of characters that
identifies the receiver.


 

standardPlayfield:


 

tempCommand


  object fileIn top  

  palette & parts bin top  
 

ownStandardPalette


 

standardPalette:


 

systemQueryPhraseWithActionString:labelled:

Answer a SystemQueryPhrase with the given action string and label


  playerList top  
 

allExtantPlayers

The initial intent here was to produce a list of Player objects associated with any Morph in the tree beneath the receiver's associatedMorph. whether it is the submorph tree or perhaps off on unseen bookPages. We have for the moment moved away from that initial intent, and in the current version we only deliver up players associated with the submorph tree only.

Call #flushPlayerListCache to force recomputation.


 

allKnownScriptSelectors

Answer a list of all the selectors implemented by any user-scripted objected within the scope of the receiver


 

allPlayersWithUniclasses

Answer a list of all players known to the receiver that have uniclasses


 

flushPlayerListCache


 

reinvigorateAllScriptsTool:

Rebuild the contents of an All Scripts tool


 

reportPlayersAndScripts

Open a window which contains a report on players and their scripts


 

toolToViewScriptInstantiations

Open a tool which shows, and allows the user to change the status of, all the instantiations of all the user-written scripts in the world


 

uniclassesAndCounts

Answer a list of all players known to the receiver that have uniclasses


  standardPlayer etc top  
 

createStandardPlayer


 

positionStandardPlayer


 

standardPlayer


  stop-step-go buttons top  
 

allGoButtons

Answer a list of all script-controlling Go buttons within my scope


 

allStepButtons

Answer a list of all the script-controlling Step buttons within my scope


 

allStopButtons

Answer a list of all script-controlling Stop buttons within my scope


 

goButtonState:

Get all go buttons in my scope to show the correct state


 

goUp:with:


 

startRunningScripts

Start running scripts; get stop-step-go buttons to show the right thing


 

startRunningScriptsFrom:

Start running all scripts. Get all script-control buttons to show the right thing.


 

stepButtonState:

Get all step buttons in my scope to show the correct state


 

stepDown:with:


 

stepStillDown:with:

The step button is still down; get temporary button feedback right and step all and then get all button feedback right again


 

stepUp:with:

The step button came up; get things right


 

stopButtonState:

Get all stop buttons in my scope to show the correct state


 

stopRunningScripts

Put all ticking scripts within my scope into paused mode. Get any scripting-control buttons to show the correct state


 

stopRunningScriptsFrom:

Stop running scripts; get all script-control buttons to reflect this


 

stopUp:with:


  tile support top  
 

arithmeticTiles

Answer some numeric-valued tiles. This dates back to very early etoy work in 1997, and presently has no sent senders


 

booleanTiles

Answer some boolean-valued tiles. This dates back to very early etoy work in 1997, and presently has no sent senders


 

constantTile:

Answer a constant tile that represents the object


 

phraseForReceiver:op:arg:resultType:

Answer a PhraseTileMorph affiliated with the given receiver, initialized to hold the given operator, argument, and result type


 

typeForConstant:


 

valueTiles

Answer some constant-valued tiles. This dates back to very early etoy work in 1997, and presently has no senders


  viewer top  
 

cacheSpecs:

For SyntaxMorph's type checking, cache the list of all viewer command specifications.


 

nascentPartsViewer


 

nascentPartsViewerFor:

Create a new, naked Viewer object for viewing aViewee. Give it a vocabulary if either the viewee insists on one or if the project insists on one.


 

updateViewer:


 

updateViewer:forceToShow:

Update the given viewer to make sure it is in step with various possible changes in the outside world, and when reshowing it be sure it shows the given category


 

viewMorph:


 

viewObject:

Open up and return a viewer on the given object. If the object is a Morph, open a viewer on its associated Player


 

viewObjectDirectly:

Open up and return a viewer on the given object


class methods
  no messages top