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 FeatureCardContextMenu into master
- Loading branch information
Showing
8 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
as yet unclassified | ||
hasModelYellowButtonMenuItems | ||
^ 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
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,9 @@ | ||
context menu | ||
moveToTop | ||
|
||
|index| | ||
index := column cards indexOf: self. | ||
column addCardToTop: self. | ||
column cards removeAt: index+1. | ||
column resizeToFitCards. | ||
column alignCards. |
11 changes: 11 additions & 0 deletions
11
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
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. |
10 changes: 10 additions & 0 deletions
10
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
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. |
10 changes: 10 additions & 0 deletions
10
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
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. |
6 changes: 4 additions & 2 deletions
6
Squello-Core.package/SPBCard.class/instance/setupMouseEvents.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,7 @@ | ||
accessing | ||
setupMouseEvents | ||
|
||
self on: #click send: #becomeActiveCard to: self. | ||
self on: #startDrag send: #startDragging to: self. | ||
self on: #startDrag send: #startDragging to: self. | ||
self on: #mouseDown send: #value: to:[:evt| | ||
evt redButtonPressed ifTrue:[self becomeActiveCard]. | ||
evt yellowButtonPressed ifTrue:[self openContextMenu] ]. |
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