Skip to content
Closed
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
42 changes: 17 additions & 25 deletions src/Pyramid-Bloc/PyramidBlElementHelper.class.st

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions src/Pyramid-Bloc/PyramidBlocLayoutPlugin.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ PyramidBlocLayoutPlugin class >> constraintsPropH [
property := PyramidProperty new
name: 'Constraints - horizontal';
command:
PyramidProportionnalHorizontalConstraintsCommand new;
PyramidProportionalHorizontalConstraintsCommand new;
inputPresenterClass: PyramidPointInputPresenter;
yourself.
property inputPresenterModel
Expand All @@ -117,7 +117,7 @@ PyramidBlocLayoutPlugin class >> constraintsPropV [
property := PyramidProperty new
name: 'Constraints - vertical';
command:
PyramidProportionnalVerticalConstraintsCommand new;
PyramidProportionalVerticalConstraintsCommand new;
inputPresenterClass: PyramidPointInputPresenter;
yourself.
property inputPresenterModel
Expand Down Expand Up @@ -167,8 +167,7 @@ PyramidBlocLayoutPlugin class >> layout [
property := PyramidProperty new
name: 'Layout Type';
command: PyramidLayoutBlocCommand new;
inputPresenterClass:
PyramidMagicButtonsInputPresenter;
inputPresenterClass: PyramidMagicButtonsInputPresenter;
yourself.
property inputPresenterModel
addButtonModel: (PyramidMagicButtonModel new
Expand Down Expand Up @@ -205,8 +204,8 @@ PyramidBlocLayoutPlugin class >> layout [
yourself);
addButtonModel: (PyramidMagicButtonModel new
icon: (Smalltalk ui icons iconNamed: #haloScale);
helpSelected: 'The layout is proportionnal.';
helpNotSelected: 'Set the layout to proportionnal.';
helpSelected: 'The layout is proportional.';
helpNotSelected: 'Set the layout to proportional.';
label: 'Prop';
inputValue: [ BlProportionalLayout new ];
inputValidation: [ :value | value class = BlProportionalLayout ];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Class {
#name : #PyramidProportionnalConstraintsCommand,
#name : #PyramidProportionalConstraintsCommand,
#superclass : #PyramidAbstractBlocCommand,
#category : #'Pyramid-Bloc-plugin-bloc-layout'
}

{ #category : #testing }
PyramidProportionnalConstraintsCommand >> canBeUsedFor: anObject [
PyramidProportionalConstraintsCommand >> canBeUsedFor: anObject [

^ (super canBeUsedFor: anObject) and: [
anObject hasParent and: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Class {
#name : #PyramidProportionnalHorizontalConstraintsCommand,
#superclass : #PyramidProportionnalConstraintsCommand,
#name : #PyramidProportionalHorizontalConstraintsCommand,
#superclass : #PyramidProportionalConstraintsCommand,
#category : #'Pyramid-Bloc-plugin-bloc-layout'
}

{ #category : #'as yet unclassified' }
PyramidProportionnalHorizontalConstraintsCommand >> getValueFor: anObject [
PyramidProportionalHorizontalConstraintsCommand >> getValueFor: anObject [

^ anObject constraints proportional horizontal left
@ anObject constraints proportional horizontal right
]

{ #category : #'as yet unclassified' }
PyramidProportionnalHorizontalConstraintsCommand >> setValueFor: anObject with: anArgument [
PyramidProportionalHorizontalConstraintsCommand >> setValueFor: anObject with: anArgument [

anObject constraintsDo: [ :c |
c proportional horizontal left: anArgument x.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Class {
#name : #PyramidProportionnalVerticalConstraintsCommand,
#superclass : #PyramidProportionnalConstraintsCommand,
#name : #PyramidProportionalVerticalConstraintsCommand,
#superclass : #PyramidProportionalConstraintsCommand,
#category : #'Pyramid-Bloc-plugin-bloc-layout'
}

{ #category : #'as yet unclassified' }
PyramidProportionnalVerticalConstraintsCommand >> getValueFor: anObject [
PyramidProportionalVerticalConstraintsCommand >> getValueFor: anObject [

^ anObject constraints proportional vertical top
@ anObject constraints proportional vertical bottom
]

{ #category : #'as yet unclassified' }
PyramidProportionnalVerticalConstraintsCommand >> setValueFor: anObject with: anArgument [
PyramidProportionalVerticalConstraintsCommand >> setValueFor: anObject with: anArgument [

anObject constraintsDo: [ :c |
c proportional vertical top: anArgument x.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Class {
{ #category : #accessing }
PyramidProportionnalHorizontalConstraintsCommandTest >> command [

^ PyramidProportionnalHorizontalConstraintsCommand new
^ PyramidProportionalHorizontalConstraintsCommand new
]

{ #category : #'as yet unclassified' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Class {
{ #category : #accessing }
PyramidProportionnalVerticalConstraintsCommandTest >> command [

^ PyramidProportionnalVerticalConstraintsCommand new
^ PyramidProportionalVerticalConstraintsCommand new
]

{ #category : #'as yet unclassified' }
Expand Down