generated from hpi-swa-teaching/SWT-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
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
20 changed files
with
82 additions
and
31 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
Squello-Core.package/SPBBoardSaver.class/instance/contains..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 @@ | ||
save/load | ||
contains: anObject | ||
|
||
^ self boards includesKey: anObject. |
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
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
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
3 changes: 2 additions & 1 deletion
3
Squello-Core.package/SPBLandingPage.class/instance/deleteAllLocal.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,5 @@ | ||
actions | ||
deleteAllLocal | ||
|
||
Transcript showln: 'delete all'. | ||
SPBBoardSaver defaultSaver clear. | ||
self updateUI. |
5 changes: 5 additions & 0 deletions
5
Squello-Core.package/SPBLandingPage.class/instance/deleteBoardFromButton..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 @@ | ||
actions | ||
deleteBoardFromButton: aString | ||
|
||
SPBBoardSaver defaultSaver delete: aString. | ||
self updateUI. |
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
5 changes: 5 additions & 0 deletions
5
Squello-Core.package/SPBLandingPage.class/instance/openBoardFromButton..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 @@ | ||
actions | ||
openBoardFromButton: aString | ||
|
||
SPBBoard openFromPrompt: aString. | ||
self updateUI. |
10 changes: 8 additions & 2 deletions
10
Squello-Core.package/SPBLandingPage.class/instance/openNewLocalBoard.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,10 @@ | ||
actions | ||
openNewLocalBoard | ||
|
||
Transcript showln: 'dbhajdk'. | ||
|
||
| prompt boardName | | ||
prompt := FillInTheBlank request: 'Enter a name for the local board.'. | ||
boardName := SPBBoard localPrefix, prompt. | ||
(SPBBoardSaver defaultSaver contains: boardName) | ||
ifTrue: [UIManager inform: 'A board with this name already exists'. ^self.]. | ||
SPBBoard openFromPrompt: boardName. | ||
self updateUI. |
11 changes: 11 additions & 0 deletions
11
Squello-Core.package/SPBLandingPage.class/instance/renameBoardFromButton..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,11 @@ | ||
actions | ||
renameBoardFromButton: aString | ||
|
||
| prompt boardName | | ||
prompt := FillInTheBlank request: 'Enter a new name for the local board.'. | ||
boardName := SPBBoard localPrefix, prompt. | ||
(SPBBoardSaver defaultSaver contains: boardName) | ||
ifTrue: [UIManager inform: 'A board with this name already exists'. ^ self.]. | ||
SPBBoardSaver defaultSaver save: (SPBBoardSaver defaultSaver load: aString) as: boardName. | ||
SPBBoardSaver defaultSaver delete: aString. | ||
self updateUI. |
5 changes: 5 additions & 0 deletions
5
Squello-Core.package/SPBLandingPage.class/instance/updateUI.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 @@ | ||
actions | ||
updateUI | ||
|
||
self changed: #lastSidebarPart. | ||
self changed: #contentPanelChildren. |
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
6 changes: 6 additions & 0 deletions
6
Squello-Tests.package/SPBLocalSaveTests.class/instance/testContains.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,6 @@ | ||
tests | ||
testContains | ||
|
||
self assert: (saver contains: self defaultKey) not. | ||
saver save: self defaultValue as: self defaultKey. | ||
self assert: (saver contains: self defaultKey). |
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