Squeak Class Documentation category index | class index  
 
AllScriptsTool
  category: Morphic-Scripting
  superclass: AlignmentMorph
  subclasses:

A tool for controlling and viewing all scripts in a project. The tool has an open and a closed form. In the closed form, stop-step-go buttons are available, plus a control for opening the tool up. In the open form, it has a second row of controls that govern which scripts should be shown, followed by the individual script items.

instance methods
  initialization
  addSecondLineOfControls
dismissButton
initializeFor:
presentHelp

  parts bin
  initializeToStandAlone

  stepping
  step
stepTime
wantsSteps

  toggles
  openUpButton
showingAllInstances
showingOnlyActiveScripts
showingOnlyTopControls
toggleWhetherShowingAllInstances
toggleWhetherShowingOnlyActiveScripts
toggleWhetherShowingOnlyTopControls

class methods
  instance creation
  allScriptsToolForActiveWorld
launchAllScriptsToolFor:

  parts bin
  defaultNameStemForInstances
descriptionForPartsBin

instance methods
  initialization top  
 

addSecondLineOfControls

Add the second line of controls


 

dismissButton

Answer a button whose action would be to dismiss the receiver


 

initializeFor:

Initialize the receiver as a tool which shows, and allows the user to change the status of, all the instantiations of all the user-written scripts in the scope of the containing pasteup's presenter


 

presentHelp

Sent when a Help button is hit; provide the user with some form of help for the tool at hand


  parts bin top  
 

initializeToStandAlone

Set up the receiver, created by a #basicNew and now ready to be initialized, as a fully-formed morph suitable for providing a graphic for a parts bin surrogate, and, when such a parts-bin surrogate is clicked on, for attaching to the hand as a viable stand-alone morph. Because of historical precedent, #initialize has been expected to handle this burden, though a great number of morphs actually cannot stand alone. In any case, by default we call the historical #initialize, though unhappily, so that all existing morphs will work no worse than before when using this protocol.


  stepping top  
 

step

If the list of scripts to show has changed, refresh my contents


 

stepTime

Answer the interval between steps -- in this case a leisurely 4 seconds


 

wantsSteps

Answer whether the receiver wishes to receive the #step message


  toggles top  
 

openUpButton

Answer a button whose action would be to open up the receiver or snap it back closed


 

showingAllInstances

Answer whether the receiver is currently showing controls for all instances of each uniclass.


 

showingOnlyActiveScripts

Answer whether the receiver is currently showing only active scripts


 

showingOnlyTopControls

Answer whether the receiver is currently showing only the top controls


 

toggleWhetherShowingAllInstances

Toggle whether the receiver is showing all instances or only one exemplar per uniclass


 

toggleWhetherShowingOnlyActiveScripts

Toggle whether the receiver is showing only active scripts


 

toggleWhetherShowingOnlyTopControls

Toggle whether the receiver is showing only the stop/step/go line or the full whammy


class methods
  instance creation top  
 

allScriptsToolForActiveWorld

Launch an AllScriptsTool to view scripts of the active world


 

launchAllScriptsToolFor:

Launch an AllScriptsTool to view scripts of the given presenter


  parts bin top  
 

defaultNameStemForInstances

Answer the default name stem for new instances of this class


 

descriptionForPartsBin

Answer a description for use in parts bins