did you see what benjamin is doing with Spec. Because you should join effort the idea is that we can define object with spec and compose them and their logic using value holder. Stef On Jan 31, 2012, at 5:58 AM, S Krish wrote:
http://skrishnamachari.wordpress.com/2012/01/31/pharo-application-framework-...
Obliged for feedback ...
For details and links.. Sharing this little framework that should go some way to ease creating large applications ( currently morphic oriented).
AbstractMorphicView subclass: #MyNewView â¦
#createMorphsSpecs
^{
âpanel1â² -> #SomeOtherView. âlabel1â² -> #LabelMorph. âtext1â² -> #PluggableTextMorph. âbutton1â² -> #PluggableButtonMorph. }
layoutSpecsArray
^{ âwidgetNameInMorphsDictionaryâ -> { #fractions -> (0 @ 0 corner: 1 @ 0.5). â fractional value 0 to 1 range â #offsets -> (10 @ 10 corner: 0 @ 0). â offsets relative to the fractional position â }.
â⦠add other widgetspecsâ¦â }
Thats it.. you should have a prototype UI neatly laid out.. and then specify: #morphsPrimaryPropertiesSpecs and #morphsSecondaryPropertiesSpecs for full functionality that composes views inside views and scales well.
AbstractSimpleMorphicView can make it simpler for TableLayout stuff without requiring #layoutSpecsArray.
..... the main post has other details and links to package...