gtInspectorMagritteIn: composite <gtInspectorPresentationOrder: 30> | table | table := composite table title: 'Magritte'; display: [ self magritteDescription children collect: [ :desc | desc label -> (desc toString: (desc accessor read: self)) ] ]; column: 'Field' evaluated: #key; column: 'Value' evaluated: #value; send: #value descriptionName <magritteDescription> ^ MAStringDescription new accessor: #name; label: 'Name'; priority: 100; yourself descriptionPages etc... <http://forum.world.st/file/n4817448/Screenshot_2015-04-04_00.png> ----- Cheers, Sean -- View this message in context: http://forum.world.st/Magritte-Auto-GT-Presentation-tp4817448.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Cool :) I still have on my endless todo to write a new chapter on magritte 3 :( Le 4/4/15 06:01, Sean P. DeNigris a écrit :
gtInspectorMagritteIn: composite <gtInspectorPresentationOrder: 30> | table | table := composite table title: 'Magritte'; display: [ self magritteDescription children collect: [ :desc | desc label -> (desc toString: (desc accessor read: self)) ] ]; column: 'Field' evaluated: #key; column: 'Value' evaluated: #value; send: #value
descriptionName <magritteDescription>
^ MAStringDescription new accessor: #name; label: 'Name'; priority: 100; yourself descriptionPages etc...
<http://forum.world.st/file/n4817448/Screenshot_2015-04-04_00.png>
----- Cheers, Sean -- View this message in context: http://forum.world.st/Magritte-Auto-GT-Presentation-tp4817448.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Cool! Can you add a spec based editor for the object? ;) That woule be übernice, haha. Norbert
Am 04.04.2015 um 06:01 schrieb Sean P. DeNigris <sean@clipperadams.com>:
gtInspectorMagritteIn: composite <gtInspectorPresentationOrder: 30> | table | table := composite table title: 'Magritte'; display: [ self magritteDescription children collect: [ :desc | desc label -> (desc toString: (desc accessor read: self)) ] ]; column: 'Field' evaluated: #key; column: 'Value' evaluated: #value; send: #value
descriptionName <magritteDescription>
^ MAStringDescription new accessor: #name; label: 'Name'; priority: 100; yourself descriptionPages etc...
<http://forum.world.st/file/n4817448/Screenshot_2015-04-04_00.png>
----- Cheers, Sean -- View this message in context: http://forum.world.st/Magritte-Auto-GT-Presentation-tp4817448.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
NorbertHartl wrote
Cool! Can you add a spec based editor for the object? ;)
It's on my todo list, but not near the top :/ btw The presenter, packaged in Magritte-GT, now loads by default in Pharo 4.0 with the Magritte3 stable version (3.3), available from the 4.0 meta repo. ----- Cheers, Sean -- View this message in context: http://forum.world.st/Magritte-Auto-GT-Presentation-tp4817448p4817752.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
The editor should be provided if you load the Glamour-Presentations-Magritte. Cheers, Doru On Mon, Apr 6, 2015 at 3:18 AM, Sean P. DeNigris <sean@clipperadams.com> wrote:
NorbertHartl wrote
Cool! Can you add a spec based editor for the object? ;)
It's on my todo list, but not near the top :/
btw The presenter, packaged in Magritte-GT, now loads by default in Pharo 4.0 with the Magritte3 stable version (3.3), available from the 4.0 meta repo.
----- Cheers, Sean -- View this message in context: http://forum.world.st/Magritte-Auto-GT-Presentation-tp4817448p4817752.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
-- www.tudorgirba.com "Every thing has its own flow"
Tudor Girba-2 wrote
The editor should be provided if you load the Glamour-Presentations-Magritte.
Is that the same or similar to what I did? ----- Cheers, Sean -- View this message in context: http://forum.world.st/Magritte-Auto-GT-Presentation-tp4817448p4817807.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Am 06.04.2015 um 12:42 schrieb Sean P. DeNigris <sean@clipperadams.com>:
Tudor Girba-2 wrote
The editor should be provided if you load the Glamour-Presentations-Magritte.
Is that the same or similar to what I did?
You didn't do the edit part, did you? The magritte presentation in glamour offers an editor for the object it manages. Where is your stuff again? Norbert
Doru, thanks for the example. The magritte presentation doesn't really work in a 5.0 moose image but I could see what has been done. Norbert
Am 06.04.2015 um 07:43 schrieb Tudor Girba <tudor@tudorgirba.com>:
The editor should be provided if you load the Glamour-Presentations-Magritte.
Cheers, Doru
On Mon, Apr 6, 2015 at 3:18 AM, Sean P. DeNigris <sean@clipperadams.com <mailto:sean@clipperadams.com>> wrote: NorbertHartl wrote
Cool! Can you add a spec based editor for the object? ;)
It's on my todo list, but not near the top :/
btw The presenter, packaged in Magritte-GT, now loads by default in Pharo 4.0 with the Magritte3 stable version (3.3), available from the 4.0 meta repo.
----- Cheers, Sean -- View this message in context: http://forum.world.st/Magritte-Auto-GT-Presentation-tp4817448p4817752.html <http://forum.world.st/Magritte-Auto-GT-Presentation-tp4817448p4817752.html> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
-- www.tudorgirba.com <http://www.tudorgirba.com/>
"Every thing has its own flow"
Tudor Girba-2 wrote
The editor should be provided if you load the Glamour-Presentations-Magritte.
How do I enable a GT-Magritte presentation for my object? They don't seem to appear by default... ----- Cheers, Sean -- View this message in context: http://forum.world.st/Magritte-Auto-GT-Presentation-tp4817448p4818551.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
You get a GLMMagrittePresentation and if you want to use it in the inspector, you have to define your own extension that uses it. Cheers, Doru On Thu, Apr 9, 2015 at 1:34 PM, Sean P. DeNigris <sean@clipperadams.com> wrote:
Tudor Girba-2 wrote
The editor should be provided if you load the Glamour-Presentations-Magritte.
How do I enable a GT-Magritte presentation for my object? They don't seem to appear by default...
----- Cheers, Sean -- View this message in context: http://forum.world.st/Magritte-Auto-GT-Presentation-tp4817448p4818551.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
-- www.tudorgirba.com "Every thing has its own flow"
Tudor Girba-2 wrote
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/Magritte-Auto-GT-Presentation-tp4817448p4819110.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Sean P. DeNigris wrote
Tudor Girba-2 wrote
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. Is there example code anywhere? ----- Cheers, Sean -- View this message in context: http://forum.world.st/Magritte-Auto-GT-Presentation-tp4817448p4825360.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (4)
-
Norbert Hartl -
Sean P. DeNigris -
stepharo -
Tudor Girba