Skip to content

Commit

Permalink
Merge pull request #235 from Ducasse/dev-1.0
Browse files Browse the repository at this point in the history
Resolving merge conflicts + massive cleaning
  • Loading branch information
Ducasse committed Apr 9, 2023
2 parents c3bbdcb + b8ca6c7 commit f7de4b8
Show file tree
Hide file tree
Showing 43 changed files with 505 additions and 850 deletions.
112 changes: 56 additions & 56 deletions src/Bloc-Alexandrie-Tests/BlSpaceFixture.class.st

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Bloc-DevTool/BlDevCrossover.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ BlDevCrossover >> initialize [

{ #category : #'api - hooks' }
BlDevCrossover >> mouseMoveEvent: anEvent [
verticalLine position: anEvent localPosition x @ 0.
horizontalLine position: 0 @ anEvent localPosition y.
verticalLine relocate: anEvent localPosition x @ 0.
horizontalLine relocate: 0 @ anEvent localPosition y.

topRightContainer constraintsDo: [ :c |
c frame horizontal weight: 1 - (anEvent localPosition x / (crossover width max: 1)).
Expand Down
2 changes: 1 addition & 1 deletion src/Bloc-DevTool/BlElementSelection.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ BlElementSelection >> hasInformation [
BlElementSelection >> hideInfo [

self padding: BlInsets empty.
self position: self selectionPosition.
self relocate: self selectionPosition.
self size: self selectionExtent.

self effect: BlNullEffect new.
Expand Down
20 changes: 10 additions & 10 deletions src/Bloc-Docs/BlGridLayoutUsageExamples.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ BlGridLayoutUsageExamples >> exampleDistributed2x2Grid [
el := BlElement new
layout: (BlGridLayout new columnCount: 2);
size: 300@300;
position: 200 @ 100;
relocate: 200 @ 100;
background: Color blue;
addChildren: { e1. e2. e3. e4 };
yourself.
Expand Down Expand Up @@ -78,7 +78,7 @@ BlGridLayoutUsageExamples >> exampleDistributedWithSpan2x2Grid [
el := BlElement new
layout: (BlGridLayout new columnCount: 2);
size: 300@300;
position: 200 @ 100;
relocate: 200 @ 100;
background: Color blue;
addChildren: { e1. e2. e3 };
yourself.
Expand Down Expand Up @@ -119,7 +119,7 @@ BlGridLayoutUsageExamples >> exampleDistributedWithWeight2x2Grid [
el := BlElement new
layout: (BlGridLayout new columnCount: 2);
size: 300@300;
position: 200 @ 100;
relocate: 200 @ 100;
background: Color blue;
addChildren: { e1. e2. e3. e4 };
yourself.
Expand All @@ -142,7 +142,7 @@ BlGridLayoutUsageExamples >> exampleHorizontal2x1Grid [
el := BlElement new
layout: BlGridLayout horizontal;
size: 400@400;
position: 200 @ 100;
relocate: 200 @ 100;
background: Color blue;
addChildren: { e1. e2 };
yourself.
Expand All @@ -169,7 +169,7 @@ BlGridLayoutUsageExamples >> exampleHorizontalSpacing2x1Grid [
el := BlElement new
layout: (BlGridLayout horizontal cellSpacing: 20);
size: 400@200;
position: 200 @ 100;
relocate: 200 @ 100;
background: Color blue;
addChildren: { e1. e2 };
yourself.
Expand Down Expand Up @@ -206,7 +206,7 @@ BlGridLayoutUsageExamples >> exampleInCellAlignment2x2Grid [
el := BlElement new
layout: (BlGridLayout new columnCount: 2);
size: 300@300;
position: 200 @ 100;
relocate: 200 @ 100;
background: Color blue;
addChildren: { e1. e2. e3 };
yourself.
Expand Down Expand Up @@ -282,7 +282,7 @@ BlGridLayoutUsageExamples >> exampleSimple2x2Grid [
el := BlElement new
layout: (BlGridLayout new columnCount: 2);
size: 400@400;
position: 200 @ 100;
relocate: 200 @ 100;
background: Color blue;
addChildren: { e1. e2. e3. e4 };
yourself.
Expand Down Expand Up @@ -310,7 +310,7 @@ BlGridLayoutUsageExamples >> exampleSpacing9x9Grid [
constraintsDo: [ :c |
c horizontal exact: 400.
c vertical exact: 400 ];
position: 0 @ 0;
relocate: 0 @ 0;
background: Color blue;
addChildren: children;
yourself.
Expand All @@ -333,7 +333,7 @@ BlGridLayoutUsageExamples >> exampleVertical1x2Grid [
el := BlElement new
layout: BlGridLayout vertical;
size: 400@400;
position: 200 @ 100;
relocate: 200 @ 100;
background: Color blue;
addChildren: { e1. e2 };
yourself.
Expand All @@ -360,7 +360,7 @@ BlGridLayoutUsageExamples >> exampleVerticalSpacing1x2Grid [
el := BlElement new
layout: (BlGridLayout vertical cellSpacing: 20);
size: 200@400;
position: 200 @ 100;
relocate: 200 @ 100;
background: Color blue;
addChildren: { e1. e2 };
yourself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ BlMouseOverOutAndEnterLeaveEventExplanation >> elementWithChildren [
aChildA := BlElement new
background: Color white;
effect: self shadow;
position: 30@50;
relocate: 30@50;
size: 100@100.

aChildB := BlElement new
background: Color white;
effect: self shadow;
position: 170@50;
relocate: 170@50;
size: 100@100.

aContainer addChild: aChildA as: #left.
Expand All @@ -102,7 +102,7 @@ BlMouseOverOutAndEnterLeaveEventExplanation >> elementWithoutChildren [
aContainer := BlElement new
background: Color white;
effect: self shadow;
position: 50@50;
relocate: 50@50;
size: 300@200.

^ aContainer
Expand Down
2 changes: 1 addition & 1 deletion src/Bloc-Examples/BlBackgroundTest.class.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Class {
#name : #BlBackgroundTest,
#superclass : #BlExamplesTest,
#superclass : #TestCase,
#category : #'Bloc-Examples-DocumentationExamples'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ BlElementBoundsByScripterExamples >> bounds_in_space_element_2 [
^ BlElement new
id: #parent_2;
size: self bounds_in_space_element_extent;
position: 50@50;
relocate: 50@50;
border: (BlBorder paint: (Color red alpha: 0.2) width: 2)
]

Expand Down
Loading

0 comments on commit f7de4b8

Please sign in to comment.