Re: [Moose-dev] Re: Fwd: Magritte = Auto-GT Presentation

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

Re: [Moose-dev] Re: Fwd: Magritte = Auto-GT Presentation

Tudor Girba-2
Hi Sean,

Sorry for the slow response.

In the latest Moose, ConfigurationOfGlamour now loads again Magritte and the associated presentation, and provides an example of how to embed it in the inspector.

If you inspect:

GLMMagrittePersonExample new 
  name: 'William Shakespeare'; 
  address: 'Stratford-upon-Avon' 

you get:
Inline image 1

This is achieved through a method like this:

gtInspectorMagritteIn: composite
    <gtInspectorPresentationOrder: 40>
    composite magritte
        title: 'Form';
        display: [ self ]

See here a more thorough description:

Cheers,
Doru



On Fri, May 15, 2015 at 5:47 PM, Sean P. DeNigris <[hidden email]> wrote:
Sean P. DeNigris wrote
>
> Tudor Girba-2 wrote
>> The editor should be provided if you load the
>> Glamour-Presentations-Magritte.
>> ...
>> You get a GLMMagrittePresentation and if you want to use it in the
>> inspector, you have to define your own extension that uses it.
> I'm sorry, I'm still not understanding... I only know how to hook into the
> inspector via
> <gtInspectorPresentationOrder: aNumber>
> . How does that relate to GLMMagrittePresentation? How specifically do I
> have a Magritte presentation appear by default in GT for an object? Is
> there an example or doc somewhere?

Bump. Did this message go through? I've asked a few times on Pharo Dev and
here...



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Fwd-Magritte-Auto-GT-Presentation-tp4825662p4826530.html
Sent from the Moose mailing list archive at Nabble.com.
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--

"Every thing has its own flow"
Reply | Threaded
Open this post in threaded view
|

Re: [Moose-dev] Re: Fwd: Magritte = Auto-GT Presentation

Sean P. DeNigris
Administrator
Tudor Girba-2 wrote
Hi Sean,

Sorry for the slow response.
...
gtInspectorMagritteIn: composite
    <gtInspectorPresentationOrder: 40>
    composite magritte
        title: 'Form';
        display: [ self ]
Bravo! Well done! This is *so* useful. Thank you and keep it up :) You just saved me time, and more importantly a context switch in a project with a very tight deadline. There is definitely a beer (or several) in your future ;)

BTW: To get this in Pharo 5.0, load the Glamour-Magritte-Presentations package from the Moose repo
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: [Moose-dev] Re: Fwd: Magritte = Auto-GT Presentation

Sean P. DeNigris
Administrator
Sean P. DeNigris wrote
BTW: To get this in Pharo 5.0, load the Glamour-Magritte-Presentations package from the Moose repo
To be more specific (since I had to look it up again to figure out what the above meant!):
Gofer it
        smalltalkhubUser: 'Moose' project: 'Glamour';
        package: 'Glamour-Magritte-Presentations';
        load.

I wonder what the best way to load this would be... maybe add it to the default group in a Pharo40-specific block in the Magritte3 config?
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: [Moose-dev] Re: Fwd: Magritte = Auto-GT Presentation

Tudor Girba-2
Hi,

Indeed. We already had a similar discussion in the context of XMLParser. The current idea is to package GT extensions directly in the project, and not in GT.

In the case of Magritte this is a bit more elaborate because it implies packaging the MagrittePresentation there as well, but that should be doable, and I would prefer this route.

Cheers,
Doru



On Sun, May 31, 2015 at 7:43 PM, Sean P. DeNigris <[hidden email]> wrote:
Sean P. DeNigris wrote
> BTW: To get this in Pharo 5.0, load the Glamour-Magritte-Presentations
> package from the Moose repo

To be more specific (since I had to look it up again to figure out what the
above meant!):
Gofer it
        smalltalkhubUser: 'Moose' project: 'Glamour';
        package: 'Glamour-Magritte-Presentations';
        load.

I wonder what the best way to load this would be... maybe add it to the
default group in a Pharo40-specific block in the Magritte3 config?



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Re-Moose-dev-Re-Fwd-Magritte-Auto-GT-Presentation-tp4826577p4829637.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.




--

"Every thing has its own flow"
Reply | Threaded
Open this post in threaded view
|

Re: [Moose-dev] Re: Fwd: Magritte = Auto-GT Presentation

Sean P. DeNigris
Administrator
Tudor Girba-2 wrote
Indeed. We already had a similar discussion in the context of XMLParser.
The current idea is to package GT extensions directly in the project, and
not in GT.
That sound's good. I want to have Magritte load this by default in Pharo 4.0, but I guess the only way is to directly refer to the Glamour-Magritte-Presentations package from the Magritte config ( don't tell Christophe ;) )
Cheers,
Sean