Skip to content

Commit

Permalink
Add Beacon signal views [feenkcom/gtoolkit#3908]
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajKubelka committed Jul 26, 2024
1 parent 6808138 commit 2640928
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/Bloc-Extensions/BlElementBoundsUpdater.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Extension { #name : #BlElementBoundsUpdater }

{ #category : #'*Bloc-Extensions' }
BlElementBoundsUpdater >> gtChangesFor: aView [
<gtView>
changes ifNil: [ ^ aView empty ].

^ aView forward
title: 'Changes';
object: [ changes ];
view: #gtItemsFor:
]
13 changes: 13 additions & 0 deletions src/Bloc-Extensions/BlGotFocusSignal.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Extension { #name : #BlGotFocusSignal }

{ #category : #'*Bloc-Extensions' }
BlGotFocusSignal >> gtElementFor: aView [
<gtView>
element ifNil: [ ^ aView empty ].

^ aView forward
title: 'Element';
priority: 20;
object: [ element ];
view: #gtLiveFor:
]
13 changes: 13 additions & 0 deletions src/Bloc-Extensions/BlLostFocusSignal.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Extension { #name : #BlLostFocusSignal }

{ #category : #'*Bloc-Extensions' }
BlLostFocusSignal >> gtElementFor: aView [
<gtView>
element ifNil: [ ^ aView empty ].

^ aView forward
title: 'Element';
priority: 20;
object: [ element ];
view: #gtLiveFor:
]
7 changes: 6 additions & 1 deletion src/Bloc-Scripter/BlDevScripterBetweenStepsSignals.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Class {
#instVars : [
'previousStep'
],
#category : #'Bloc-Scripter-Scripter-Utilities'
#category : #'Bloc-Scripter-Signals'
}

{ #category : #printing }
Expand All @@ -16,6 +16,11 @@ BlDevScripterBetweenStepsSignals >> gtDisplayOn: aStream [
aStep gtDisplayOn: aStream ]
]

{ #category : #accessing }
BlDevScripterBetweenStepsSignals >> label [
^ 'Between steps'
]

{ #category : #accessing }
BlDevScripterBetweenStepsSignals >> previousStep [
^ previousStep
Expand Down
5 changes: 5 additions & 0 deletions src/Bloc/BlRequestLayoutSignal.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ BlRequestLayoutSignal >> element: anObject [
element := anObject
]

{ #category : #accessing }
BlRequestLayoutSignal >> initialBoundsInSpace [
^ initialBoundsInSpace
]

{ #category : #accessing }
BlRequestLayoutSignal >> prepareForDelivery [
super prepareForDelivery.
Expand Down

0 comments on commit 2640928

Please sign in to comment.