The Trunk: Morphic-dtl.312.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.312.mcz

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

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

Name: Morphic-dtl.312
Author: dtl
Time: 24 January 2010, 2:55:45.458 pm
UUID: f5977ce2-8b97-401f-a0e5-18b2e8ac60d1
Ancestors: Morphic-ar.311

Remove all MVC BitEditor references from non-MVC packages.
  Form>>bitEdit to Project class>>bitEdit:
  Form>>bitEditAt:scale: to Project class>>bitEdit:at:scale:
  BitEditor class>>locateMagnifiedView:scale: to Rectangle class>>locateMagnifiedView:scale:

Note: StrikeFont>>edit: now notifies user to edit strike fonts from an MVC project.

Help needed: There is no Morphic editor for strike fonts, see implementors of #editCharacter:ofFont:

=============== Diff against Morphic-ar.311 ===============

Item was added:
+ ----- Method: MorphicProject>>editCharacter:ofFont: (in category 'editors') -----
+ editCharacter: character ofFont: strikeFont
+ "Open a bit editor on a character in the given strike font."
+ "Note that BitEditor only works in MVC currently."
+
+ "(TextStyle default fontAt: 1) edit: $="
+
+ self inform: 'A Morphic editor has not been implemented. Enter an MVC project to edit this font.'!

Item was added:
+ ----- Method: MorphicProject>>bitEdit:at:scale: (in category 'editors') -----
+ bitEdit: aForm at: magnifiedFormLocation scale: scaleFactor
+ "Create and schedule a view whose top left corner is magnifiedLocation
+ and that contains a view of aForm magnified by scaleFactor that  can be
+ modified using the Bit Editor. It also contains a view of the original form."
+
+ self notYetImplemented!

Item was added:
+ ----- Method: MorphicProject>>bitEdit: (in category 'editors') -----
+ bitEdit: aForm
+ "Create and schedule a view located in an area designated by the user
+ that contains a view of the receiver magnified by 8@8 that can be
+ modified using the Bit Editor. It also contains a view of the original
+ form."
+
+ aForm currentHand attachMorph: (FatBitsPaint new editForm: aForm;
+ magnification: 8;
+ brushColor: Color black;
+ penSize: 1;
+ yourself)
+ !