Administrator
|
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...
Cheers,
Sean |
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. > > |
In reply to this post by Sean P. DeNigris
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 <[hidden email]>: > > 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. > |
Administrator
|
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 |
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 <[hidden email]> wrote: NorbertHartl wrote |
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
|
Administrator
|
In reply to this post by Tudor Girba-2
Is that the same or similar to what I did?
Cheers,
Sean |
> Am 06.04.2015 um 12:42 schrieb Sean P. DeNigris <[hidden email]>: > > 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 |
Administrator
|
In reply to this post by Tudor Girba-2
How do I enable a GT-Magritte presentation for my object? They don't seem to appear by default...
Cheers,
Sean |
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 <[hidden email]> wrote: Tudor Girba-2 wrote |
Administrator
|
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 |
Administrator
|
Bump. Is there example code anywhere?
Cheers,
Sean |
Free forum by Nabble | Edit this page |