-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Beacon signal views and print methods [feenkcom/gtoolkit#3908]
- Loading branch information
1 parent
a76fbfb
commit c7768d8
Showing
12 changed files
with
167 additions
and
0 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
13 changes: 13 additions & 0 deletions
13
src/GToolkit-Extensions/BlElementBoundsUpdaterChange.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,13 @@ | ||
Extension { #name : #BlElementBoundsUpdaterChange } | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
BlElementBoundsUpdaterChange >> gtElementFor: aView [ | ||
<gtView> | ||
self element ifNil: [ ^ aView empty ]. | ||
|
||
^ aView forward | ||
title: 'Element'; | ||
priority: 20; | ||
object: [ self element ]; | ||
view: #gtLiveFor: | ||
] |
13 changes: 13 additions & 0 deletions
13
src/GToolkit-Extensions/BlInfiniteElementSignal.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,13 @@ | ||
Extension { #name : #BlInfiniteElementSignal } | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
BlInfiniteElementSignal >> gtElementFor: aView [ | ||
<gtView> | ||
self element ifNil: [ ^ aView empty ]. | ||
|
||
^ aView forward | ||
title: 'Element'; | ||
priority: 20; | ||
object: [ self element ]; | ||
view: #gtLiveFor: | ||
] |
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,12 @@ | ||
Extension { #name : #BlInfiniteHolder } | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
BlInfiniteHolder >> gtItemElementFor: aView [ | ||
<gtView> | ||
self itemElement ifNil: [ ^ aView empty ]. | ||
|
||
^ aView forward | ||
title: 'Item element'; | ||
object: [ self itemElement ]; | ||
view: #gtLiveFor: | ||
] |
12 changes: 12 additions & 0 deletions
12
src/GToolkit-Extensions/BlInfiniteRecyclerAboutToRecycleInPoolSignal.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,12 @@ | ||
Extension { #name : #BlInfiniteRecyclerAboutToRecycleInPoolSignal } | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
BlInfiniteRecyclerAboutToRecycleInPoolSignal >> gtItemElementFor: aView [ | ||
<gtView> | ||
self holder ifNil: [ ^ aView empty ]. | ||
|
||
^ aView forward | ||
title: 'Item element'; | ||
object: [ self holder ]; | ||
view: #gtItemElementFor: | ||
] |
12 changes: 12 additions & 0 deletions
12
src/GToolkit-Extensions/BlInfiniteRecyclerAddedToAttachedScrapSignal.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,12 @@ | ||
Extension { #name : #BlInfiniteRecyclerAddedToAttachedScrapSignal } | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
BlInfiniteRecyclerAddedToAttachedScrapSignal >> gtFlagsFor: aView [ | ||
<gtView> | ||
flags ifNil: [ ^ aView empty ]. | ||
|
||
^ aView forward | ||
title: 'Flags'; | ||
object: [ flags ]; | ||
view: #gtItemsFor: | ||
] |
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
25 changes: 25 additions & 0 deletions
25
src/GToolkit-Extensions/BrAsyncElementPromiseSignal.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,25 @@ | ||
Extension { #name : #BrAsyncElementPromiseSignal } | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
BrAsyncElementPromiseSignal >> gtElementFor: aView [ | ||
<gtView> | ||
self element ifNil: [ ^ aView empty ]. | ||
|
||
^ aView forward | ||
title: 'Element'; | ||
priority: 1; | ||
object: [ self element ]; | ||
view: #gtLiveFor: | ||
] | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
BrAsyncElementPromiseSignal >> gtPromiseFor: aView [ | ||
<gtView> | ||
self promise ifNil: [ ^ aView empty ]. | ||
|
||
^ aView forward | ||
title: 'Promise'; | ||
priority: 1; | ||
object: [ self promise ]; | ||
view: #gtPromiseFor: | ||
] |
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,13 @@ | ||
Extension { #name : #BrTextEditorSignal } | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
BrTextEditorSignal >> gtTestEditorFor: aView [ | ||
<gtView> | ||
self textEditor ifNil: [ ^ aView empty ]. | ||
|
||
^ aView forward | ||
title: 'Editor'; | ||
priority: 0; | ||
object: [ self textEditor ]; | ||
view: #gtLiveFor: | ||
] |
12 changes: 12 additions & 0 deletions
12
src/GToolkit-Extensions/GtPharoSubscribedToMethodCoderSignal.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,12 @@ | ||
Extension { #name : #GtPharoSubscribedToMethodCoderSignal } | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
GtPharoSubscribedToMethodCoderSignal >> gtMethodCoderFor: aView [ | ||
<gtView> | ||
self methodCoder ifNil: [ ^ aView empty ]. | ||
|
||
^ aView forward | ||
title: 'Coder'; | ||
object: [ self methodCoder ]; | ||
view: #gtLiveFor: | ||
] |
12 changes: 12 additions & 0 deletions
12
src/GToolkit-Extensions/GtTextualCoderEditorElementSignal.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,12 @@ | ||
Extension { #name : #GtTextualCoderEditorElementSignal } | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
GtTextualCoderEditorElementSignal >> gtElementFor: aView [ | ||
<gtView> | ||
self element ifNil: [ ^ aView empty ]. | ||
|
||
^ aView forward | ||
title: 'Element'; | ||
object: [ self element ]; | ||
view: #gtLiveFor: | ||
] |