Skip to content

Commit

Permalink
Refactor zoom tools
Browse files Browse the repository at this point in the history
  • Loading branch information
kbroschke committed Jul 19, 2022
1 parent 54908e3 commit e0dc1e0
Show file tree
Hide file tree
Showing 29 changed files with 103 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
createTool
^ M2ZoomDefaultTool new
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
toolName
^ #zoomDefault
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"class" : {
"actionSelector" : "K.P. 6/26/2021 16:23",
"createTool" : "kbr 7/19/2022 23:30",
"icon" : "K.P. 6/26/2021 16:23",
"isActivatable" : "K.P. 6/26/2021 16:23",
"label" : "K.P. 6/26/2021 16:23" },
"label" : "K.P. 6/26/2021 16:23",
"toolName" : "kbr 7/19/2022 23:29" },
"instance" : {
} }
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"name" : "M2ZoomDefault",
"pools" : [
],
"super" : "M2IconMenuItem",
"super" : "M2ToolMenuItem",
"type" : "normal" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
createTool
^ M2ZoomInTool new
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
toolName
^ #zoomIn
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"class" : {
"actionSelector" : "CS 6/16/2021 15:42",
"createTool" : "kbr 7/19/2022 23:30",
"icon" : "jb 6/16/2021 22:04",
"isActivatable" : "CS 6/16/2021 15:42",
"label" : "CS 6/16/2021 15:43" },
"label" : "CS 6/16/2021 15:43",
"toolName" : "kbr 7/19/2022 23:30" },
"instance" : {
} }
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"name" : "M2ZoomIn",
"pools" : [
],
"super" : "M2IconMenuItem",
"super" : "M2ToolMenuItem",
"type" : "normal" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
createTool
^ M2ZoomOutTool new
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
toolName
^ #zoomOut
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"class" : {
"actionSelector" : "CS 6/16/2021 15:43",
"createTool" : "kbr 7/19/2022 23:31",
"icon" : "jb 6/16/2021 22:04",
"isActivatable" : "CS 6/16/2021 15:43",
"label" : "CS 6/16/2021 15:43" },
"label" : "CS 6/16/2021 15:43",
"toolName" : "kbr 7/19/2022 23:30" },
"instance" : {
} }
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"name" : "M2ZoomOut",
"pools" : [
],
"super" : "M2IconMenuItem",
"super" : "M2ToolMenuItem",
"type" : "normal" }
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ menuMiscCollection
add: (M2ExportMorph getMenuItemForTarget: self backend);
add: (M2ExportPNG getMenuItemForTarget: self);
add: (M2Undo getMenuItemForTarget: self);
add: (M2ZoomIn getMenuItemForTarget: self canvas);
add: (M2ZoomOut getMenuItemForTarget: self canvas);
add: (M2ZoomDefault getMenuItemForTarget: self canvas);
add: (M2ZoomIn getMenuItemForContext: self context);
add: (M2ZoomOut getMenuItemForContext: self context);
add: (M2ZoomDefault getMenuItemForContext: self context);
yourself]
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"menuGeometricCollection:" : "mFr 5/19/2021 12:17",
"menuItemBorderColor" : "CS 8/6/2021 18:56",
"menuItemBorderWidth" : "CS 8/6/2021 18:56",
"menuMiscCollection" : "kbr 7/19/2022 21:54",
"menuMiscCollection" : "kbr 7/19/2022 23:28",
"menuMiscCollection:" : "mFr 5/19/2021 12:17",
"menuPanel" : "mFr 5/19/2021 10:57",
"menuPanel:" : "mFr 5/19/2021 10:57",
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
target
^ self context canvas
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"class" : {
},
"instance" : {
"actionSelector" : "kbr 7/19/2022 23:26",
"target" : "kbr 7/19/2022 23:26" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"category" : "SketchMorph2-Tools",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "M2ZoomDefaultTool",
"pools" : [
],
"super" : "M2ActionTool",
"type" : "normal" }
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
target
^ self context canvas
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"class" : {
},
"instance" : {
"actionSelector" : "kbr 7/19/2022 23:27",
"target" : "kbr 7/19/2022 23:26" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"category" : "SketchMorph2-Tools",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "M2ZoomInTool",
"pools" : [
],
"super" : "M2ActionTool",
"type" : "normal" }
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
target
^ self context canvas
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"class" : {
},
"instance" : {
"actionSelector" : "kbr 7/19/2022 23:27",
"target" : "kbr 7/19/2022 23:26" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"category" : "SketchMorph2-Tools",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "M2ZoomOutTool",
"pools" : [
],
"super" : "M2ActionTool",
"type" : "normal" }

0 comments on commit e0dc1e0

Please sign in to comment.