Squeak Class Documentation category index | class index  
 
UniclassScript
  category: Morphic-Scripting
  superclass: MethodWithInterface
  subclasses:

Represents a tile script of uniclass. Holds the ScriptEditorMorph structures for the current version of a user-defined tile script, as well as previous versions thereof.

In addition to the instance variables of my superclass, my instance variables are:

currentScriptEditor The current version of the ScriptEditorMorph for the script
formerScriptingTiles A collection of pairs, (<timeStamp> (list of morphs))
each pair characterizing a prior tile version
isTextuallyCoded A boolean. If true, then a hand-crafted user coding supersedes
the tale of the tiles. This architecture is in transition, perhaps.

instance methods
  initialization
  convertFromUserScript:
initialize

  script editor
  bringUpToDate
currentScriptEditor:
instantiatedScriptEditorForPlayer:
recompileScriptFromTilesUnlessTextuallyCoded
releaseCachedState

  textually coded
  becomeTextuallyCoded
isTextuallyCoded
okayToRename

  versions
  recreateScriptFrom:
revertScriptVersionFrom:
revertToLastSavedTileVersionFor:
saveScriptVersion:
savedTileVersionsCount

class methods
  no messages
 

instance methods
  initialization top  
 

convertFromUserScript:

The argument represents an old UserScript object. convert it over


 

initialize

Initialize the receiver by setting its inst vars to default values


  script editor top  
 

bringUpToDate

Bring all versions of the receiver's tile-script source up to date


 

currentScriptEditor:

Set the receiver's currentScriptEditor as indicated


 

instantiatedScriptEditorForPlayer:

Return the current script editor, creating it if necessary


 

recompileScriptFromTilesUnlessTextuallyCoded

recompile Script From Tiles Unless Textually Coded


 

releaseCachedState

release all non-showing scriptors. What do we do about versions????


  textually coded top  
 

becomeTextuallyCoded

Transform the receiver into one which is textually coded


 

isTextuallyCoded

Answer whether the receiver is textually coded


 

okayToRename

Answer whether the receiver is in a state to be renamed.


  versions top  
 

recreateScriptFrom:

Used to revert to old tiles


 

revertScriptVersionFrom:

Let user choose which prior tile version to revert to, and revert to it


 

revertToLastSavedTileVersionFor:

revert to the last saved tile version


 

saveScriptVersion:

Save the tile script version by appending a pair of the form

<time stamp> <morph list>

to my list of former scripting tiles. The morph-list will get copied back into the Scriptor following restoration. Only applies to classic tiles.


 

savedTileVersionsCount

Answer the number of saved tile versions of the script


class methods
  no messages top