Squeak Class Documentation category index | class index  
 
TabbedPalette
  category: Morphic-Palettes
  superclass: BookMorph
  subclasses: WonderlandEditorTabs CRDictionaryMorph

A structure of tabs and associated books. Pressing a tab brings into focus the associated book. Some tabs can have simple actions rather than books as their focus -- in this case, the palette is cleared and the action taken.

instance methods
  initialization
  addTabFor:font:
addTabForBook:
addTabForBook:withBalloonText:
defaultPageSize
initialize
newTabs:
setInitialState
undergoMarch99Conversion

  misc menu items
  becomeStandardPalette
recolorTabs
showNoPalette
showNoPaletteAndHighlightTab:
sortTabs:

  miscellaneous
  currentPalette
replaceSubmorph:by:
succeededInRevealing:
tabsMorph

  palette menu
  addBookMenuItemsTo:hand:
addMenuTab

  parts & controls tabs
 

  scraps tab
  hasScrapsTab
scrapsBook
showScrapsTab

  user-interface
  defersHaloOnClickTo:
selectTab:
selectTabNamed:
selectTabOfBook:
tabMorphs
tabNamed:
transitionSpecFor:
wantsDroppedMorph:event:

  viewer tab
  viewMorph:

class methods
  as yet unclassified
  authoringPrototype
defaultNameStemForInstances

  parts bin
  descriptionForPartsBin

instance methods
  initialization top  
 

addTabFor:font:


 

addTabForBook:


 

addTabForBook:withBalloonText:


 

defaultPageSize


 

initialize

Initialize the receiver, which was just created via a call to the class's #basicNew


 

newTabs:

Reconstitute the palette based on info in the tabs list


 

setInitialState


 

undergoMarch99Conversion

A one-time conversion to be applied to old instances of TabbedPalette that still have TabMorphs in them instead of the newer ReferenceMorphs. Return an integer telling how many tabs were changed


  misc menu items top  
 

becomeStandardPalette


 

recolorTabs

Prompt the user for new on and off colors for tabs


 

showNoPalette


 

showNoPaletteAndHighlightTab:


 

sortTabs:


  miscellaneous top  
 

currentPalette

A stylistic convenience to reduce confusion caused by the fact that a palette is a book of books


 

replaceSubmorph:by:


 

succeededInRevealing:


 

tabsMorph


  palette menu top  
 

addBookMenuItemsTo:hand:


 

addMenuTab


  parts & controls tabs top  

  scraps tab top  
 

hasScrapsTab


 

scrapsBook


 

showScrapsTab


  user-interface top  
 

defersHaloOnClickTo:

If a cmd-click on aSubMorph would make it a preferred recipient of the halo, answer true


 

selectTab:


 

selectTabNamed:

If the receiver has a tab with the given name, select it


 

selectTabOfBook:


 

tabMorphs


 

tabNamed:

Answer the tab of the given name, or nil if none


 

transitionSpecFor:


 

wantsDroppedMorph:event:

Return true if the receiver wishes to accept the given morph, which is being dropped by a hand in response to the given event. Note that for a successful drop operation both parties need to agree. The symmetric check is done automatically via aMorph wantsToBeDroppedInto: self.


  viewer tab top  
 

viewMorph:

The receiver is expected to have a viewer tab; select it, and target it to aMorph


class methods
  as yet unclassified top  
 

authoringPrototype

Answer an instance of the receiver suitable for placing in a parts bin for authors


 

defaultNameStemForInstances

Answer a basis for external names for default instances of the receiver. For classees, the class-name itself is a good one.


  parts bin top  
 

descriptionForPartsBin

If the receiver is a member of a class that would like to be represented in a parts bin, answer the name by which it should be known, and a documentation string to be provided, for example, as balloon help. When the 'nativitySelector' is sent to the 'globalReceiver', it is expected that some kind of Morph will result. The parameters used in the implementation below are for documentation purposes only!