Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ft layout #69

Closed
wants to merge 144 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
20c1cf1
Minor message and menu text change
labordep Jul 7, 2023
83a6b9a
Fix not implemented method + add somes verifier tests
labordep Jul 7, 2023
38477b0
Merge pull request #21 from OpenSmock/dev-labordep
Nyan11 Jul 10, 2023
78108d5
[Fix] - bug on selection tool
Jul 10, 2023
c8a61ac
[Fix] - Change the tags of tests classes
Jul 10, 2023
2c7f6a4
[FT] - plugin copy test
Jul 10, 2023
1dac581
[FT] - added missing tests classes
Jul 10, 2023
3168443
[Fix] - browse crittical
Jul 11, 2023
63adbf6
[Delete] - skip the clipboard test
Jul 11, 2023
efc3a4a
Merge pull request #22 from OpenSmock/ft_better_tests
Nyan11 Jul 11, 2023
1939717
[Fix] - imrove copy menu
Jul 11, 2023
b3e12c1
[FT] - add builder and extensions
Jul 12, 2023
d28beb5
better space plugin with decorator
Jul 12, 2023
4112e51
remove old plugin
Jul 12, 2023
67fe636
add TU for plugin
Jul 12, 2023
85ca31e
Merge pull request #24 from OpenSmock/ft_space_layers_as_deco
Nyan11 Jul 12, 2023
56dc597
rename all active project in project model
Jul 12, 2023
84de469
Merge pull request #25 from OpenSmock/ft_activeProject_to_projectModel
Nyan11 Jul 12, 2023
c45e367
Menu extension on its on
Jul 13, 2023
dcb274c
offset translation on start
Jul 13, 2023
872bfba
Bug fix - translation didnt work first time on selection widget
Jul 13, 2023
8b4a327
add button to chnage the size of the overlay
Jul 13, 2023
c04a4a6
Merge pull request #26 from OpenSmock/ft_space_plugin
Nyan11 Jul 13, 2023
610a5b6
start working on a better command system
Jul 13, 2023
8eae02c
Add a presenter for this new commands
Jul 13, 2023
88e3efa
add preoperties manager + api access to generate all properties view …
Jul 17, 2023
341a977
add a working history
Jul 17, 2023
3161232
Add arguments to the memento creating process for adding / removing t…
Jul 17, 2023
3f3cf41
testing for neo history
Jul 18, 2023
b269e81
command executor as a decorator
Jul 18, 2023
2bc8b95
sing trait as test for pyramid input presenter
Jul 18, 2023
990385f
add isAbstract to abstract classes
Jul 18, 2023
bb656fe
Add comments to some classes
Jul 18, 2023
b369872
add switch presenter + better system for empty / mixed values
Jul 19, 2023
b2e38bb
Fix the command executor on the manager
Jul 19, 2023
06606e2
Add command executor callback
Jul 19, 2023
22ba966
Debut of background
Jul 20, 2023
d2ac3e2
Add more input linked to gradient and background
Jul 20, 2023
032d6ef
gradient input, commit avant un eventuel crash
Jul 20, 2023
d86190d
clean background input
Jul 20, 2023
bc1d13c
add tu for background
Jul 20, 2023
8886824
background and paint equality, better gradient input
Jul 21, 2023
0b96638
all test are ok
Jul 21, 2023
3ebc5c2
remove old system
Jul 21, 2023
762f933
Rename Everything
Jul 21, 2023
4ebefb3
Fix missing class
Jul 21, 2023
7872095
Merge pull request #28 from OpenSmock/ft_connect_better_command_to_main
Nyan11 Jul 21, 2023
30bf687
Merge pull request #27 from OpenSmock/ft_better_commands
Nyan11 Jul 21, 2023
e145a7e
Fix menu context with no id
Jul 27, 2023
628e89e
Add TU
Jul 27, 2023
3e32d1f
Change default name
Jul 27, 2023
3760796
Remove already existing equality test
Jul 27, 2023
ffbd29c
Merge pull request #31 from OpenSmock/Issues_0030
Nyan11 Jul 27, 2023
f98ee4e
Merge pull request #32 from OpenSmock/hf_equality_on_background
Nyan11 Jul 27, 2023
b3776b4
Generation with random color + idGenerator
Jul 27, 2023
46ed2e9
Merge pull request #33 from OpenSmock/Issues_0012
Nyan11 Jul 27, 2023
527d956
Modify the button inside the browser
Jul 27, 2023
4e81294
Little improvements on Cly Browser
Jul 27, 2023
3d0c970
Add little example
Jul 27, 2023
2faf797
button correct with theme
Jul 27, 2023
91e8a46
Merge pull request #34 from OpenSmock/Issues_0013
Nyan11 Jul 27, 2023
61eb054
add label on top of project configuration
Jul 27, 2023
4b507d3
Rename classes and add browse button
Jul 27, 2023
44802b9
Add inform button + little icons
Jul 27, 2023
70fbb61
Remove useless example
Jul 27, 2023
c5efb80
Merge pull request #37 from OpenSmock/Issues_0019
Nyan11 Jul 27, 2023
8f89b74
Save plugin upadte window title
Jul 27, 2023
6adda13
Merge pull request #39 from OpenSmock/Issues_0005
Nyan11 Jul 27, 2023
c83fe00
Add command test
Jul 27, 2023
bbeff62
Add bloc command TU
Jul 28, 2023
837ccab
command history TU
Jul 28, 2023
51ec20d
Merge pull request #42 from OpenSmock/Issues_0035
Nyan11 Jul 28, 2023
48f6ba2
Add command text
Jul 28, 2023
caf9a64
font weight
Jul 28, 2023
17226c7
Add font size + font weight + TU + Plugin + properties
Jul 31, 2023
5e46a6f
Merge pull request #43 from OpenSmock/ft_text_properties
Nyan11 Jul 31, 2023
19fff75
Add editWithPyramid on BlSpace
Jul 31, 2023
ebda303
open and close editor from space
Jul 31, 2023
0cd32f4
Add logo when open in Pyramid
Jul 31, 2023
c006f3b
Merge pull request #45 from OpenSmock/Issue_0044
Nyan11 Jul 31, 2023
6f06495
Add command + property + tu
Jul 31, 2023
5936ed9
Merge pull request #49 from OpenSmock/ft_text_foreground
Nyan11 Jul 31, 2023
b97ac18
add editWithPyramid on BlElement
Jul 31, 2023
63c3f5c
Change order of action when openning from space
Jul 31, 2023
cd10475
remove useless block execution
Jul 31, 2023
6ee235a
Merge pull request #50 from OpenSmock/ft_edit_on_element
Nyan11 Jul 31, 2023
6f98a42
add / delete BlElement command added
Aug 1, 2023
dbe6b70
TU add / remove child
Aug 1, 2023
91264d1
Add TU on remove selection
Aug 1, 2023
be97f31
Starting group / ungroup command
Aug 1, 2023
2bf87cc
Group and ungroup TU
Aug 2, 2023
4f1b4df
Add menu + bug where collection is not a copy of the model
Aug 2, 2023
bb4a824
Merge pull request #51 from OpenSmock/ft_ad_delete_group
Nyan11 Aug 2, 2023
0758d54
Add input presenter
Aug 2, 2023
2a88b56
Add visibility command + TU
Aug 2, 2023
64dbfca
Add visibility prop
Aug 2, 2023
8c43dbc
Merge pull request #52 from OpenSmock/ft_visibility
Nyan11 Aug 2, 2023
dc463e0
add better presenter + TU + added to correct properties
Aug 3, 2023
6d39584
Add padding and margin
Aug 3, 2023
5e5a14d
Merge pull request #54 from OpenSmock/ft_better_color_presenter
Nyan11 Aug 3, 2023
f7134b5
Input insets for margin and padding
Aug 3, 2023
3c9c08e
Merge pull request #55 from OpenSmock/Issue_0015
Nyan11 Aug 3, 2023
1cf2242
Add marbles examples
Aug 3, 2023
e9cfa3e
add geometry property + commande + tu + input
Aug 3, 2023
6592d3d
geometry as a model
Aug 4, 2023
03842c2
CorneRadii command for RoundedRectangle
Aug 4, 2023
6d94e17
fix CI ?
Aug 4, 2023
57f29e7
Clean up unsed methods
Aug 7, 2023
70c30bc
Remove unsed instance variables
Aug 7, 2023
aed88a8
Change the name of the variable so the CI is ok ?
Aug 7, 2023
17f2ad7
Trait was not displayed in fluid context but in normal context ???
Aug 7, 2023
d3be98e
Fix missing method
Aug 7, 2023
acf8c38
Merge pull request #57 from OpenSmock/ft_geometry
Nyan11 Aug 7, 2023
cdaf53c
selection widget as overlays
Aug 7, 2023
4361e5a
add ghost on drag
Aug 7, 2023
8310f07
only apply to parents + borders + size display
Aug 7, 2023
323f26a
rotate left label + mini size for the labels
Aug 7, 2023
6312e0e
Merge pull request #60 from OpenSmock/Issue_0058
Nyan11 Aug 7, 2023
734080f
Add little star on the saveModel
Aug 7, 2023
e5590da
update from model do not trigger event
Aug 7, 2023
33c92b9
Merge pull request #62 from OpenSmock/Issue_0040
Nyan11 Aug 7, 2023
7368a75
Update baseline
Aug 8, 2023
5ed24c5
Move all plugins dependant of bloc in Pyramid-Bloc
Aug 8, 2023
a665777
Rename model as saveModel
Aug 8, 2023
4e3157d
update baseline for better dependencies
Aug 8, 2023
933a5a5
Merge pull request #66 from OpenSmock/Issue_0038
Nyan11 Aug 8, 2023
f2900aa
Remove old hierarchy plugin
Aug 8, 2023
5ef8399
New tree, cleaner
Aug 8, 2023
ccd09b2
Add visibility on column tree
Aug 8, 2023
8ccb145
Edit id directly on the tree
Aug 8, 2023
f8a61e6
TU for sorting blocks
Aug 8, 2023
a704816
Merge pull request #67 from OpenSmock/issue_0036
Nyan11 Aug 8, 2023
54ef6f3
new z index column on tree
Aug 8, 2023
816dedf
add elevation command and propertie and TU
Aug 8, 2023
ebaf840
send top command
Aug 8, 2023
2ce8aa4
send up / down / top / bottom
Aug 8, 2023
f64c9f6
add menu
Aug 8, 2023
65cbe12
remove sortFunction on table (bug), sort element before selection, fi…
Aug 9, 2023
f5080e2
saving keep elevation order
Aug 9, 2023
db1e817
bug elevation was not working correctly for zIndex
Aug 9, 2023
15a9e38
Add layout + constraint basic. Missing TU for commands
Aug 9, 2023
f7364f1
cleaner archi
Aug 9, 2023
3b2db7e
TU for layout commands
Aug 9, 2023
2362cac
Fix not passing tests
Aug 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 5 additions & 3 deletions src/BaselineOfPyramid/BaselineOfPyramid.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ BaselineOfPyramid >> baseline: spec [
spec postLoadDoIt: #postload:package:.
self dependencies: spec.
spec
package: #Pyramid with: [ spec requires: #( #BlocSerialization ) ];
package: #Pyramid;
package: #'Pyramid-Bloc'
with: [ spec requires: #( #Pyramid #Bloc ) ];
package: #'Pyramid-Tests' with: [ spec requires: #( #Pyramid ) ];
with: [ spec requires: #( #Pyramid #Bloc #BlocSerialization) ];
package: #'Pyramid-Tests' with: [ spec requires: #( #Pyramid #'Pyramid-Bloc' ) ];
package: #'Pyramid-Examples'
with: [ spec requires: #( #Pyramid ) ];
package: #'Pyramid-IDE' with: [ spec requires: #( #Pyramid ) ] ]
]

Expand Down
26 changes: 26 additions & 0 deletions src/Pyramid-Bloc/BlBackground.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Extension { #name : #BlBackground }

{ #category : #'*Pyramid-Bloc' }
BlBackground >> = aBlBackground [

aBlBackground == self ifTrue: [ ^ true ].
^ aBlBackground class = self class
]

{ #category : #'*Pyramid-Bloc' }
BlBackground >> asForm [

^ self shouldBeImplemented
]

{ #category : #'*Pyramid-Bloc' }
BlBackground >> asString [

^ self shouldBeImplemented
]

{ #category : #'*Pyramid-Bloc' }
BlBackground >> selectOnBackgroundInput: aPyramidBackgroundInputPresenter [

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

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

aPyramidLayoutInputPresenter setBasic
]
12 changes: 7 additions & 5 deletions src/Pyramid-Bloc/BlColorPaint.extension.st
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
Extension { #name : #BlColorPaint }

{ #category : #'*Pyramid-Bloc' }
BlColorPaint >> pyramidBackgroundPreview [
BlColorPaint >> asForm [

^ PyramidPaintPreviewSolidColor new color: self color
^ (Morph new
extent: 16 @ 16;
color: self color;
yourself) asForm
]

{ #category : #'*Pyramid-Bloc' }
BlColorPaint >> pyramidModalDefaultPaint: aPyramidPaintInput [
BlColorPaint >> selectOnBackgroundInput: aPyramidBackgroundInputPresenter [

aPyramidPaintInput buttonColor click.
aPyramidPaintInput inputSolid defaultColor: self color
aPyramidBackgroundInputPresenter selectPaintSolidWith: self
]
8 changes: 4 additions & 4 deletions src/Pyramid-Bloc/BlCompositeBackground.extension.st
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Extension { #name : #BlCompositeBackground }

{ #category : #'*Pyramid-Bloc' }
BlCompositeBackground >> pyramidBackgroundStrategy [
BlCompositeBackground >> asForm [

^ PyramidBackgroundPropertyInputUnknownStrategy new
^ self iconNamed: #jigsawIcon
]

{ #category : #'*Pyramid-Bloc' }
BlCompositeBackground >> pyramidSelectMenuOnModal: aModal [
BlCompositeBackground >> asString [

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

{ #category : #'*Pyramid-Bloc' }
BlCornerRadii >> setCornerRadiiOn: aPyramidInsetsInputPresenter [

((self topLeft closeTo: self bottomRight) and: [(self topRight closeTo: self bottomLeft)]) ifTrue: [
(self topLeft closeTo: self topRight) ifTrue: [ aPyramidInsetsInputPresenter inputArray value: { self topLeft }. ] ifFalse: [ aPyramidInsetsInputPresenter inputArray value: { self topLeft . self topRight}. ].
^ self ].

aPyramidInsetsInputPresenter inputArray value: {
self topLeft . self topRight . self bottomRight . self bottomLeft }.

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

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

^ self iconNamed: #class
]
11 changes: 0 additions & 11 deletions src/Pyramid-Bloc/BlElementGeometry.extension.st

This file was deleted.

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

{ #category : #'*Pyramid-Bloc' }
BlEllipseGeometry >> = anObject [

self == anObject ifTrue: [ ^ true ].
^ self class = anObject class
]
18 changes: 18 additions & 0 deletions src/Pyramid-Bloc/BlFlowLayout.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Extension { #name : #BlFlowLayout }

{ #category : #'*Pyramid-Bloc' }
BlFlowLayout >> = anObject [

self == anObject ifTrue: [ ^ true ].
self class = anObject class ifFalse: [ ^ false ].
self orientation = anObject orientation ifFalse: [ ^ false ].
self horizontalAlignment = anObject horizontalAlignment ifFalse: [ ^ false ].
self verticalAlignment = anObject verticalAlignment ifFalse: [ ^ false ].
^ true
]

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

aPyramidLayoutInputPresenter setFlow
]
32 changes: 29 additions & 3 deletions src/Pyramid-Bloc/BlGradientPaint.extension.st
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
Extension { #name : #BlGradientPaint }

{ #category : #'*Pyramid-Bloc' }
BlGradientPaint >> pyramidModalDefaultPaint: aPyramidPaintInput [
BlGradientPaint >> = aBlPaint [

aPyramidPaintInput buttonGradient click.
aPyramidPaintInput inputGradient stopsColor stopManager from: self stops.
self == aBlPaint ifTrue: [ ^ true ].
self class == aBlPaint class ifFalse: [ ^ false ].
^ self stops = aBlPaint stops
]

{ #category : #'*Pyramid-Bloc' }
BlGradientPaint >> asForm [

^ (Morph new
extent: 16 @ 16;
color: self stops last value;
addMorph: (Morph new
extent: 8 @ 16;
color: self stops first value;
yourself);
yourself) asForm
]

{ #category : #'*Pyramid-Bloc' }
BlGradientPaint >> selectOnBackgroundInput: aPyramidBackgroundInputPresenter [

aPyramidBackgroundInputPresenter selectPaintGradientWith: self
]

{ #category : #'*Pyramid-Bloc' }
BlGradientPaint >> selectOnGradientPaintInput: aPyramidGradientPaintInputPresenter [

aPyramidGradientPaintInputPresenter stopsInput value:self stops.
]
30 changes: 18 additions & 12 deletions src/Pyramid-Bloc/BlImageBackground.extension.st
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
Extension { #name : #BlImageBackground }

{ #category : #'*Pyramid-Bloc' }
BlImageBackground >> pyramidBackgroundStrategy [

(self image respondsTo: #pyramidExternalRessourceSource) ifTrue: [
^ PyramidBackgroundPropertyInputImage new
ressource: self image pyramidExternalRessourceSource;
yourself ].
^ PyramidBackgroundPropertyInputImage new
ressource: nil;
yourself
BlImageBackground >> = aBlBackground [

super = aBlBackground ifFalse: [ ^ false ].
^ self image = aBlBackground image
]

{ #category : #'*Pyramid-Bloc' }
BlImageBackground >> asForm [

^ self image
]

{ #category : #'*Pyramid-Bloc' }
BlImageBackground >> asString [

^ 'Image - ', self image asString
]

{ #category : #'*Pyramid-Bloc' }
BlImageBackground >> pyramidSelectMenuOnModal: aModal [
BlImageBackground >> selectOnBackgroundInput: aPyramidBackgroundInputPresenter [

aModal buttonImage click.
aModal currentPresenter setImage: self image
self shouldBeImplemented
]
20 changes: 20 additions & 0 deletions src/Pyramid-Bloc/BlInsets.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Extension { #name : #BlInsets }

{ #category : #'*Pyramid-Bloc' }
BlInsets >> setInsetsOn: aPyramidInsetsInputPresenter [

self isUniform ifTrue: [
aPyramidInsetsInputPresenter inputArray value: { self top }.
^ self ].
((self top closeTo: self bottom) and: [
self left closeTo: self right ]) ifTrue: [
aPyramidInsetsInputPresenter inputArray value: {
self top.
self right }.
^ self ].
aPyramidInsetsInputPresenter inputArray value: {
self top.
self right.
self bottom.
self left }
]
8 changes: 8 additions & 0 deletions src/Pyramid-Bloc/BlLayout.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Extension { #name : #BlLayout }

{ #category : #'*Pyramid-Bloc' }
BlLayout >> = anObject [

self == anObject ifTrue: [ ^ true ].
^ self class = anObject class
]
10 changes: 8 additions & 2 deletions src/Pyramid-Bloc/BlLayoutCommonConstraintsAxis.extension.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
Extension { #name : #BlLayoutCommonConstraintsAxis }

{ #category : #'*Pyramid-Bloc' }
BlLayoutCommonConstraintsAxis >> pyramidSelectConstraintsOn: aPyramidConstraintsPresenter [
BlLayoutCommonConstraintsAxis >> asPyramidConstraintsArgument [

self resizer pyramidSelectConstraintsResizerOn: aPyramidConstraintsPresenter
^ self resizer asPyramidConstraintsArgument
]

{ #category : #'*Pyramid-Bloc' }
BlLayoutCommonConstraintsAxis >> setConstraintsOn: aPyramidBasicConstraintsInputPresenter [

self resizer setResizerConstraintsOn: aPyramidBasicConstraintsInputPresenter
]
19 changes: 11 additions & 8 deletions src/Pyramid-Bloc/BlLayoutExactResizer.extension.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
Extension { #name : #BlLayoutExactResizer }

{ #category : #'*Pyramid-Bloc' }
BlLayoutExactResizer >> pyramidSelectConstraintsResizerOn: aPyramidConstraintsPresenter [

| item |
item := (aPyramidConstraintsPresenter selectorInputs select: [ :each |
each value targetClass = self class ]) first.
item key click.
aPyramidConstraintsPresenter submit: item value.
item value associatedPresenter number: self size.
BlLayoutExactResizer >> asPyramidConstraintsArgument [

^ {
#exact:.
self size }
]

{ #category : #'*Pyramid-Bloc' }
BlLayoutExactResizer >> setResizerConstraintsOn: aPyramidBasicConstraintsInputPresenter [

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

{ #category : #'*Pyramid-Bloc' }
BlLayoutFitContentResizer >> asPyramidConstraintsArgument [

^ #fitContent
]

{ #category : #'*Pyramid-Bloc' }
BlLayoutFitContentResizer >> setResizerConstraintsOn: aPyramidBasicConstraintsInputPresenter [

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

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

^ false
]

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

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

{ #category : #'*Pyramid-Bloc' }
BlLayoutMatchParentResizer >> asPyramidConstraintsArgument [

^ #matchParent
]

{ #category : #'*Pyramid-Bloc' }
BlLayoutMatchParentResizer >> setResizerConstraintsOn: aPyramidBasicConstraintsInputPresenter [

aPyramidBasicConstraintsInputPresenter setMatchParent
]
11 changes: 0 additions & 11 deletions src/Pyramid-Bloc/BlLayoutResizer.extension.st

This file was deleted.

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

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

^ true
]

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

^ BlLayoutOrientation horizontal
]
17 changes: 9 additions & 8 deletions src/Pyramid-Bloc/BlLinearGradientPaint.extension.st
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
Extension { #name : #BlLinearGradientPaint }

{ #category : #'*Pyramid-Bloc' }
BlLinearGradientPaint >> pyramidBackgroundPreview [
BlLinearGradientPaint >> = aBlPaint [

^ PyramidPaintPreviewGradientColor new
stops: self stops;
yourself
super = aBlPaint ifFalse: [ ^ false ].
^ self end = aBlPaint end and: [ self start = aBlPaint start ]
]

{ #category : #'*Pyramid-Bloc' }
BlLinearGradientPaint >> pyramidModalDefaultPaint: aPyramidPaintInput [
BlLinearGradientPaint >> selectOnGradientPaintInput: aPyramidGradientPaintInputPresenter [

super pyramidModalDefaultPaint: aPyramidPaintInput.
aPyramidPaintInput inputGradient modeSelector buttonLinear click.
aPyramidPaintInput inputGradient modeSelector linearDirection point: self end - self start
super selectOnGradientPaintInput: aPyramidGradientPaintInputPresenter.
aPyramidGradientPaintInputPresenter linearButton click.
aPyramidGradientPaintInputPresenter startInput value: self start.
aPyramidGradientPaintInputPresenter endInput value: self end.

]
Loading