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
69 changed files
with
227 additions
and
180 deletions.
There are no files selected for viewing
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,5 +1,5 @@ | ||
comparing | ||
hash | ||
|
||
"Answer an integer value that is related to the identity of the receiver." | ||
|
||
^ self id hash. |
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/SPBAuthenticationForm.class/instance/token.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 @@ | ||
accessing | ||
token | ||
|
||
^ token ifNil: [token := SPBAuthenticator token]. | ||
^ token | ||
ifNil: [token := SPBAuthenticator token]. |
3 changes: 2 additions & 1 deletion
3
Squello-Core.package/SPBAuthenticationForm.class/instance/username.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 @@ | ||
accessing | ||
username | ||
|
||
^ username ifNil: [username := SPBAuthenticator username]. | ||
^ username | ||
ifNil: [username := SPBAuthenticator username]. |
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/SPBBoard.class/instance/hasModelYellowButtonMenuItems.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,3 +1,4 @@ | ||
as yet unclassified | ||
hasModelYellowButtonMenuItems | ||
^ false | ||
|
||
^ false. |
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: 1 addition & 2 deletions
3
Squello-Core.package/SPBBoard.class/instance/setUpChangeProvider.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,5 +1,4 @@ | ||
initialize-release | ||
setUpChangeProvider | ||
|
||
self changeProvider projectId: self boardProvider projectId. | ||
"self changeProvider api getWebhookChanges: self changeProvider webhookId." | ||
self changeProvider projectId: self boardProvider projectId. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
accessing | ||
boards | ||
|
||
boards ifNil: [self boards: Dictionary new]. | ||
boards | ||
ifNil: [self boards: Dictionary new]. | ||
^ boards. |
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 @@ | ||
save/load | ||
load: anObject | ||
|
||
^ self boards at: anObject ifAbsent: nil. | ||
^ self boards at: anObject | ||
ifAbsent: nil. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing | ||
defaultCardExtent | ||
|
||
^ 270@100. | ||
^ 270 @ 100. |
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
7 changes: 4 additions & 3 deletions
7
Squello-Core.package/SPBCard.class/instance/calculateLabelPositionFor..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,12 +1,13 @@ | ||
updating-local | ||
calculateLabelPositionFor: aNumber | ||
|
||
| label previousLabel firstAttempt | | ||
| label previousLabel positionIfSameRow | | ||
previousLabel := self labelModels at: aNumber - 1. | ||
label := self labelModels at: aNumber. | ||
|
||
firstAttempt := (previousLabel position x + previousLabel extent x + self labelBorderOffset) @ previousLabel position y. | ||
firstAttempt x + label extent x <= (self extent x - self labelBorderOffset) ifTrue: [^ firstAttempt]. | ||
positionIfSameRow := (previousLabel position x + previousLabel extent x + self labelBorderOffset) @ previousLabel position y. | ||
positionIfSameRow x + label extent x <= (self extent x - self labelBorderOffset) | ||
ifTrue: [^ positionIfSameRow]. | ||
|
||
^ self labelBorderOffset @ | ||
(previousLabel position y + (previousLabel extent y + self inbetweenLabelOffset)). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
accessing | ||
isClosed | ||
|
||
isClosed ifNil: [self isClosed: false]. | ||
^ isClosed | ||
isClosed | ||
ifNil: [self isClosed: false. | ||
self updateStatus.]. | ||
^ isClosed. |
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 @@ | ||
accessing | ||
labels | ||
|
||
^ labels ifNil: [labels := OrderedCollection new]. | ||
^ labels | ||
ifNil: [labels := OrderedCollection new]. |
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 @@ | ||
context menu | ||
moveToTop | ||
|
||
|index| | ||
index := column cards indexOf: self. | ||
column addCardToTop: self. | ||
column cards removeAt: index+1. | ||
column resizeToFitCards. | ||
column alignCards. | ||
| index | | ||
index := column cards indexOf: self. | ||
column addCardToTop: self. | ||
column cards removeAt: index + 1. | ||
column resizeToFitCards. | ||
column alignCards. |
15 changes: 7 additions & 8 deletions
15
Squello-Core.package/SPBCard.class/instance/openContextMenu.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,10 @@ | ||
context menu | ||
openContextMenu | ||
|
||
| menu | | ||
|
||
menu := MenuMorph new defaultTarget: self. | ||
menu add: 'remove all Labels' action: #removeAllLabels. | ||
menu add: 'remove all Assignees' action: #removeAllAssignees. | ||
menu add: 'move to top' action: #moveToTop. | ||
menu add: 'toggle closed' action: #toggleClosed. | ||
menu popUpInWorld. | ||
| menu | | ||
menu := MenuMorph new defaultTarget: self. | ||
menu add: 'remove all Labels' action: #removeAllLabels. | ||
menu add: 'remove all Assignees' action: #removeAllAssignees. | ||
menu add: 'move to top' action: #moveToTop. | ||
menu add: 'toggle closed' action: #toggleClosed. | ||
menu popUpInWorld. |
13 changes: 6 additions & 7 deletions
13
Squello-Core.package/SPBCard.class/instance/removeAllAssignees.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 @@ | ||
context menu | ||
removeAllAssignees | ||
|
||
|size| | ||
size := assignees size. | ||
1 to: size do:[:a|self removeAssignee: assignees first]. | ||
"labels do:[:label | self removeLabel: label]." | ||
self column board sidebar | ||
changed: #potentialAssigneesList; | ||
changed: #activeCardAssigneeList. | ||
| size | | ||
size := assignees size. | ||
1 to: size do:[:a | self removeAssignee: assignees first.]. | ||
self column board sidebar | ||
changed: #potentialAssigneesList; | ||
changed: #activeCardAssigneeList. |
Oops, something went wrong.