-
Notifications
You must be signed in to change notification settings - Fork 9
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
12 changed files
with
147 additions
and
78 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
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,42 @@ | ||
Class { | ||
#name : #ToElementCompositeCommand, | ||
#superclass : #ToElementBasicCommand, | ||
#instVars : [ | ||
'commands' | ||
], | ||
#category : #'Toplo-Widget-List-Command' | ||
} | ||
|
||
{ #category : #'instance creation' } | ||
ToElementCompositeCommand class >> withAll: commands [ | ||
|
||
^ self new | ||
addAll: commands; | ||
yourself | ||
] | ||
|
||
{ #category : #accessing } | ||
ToElementCompositeCommand >> add: aCommand [ | ||
|
||
commands add: aCommand | ||
] | ||
|
||
{ #category : #accessing } | ||
ToElementCompositeCommand >> addAll: aCommandArray [ | ||
|
||
commands addAll: aCommandArray | ||
] | ||
|
||
{ #category : #'private - hook' } | ||
ToElementCompositeCommand >> applyWithOperator: anOperator [ | ||
|
||
super applyWithOperator: anOperator. | ||
commands do: [ :c | c applyWithOperator: anOperator ] | ||
] | ||
|
||
{ #category : #initialization } | ||
ToElementCompositeCommand >> initialize [ | ||
|
||
super initialize. | ||
commands := 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
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
41 changes: 41 additions & 0 deletions
41
src/Toplo-Widget-List/ToListElementCompositeCommand.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,41 @@ | ||
Class { | ||
#name : #ToListElementCompositeCommand, | ||
#superclass : #ToElementCompositeCommand, | ||
#instVars : [ | ||
'selectionModel' | ||
], | ||
#category : #'Toplo-Widget-List-Command' | ||
} | ||
|
||
{ #category : #'private - adding' } | ||
ToListElementCompositeCommand >> addedIn: aCommandApplier [ | ||
|
||
selectionModel := aCommandApplier selectionModel. | ||
commands do: [ :c | c addedIn: self ] | ||
] | ||
|
||
{ #category : #accessing } | ||
ToListElementCompositeCommand >> indexes [ | ||
|
||
^ Array streamContents: [ :stream | | ||
commands do: [ :c | stream nextPutAll: c indexes ] ] | ||
] | ||
|
||
{ #category : #accessing } | ||
ToListElementCompositeCommand >> intervals [ | ||
|
||
^ Array streamContents: [ :stream | | ||
commands do: [ :c | stream nextPutAll: c intervals ] ] | ||
] | ||
|
||
{ #category : #accessing } | ||
ToListElementCompositeCommand >> selectionModel [ | ||
|
||
^ selectionModel | ||
] | ||
|
||
{ #category : #accessing } | ||
ToListElementCompositeCommand >> selectionModel: aSelectionModel [ | ||
|
||
selectionModel := aSelectionModel | ||
] |
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
65 changes: 0 additions & 65 deletions
65
src/Toplo-Widget-Select/ToMultiSelectBarElementSkin.class.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
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