The Trunk: Morphic-dtl.278.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-dtl.278.mcz

commits-2
David T. Lewis uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-dtl.278.mcz

==================== 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!