Skip to content

Commit

Permalink
Merge pull request #27 from hpi-swa-teaching/as/buttons-remove(#1)
Browse files Browse the repository at this point in the history
Added remove buttons
  • Loading branch information
Adrian-St committed May 16, 2018
2 parents ba51479 + f6675f4 commit 833f2f9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"class" : {
"row:column:on:" : "LH 5/3/2018 19:54" },
"instance" : {
"acceptOnCR" : "JU 5/7/2018 19:25",
"bottomSide" : "LB 5/7/2018 16:36",
"bottomSide:" : "LB 5/7/2018 16:36",
"column" : "AS 5/3/2018 18:03",
"column:" : "AS 5/3/2018 18:03",
"crAction" : "JU 5/9/2018 13:05",
"grid" : "AS 5/3/2018 18:44",
"grid:" : "AS 5/3/2018 18:44",
"initialize" : "LB 5/10/2018 19:59",
Expand All @@ -25,6 +27,4 @@
"topSide" : "LB 5/7/2018 16:36",
"topSide:" : "LB 5/7/2018 16:36",
"wasInitialized" : "LB 5/7/2018 17:11",
"wasInitialized:" : "LB 5/7/2018 17:11",
"acceptOnCR" : "JU 5/7/2018 19:25",
"crAction" : "JU 5/9/2018 13:05" } }
"wasInitialized:" : "LB 5/7/2018 17:11" } }
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
"changeHeight:at:" : "LB 5/7/2018 15:14",
"changeWidth:at:" : "LB 5/7/2018 15:15",
"columns" : "AS 5/3/2018 17:02",
"initialize" : "LB 5/7/2018 15:37",
"removeColumn" : "LH 5/3/2018 22:06",
"removeColumnHoles" : "LB 5/7/2018 15:18",
"removeRow" : "LH 5/3/2018 22:06",
"removeRowHoles" : "LB 5/7/2018 15:13",
"grabbed" : "LH 5/6/2018 13:32",
"grabbed" : "LH 5/6/2018 13:32",
"grabbed:" : "LH 5/6/2018 13:32",
"handlesMouseDown:" : "LH 5/6/2018 13:30",
"handlesMouseStillDown:" : "LH 5/6/2018 13:30",
"handlesMouseUp:" : "LH 5/6/2018 13:34",
"handlesMouseUp:" : "LH 5/6/2018 13:34",
"initialize" : "LB 5/7/2018 15:37",
"mouseDown:" : "LH 5/6/2018 13:32",
"mouseStillDown:" : "LH 5/6/2018 13:34",
"mouseUp:" : "LH 5/6/2018 13:35",
"removeColumn" : "LH 5/3/2018 22:06",
"removeColumnHoles" : "LB 5/7/2018 15:18",
"removeRow" : "LH 5/3/2018 22:06",
"removeRowHoles" : "LB 5/7/2018 15:13",
"rows" : "AS 5/3/2018 17:04",
"standardGridSize" : "AS 5/3/2018 17:08",
"standardPosition" : "AS 5/3/2018 18:34" } }
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"class" : {
"newWithIndex:on:" : "LH 5/3/2018 19:54",
"col:on:" : "LB 5/10/2018 21:08",
"newWithIndex:on:" : "LH 5/3/2018 19:54",
"row:on:" : "LB 5/10/2018 21:28" },
"instance" : {
"addCell:" : "AS 5/3/2018 17:26",
"addEdgeGrips" : "LB 5/10/2018 21:28",
"cells" : "AS 5/3/2018 17:26",
"colOffset" : "LB 5/10/2018 19:46",
"column" : "LB 5/10/2018 20:16",
"column:" : "LB 5/10/2018 20:16",
"grid" : "LB 5/10/2018 20:16",
"grid:" : "LB 5/10/2018 20:16",
"index" : "AS 5/3/2018 17:54",
"index:" : "AS 5/3/2018 17:54",
"initialize" : "LB 5/10/2018 21:27",
"openColLabelInSpreadsheet" : "LB 5/10/2018 21:27",
"openRowLabelInSpreadsheet" : "LB 5/10/2018 21:27",
Expand All @@ -19,8 +23,4 @@
"standardHeight" : "LB 5/10/2018 20:15",
"standardWidth" : "LB 5/10/2018 20:15",
"type" : "LB 5/10/2018 21:08",
"type:" : "LB 5/10/2018 21:23",
"addCell:" : "AS 5/3/2018 17:26",
"cells" : "AS 5/3/2018 17:26",
"index" : "AS 5/3/2018 17:54",
"index:" : "AS 5/3/2018 17:54" } }
"type:" : "LB 5/10/2018 21:23" } }
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ initialize
self grid: (SpreadsheetGrid new position: 10@50).
self
addMorph: (SimpleButtonMorph new label: 'Add Row'; actionSelector: #addRow; target: self grid; position: 20@10);
addMorph: (SimpleButtonMorph new label: 'Add Column'; actionSelector: #addColumn; target: self grid; position: 80@10);
addMorph: (SimpleButtonMorph new label: 'Add Column'; actionSelector: #addColumn; target: self grid; position: 100@10);
addMorph: (SimpleButtonMorph new label: 'Remove Row'; actionSelector: #removeRow; target: self grid; position: 200@10);
addMorph: (SimpleButtonMorph new label: 'Remove Column'; actionSelector: #removeColumn; target: self grid; position: 300@10);

addMorph: self grid.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"instance" : {
"grid" : "LH 5/5/2018 18:17",
"grid:" : "LH 5/5/2018 18:17",
"initialize" : "AS 5/16/2018 10:59",
"initialize" : "AS 5/16/2018 12:34",
"tool" : "LH 5/5/2018 18:17",
"tool:" : "LH 5/5/2018 18:17" } }

0 comments on commit 833f2f9

Please sign in to comment.