Magritte = Auto-GT Presentation

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

Magritte = Auto-GT Presentation

Sean P. DeNigris
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
Reply | Threaded
Open this post in threaded view
|

Re: Magritte = Auto-GT Presentation

stepharo
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.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Magritte = Auto-GT Presentation

NorbertHartl
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.
>

Reply | Threaded
Open this post in threaded view
|

Re: Magritte = Auto-GT Presentation

Sean P. DeNigris
Administrator
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
Reply | Threaded
Open this post in threaded view
|

Re: Magritte = Auto-GT Presentation

Tudor Girba-2
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
> 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.




--

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

Re: Magritte = Auto-GT Presentation

NorbertHartl
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 <[hidden email]>:

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
> 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.




--

"Every thing has its own flow"

Reply | Threaded
Open this post in threaded view
|

Re: Magritte = Auto-GT Presentation

Sean P. DeNigris
Administrator
In reply to this post by Tudor Girba-2
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
Reply | Threaded
Open this post in threaded view
|

Re: Magritte = Auto-GT Presentation

NorbertHartl

> 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


Reply | Threaded
Open this post in threaded view
|

Re: Magritte = Auto-GT Presentation

Sean P. DeNigris
Administrator
In reply to this post by Tudor Girba-2
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
Reply | Threaded
Open this post in threaded view
|

Re: Magritte = Auto-GT Presentation

Tudor Girba-2
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
> 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.




--

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

Re: Magritte = Auto-GT Presentation

Sean P. DeNigris
Administrator
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
Reply | Threaded
Open this post in threaded view
|

Re: Magritte = Auto-GT Presentation

Sean P. DeNigris
Administrator
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