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.
merge FeatureLandingPage into master
- Loading branch information
Showing
31 changed files
with
137 additions
and
91 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
4 changes: 2 additions & 2 deletions
4
Squello-Core.package/SPBLandingPage.class/instance/buildAuthButtonSpecWith..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,8 +1,8 @@ | ||
toolbuilder | ||
buildAuthButtonSpecWith: aBuilder | ||
|
||
^ aBuilder build: (aBuilder pluggableButtonSpec new | ||
^ aBuilder pluggableButtonSpec new | ||
model: self; | ||
action: #openAuthPanel; | ||
label: 'Open Auth Panel'; | ||
yourself). | ||
yourself. |
6 changes: 3 additions & 3 deletions
6
...lo-Core.package/SPBLandingPage.class/instance/buildDeleteAllLocalBoardsButtonSpecWith..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,9 +1,9 @@ | ||
toolbuilder-manage panel | ||
buildDeleteAllLocalBoardsButtonSpecWith: aBuilder | ||
|
||
^ aBuilder build: (aBuilder pluggableButtonSpec new | ||
^ aBuilder pluggableButtonSpec new | ||
model: self; | ||
verticalResizing: #rigid; | ||
action: #deleteAllLocal; | ||
label: 'Delete All'; | ||
yourself). | ||
|
||
yourself. |
9 changes: 5 additions & 4 deletions
9
...ckage/SPBLandingPage.class/instance/buildDeleteLocalBoardButtonSpecWith.withBoardName..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,8 +1,9 @@ | ||
toolbuilder-manage panel | ||
buildDeleteLocalBoardButtonSpecWith: aBuilder withBoardName: aString | ||
|
||
^ "aBuilder build:" (aBuilder pluggableButtonSpec new | ||
model: self; | ||
^ aBuilder pluggableButtonSpec new | ||
model: [self deleteBoardFromButton: aString]; | ||
action: #value; | ||
horizontalResizing: #shrinkWrap; | ||
label: 'Delete'; | ||
yourself). | ||
|
||
yourself. |
4 changes: 0 additions & 4 deletions
4
Squello-Core.package/SPBLandingPage.class/instance/buildLocalBoardCommonActionChildren.st
This file was deleted.
Oops, something went wrong.
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
8 changes: 4 additions & 4 deletions
8
...-Core.package/SPBLandingPage.class/instance/buildLocalBoardNameSpecWith.withBoardName..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,8 +1,8 @@ | ||
toolbuilder-manage panel | ||
buildLocalBoardNameSpecWith: aBuilder withBoardName: aString | ||
|
||
^ "aBuilder build:" (aBuilder pluggableTextSpec new | ||
^ aBuilder pluggableButtonSpec new | ||
model: self; | ||
setText: aString; | ||
yourself). | ||
|
||
label: (aString copyFrom: SPBBoard localPrefix size + 1 to: aString size); | ||
horizontalResizing: #shrinkWrap; | ||
yourself. |
10 changes: 5 additions & 5 deletions
10
Squello-Core.package/SPBLandingPage.class/instance/buildLocalBoardPanelSpecWith.withName..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,15 +1,15 @@ | ||
toolbuilder-manage panel | ||
buildLocalBoardPanelSpecWith: aBuilder withName: aName | ||
|
||
^ "aBuilder build:" (aBuilder pluggablePanelSpec new | ||
^ aBuilder pluggablePanelSpec new | ||
model: self; | ||
layout: #horizontal; | ||
minimumHeight: 50px; | ||
horizontalResizing: #rigid; | ||
minimumHeight: (50px); | ||
children: { | ||
self buildLocalBoardNameSpecWith: aBuilder withBoardName: aName. | ||
self buildOpenLocalBoardButtonSpecWith: aBuilder withBoardName: aName. | ||
self buildRenameLocalBoardButtonSpecWith: aBuilder withBoardName: aName. | ||
self buildDeleteLocalBoardButtonSpecWith: aBuilder withBoardName: aName. | ||
self buildLocalBoardNameSpecWith: aBuilder withBoardName: aName. | ||
}; | ||
yourself). | ||
|
||
yourself. |
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: 9 additions & 6 deletions
15
Squello-Core.package/SPBLandingPage.class/instance/buildManageLocalBoardPanelSpecWith..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,8 +1,11 @@ | ||
toolbuilder-manage panel | ||
buildManageLocalBoardPanelSpecWith: aBuilder | ||
"We just reuse this from the SquotBrowser, idk if this is good" | ||
|
||
^ SquotGUIUtilities buildVerticalLayout: { | ||
self buildLocalBoardsListSpecWith: aBuilder. | ||
self buildLocalBoardCommonActionsSpecWith: aBuilder. | ||
} with: aBuilder | ||
|
||
^ aBuilder pluggablePanelSpec new | ||
model: self; | ||
layout: #vertical; | ||
children: { | ||
self buildLocalBoardsListSpecWith: aBuilder. | ||
self buildLocalBoardCommonActionsSpecWith: aBuilder. | ||
}; | ||
yourself. |
7 changes: 3 additions & 4 deletions
7
Squello-Core.package/SPBLandingPage.class/instance/buildNewLocalBoardButtonSpecWith..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,10 +1,9 @@ | ||
toolbuilder-manage panel | ||
buildNewLocalBoardButtonSpecWith: aBuilder | ||
|
||
^ aBuilder build: (aBuilder pluggableButtonSpec new | ||
^ aBuilder pluggableButtonSpec new | ||
model: self; | ||
verticalResizing: #shrinkWrap; | ||
verticalResizing: #rigid; | ||
action: #openNewLocalBoard; | ||
label: 'New Local'; | ||
yourself). | ||
|
||
yourself. |
4 changes: 2 additions & 2 deletions
4
Squello-Core.package/SPBLandingPage.class/instance/buildOpenButtonSpecWith..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,8 +1,8 @@ | ||
toolbuilder | ||
buildOpenButtonSpecWith: aBuilder | ||
|
||
^ aBuilder build: (aBuilder pluggableButtonSpec new | ||
^ aBuilder pluggableButtonSpec new | ||
model: self; | ||
action: #openBoard; | ||
label: 'Open Board'; | ||
yourself). | ||
yourself. |
9 changes: 5 additions & 4 deletions
9
...package/SPBLandingPage.class/instance/buildOpenLocalBoardButtonSpecWith.withBoardName..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,8 +1,9 @@ | ||
toolbuilder-manage panel | ||
buildOpenLocalBoardButtonSpecWith: aBuilder withBoardName: aString | ||
|
||
^ "aBuilder build:" (aBuilder pluggableButtonSpec new | ||
model: self; | ||
^ aBuilder pluggableButtonSpec new | ||
model: [self openBoardFromButton: aString]; | ||
action: #value; | ||
horizontalResizing: #shrinkWrap; | ||
label: 'Open'; | ||
yourself). | ||
|
||
yourself. |
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
5 changes: 2 additions & 3 deletions
5
...e.package/SPBLandingPage.class/instance/buildRecentLocalBoardsButtonSpecWith.withName..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,9 +1,8 @@ | ||
toolbuilder-recent boards | ||
buildRecentLocalBoardsButtonSpecWith: aBuilder withName: aName | ||
|
||
^ aBuilder build: (aBuilder pluggableButtonSpec new | ||
^ aBuilder pluggableButtonSpec new | ||
model: [SPBBoard openFromPrompt: aName]; | ||
action: #value; | ||
label: aName; | ||
yourself). | ||
|
||
yourself. |
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
9 changes: 5 additions & 4 deletions
9
...ckage/SPBLandingPage.class/instance/buildRenameLocalBoardButtonSpecWith.withBoardName..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,8 +1,9 @@ | ||
toolbuilder-manage panel | ||
buildRenameLocalBoardButtonSpecWith: aBuilder withBoardName: aString | ||
|
||
^ "aBuilder build:" (aBuilder pluggableButtonSpec new | ||
model: self; | ||
^ aBuilder pluggableButtonSpec new | ||
model: [self renameBoardFromButton: aString]; | ||
action: #value; | ||
horizontalResizing: #shrinkWrap; | ||
label: 'Rename'; | ||
yourself). | ||
|
||
yourself. |
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. |
Oops, something went wrong.