-
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
25 changed files
with
98 additions
and
9 deletions.
There are no files selected for viewing
11 changes: 7 additions & 4 deletions
11
packages/SketchMorph2-Core.package/M2Flip.class/class/onClick..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,8 +1,11 @@ | ||
clicking | ||
onClick: anM2DrawingContext | ||
| tool | | ||
tool := anM2DrawingContext | ||
| selectTool | | ||
selectTool := anM2DrawingContext | ||
cachedTool: #select | ||
ifAbsent: [^ anM2DrawingContext morphicMonet clickMenuItemWith: M2SelectRectangle label]. | ||
(tool isActive and: [tool nextStartFinishes]) | ||
ifTrue: [tool mirrorAt: self mirrorDirection] | ||
selectTool isShapeDrawn ifTrue: [ | ||
super onClick: anM2DrawingContext. | ||
(self tool: anM2DrawingContext) mirrorUsing: selectTool. | ||
anM2DrawingContext activeTool: selectTool. | ||
selectTool afterMirror] |
3 changes: 1 addition & 2 deletions
3
packages/SketchMorph2-Core.package/M2Flip.class/methodProperties.json
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,6 @@ | ||
{ | ||
"class" : { | ||
"isActivatable" : "md 7/20/2022 14:54", | ||
"mirrorDirection" : "AG 8/1/2022 19:04", | ||
"onClick:" : "AG 8/1/2022 19:05" }, | ||
"onClick:" : "md 8/2/2022 17:28" }, | ||
"instance" : { | ||
} } |
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 |
---|---|---|
|
@@ -10,5 +10,5 @@ | |
"name" : "M2Flip", | ||
"pools" : [ | ||
], | ||
"super" : "M2IconMenuItem", | ||
"super" : "M2ToolMenuItem", | ||
"type" : "normal" } |
3 changes: 3 additions & 0 deletions
3
packages/SketchMorph2-Core.package/M2FlipHorizontal.class/class/createTool.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 @@ | ||
tool | ||
createTool | ||
^ M2FlipHorizontalTool new |
3 changes: 3 additions & 0 deletions
3
packages/SketchMorph2-Core.package/M2FlipHorizontal.class/class/toolName.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 @@ | ||
tool | ||
toolName | ||
^ #flipHorizontal |
3 changes: 2 additions & 1 deletion
3
packages/SketchMorph2-Core.package/M2FlipHorizontal.class/methodProperties.json
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,8 @@ | ||
{ | ||
"class" : { | ||
"createTool" : "md 8/2/2022 17:14", | ||
"icon" : "KR 6/23/2022 13:17", | ||
"label" : "AG 6/21/2022 12:21", | ||
"mirrorDirection" : "AG 8/1/2022 19:04" }, | ||
"toolName" : "md 8/2/2022 17:14" }, | ||
"instance" : { | ||
} } |
3 changes: 3 additions & 0 deletions
3
packages/SketchMorph2-Core.package/M2FlipVertical.class/class/createTool.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 @@ | ||
tool | ||
createTool | ||
^ M2FlipVerticalTool new |
3 changes: 3 additions & 0 deletions
3
packages/SketchMorph2-Core.package/M2FlipVertical.class/class/toolName.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 @@ | ||
tool | ||
toolName | ||
^ #flipVertical |
3 changes: 2 additions & 1 deletion
3
packages/SketchMorph2-Core.package/M2FlipVertical.class/methodProperties.json
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,8 @@ | ||
{ | ||
"class" : { | ||
"createTool" : "md 8/2/2022 17:15", | ||
"icon" : "KR 6/23/2022 13:17", | ||
"label" : "AG 6/21/2022 12:24", | ||
"mirrorDirection" : "AG 8/1/2022 19:03" }, | ||
"toolName" : "md 8/2/2022 17:15" }, | ||
"instance" : { | ||
} } |
Empty file.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
packages/SketchMorph2-Tools.package/M2FlipHorizontalTool.class/methodProperties.json
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 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"mirrorDirection" : "md 8/2/2022 17:13" } } |
14 changes: 14 additions & 0 deletions
14
packages/SketchMorph2-Tools.package/M2FlipHorizontalTool.class/properties.json
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,14 @@ | ||
{ | ||
"category" : "SketchMorph2-Tools", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "M2FlipHorizontalTool", | ||
"pools" : [ | ||
], | ||
"super" : "M2FlipTool", | ||
"type" : "normal" } |
Empty file.
4 changes: 4 additions & 0 deletions
4
packages/SketchMorph2-Tools.package/M2FlipTool.class/instance/activate.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 @@ | ||
activating | ||
activate | ||
super activate. | ||
self backend createUserAction |
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
packages/SketchMorph2-Tools.package/M2FlipTool.class/instance/mirrorUsing..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 @@ | ||
mirroring | ||
mirrorUsing: anM2SelectTool | ||
anM2SelectTool mirrorAt: self mirrorDirection. | ||
self backend finishUserAction |
7 changes: 7 additions & 0 deletions
7
packages/SketchMorph2-Tools.package/M2FlipTool.class/methodProperties.json
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,7 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"activate" : "md 8/2/2022 17:09", | ||
"mirrorDirection" : "md 8/2/2022 17:11", | ||
"mirrorUsing:" : "md 8/2/2022 17:10" } } |
14 changes: 14 additions & 0 deletions
14
packages/SketchMorph2-Tools.package/M2FlipTool.class/properties.json
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,14 @@ | ||
{ | ||
"category" : "SketchMorph2-Tools", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "M2FlipTool", | ||
"pools" : [ | ||
], | ||
"super" : "M2Tool", | ||
"type" : "normal" } |
Empty file.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
packages/SketchMorph2-Tools.package/M2FlipVerticalTool.class/methodProperties.json
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 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"mirrorDirection" : "md 8/2/2022 17:12" } } |
14 changes: 14 additions & 0 deletions
14
packages/SketchMorph2-Tools.package/M2FlipVerticalTool.class/properties.json
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,14 @@ | ||
{ | ||
"category" : "SketchMorph2-Tools", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "M2FlipVerticalTool", | ||
"pools" : [ | ||
], | ||
"super" : "M2FlipTool", | ||
"type" : "normal" } |
5 changes: 5 additions & 0 deletions
5
packages/SketchMorph2-Tools.package/M2SelectTool.class/instance/afterMirror.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 @@ | ||
mirroring | ||
afterMirror | ||
self | ||
addMorphToCanvas; | ||
nextStartFinishes: true |
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