The Trunk: Morphic-ar.458.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-ar.458.mcz

commits-2
Andreas Raab uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ar.458.mcz

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

Name: Morphic-ar.458
Author: ar
Time: 2 August 2010, 8:55:00.693 pm
UUID: 2274572c-a237-5d46-ad6b-34bf05403aeb
Ancestors: Morphic-cmm.457

Replace the (non-functioning) printWorldOnFile menu item with a (working) 'make screenshot' variant that makes a screenshot and saves it under SqueakScreen.X.png.

=============== Diff against Morphic-cmm.457 ===============

Item was changed:
  ----- Method: TheWorldMenu>>addPrintAndDebug: (in category 'construction') -----
  addPrintAndDebug: menu
  Preferences simpleMenus ifFalse: [
  self
  fillIn: menu
  from: {
+ { 'make screenshot'. {self. #saveScreenshot}. 'makes a screenshot and saves it to disk'}.
+ "{ 'print PS to file...'. { self. #printWorldOnFile }. 'write the world into a postscript file' }."
- { 'print PS to file...'. { self. #printWorldOnFile }. 'write the world into a postscript file' }.
  { 'debug...'. { self. #debugDo }. 'a menu of debugging items' }
  } ]!

Item was added:
+ ----- Method: TheWorldMenu>>saveScreenshot (in category 'action') -----
+ saveScreenshot
+ "Make a screenshot of the world and save it to a file"
+
+ SampledSound playSoundNamed: 'camera'.
+ PNGReadWriter putForm: myWorld imageForm onFileNamed:
+ (FileDirectory default nextNameFor: 'SqueakScreen' extension:'png').
+ !