Squeak Class Documentation category index | class index  
 
CategoryViewer
  category: Morphic-Scripting
  superclass: Viewer
  subclasses:

A viewer on an object. Consists of three panes:
Header pane -- category-name, arrows for moving among categories, etc.
List pane -- contents are a list of subparts in the chosen category.
Editing pane -- optional, a detail pane with info relating to the selected element of the list pane.

instance methods
  categories
  adjustColorsAndBordersWithin
adoptVocabulary:
categoryNameWhoseTranslatedWordingIs:
categoryWhoseTranslatedWordingIs:
categoryWording:
chooseCategory
chooseCategoryWhoseTranslatedWordingIs:
chosenCategorySymbol
chosenCategorySymbol:
currentCategory
downArrowHit
isTileScriptingElement
nextCategory
previousCategory
secreteCategorySymbol
setNaturalLanguageTo:
upArrowHit
updateCategoryNameTo:
viewerEntryForSymbol:

  editing pane
  contents:notifying:

  entries
  addIsOverColorDetailTo:
addTouchesADetailTo:
infoButtonFor:
phraseForCommandFrom:
phraseForVariableFrom:
readoutFor:type:readOnly:getSelector:putSelector:
slotHeaderFor:
wantsRowMenuFor:

  get/set slots
  arrowSetterButton:args:
arrowSetterButtonFor:type:
getterButtonFor:type:
getterTilesFor:type:
makeGetter:event:from:
makeGetter:from:forPart:
makeSetter:event:from:
makeSetter:from:forPart:
makeUniversalTilesGetter:event:from:
newGetterTilesFor:methodInterface:
newMakeGetter:event:from:
newMakeGetter:from:forMethodInterface:
newMakeGetter:from:forPart:
newMakeSetter:event:from:
newMakeSetter:from:forPart:
newMakeSetterFromInterface:evt:from:
newSetterTilesFor:methodInterface:
newTilesFor:setter:

  header pane
  addHeaderMorph

  initialization
  initializeFor:
initializeFor:categoryChoice:

  list pane
 

  object fileIn
 

  support
  booleanPhraseForRetrieverOfType:retrieverOp:player:
booleanPhraseFromPhrase:
contentsSelection
currentVocabulary
invisiblySetPlayer:
limitClass
outerViewer
tileForSelf

class methods
  no messages
 

instance methods
  categories top  
 

adjustColorsAndBordersWithin

Adjust the colors and borders of submorphs to suit current fashion


 

adoptVocabulary:

Adopt the given vocabulary as the one used in this viewer.


 

categoryNameWhoseTranslatedWordingIs:

Answer the category name with the given wording


 

categoryWhoseTranslatedWordingIs:

Answer the elementCategory with the given wording


 

categoryWording:

Make the category with the given wording be my current one.


 

chooseCategory

The mouse went down on my category-list control; pop up a list of category choices


 

chooseCategoryWhoseTranslatedWordingIs:

Choose the category with the given wording


 

chosenCategorySymbol

Answer the inherent category currently being shown, not necessarily the same as the translated word.


 

chosenCategorySymbol:

Make the given category be my current one.


 

currentCategory

Answer the symbol representing the receiver's currently-selected category


 

downArrowHit


 

isTileScriptingElement

Answer whether the receiver is a tile-scripting element


 

nextCategory

Change the receiver to point at the category following the one currently seen


 

previousCategory

Change the receiver to point at the category preceding the one currently seen


 

secreteCategorySymbol

Set my chosenCategorySymbol by translating back from its representation in the namePane. Answer the chosenCategorySymbol


 

setNaturalLanguageTo:

Set the natural language symbol as indicated


 

upArrowHit


 

updateCategoryNameTo:

Update the category name, because of a language change.


 

viewerEntryForSymbol:

Answer a viewer entry or viewer line associated with the given symbol, or nil if none


  editing pane top  
 

contents:notifying:

later, spruce this up so that it can accept input such as new method source


  entries top  
 

addIsOverColorDetailTo:


 

addTouchesADetailTo:


 

infoButtonFor:

Answer a fully-formed morph that will serve as the 'info button' alongside an entry corresponding to the given slot or script symbol. If no such button is appropriate, answer a transparent graphic that fills the same space.


 

phraseForCommandFrom:

Answer a phrase for the non-slot-like command represented by aMethodInterface - classic tiles


 

phraseForVariableFrom:

Return a structure consisting of tiles and controls and a readout representing a 'variable' belonging to the player, complete with an appropriate readout when indicated. Functions in both universalTiles mode and classic mode. Slightly misnamed in that this path is used for any methodInterface that indicates an interesting resultType.


 

readoutFor:type:readOnly:getSelector:putSelector:

Answer a readout morph for the given part


 

slotHeaderFor:


 

wantsRowMenuFor:

Answer whether a viewer row for the given symbol should have a menu button on it


  get/set slots top  
 

arrowSetterButton:args:


 

arrowSetterButtonFor:type:


 

getterButtonFor:type:

Answer a classic-tiles getter button for a part of the given name


 

getterTilesFor:type:

Answer classic getter for the given name/type


 

makeGetter:event:from:

Hand the user tiles representing a classic getter on the slot represented by aMorph


 

makeGetter:from:forPart:

Reorder the arguments for existing event handlers


 

makeSetter:event:from:

Classic tiles: make a Phrase that comprises a setter of a slot, and hand it to the user.


 

makeSetter:from:forPart:

Reorder the arguments for existing event handlers


 

makeUniversalTilesGetter:event:from:

Button in viewer performs this to make a universal-tiles getter and attach it to hand.


 

newGetterTilesFor:methodInterface:

Return universal tiles for a getter on this property. Record who self is.


 

newMakeGetter:event:from:

Button in viewer performs this to makea universal-tiles header tile and attach to hand.


 

newMakeGetter:from:forMethodInterface:

Button in viewer performs this to make a new style tile and attach to hand. (Reorder the arguments for existing event handlers)


 

newMakeGetter:from:forPart:

Reorder the arguments for existing event handlers


 

newMakeSetter:event:from:

Button in viewer performs this to make a new style tile and attach to hand.


 

newMakeSetter:from:forPart:

Reorder the arguments for existing event handlers


 

newMakeSetterFromInterface:evt:from:

Button in viewer performs this to make a new style tile and attach to hand.


 

newSetterTilesFor:methodInterface:

Return universal tiles for a setter on this property. Record who self is.


 

newTilesFor:setter:

Return universal tiles for a getter on this property. Record who self is.


  header pane top  
 

addHeaderMorph

Add the header at the top of the viewer, with a control for choosing the category, etc.


  initialization top  
 

initializeFor:

Initialize the category pane to show the #basic category by default


 

initializeFor:categoryChoice:

Initialize the receiver to be associated with the player and category specified


  list pane top  

  object fileIn top  

  support top  
 

booleanPhraseForRetrieverOfType:retrieverOp:player:

Answer a boolean-valued phrase derived from a retriever (e.g. 'car's heading'); this is in order to assure that tiles laid down in a TEST area will indeed produce a boolean result


 

booleanPhraseFromPhrase:

Answer, if possible, a boolean-valued phrase derived from the phrase provided


 

contentsSelection

Not well understood why this needs to be here!


 

currentVocabulary

Answer the vocabulary currently installed in the viewer. The outer StandardViewer object holds this information.


 

invisiblySetPlayer:


 

limitClass

Answer the receiver's limitClass


 

outerViewer

Answer the StandardViewer or equivalent that contains this object


 

tileForSelf

Return a tile representing the receiver's viewee


class methods
  no messages top