BuildingUIWithSpec
BuildingUIWithSpec copied to clipboard
A book to show how to build UI with the Spec 1.0 framework.
In the development branch of Spec planned for Pharo 8 I renamed defaultWindowModelClass for defaultWindowPresenterClass. We should update the documentation in a pharo8 branch.
In the new version of Spec I did a PR to add spacers to layouts. If it is integrated we should add documentation about it. https://github.com/pharo-spec/Spec/pull/65/files Example of demo: ```Smalltalk...
Currently, there is only a Morphic binding to Spec so it is not really useful to know how to use another binding. When we will have a second one we...
The book is good for the user documentation but Spec is also missing a developer documentation. Maybe in the future we could have some chapters on the internals of Spec...
In the Reuse chapter there is this code: ```Smalltalk WidgetClassList >> initializeWidgets list := self newList. list items: (AbstractWidgetModel allSubclasses sorted: [:a :b | a name < b name ])....
(otherwise the layout will not work)
When you follow the chapter 2.1 to construct the CustomerSatisfactory UI and you hit 'Play' in the Playground after ``` | ui | ui := CustomerSatisfactory new openWithSpec. ``` you...
Sample: ((ButtonModel new action: [ Smalltalk garbageCollect. ]; icon: UITheme current icons smallUpdate; label: 'GC'; buildWithSpec) extent: 75@30; yourself) openInHand buildWithSpec is mentioned for gtPresentation and in initializePresenter but nowhere...
There is no mention in the book of switching the layout of a DynamicComposableModel using #layout: aLayout Where aLayout is one of the self class someSpec. Took me a while...
The copy step is probably not careful enough… but I guess I'll fix that when I spend some time on SquareBracketAssociates/EnterprisePharo#111