Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #502 from pharo-graphics/fixLogUndeclaredDependency
Fix most log undeclared dependencies
- Loading branch information
Showing
21 changed files
with
217 additions
and
318 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Class { | ||
#name : #BlMorphicHostExamples, | ||
#superclass : #BlExamplesTest, | ||
#instVars : [ | ||
'containerMorph' | ||
], | ||
#category : #'Bloc-Examples-Host - Morph' | ||
} | ||
|
||
{ #category : #examples } | ||
BlMorphicHostExamples >> squares [ | ||
<sampleInstance> | ||
<demo> | ||
|
||
| aMorph aHost aSpace | | ||
aMorph := Morph new. | ||
"container morph could also have #spaceFill resizing" | ||
aMorph extent: 400 asPoint. | ||
"Specify a layout policy so the Bloc space fills the whole | ||
extent (including Morph resizing)." | ||
aMorph layoutPolicy: TableLayout new. | ||
aMorph openInWindowLabeled: 'Resize window to layout. Hover squares to color.'. | ||
|
||
aHost := BlMorphicHost new. | ||
aHost containerMorph: aMorph. | ||
|
||
aSpace := BlSpace new. | ||
aSpace host: aHost. | ||
aSpace show. | ||
|
||
aSpace root | ||
background: Color paleBlue; | ||
layout: BlFlowLayout horizontal. | ||
|
||
50 timesRepeat: [ | ||
aSpace root addChild: | ||
(BlElement new | ||
background: Color random translucent; | ||
addEventHandlerOn: BlMouseEnterEvent | ||
do: [ :evt | evt target background: Color random ]; | ||
yourself) ]. | ||
|
||
^ aSpace | ||
] |
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,19 @@ | ||
Extension { #name : #BlElement } | ||
|
||
{ #category : #'*Bloc-Infinite' } | ||
BlElement >> asScrollableElement [ | ||
| scrollable | | ||
self removeFromParent. | ||
scrollable := self newScrollableParent. | ||
scrollable constraintsDo: [ :c | | ||
c horizontal matchParent. | ||
c vertical matchParent ]. | ||
scrollable addChild: self. | ||
^ scrollable | ||
] | ||
|
||
{ #category : #'*Bloc-Infinite' } | ||
BlElement >> newScrollableParent [ | ||
|
||
^ BlScrollableElement 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Extension { #name : #BlLayoutCommonConstraints } | ||
|
||
{ #category : #'*Bloc-Infinite' } | ||
BlLayoutCommonConstraints >> infinite [ | ||
^ self at: BlInfiniteLayout | ||
] |
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 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
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,38 @@ | ||
" | ||
I'm a mock element for unit-testing `TBlAlignable`. | ||
" | ||
Class { | ||
#name : #BlMockAlignableElement, | ||
#superclass : #BlElement, | ||
#traits : 'TBlAlignable', | ||
#classTraits : 'TBlAlignable classTrait', | ||
#instVars : [ | ||
'horizontalAlignment', | ||
'verticalAlignment' | ||
], | ||
#category : #'Bloc-Tests-Layouts-Alignment' | ||
} | ||
|
||
{ #category : #accessing } | ||
BlMockAlignableElement >> horizontalAlignment [ | ||
|
||
^ horizontalAlignment | ||
] | ||
|
||
{ #category : #accessing } | ||
BlMockAlignableElement >> horizontalAlignment: aBlElementAlignment [ | ||
|
||
horizontalAlignment := aBlElementAlignment | ||
] | ||
|
||
{ #category : #accessing } | ||
BlMockAlignableElement >> verticalAlignment [ | ||
|
||
^ verticalAlignment | ||
] | ||
|
||
{ #category : #accessing } | ||
BlMockAlignableElement >> verticalAlignment: aBlElementAlignment [ | ||
|
||
verticalAlignment := aBlElementAlignment | ||
] |
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.