Skip to content

Commit 44a3257

Browse files
Merge pull request #257 from OpenSmock/Issue_0170
Issue 0170
2 parents 3dbcbd3 + 1634a13 commit 44a3257

16 files changed

+80
-415
lines changed

src/Pyramid-Bloc/PyramidBasicConstraintsInputPresenter.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ PyramidBasicConstraintsInputPresenter >> setMatchParent [
117117
]
118118

119119
{ #category : #initialization }
120-
PyramidBasicConstraintsInputPresenter >> setUnknowValue [
120+
PyramidBasicConstraintsInputPresenter >> setUnknownValue [
121121

122122
self buttonExact
123123
enabled: false;

src/Pyramid-Bloc/PyramidBlElementHelper.class.st

Lines changed: 17 additions & 25 deletions
Large diffs are not rendered by default.

src/Pyramid-Bloc/PyramidBlocGeometryPlugin.class.st

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,24 @@ Class {
99
#category : #'Pyramid-Bloc-plugin-bloc-geometry'
1010
}
1111

12+
{ #category : #accessing }
13+
PyramidBlocGeometryPlugin class >> cornerRadii [
14+
15+
| property |
16+
property := PyramidProperty new
17+
name: 'Corner radius';
18+
command: PyramidRoundedRectangleCornerRadiiCommand new;
19+
inputPresenterClass:
20+
PyramidCornerRadiiInputPresenter;
21+
yourself.
22+
property inputPresenterModel help:
23+
'Change the corner radius of the geometry. For example:
24+
- "10" to set a radius of 10 px on each corner.
25+
- "10 20" to set a radius of 10 px on the top-left and bottom-right corner and 20 px on the top-right and bottom-left corner.
26+
- "10 20 30 40" to set a radius of 10 px on top-left, 20 px on top-right, 30 px on bottom-right and 40 px on bottom-left.'.
27+
^ property
28+
]
29+
1230
{ #category : #accessing }
1331
PyramidBlocGeometryPlugin class >> geometry [
1432

@@ -66,7 +84,7 @@ PyramidBlocGeometryPlugin >> initialize [
6684
propertiesManager := PyramidPropertiesManagerForSelection new.
6785

6886
propertiesManager addProperty: self class geometry.
69-
87+
propertiesManager addProperty: self class cornerRadii.
7088
]
7189

7290
{ #category : #adding }

src/Pyramid-Bloc/PyramidBlocLayoutPlugin.class.st

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ PyramidBlocLayoutPlugin class >> constraintsPropH [
100100
property := PyramidProperty new
101101
name: 'Constraints - horizontal';
102102
command:
103-
PyramidProportionnalHorizontalConstraintsCommand new;
103+
PyramidProportionalHorizontalConstraintsCommand new;
104104
inputPresenterClass: PyramidPointInputPresenter;
105105
yourself.
106106
property inputPresenterModel
@@ -117,7 +117,7 @@ PyramidBlocLayoutPlugin class >> constraintsPropV [
117117
property := PyramidProperty new
118118
name: 'Constraints - vertical';
119119
command:
120-
PyramidProportionnalVerticalConstraintsCommand new;
120+
PyramidProportionalVerticalConstraintsCommand new;
121121
inputPresenterClass: PyramidPointInputPresenter;
122122
yourself.
123123
property inputPresenterModel
@@ -167,8 +167,7 @@ PyramidBlocLayoutPlugin class >> layout [
167167
property := PyramidProperty new
168168
name: 'Layout Type';
169169
command: PyramidLayoutBlocCommand new;
170-
inputPresenterClass:
171-
PyramidMagicButtonsInputPresenter;
170+
inputPresenterClass: PyramidMagicButtonsInputPresenter;
172171
yourself.
173172
property inputPresenterModel
174173
addButtonModel: (PyramidMagicButtonModel new
@@ -205,8 +204,8 @@ PyramidBlocLayoutPlugin class >> layout [
205204
yourself);
206205
addButtonModel: (PyramidMagicButtonModel new
207206
icon: (Smalltalk ui icons iconNamed: #haloScale);
208-
helpSelected: 'The layout is proportionnal.';
209-
helpNotSelected: 'Set the layout to proportionnal.';
207+
helpSelected: 'The layout is proportional.';
208+
helpNotSelected: 'Set the layout to proportional.';
210209
label: 'Prop';
211210
inputValue: [ BlProportionalLayout new ];
212211
inputValidation: [ :value | value class = BlProportionalLayout ];

src/Pyramid-Bloc/PyramidBlocPlugin.class.st

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,6 @@ PyramidBlocPlugin class >> clipChildren [
2828
^ property
2929
]
3030

31-
{ #category : #accessing }
32-
PyramidBlocPlugin class >> cornerRadii [
33-
34-
| property |
35-
property := PyramidProperty new
36-
name: 'Corner radius';
37-
command: PyramidRoundedRectangleCornerRadiiCommand new;
38-
inputPresenterClass:
39-
PyramidCornerRadiiInputPresenter;
40-
yourself.
41-
property inputPresenterModel help:
42-
'Change the corner radius of the geometry. For example:
43-
- "10" to set a radius of 10 px on each corner.
44-
- "10 20" to set a radius of 10 px on the top-left and bottom-right corner and 20 px on the top-right and bottom-left corner.
45-
- "10 20 30 40" to set a radius of 10 px on top-left, 20 px on top-right, 30 px on bottom-right and 40 px on bottom-left.'.
46-
^ property
47-
]
48-
4931
{ #category : #accessing }
5032
PyramidBlocPlugin class >> elementId [
5133

@@ -59,25 +41,12 @@ PyramidBlocPlugin class >> elementId [
5941
^ property
6042
]
6143

62-
{ #category : #accessing }
63-
PyramidBlocPlugin class >> geometry [
64-
65-
| property |
66-
property := PyramidProperty new
67-
name: 'Geometry';
68-
command: PyramidGeometryCommand new;
69-
inputPresenterClass:
70-
PyramidGeometryInputPresenter;
71-
yourself.
72-
^ property
73-
]
74-
7544
{ #category : #accessing }
7645
PyramidBlocPlugin class >> visibility [
7746

7847
| property |
7948
property := PyramidProperty new
80-
name: 'Visibility2';
49+
name: 'Visibility';
8150
command: PyramidVisibilityCommand new;
8251
inputPresenterClass: PyramidMagicButtonsInputPresenter;
8352
yourself.
@@ -124,7 +93,7 @@ PyramidBlocPlugin class >> zIndex [
12493
inputPresenterClass: PyramidNumberInputPresenter;
12594
yourself.
12695
property inputPresenterModel help:
127-
'Change the elevation (#zIndex:). Bloc will used the elevation to determine wich of two sibling must be draw on top. The higher zIndex will be drawn on top of the lesser one.'.
96+
'Change the elevation (#zIndex:). Bloc will use the elevation to determine wich of two siblings must be draw on top. The higher zIndex will be drawn on top of the lesser one.'.
12897
^ property
12998
]
13099

@@ -229,9 +198,7 @@ PyramidBlocPlugin >> initialize [
229198
propertiesManager addProperty: self class elementId.
230199
propertiesManager addProperty: self class visibility.
231200
propertiesManager addProperty: self class zIndex.
232-
propertiesManager addProperty: self class clipChildren.
233-
propertiesManager addProperty: self class geometry.
234-
propertiesManager addProperty: self class cornerRadii
201+
propertiesManager addProperty: self class clipChildren
235202
]
236203

237204
{ #category : #'as yet unclassified' }

src/Pyramid-Bloc/PyramidGeometryInputModel.class.st

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)