[Pharo-project] [Pharo-users] Pharo Morphic View Application Framework

Stéphane Ducasse stephane.ducasse at inria.fr
Tue Jan 31 09:09:22 CET 2012


did you see what benjamin is doing with Spec.
Because you should join effort 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Spec.pdf
Type: application/pdf
Size: 397861 bytes
Desc: not available
URL: <http://lists.gforge.inria.fr/pipermail/pharo-project/attachments/20120131/49bbaed5/attachment-0001.pdf>
-------------- next part --------------


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-aka-morphic-view-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...
> 



More information about the Pharo-project mailing list