-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates permutation label stylings on switched alternatives
- Loading branch information
Showing
10 changed files
with
74 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Extension { #name : #SBEditor } | ||
|
||
{ #category : #'*Sandblocks-Babylonian' } | ||
SBEditor >> sendNewPermutationNotification [ | ||
|
||
self allMorphsDo: [:morph | morph listensToPermutations ifTrue: [morph updateStyling]] | ||
|
||
|
||
] |
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
43 changes: 43 additions & 0 deletions
43
packages/Sandblocks-Babylonian/SBPermutationLabel.class.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,43 @@ | ||
Class { | ||
#name : #SBPermutationLabel, | ||
#superclass : #TextMorph, | ||
#instVars : [ | ||
'permutation' | ||
], | ||
#category : #'Sandblocks-Babylonian' | ||
} | ||
|
||
{ #category : #'as yet unclassified' } | ||
SBPermutationLabel class >> newDisplaying: aSBPermutation [ | ||
|
||
^ self new | ||
permutation: aSBPermutation; | ||
updateStyling; | ||
yourself | ||
] | ||
|
||
{ #category : #'*Sandblocks-Babylonian' } | ||
SBPermutationLabel >> listensToPermutations [ | ||
|
||
^ true | ||
] | ||
|
||
{ #category : #accessing } | ||
SBPermutationLabel >> permutation [ | ||
|
||
^ permutation | ||
] | ||
|
||
{ #category : #accessing } | ||
SBPermutationLabel >> permutation: aSBPermutation [ | ||
|
||
permutation := aSBPermutation. | ||
|
||
self updateStyling | ||
] | ||
|
||
{ #category : #accessing } | ||
SBPermutationLabel >> updateStyling [ | ||
|
||
self contents: self permutation asStylizedText | ||
] |
7 changes: 7 additions & 0 deletions
7
packages/Sandblocks-Babylonian/SBPermutationLabel.extension.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,7 @@ | ||
Extension { #name : #SBPermutationLabel } | ||
|
||
{ #category : #'*Sandblocks-Babylonian' } | ||
SBPermutationLabel >> listensToPermutations [ | ||
|
||
^ true | ||
] |
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