[Pkg] The Trunk: Morphic-dtl.278.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Dec 29 01:32:06 UTC 2009

David T. Lewis uploaded a new version of Morphic to project The Trunk:

==================== Summary ====================

Name: Morphic-dtl.278
Author: dtl
Time: 28 December 2009, 8:27:10 am
UUID: d3866b4d-177a-4cc5-86f5-e8f7231cf369
Ancestors: Morphic-dtl.277

Move #restoreDisplay implementation from ScreenController to Project to eliminate #isMorphic sends.

Eliminate #isMorphic from #snapshot:andQuit:embedded: by adding #startUpComplete to Project and MorphicProject.

Move #offerMenuFrom:shifted: from StringHolder to Project to eliminate #isMorphic send.

=============== Diff against Morphic-dtl.277 ===============

Item was added:
+ ----- Method: MorphicProject>>startUpComplete (in category 'enter') -----
+ startUpComplete
+ 	"Image has been restarted, and the startUp list has been processed. Perform
+ 	any additional actions needed to restart the user interface."
+ 	SystemWindow wakeUpTopWindowUponStartup!

Item was added:
+ ----- Method: MorphicProject>>restoreDisplay (in category 'display') -----
+ restoreDisplay 
+ 	"Clear the screen to gray and then redisplay all the scheduled views."
+ 	^ World restoreMorphicDisplay
+ !

Item was added:
+ ----- Method: MorphicProject>>offerMenuFrom:shifted: (in category 'utilities') -----
+ offerMenuFrom: menuRetriever shifted: aBoolean
+ 	"Pop up a menu whose target is the receiver and whose contents are provided
+ 	by sending the menuRetriever to the receiver. The menuRetriever takes two
+ 	arguments: a menu, and a boolean representing the shift state."
+ 	| aMenu |
+ 	aMenu := MenuMorph new defaultTarget: self.
+ 	self perform: menuRetriever with: aMenu with: aBoolean.
+ 	aMenu popUpInWorld!

More information about the Packages mailing list