-
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.
cleaning WindowManager and related event handlers hierarchies
- Loading branch information
Showing
22 changed files
with
341 additions
and
217 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
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
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
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,29 +1,26 @@ | ||
Class { | ||
#name : #ToSelectEventHandler, | ||
#superclass : #ToElementWithPopupEventHandler, | ||
#superclass : #BlCustomEventHandler, | ||
#category : #'Toplo-Widget-Select-Core' | ||
} | ||
|
||
{ #category : #'event handling' } | ||
ToSelectEventHandler >> elementAddedToSceneGraphEvent: anEvent [ | ||
|
||
| select | | ||
select := anEvent currentTarget. | ||
select refresh | ||
] | ||
|
||
{ #category : #'element handlers' } | ||
ToSelectEventHandler >> elementExtentChangedEvent: anEvent [ | ||
|
||
windowManager currentWindow ifNil: [ ^ self ]. | ||
windowManager applyPositionHookFromEvent: anEvent. | ||
windowManager applySizeHookFromEvent: anEvent | ||
anEvent currentTarget refresh | ||
] | ||
|
||
{ #category : #'api - accessing' } | ||
ToSelectEventHandler >> eventsToHandle [ | ||
^ { BlElementAddedToSceneGraphEvent. ToPlaceholderShownEvent } | ||
] | ||
|
||
{ #category : #'event handling' } | ||
ToSelectEventHandler >> placeHolderShownEvent: anEvent [ | ||
|
||
^ super eventsToHandle , { | ||
BlElementAddedToSceneGraphEvent. | ||
BlElementExtentChangedEvent } | ||
self flag: | ||
'The width of 16???. Why ? Anyway, it should be handled via a skin'. | ||
anEvent placeholder padding: (BlInsets left: | ||
(anEvent currentTarget valueOfTokenNamed: #'padding-XS')). | ||
anEvent placeholder layout alignCenterLeft | ||
] |
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
Oops, something went wrong.