Hey guys, I asked this on Pharo Dev, but this is probably the right place :)
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?
----- Cheers, Sean -- View this message in context: http://forum.world.st/Fwd-Magritte-Auto-GT-Presentation-tp4825662.html Sent from the Moose mailing list archive at Nabble.com.
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.ht... Sent from the Moose mailing list archive at Nabble.com.
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: [image: 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: http://www.humane-assessment.com/blog/adding-magritte-forms-in-gtinspector
Cheers, Doru
On Fri, May 15, 2015 at 5:47 PM, Sean P. DeNigris sean@clipperadams.com 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.ht... Sent from the Moose mailing list archive at Nabble.com. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Tudor Girba-2 wrote
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 ;)
----- Cheers, Sean -- View this message in context: http://forum.world.st/Fwd-Magritte-Auto-GT-Presentation-tp4825662p4827900.ht... Sent from the Moose mailing list archive at Nabble.com.