Skip to content

Commit

Permalink
Merge pull request #200 from OpenSmock/Issue_0174
Browse files Browse the repository at this point in the history
Issue 0174
  • Loading branch information
Nyan11 authored Jul 31, 2024
2 parents 24c4e0c + 03fc1ff commit 94d2092
Show file tree
Hide file tree
Showing 255 changed files with 2,215 additions and 1,722 deletions.
27 changes: 13 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,29 +84,27 @@ Then the project view appears in a new window.

### Add and setup graphical elements

Use the create button to add graphical elements in your project view.
Use the add button to add graphical elements in your project view and edit them with the properties panel.

https://github.com/OpenSmock/Pyramid/assets/49183340/a02db9ad-314a-4caf-884c-9da4da809293
https://github.com/user-attachments/assets/44796af0-95d7-4e29-b28b-fdedfdbe7a85

### Test behavior in the editor

Use the test/edit button to switch between the edit mode and the test mode.

https://github.com/OpenSmock/Pyramid/assets/49183340/a85d8c01-89dd-472c-ab4e-41d51a8629dd

### Save a project
### Save and Edit a project

Setup the project to store your view into a Class.

When your project is saved into a method, you can see the preview on the `Pyramid preview` tab.

https://github.com/OpenSmock/Pyramid/assets/49183340/eb70004b-cfb4-43a0-8759-27d3bac75fd0

### Edit a saved project
By default the element will be saved as source code.

Use the `Pyramid preview` tab to edit an existing project.
You can edit your project with Pyramid or use the code browser.

https://github.com/OpenSmock/Pyramid/assets/49183340/c4a18e51-5fb5-412c-90d4-0638cadb6bff
https://github.com/user-attachments/assets/14711a00-b31a-4915-a634-3685bfe141f7

### Test a project

Expand Down Expand Up @@ -136,13 +134,14 @@ https://github.com/OpenSmock/Pyramid/assets/49183340/0c66a3ac-7bea-48c1-b1e8-0b0

## <img src="/assets/PyramidPinPtah.svg" width="75" height="75" align="bottom"> Dependencies

![image](https://github.com/OpenSmock/Pyramid/assets/34318678/099f25fc-74bd-477f-bef0-2ad7d47db10d)
![image](https://github.com/user-attachments/assets/192ff62a-ce48-4801-a437-c9c83720eb5f)

- [Toplo](https://github.com/pharo-graphics/Toplo)
- [Toplo-Serialization](https://github.com/OpenSmock/Toplo-Serialization)
- [Bloc](https://github.com/pharo-graphics/Bloc)
- [Bloc-Serialization](https://github.com/OpenSmock/Bloc-Serialization)
- [Alexandrie](https://github.com/pharo-graphics/Alexandrie)
- [Bloc-Serialization](https://github.com/OpenSmock/Bloc-Serialization) - serializer project for Bloc (this project define the Bloc version of Pyramid).
- [Bloc](https://github.com/pharo-graphics/Bloc) - low-level UI infrastructure & framework for Pharo.
- [Toplo-Serialization](https://github.com/OpenSmock/Toplo-Serialization) - serializer project for Toplo (this project define the Toplo version of Pyramid).
- [Toplo](https://github.com/pharo-graphics/Toplo) - a widget framework on top of Bloc.
- [STON](https://github.com/svenvc/ston) - serializer for Pharo objects to Smalltalk Object Notation format.
- [Stash](https://github.com/Nyan11/Stash) - serializer for Pharo objects to source code format.

## <img src="/assets/PyramidPinPtah.svg" width="75" height="75" align="bottom"> License

Expand Down
8 changes: 8 additions & 0 deletions src/Pyramid-Bloc/BlElement.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@ BlElement >> editWithPyramid [
editor window open.
^ editor
]

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

self parent ifNil: [ ^ true ].
self parent shouldSerializedChildren ifFalse: [ ^ false ].
^ self parent parentsShouldSerializeChildren
]
2 changes: 1 addition & 1 deletion src/Pyramid-Bloc/PyramidAbstractBlocCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ PyramidAbstractBlocCommand class >> isAbstract [
{ #category : #testing }
PyramidAbstractBlocCommand >> canBeUsedFor: anObject [

^ anObject class = BlElement or: [anObject class inheritsFrom: BlElement]
^ anObject isKindOf: BlElement
]
34 changes: 0 additions & 34 deletions src/Pyramid-Bloc/PyramidAbstractColumnsBuilder.class.st

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,16 @@ PyramidBackgroundImageModalPresenter >> defaultLayout [
{ #category : #action }
PyramidBackgroundImageModalPresenter >> image: aForm [

| source |
self codeBitmap beForObject: aForm.
self codeBitmap text: self textBitmap , 'self
'
'.
(aForm isPyramidProxy) ifFalse: [ ^ self ].
source := aForm pyramidExternalRessourceSource.
self inputReceiverProxy text: (Stash new serialize: source target).
self inputSelectorProxy text: (Stash new serialize: source selector).
self inputArgumentsProxy text:
(Stash new serialize: source arguments)
]

{ #category : #initialization }
Expand Down
3 changes: 1 addition & 2 deletions src/Pyramid-Bloc/PyramidBlocTextCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ PyramidBlocTextCommand class >> isAbstract [
{ #category : #testing }
PyramidBlocTextCommand >> canBeUsedFor: anObject [

^ anObject class = BlTextElement or: [
anObject class inheritsFrom: BlTextElement ]
^ anObject isKindOf: BlTextElement
]

{ #category : #'as yet unclassified' }
Expand Down
78 changes: 0 additions & 78 deletions src/Pyramid-Bloc/PyramidElementToAddCategory.class.st

This file was deleted.

77 changes: 0 additions & 77 deletions src/Pyramid-Bloc/PyramidElementToAddFactory.class.st

This file was deleted.

17 changes: 0 additions & 17 deletions src/Pyramid-Bloc/PyramidElementToAddFactoryEmpty.class.st

This file was deleted.

Loading

0 comments on commit 94d2092

Please sign in to comment.