-
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
8 changed files
with
22 additions
and
23 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/Spreadsheet-Core.package/SpreadsheetGrid.class/instance/defaultGridSize.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,4 @@ | ||
constants | ||
defaultGridSize | ||
" rows @ cols " | ||
^ 30 @ 15 | ||
^ 12 @ 6 |
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
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
15 changes: 8 additions & 7 deletions
15
packages/Spreadsheet-Core.package/SpreadsheetGrid.class/instance/drawOutlineOn..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,11 +1,12 @@ | ||
drawing | ||
drawOutlineOn: aCanvas | ||
|
||
"Mark all Label" | ||
aCanvas fillRectangle: (Rectangle origin: self position corner: self position + self defaultSize) color: Color gray. | ||
"Borders" | ||
aCanvas fillRectangle: (Rectangle origin: self position corner: self topRight + 1) color: Color black . | ||
aCanvas fillRectangle: (Rectangle origin: self position corner: self bottomLeft + 1) color: Color black. | ||
aCanvas fillRectangle: (Rectangle origin: self topRight corner: self bottomRight + 1) color: Color black. | ||
aCanvas fillRectangle: (Rectangle origin: self bottomLeft corner: self bottomRight + 1) color: Color black. | ||
aCanvas fillRectangle: (Rectangle origin: self position + self defaultSize corner: (self right - 20 @ self position y + self defaultSize y) + 1) color: Color black. "No idea where - 20 is coming from" | ||
aCanvas fillRectangle: (Rectangle origin: self position + self defaultSize corner: (self position x + self defaultSize x @ self bottom) +1 ) color: Color black. | ||
|
||
aCanvas fillRectangle: (Rectangle origin: self position corner: self topRight + (0@1)) color: Color black. | ||
aCanvas fillRectangle: (Rectangle origin: self position corner: self bottomLeft + (1@0)) color: Color black. | ||
aCanvas fillRectangle: (Rectangle origin: self topRight - (1@0) corner: self bottomRight) color: Color black. | ||
aCanvas fillRectangle: (Rectangle origin: self bottomLeft - (0@1) corner: self bottomRight) color: Color black. | ||
aCanvas fillRectangle: (Rectangle origin: self position + (0@self defaultSize y) corner: (self right - 20 @ self position y + self defaultSize y) + (0@1)) color: Color black. "No idea where - 20 is coming from" | ||
aCanvas fillRectangle: (Rectangle origin: self position + (self defaultSize x@0) corner: (self position x + self defaultSize x @ self bottom) +(1@0)) color: Color black. |
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
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