[squeak-dev] The Trunk: Morphic-mt.1041.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Nov 16 09:44:44 UTC 2015


Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1041.mcz

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

Name: Morphic-mt.1041
Author: mt
Time: 16 November 2015, 10:44:04.404 am
UUID: 65752707-c5b1-4864-938d-2de09e9f5f31
Ancestors: Morphic-cmm.1040

Minor corrections for text undo considering prior undo functionality.

=============== Diff against Morphic-cmm.1040 ===============

Item was changed:
  ----- Method: TextMorph>>editHistory (in category 'multi level undo') -----
  editHistory
+ 	^ self editor history!
- 	editHistory ifNil: [ editHistory := TextMorphCommandHistory new].
- 	^editHistory
- !

Item was removed:
- ----- Method: TextMorph>>editHistory: (in category 'multi level undo') -----
- editHistory: aTextMorphCommandHistory
- 	^editHistory := aTextMorphCommandHistory 
- !

Item was changed:
  ----- Method: TextMorph>>veryDeepInner: (in category 'copying') -----
  veryDeepInner: deepCopier 
  	"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."
  
  	super veryDeepInner: deepCopier.
  	textStyle := textStyle veryDeepCopyWith: deepCopier.
  	text := text veryDeepCopyWith: deepCopier.
  	wrapFlag := wrapFlag veryDeepCopyWith: deepCopier.
  	paragraph := paragraph veryDeepCopyWith: deepCopier.
  	editor := editor veryDeepCopyWith: deepCopier.
  	container := container veryDeepCopyWith: deepCopier.
  	predecessor := predecessor.
  	successor := successor.
  	backgroundColor := backgroundColor veryDeepCopyWith: deepCopier.
+ 	margins := margins veryDeepCopyWith: deepCopier.!
- 	margins := margins veryDeepCopyWith: deepCopier.
- 	editHistory := editHistory veryDeepCopyWith: deepCopier.
- !

Item was removed:
- CommandHistory subclass: #TextMorphCommandHistory
- 	instanceVariableNames: 'textMorph'
- 	classVariableNames: ''
- 	poolDictionaries: ''
- 	category: 'Morphic-Text Support'!

Item was removed:
- ----- Method: TextMorphCommandHistory>>redo (in category 'command exec') -----
- redo
- 	^super redoNextCommand
- !

Item was removed:
- ----- Method: TextMorphCommandHistory>>rememberCommand: (in category 'command exec') -----
- rememberCommand: aCommand
- 	"Make the supplied command be the 'LastCommand', and mark it 'done'"
- 
- 	"Before adding the new command, remove any commands after the last #done 
- 	command, and make that last #done command be lastCommand."
- 	self removeUndoneCommands.
- 	aCommand phase: #done.
- 		
- 	"If we are building a compound command, just add the new command to that"
- 	history addLast: aCommand.
- 	lastCommand := aCommand.
- "Debug dShow: ('Remember: ', commandToUse asString)."
- 
- !

Item was removed:
- ----- Method: TextMorphCommandHistory>>removeUndoneCommands (in category 'command exec') -----
- removeUndoneCommands
- "Remove all of the commands at the end of history until the first one that is not marked #undone"
- 
- 	history reversed do: [ :command |
- 		(command phase == #done) ifTrue:[
- 			lastCommand := command.
- 			^self
- 		]ifFalse:[
- 			history remove: command.
- 		].
- 	].
- 	
- 	"If there were no #done commands on the stack, then get rid of lastCommand"
- 	lastCommand := nil.
- !

Item was removed:
- ----- Method: TextMorphCommandHistory>>undo (in category 'command exec') -----
- undo
- 	^super undoLastCommand
- 
- !

Item was removed:
- TextEditor subclass: #TextMorphEditor
- 	instanceVariableNames: ''
- 	classVariableNames: ''
- 	poolDictionaries: ''
- 	category: 'Morphic-Text Support'!
- 
- !TextMorphEditor commentStamp: 'dtl 1/21/2012 18:02' prior: 0!
- This is a stub class to replace the original implementation of a ParagraphEditor for TextMorphs, which has since been replaced by TextEditor. This implementation is retained for the benefit of external packages such as Connectors and FreeType that may have dependencies on TextMorphEditor.
- 
- The comment below is from the class comment of the original TextMorphEditor.
- -----
- In the past, BookMorphs had the ability to have each page be on the server as a .sp SqueakPage file.  The index of the book was a .bo file.  In text, Cmd-6 had a LinkTo option that linked to a page by its name, or created a new page of that name.  It assumed the book was on a server with a file per page.  Ted removed that code, and kept a copy on his disk in 'TME-ChngEmphasis.st for .bo .sp'!



More information about the Squeak-dev mailing list