Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlBasicLayout.extension.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Extension { #name : #BlBasicLayout }

{ #category : #'*Pyramid-Bloc' }
BlBasicLayout >> setLayoutOn: aPyramidLayoutInputPresenter [
BlBasicLayout >> asIcon [

aPyramidLayoutInputPresenter setBasic
^ self iconNamed: #radioButtonUnselected
]
9 changes: 9 additions & 0 deletions src/Pyramid-Bloc/BlBottomAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlBottomAlignment }

{ #category : #'*Pyramid-Bloc' }
BlBottomAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectEnd.
aFrameConstraintsPresenter inputHasRelative state: false.
aFrameConstraintsPresenter inputRelative value: 0
]
2 changes: 1 addition & 1 deletion src/Pyramid-Bloc/BlElement.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ Extension { #name : #BlElement }
{ #category : #'*Pyramid-Bloc' }
BlElement >> asIcon [

^ self iconNamed: #class
^ self layout asIcon
]
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlFlowLayout.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BlFlowLayout >> = anObject [
]

{ #category : #'*Pyramid-Bloc' }
BlFlowLayout >> setLayoutOn: aPyramidLayoutInputPresenter [
BlFlowLayout >> asIcon [

aPyramidLayoutInputPresenter setFlow
^ self iconNamed: #smallJustified
]
7 changes: 7 additions & 0 deletions src/Pyramid-Bloc/BlFrameLayout.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Extension { #name : #BlFrameLayout }

{ #category : #'*Pyramid-Bloc' }
BlFrameLayout >> asIcon [

^ self iconNamed: #windowMaximize
]
9 changes: 9 additions & 0 deletions src/Pyramid-Bloc/BlHorizontalCenterAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlHorizontalCenterAlignment }

{ #category : #'*Pyramid-Bloc' }
BlHorizontalCenterAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectCenter.
aFrameConstraintsPresenter inputHasRelative state: false.
aFrameConstraintsPresenter inputRelative value: 0
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlHorizontalCoordinateEndAlignment }

{ #category : #'*Pyramid-Bloc' }
BlHorizontalCoordinateEndAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectCenter.
aFrameConstraintsPresenter inputHasRelative state: true.
aFrameConstraintsPresenter inputRelative value: self coordinate negated
]
11 changes: 11 additions & 0 deletions src/Pyramid-Bloc/BlHorizontalCoordinateLeftAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Extension { #name : #BlHorizontalCoordinateLeftAlignment }

{ #category : #'*Pyramid-Bloc' }
BlHorizontalCoordinateLeftAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectStart.
aFrameConstraintsPresenter inputHasRelative
state: true.
aFrameConstraintsPresenter inputRelative
value: self coordinate
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlHorizontalCoordinateRightAlignment }

{ #category : #'*Pyramid-Bloc' }
BlHorizontalCoordinateRightAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectEnd.
aFrameConstraintsPresenter inputHasRelative state: true.
aFrameConstraintsPresenter inputRelative value: self coordinate
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlHorizontalCoordinateStartAlignment }

{ #category : #'*Pyramid-Bloc' }
BlHorizontalCoordinateStartAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectCenter.
aFrameConstraintsPresenter inputHasRelative state: true.
aFrameConstraintsPresenter inputRelative value: self coordinate
]
9 changes: 9 additions & 0 deletions src/Pyramid-Bloc/BlHorizontalEndAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlHorizontalEndAlignment }

{ #category : #'*Pyramid-Bloc' }
BlHorizontalEndAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectEnd.
aFrameConstraintsPresenter inputHasRelative state: false.
aFrameConstraintsPresenter inputRelative value: 0
]
9 changes: 9 additions & 0 deletions src/Pyramid-Bloc/BlHorizontalStartAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlHorizontalStartAlignment }

{ #category : #'*Pyramid-Bloc' }
BlHorizontalStartAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectStart.
aFrameConstraintsPresenter inputHasRelative state: false.
aFrameConstraintsPresenter inputRelative value: 0
]
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlLayout.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ BlLayout >> = anObject [
]

{ #category : #'*Pyramid-Bloc' }
BlLayout >> setLayoutOn: aPyramidLayoutInputPresenter [
BlLayout >> asIcon [

aPyramidLayoutInputPresenter setUnknowValue
^ self iconNamed: #smallQuestion
]
7 changes: 7 additions & 0 deletions src/Pyramid-Bloc/BlLinearLayout.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Extension { #name : #BlLinearLayout }

{ #category : #'*Pyramid-Bloc' }
BlLinearLayout >> asIcon [

^ self iconNamed: #smallLeftFlush
]
13 changes: 13 additions & 0 deletions src/Pyramid-Bloc/BlLinearLayoutHorizontalOrientation.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Extension { #name : #BlLinearLayoutHorizontalOrientation }

{ #category : #'*Pyramid-Bloc' }
BlLinearLayoutHorizontalOrientation >> asBooleanForPyramid [

^ false
]

{ #category : #'*Pyramid-Bloc' }
BlLinearLayoutHorizontalOrientation >> switchOrientation [

^ BlLinearLayoutVerticalOrientation new
]
13 changes: 13 additions & 0 deletions src/Pyramid-Bloc/BlLinearLayoutVerticalOrientation.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Extension { #name : #BlLinearLayoutVerticalOrientation }

{ #category : #'*Pyramid-Bloc' }
BlLinearLayoutVerticalOrientation >> asBooleanForPyramid [

^ true
]

{ #category : #'*Pyramid-Bloc' }
BlLinearLayoutVerticalOrientation >> switchOrientation [

^ BlLinearLayoutHorizontalOrientation new
]
9 changes: 9 additions & 0 deletions src/Pyramid-Bloc/BlNullHorizontalAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlNullHorizontalAlignment }

{ #category : #'*Pyramid-Bloc' }
BlNullHorizontalAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectNull.
aFrameConstraintsPresenter inputHasRelative state: false.
aFrameConstraintsPresenter inputRelative value: 0
]
9 changes: 9 additions & 0 deletions src/Pyramid-Bloc/BlNullVerticalAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlNullVerticalAlignment }

{ #category : #'*Pyramid-Bloc' }
BlNullVerticalAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectNull.
aFrameConstraintsPresenter inputHasRelative state: false.
aFrameConstraintsPresenter inputRelative value: 0
]
4 changes: 2 additions & 2 deletions src/Pyramid-Bloc/BlProportionalLayout.extension.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Extension { #name : #BlProportionalLayout }

{ #category : #'*Pyramid-Bloc' }
BlProportionalLayout >> setLayoutOn: aPyramidLayoutInputPresenter [
BlProportionalLayout >> asIcon [

aPyramidLayoutInputPresenter setProportionnal
^ self iconNamed: #haloScale
]
2 changes: 1 addition & 1 deletion src/Pyramid-Bloc/BlTextElement.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ Extension { #name : #BlTextElement }
{ #category : #'*Pyramid-Bloc' }
BlTextElement >> asIcon [

^ self iconNamed: #haloFontStyle
^ self iconNamed: #smallFonts
]
9 changes: 9 additions & 0 deletions src/Pyramid-Bloc/BlTopAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlTopAlignment }

{ #category : #'*Pyramid-Bloc' }
BlTopAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectStart.
aFrameConstraintsPresenter inputHasRelative state: false.
aFrameConstraintsPresenter inputRelative value: 0
]
9 changes: 9 additions & 0 deletions src/Pyramid-Bloc/BlVerticalCenterAlignment.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlVerticalCenterAlignment }

{ #category : #'*Pyramid-Bloc' }
BlVerticalCenterAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectCenter.
aFrameConstraintsPresenter inputHasRelative state: false.
aFrameConstraintsPresenter inputRelative value: 0
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlVerticalCoordinateBottomAlignment }

{ #category : #'*Pyramid-Bloc' }
BlVerticalCoordinateBottomAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectEnd.
aFrameConstraintsPresenter inputHasRelative state: true.
aFrameConstraintsPresenter inputRelative value: self coordinate
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #BlVerticalCoordinateTopAlignment }

{ #category : #'*Pyramid-Bloc' }
BlVerticalCoordinateTopAlignment >> pyramidSelectOn: aFrameConstraintsPresenter [

aFrameConstraintsPresenter selectStart.
aFrameConstraintsPresenter inputHasRelative state: true.
aFrameConstraintsPresenter inputRelative value: self coordinate
]
8 changes: 7 additions & 1 deletion src/Pyramid-Bloc/False.extension.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
Extension { #name : #False }

{ #category : #'*Pyramid-Bloc' }
False >> asOrientationForPyramid [
False >> asOrientationForFlowPyramid [

^ BlLayoutOrientation horizontal
]

{ #category : #'*Pyramid-Bloc' }
False >> asOrientationForLinearPyramid [

^ BlLinearLayoutHorizontalOrientation new
]
Loading