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

An instance of this is installed as the value of the global variable "ScriptingSystem". Client subclasses are invited, such as one used internally by squeak team for ongoing internal work.

instance methods
  font & color choices
  colorBehindTiles
fontForNameEditingInScriptor
fontForTiles
smallBoldFont
statusColorSymbolFor:
uniformTileInteriorColor

  form dictionary
  convertAllKeysToSymbols
deletePrivateGraphics
deletePrivateGraphics:afterStoringToFileNamed:
formAtKey:
formAtKey:extent:depth:
formDictionary
inspectFormDictionary
installSolidMenuForm
mergeGraphicsFrom:
patchInNewStandardPlayerForm
privateGraphics
readFormsFromFileNamed:
readFormsFromFileNamed:andStoreIntoGlobal:
restorePrivateGraphics
saveForm:atKey:
saveFormsToFileNamed:
squeakyMouseForm
standardForms

  help dictionary
  helpStringFor:
helpStringOrNilFor:
initializeHelpStrings
statusHelpString

  parts bin
  anyButtonPressedTiles
noButtonPressedTiles
prototypicalHolder
resetStandardPartsBin
tilesForQuery:label:

  script-control
  goButton
goUp:with:
scriptControlButtons
stepButton
stepDown:with:
stepStillDown:with:
stepUp:with:
stopButton
stopUp:with:

  stripped
 

  tile colors
  colorForType:
colorFudge

  universal slots & scripts
  acceptableScriptNameFrom:forScriptCurrentlyNamed:asScriptNameIn:world:
acceptableSlotNameFrom:forSlotCurrentlyNamed:asSlotNameIn:world:
doesOperatorWantArrows:
systemSlotNamesOfType:

  utilities
  allClassVarNamesInSystem
allKnownClassVariableNames
arithmeticalOperatorsAndHelpStrings
cleanupsForRelease
customizeForEToyUsers:
helpStringForOperator:
holderWithAlphabet
informScriptingUser:
newScriptingSpace
newScriptingSpace2
numericComparitorsAndHelpStrings
prepareForExternalReleaseNamed:
reclaimSpace
referenceAt:
referenceAt:put:
reinvigorateThumbnailsInViewerFlapTabs
resetAllScriptingReferences
resetStaleScriptingReferences
setterSelectorForGetter:
spaceReclaimed
standardEventStati
stripGraphicsForExternalRelease
tileForArgType:
tryButtonFor:
uniqueNameForReference
wordingForAssignmentSuffix:
wordingForOperator:

class methods
  class initialization
  initialize
noteCompilationOf:meta:

instance methods
  font & color choices top  
 

colorBehindTiles


 

fontForNameEditingInScriptor


 

fontForTiles


 

smallBoldFont

Answer a small bold font for use in some standard scripting-support structures


 

statusColorSymbolFor:


 

uniformTileInteriorColor


  form dictionary top  
 

convertAllKeysToSymbols

ScriptingSystem convertAllKeysToSymbols


 

deletePrivateGraphics

ScriptingSystem deletePrivateGraphics


 

deletePrivateGraphics:afterStoringToFileNamed:

This method is used to strip private graphics from the FormDictionary and store them on a file of the given name


 

formAtKey:

ScriptingSystem saveForm: (TileMorph downPicture) atKey: 'downArrow'


 

formAtKey:extent:depth:

ScriptingSystem saveForm: (TileMorph downPicture) atKey: 'downArrow'


 

formDictionary


 

inspectFormDictionary

ScriptingSystem inspectFormDictionary


 

installSolidMenuForm

ScriptingSystem installSolidMenuForm


 

mergeGraphicsFrom:

aDictionary is assumed to hold associations of the form <formName> -> <form>. Merge the graphics held by that dictionary into the internal FormDictionary, overlaying any existing entries with the ones found in aDictionary


 

patchInNewStandardPlayerForm

ScriptingSystem patchInNewStandardPlayerForm


 

privateGraphics

ScriptingSystem deletePrivateGraphics


 

readFormsFromFileNamed:

Read the entire FormDictionary in from a designated file on disk


 

readFormsFromFileNamed:andStoreIntoGlobal:

Read the a FormDictionary in from a designated file on disk and save it in the designated global


 

restorePrivateGraphics

ScriptingSystem restorePrivateGraphics


 

saveForm:atKey:


 

saveFormsToFileNamed:

Save the current state of form dictionary to disk for possible later retrieval


 

squeakyMouseForm


 

standardForms

ScriptingSystem standardForms


  help dictionary top  
 

helpStringFor:


 

helpStringOrNilFor:

If my HelpStrings dictionary has an entry at the given symbol, answer that entry's value, else answer nil


 

initializeHelpStrings

Initialize the data structure that determines, for the etoy system, help messages for various scripting elements. The structure is built up by letting every Morph subclass contribute elements simply by implementing method #helpContributions. Consult implementors of #helpContributions for examples of how this goes.


 

statusHelpString


  parts bin top  
 

anyButtonPressedTiles

Answer tiles representing the query 'is any button pressed?'


 

noButtonPressedTiles

Answer tiles representing the query 'is no button pressed?'


 

prototypicalHolder


 

resetStandardPartsBin

ScriptingSystem resetStandardPartsBin


 

tilesForQuery:label:

Answer scripting tiles that represent the query,


  script-control top  
 

goButton


 

goUp:with:


 

scriptControlButtons

Answer a composite object that serves to control the stop/stop/go status of a Presenter


 

stepButton


 

stepDown:with:


 

stepStillDown:with:


 

stepUp:with:


 

stopButton

Answer a new button that can serve as a stop button


 

stopUp:with:


  stripped top  

  tile colors top  
 

colorForType:

Answer the color to use to represent the given type symbol


 

colorFudge


  universal slots & scripts top  
 

acceptableScriptNameFrom:forScriptCurrentlyNamed:asScriptNameIn:world:

Produce an acceptable script name, derived from the current name, for aPlayer. This method will always return a valid script name that will be suitable for use in the given situation, though you might not like its beauty sometimes.


 

acceptableSlotNameFrom:forSlotCurrentlyNamed:asSlotNameIn:world:

Produce an acceptable slot name, derived from the current name, for aPlayer. This method will always return a valid slot name that will be suitable for use in the given situation, though you might not like its beauty sometimes.


 

doesOperatorWantArrows:


 

systemSlotNamesOfType:

Answer the type of the slot name, or nil if not found.


  utilities top  
 

allClassVarNamesInSystem

Compute and answer a set of all the class variable names known to the sytem from any class


 

allKnownClassVariableNames

Answer a set of all the knwon class variable names in the system. This normally retrieves them from a cache, and at present there is no organized mechanism for invalidating the cache. The idea is to avoid, in the References scheme, names that may create a conflict


 

arithmeticalOperatorsAndHelpStrings

Answer an array consisting of lists of the standard arithmetical operator tiles and of the corresponding balloon help for them


 

cleanupsForRelease

Miscellaneous space cleanups to do before a release.


 

customizeForEToyUsers:

If aBoolean is true, set things up for etoy users. If it's false, unset some of those things. Some things are set when switching into etoy mode but not reversed when switching out of etoy mode


 

helpStringForOperator:

Answer the help string associated with the given operator


 

holderWithAlphabet

Answer a fully instantiated Holder that has submorphs that represent the letters of the uppercase alphabet, with each one having an 'index' slot which bears the letter's index in the alphabet -- 1 for A, 2 for B, etc. A few special characters are provided as per ack request 10/00; for these the index provided is rather arbitrarily assigned


 

informScriptingUser:

This provides a hook for logging messages that the user or the developer may wish to see; at present it simply logs the message to the Transcript, with a standard prefix to signal their provenance. Such messages will fall on the floor if there is no Transcript window open


 

newScriptingSpace

Answer a complete scripting space - raa 19 sept 2000 - experiment for Alan, a variant *not* in a window, now adopted as the only true scripting space


 

newScriptingSpace2

Answer a complete scripting space


 

numericComparitorsAndHelpStrings

Answer an array whose first element is the list of comparitors, and whose second element is a list of the corresponding help strings


 

prepareForExternalReleaseNamed:

ScriptingSystem prepareForExternalReleaseNamed: '2.2Beta'


 

reclaimSpace

Reclaim space from the scripting system, and report the result in an informer


 

referenceAt:

Answer the object referred to by aSymbol in the 'References' scheme of things, or nil if none


 

referenceAt:put:

Store a reference to anObject at the given symbol in the References directory


 

reinvigorateThumbnailsInViewerFlapTabs

It has happened that the thumbnail in a viewer flap tab will go solid gray because it got associated with some passing and disused player temporarily created during the initial painting process. This method takes a sledge hammer to repair such thumbnails. At its genesis, this method is called only from the postscript of its defining fileout.


 

resetAllScriptingReferences

Clear out all the elements in the References directory


 

resetStaleScriptingReferences

Remove all scripting references that are no longer needed


 

setterSelectorForGetter:

Answer the setter selector corresponding to a given getter


 

spaceReclaimed

Reclaim space from the EToy system, and return the number of bytes reclaimed


 

standardEventStati


 

stripGraphicsForExternalRelease

ScriptingSystem stripGraphicsForExternalRelease


 

tileForArgType:

Anwer a default tile to represent a datum of the given argument type, which may be either a symbol (e.g. #Color) or a class


 

tryButtonFor:


 

uniqueNameForReference

Answer a more-or-less global name by which the receiver can be referred to in scripts


 

wordingForAssignmentSuffix:


 

wordingForOperator:

Answer the wording to be seen by the user for the given operator symbol/string


class methods
  class initialization top  
 

initialize

Initialize the scripting system. Sometimes this method is vacuously changed just to get it in a changeset so that its invocation will occur as part of an update


 

noteCompilationOf:meta:

A hook allowing some classes to react to recompilation of certain selectors