File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
src/Toplo-Widget-Circular Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,20 @@ ToCircularContextMenu >> initialize [
5151 self fitContent
5252]
5353
54+ { #category : #testing }
55+ ToCircularContextMenu >> isOutsideEvent: anEvent [
56+
57+ | windows |
58+ windows := Array streamContents: [ :stream |
59+ self manager currentWindowDo: [ :w |
60+ w allSubwindowsDo: [ :sub | stream nextPut: sub ] ] ].
61+ (windows allSatisfy: [ :w | w isOutsideEvent: anEvent ]) ifFalse: [
62+ ^ false ].
63+ (self items allSatisfy: [ :it | it isOutsideEvent: anEvent ])
64+ ifFalse: [ ^ false ].
65+ ^ super isOutsideEvent: anEvent
66+ ]
67+
5468{ #category : #' t - menu window model' }
5569ToCircularContextMenu >> isTopMenu [
5670
@@ -93,20 +107,6 @@ ToCircularContextMenu >> newRawSkin [
93107 ^ ToCircularMenuWindowSkin new
94108]
95109
96- { #category : #layout }
97- ToCircularContextMenu >> onLayout: aBounds context: aBlElementBoundsUpdateContext [
98-
99- super onLayout: aBounds context: aBlElementBoundsUpdateContext.
100- self checkLayoutStepOnLayout: aBounds context: aBlElementBoundsUpdateContext
101- ]
102-
103- { #category : #layout }
104- ToCircularContextMenu >> onMeasure: anExtentMeasurementSpec [
105-
106- self measureWithExtentMeasurementSpec: anExtentMeasurementSpec onEvent: self lastPopupEvent.
107- super onMeasure: anExtentMeasurementSpec
108- ]
109-
110110{ #category : #' t - annulus sector layout user' }
111111ToCircularContextMenu >> stateHolder [
112112
You can’t perform that action at this time.
0 commit comments