Squeak Class Documentation category index | class index  
 
BookPageThumbnailMorph
  category: Morphic-Books
  superclass: SketchMorph
  subclasses:

A small picture representing a page of a BookMorph here or somewhere else. When clicked, make that book turn to the page and do a visual effect and a noise.

page either the morph of the page, or a url
pageNumber
bookMorph either the book, or a url
flipOnClick

instance methods
  as yet unclassified
  addCustomMenuItems:hand:
addMorphsTo:pianoRoll:eventTime:betweenTime:and:
bookMorph
computeThumbnail
doPageFlip
encounteredAtTime:inScorePlayer:atIndex:inEventTrack:secsPerTick:
handlesMouseDown:
inBook:
initialize
justDroppedIntoPianoRoll:event:
makeFlexMorphFor:
mouseDown:
page
page:
pageMorph:inBook:
pageNumber:inBook:
pauseFrom:
resetFrom:
resumeFrom:
setPageSound:
setPageVisual:
smaller
toggleBookmark

  copying
  veryDeepFixupWith:
veryDeepInner:

  fileIn/Out
  objectForDataStream:
objectsInMemory

class methods
  no messages
 

instance methods
  as yet unclassified top  
 

addCustomMenuItems:hand:

Add custom menu items


 

addMorphsTo:pianoRoll:eventTime:betweenTime:and:

a hack to allow for abitrary morphs to be dropped into piano roll


 

bookMorph


 

computeThumbnail


 

doPageFlip

Flip to this page


 

encounteredAtTime:inScorePlayer:atIndex:inEventTrack:secsPerTick:

Flip to this page with no extra sound


 

handlesMouseDown:

Do I want to receive mouseDown events (mouseDown:, mouseMove:, mouseUp:)?


 

inBook:


 

initialize


 

justDroppedIntoPianoRoll:event:


 

makeFlexMorphFor:


 

mouseDown:

turn the book to that page


 

page


 

page:


 

pageMorph:inBook:


 

pageNumber:inBook:


 

pauseFrom:

subclasses should take five


 

resetFrom:

Ignored


 

resumeFrom:

Ignored


 

setPageSound:


 

setPageVisual:


 

smaller


 

toggleBookmark

Enable or disable sensitivity as a bookmark
enabled means that a normal click will cause a pageFlip
disabled means this morph can be picked up normally by the hand.


  copying top  
 

veryDeepFixupWith:

If target and arguments fields were weakly copied, fix them here. If they were in the tree being copied, fix them up, otherwise point to the originals!!


 

veryDeepInner:

Copy all of my instance variables. Some need to be not copied at all, but shared. Warning!! Every instance variable defined in this class must be handled. We must also implement veryDeepFixupWith:. See DeepCopier class comment.


  fileIn/Out top  
 

objectForDataStream:

I am about to be written on an object file. It would be bad to write a whole BookMorph out. Store a string that is the url of the book or page in my inst var.


 

objectsInMemory

See if page or bookMorph need to be brought in from a server.


class methods
  no messages top