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
Antonia Heinen
committed
Jul 12, 2024
1 parent
72f6a9d
commit e3326dd
Showing
45 changed files
with
172 additions
and
129 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
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. |
13 changes: 6 additions & 7 deletions
13
Squello-Core.package/SPBCard.class/instance/removeAllLabels.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 | ||
removeAllLabels | ||
|
||
|size| | ||
size := labels size. | ||
1 to: size do:[:a|self removeLabel: labels first]. | ||
"labels do:[:label | self removeLabel: label]." | ||
self column board sidebar | ||
changed: #potentialLabelsList; | ||
changed: #activeCardLabelList. | ||
| size | | ||
size := labels size. | ||
1 to: size do:[:a | self removeLabel: labels first]. | ||
self column board sidebar | ||
changed: #potentialLabelsList; | ||
changed: #activeCardLabelList. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
accessing | ||
title | ||
|
||
^ title ifNil: [title := '']. | ||
^ title | ||
ifNil: [title := '']. |
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,6 +1,7 @@ | ||
updating | ||
toggleClosed | ||
|
||
self isNote ifTrue: [^ self]. | ||
self isNote | ||
ifTrue: [^ self]. | ||
self isClosed: self isClosed not. | ||
self boardProvider updateCard: self. |
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,6 +1,10 @@ | ||
updating-local | ||
updateStatus | ||
|
||
self isNote ifTrue: [self statusModel contents: 'Note'. ^ self.]. | ||
self isClosed ifTrue: [self statusModel contents: 'Closed'. ^ self.]. | ||
self isNote | ||
ifTrue: [self statusModel contents: 'Note'. | ||
^ self.]. | ||
self isClosed | ||
ifTrue: [self statusModel contents: 'Closed'. | ||
^ self.]. | ||
self statusModel contents: 'Open'. |
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
2 changes: 2 additions & 0 deletions
2
Squello-Core.package/SPBLocalBoardProvider.class/instance/moveCard.after.toColumn..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,2 +1,4 @@ | ||
columns | ||
moveCard: anSPBCard after: anotherSPBCard toColumn: anSPBColumn | ||
|
||
"do nothing" |
3 changes: 2 additions & 1 deletion
3
Squello-Core.package/SPBLocalBoardProvider.class/instance/moveCardToTop.toColumn..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 @@ | ||
columns | ||
moveCardToTop: aSPBCard toColumn: aSPBColumn | ||
|
||
|
||
"do nothing" |
Oops, something went wrong.