Skip to content

Commit

Permalink
Add class comments for all tools.
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerAK committed Aug 2, 2022
1 parent 4e59eb6 commit e8024c7
Show file tree
Hide file tree
Showing 60 changed files with 60 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2ActionTool is an M2Tool which is an abstract class for all action tools that are only a one-time action or a single click.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 16:39",
"instvars" : [
],
"name" : "M2ActionTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2BrushTool is an M2Tool which is an abstract superclass for all tools that mimic the behavior of brushes, pencils or erasers.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 16:46",
"instvars" : [
"pen" ],
"name" : "M2BrushTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2CircleBrushTool is an M2RoundBrushTool which mimics a brush with a circular nib.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:40",
"instvars" : [
],
"name" : "M2CircleBrushTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2ClearCanvasTool is an M2ActionTool which can be used to clear the current layer.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:15",
"instvars" : [
],
"name" : "M2ClearCanvasTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2EllipseShape is an M2ResizingGeometricshape which can be used to create ellipses and circles.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:12",
"instvars" : [
],
"name" : "M2EllipseShape",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2EraserBrushTool is an M2RoundBrushTool which mimics an eraser.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 17:03",
"instvars" : [
],
"name" : "M2EraserBrushTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2ExportMorphTool is an M2ActionTool which exports all layers combined as a morph.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:58",
"instvars" : [
],
"name" : "M2ExportMorphTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2ExportPNGTool is an M2ActionTool which exports all layers combined as a PNG-file.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 16:39",
"instvars" : [
],
"name" : "M2ExportPNGTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2FillAreaTool is an M2Tool which can be used to fill a certain area or the entire canvas with a selected color.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:42",
"instvars" : [
],
"name" : "M2FillAreaTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2GeometricShape is an abstract superclass for different geometric shapes that can be used by different tools.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 16:14",
"instvars" : [
"context",
"morph" ],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2GeometricTool is an M2TemporaryMorphTool which is used to draw geometric shapes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 17:01",
"instvars" : [
],
"name" : "M2GeometricTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2ImportImageTool is an M2ActionTool which can be used to import an image.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:54",
"instvars" : [
],
"name" : "M2ImportImageTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2InsertSelectionTool is an M2Tool which can be used to paste the current selection from the clipboard onto the canvas.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 16:58",
"instvars" : [
],
"name" : "M2InsertSelectionTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2LassoShape is an M2GeometricShape which can be used to create free form shapes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 16:24",
"instvars" : [
],
"name" : "M2LassoShape",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2PencilBrushTool is an M2RoundBrushTool which mimics a pencil.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 16:47",
"instvars" : [
],
"name" : "M2PencilBrushTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2PipetteTool is an M2ActionTool which can be used to select a color from the entire screen.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 16:41",
"instvars" : [
],
"name" : "M2PipetteTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2RectangleBrushTool is an M2BrushTool which mimics a brush with a rectangular nib.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:40",
"instvars" : [
],
"name" : "M2RectangleBrushTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2RectangleShape is an M2ResizingGeometricshape which can be used to create rectangles.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:13",
"instvars" : [
],
"name" : "M2RectangleShape",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2ResizingGeometricShape is an M2GeometricShape which is an abstract supperclass for all geometric shapes which can be resized.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:52",
"instvars" : [
"startPoint" ],
"name" : "M2ResizingGeometricShape",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2RoundBrushTool is an M2BrushTool which is an abstract superclass for all rounded brush tools.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:37",
"instvars" : [
],
"name" : "M2RoundBrushTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2SelectTool is an M2TemporaryMorphTool which shows a preview of the selected area until another tool is selected and at the same time it also copies the selected area into the clipboard.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 17:01",
"instvars" : [
],
"name" : "M2SelectTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2TemporaryMorphTool is an M2Tool which is an abstract superclass for all tools which create M2TemporaryGeometricMorphs.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 16:59",
"instvars" : [
"morph",
"shapeClass",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2TextFontTool is an M2Tool wich can be used to choose the font style of texts.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 17:02",
"instvars" : [
],
"name" : "M2TextFontTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2TextTool is an M2Tool which can be used to insert text.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:47",
"instvars" : [
"nextStartFinishes",
"temporaryTextMorph" ],
Expand Down
1 change: 1 addition & 0 deletions packages/SketchMorph2-Tools.package/M2Tool.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2Tool is an abstract superclass for all tools which can be used by the user.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 16:34",
"instvars" : [
"context",
"isActive" ],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2TriangleBrushTool is an M2BrushTool which mimics a brush with a triangular nib.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:42",
"instvars" : [
],
"name" : "M2TriangleBrushTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2TriangleShape is an M2ResizingGeometricshape which can be used to create equilateral and isosceles triangles.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 16:28",
"instvars" : [
],
"name" : "M2TriangleShape",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2ZoomDefaultTool is an M2ActionTool which resets the canvas zoom to 100%.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:17",
"instvars" : [
],
"name" : "M2ZoomDefaultTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2ZoomInTool is an M2ActionTool which can be used to zoom in the canvas.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 15:17",
"instvars" : [
],
"name" : "M2ZoomInTool",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
An M2ZoomOutTool is an M2ActionTool which can be used to zoom out the canvas.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "KR 8/2/2022 17:04",
"instvars" : [
],
"name" : "M2ZoomOutTool",
Expand Down

0 comments on commit e8024c7

Please sign in to comment.