-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...ges/SketchMorph2-Core.package/M2DrawingContext.class/instance/isInSelectionPreviewMode.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
isInSelectionPreviewMode | ||
^ self mode = #selectionPreview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/SketchMorph2-Core.package/M2ViewPort.class/instance/copySelection.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
drawing | ||
copySelection | ||
| form | | ||
self context isInSelectionPreviewMode ifFalse: [ ^ self ]. | ||
form := self backend activeForm contentsOfArea: self selectionBounds. | ||
form := self clipSelection: form. | ||
self clipboardForm: form. | ||
self temporaryGeometricMorph delete. | ||
self context mode: #selection |
6 changes: 1 addition & 5 deletions
6
packages/SketchMorph2-Core.package/M2ViewPort.class/instance/finishSelection.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
drawing | ||
finishSelection | ||
| form | | ||
form := self backend activeForm contentsOfArea: self selectionBounds. | ||
form := self clipSelection: form. | ||
self clipboardForm: form. | ||
self temporaryGeometricMorph delete | ||
self context mode: #selectionPreview |
5 changes: 5 additions & 0 deletions
5
packages/SketchMorph2-Core.package/M2ViewPort.class/instance/removeSelection.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
drawing | ||
removeSelection | ||
|
||
self temporaryGeometricMorph delete. | ||
self context mode: #selection |
1 change: 1 addition & 0 deletions
1
packages/SketchMorph2-Core.package/M2ViewPort.class/instance/switchMode.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
tool selection | ||
switchMode | ||
self context isInSelectionPreviewMode ifTrue: [ self removeSelection ]. | ||
self commitText. | ||
self finishGeometricForm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/SketchMorph2-Core.package/MorphicMonet.class/instance/copyToClipboard.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
tooling | ||
copyToClipboard | ||
|
||
self viewPort copySelection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters