Squeak Class Documentation category index | class index  
 
FormMenuView
  category: ST80-Editors
  superclass: View
  subclasses:

I represent a View whose subViews are Switches (and Buttons and OneOnSwitches) whose actions set the mode, color, and tool for editing a Form on the screen. The default controller of my instances is FormMenuController.

instance methods
  controller access
  defaultControllerClass

  initialize-release
  makeFormEditorMenu

  private
  makeButton:
makeColorConnections:
makeConnections:
makeGridSwitch:
makeSwitch:
makeViews:for:

  subView access
  subViewContainingCharacter:

class methods
  class initialization
  fileOut
initialize

instance methods
  controller access top  
 

defaultControllerClass

Refer to the comment in View|defaultControllerClass.


  initialize-release top  
 

makeFormEditorMenu

Now get those forms into the subviews


  private top  
 

makeButton:


 

makeColorConnections:


 

makeConnections:


 

makeGridSwitch:


 

makeSwitch:


 

makeViews:for:


  subView access top  
 

subViewContainingCharacter:

Answer the receiver's subView that corresponds to the key, aCharacter.
Answer nil if no subView is selected by aCharacter.


class methods
  class initialization top  
 

fileOut

Save the FormEditor button icons.


 

initialize

The icons for the menu are typically stored on files. In order to avoid reading them every time, they are stored in a collection in a class variable, along with their offset, tool value, and initial visual state (on or off).