new in Glamour: composite presentation as entry point

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

new in Glamour: composite presentation as entry point

Tudor Girba-2
Hi,

A short while ago I upgraded the CompositePresentation to be able to use it as an entry point to a Glamour script.

The idea here is that we can now use Glamour like we use Mondrian: we instantiate the GLMCompositePresentation once and then we always pass it to other methods.

For example:

buildBrowser
        | browser |
        browser := GLMTabulator new.
        browser ...

==>

buildIn: composer
        composer tabulator with: [:t |
                t ...
        ]

The old way still works, of course. The nice thing about this solution is that it works better with the editor (you are given the composer).

For a live example, see:
http://www.humane-assessment.com/blog/building-a-simple-code-browser

Let me know what you think.

Cheers,
Doru

--
www.tudorgirba.com

"Sometimes the best solution is not the best solution."


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: new in Glamour: composite presentation as entry point

abergel
> buildIn: composer
> composer tabulator with: [:t |
> t ...
> ]
>
> The old way still works, of course. The nice thing about this solution is that it works better with the editor (you are given the composer).
>
> For a live example, see:
> http://www.humane-assessment.com/blog/building-a-simple-code-browser
>
> Let me know what you think.


"composer" is a very generic term. Wouldn't "browser" be a better variable name?

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: new in Glamour: composite presentation as entry point

Tudor Girba-2
Hi,

On 23 Oct 2011, at 22:52, Alexandre Bergel wrote:

>> buildIn: composer
>> composer tabulator with: [:t |
>> t ...
>> ]
>>
>> The old way still works, of course. The nice thing about this solution is that it works better with the editor (you are given the composer).
>>
>> For a live example, see:
>> http://www.humane-assessment.com/blog/building-a-simple-code-browser
>>
>> Let me know what you think.
>
>
> "composer" is a very generic term. Wouldn't "browser" be a better variable name?

I am not quite satisfied with the name, but "browser" because it is not a browser. It is a composite presentation. So, for someone knowing a bit the internals of Glamour it would be confusing.

I was actually thinking of renaming the GLMCompositePresenatation to GLMComposer. Or does anyone else have other ideas?

Cheers,
Doru


> Cheers,
> Alexandre
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

If you can't say why something is relevant,
it probably isn't.


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev