moving to Rubric in Glamour

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

moving to Rubric in Glamour

Andrei Chis
Hi,

I moved Glamour to Rubric, deprecated those presentations that use PluggableTextMorph and moved almost all usages of presentations that rely on PluggableTextMorph.
These changes are still only in the Moose branch to see if there are any ugly bugs.

The changes to the glamour API are the following:

- deprecated #smalltalkCode, #pharoPlayground and #rubricText
- added #pharoScript

If you use #smalltalkCode replace it with either #pharoMethod or #pharoScript
If you use #rubricTest replace those usages with #text
If you use #pharoPlayground replace those usages with #pharoScript (we changed this as the glamour playground is not the same at the GTPlayground and this was causing some confusion)
For this I also renamed  GLMPharoPlaygroundPresentation to GLMPharoScriptPresentation and GLMMorphicPharoPlaygroundRenderer to GLMMorphicPharoScriptRenderer.

If you are using the latest moose let me know if you run into any problems or have questions.

Cheers,
Andrei
Reply | Threaded
Open this post in threaded view
|

Re: [Moose-dev] moving to Rubric in Glamour

Tudor Girba-2
Thank you!

Doru

On Fri, Oct 30, 2015 at 9:33 PM, Andrei Chis <[hidden email]> wrote:
Hi,

I moved Glamour to Rubric, deprecated those presentations that use PluggableTextMorph and moved almost all usages of presentations that rely on PluggableTextMorph.
These changes are still only in the Moose branch to see if there are any ugly bugs.

The changes to the glamour API are the following:

- deprecated #smalltalkCode, #pharoPlayground and #rubricText
- added #pharoScript

If you use #smalltalkCode replace it with either #pharoMethod or #pharoScript
If you use #rubricTest replace those usages with #text
If you use #pharoPlayground replace those usages with #pharoScript (we changed this as the glamour playground is not the same at the GTPlayground and this was causing some confusion)
For this I also renamed  GLMPharoPlaygroundPresentation to GLMPharoScriptPresentation and GLMMorphicPharoPlaygroundRenderer to GLMMorphicPharoScriptRenderer.

If you are using the latest moose let me know if you run into any problems or have questions.

Cheers,
Andrei

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev




--

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

Re: [Moose-dev] moving to Rubric in Glamour

abergel
Yes this is great

Alexandre 

Le 30 oct. 2015 à 18:46, Tudor Girba <[hidden email]> a écrit :

Thank you!

Doru

On Fri, Oct 30, 2015 at 9:33 PM, Andrei Chis <[hidden email]> wrote:
Hi,

I moved Glamour to Rubric, deprecated those presentations that use PluggableTextMorph and moved almost all usages of presentations that rely on PluggableTextMorph.
These changes are still only in the Moose branch to see if there are any ugly bugs.

The changes to the glamour API are the following:

- deprecated #smalltalkCode, #pharoPlayground and #rubricText
- added #pharoScript

If you use #smalltalkCode replace it with either #pharoMethod or #pharoScript
If you use #rubricTest replace those usages with #text
If you use #pharoPlayground replace those usages with #pharoScript (we changed this as the glamour playground is not the same at the GTPlayground and this was causing some confusion)
For this I also renamed  GLMPharoPlaygroundPresentation to GLMPharoScriptPresentation and GLMMorphicPharoPlaygroundRenderer to GLMMorphicPharoScriptRenderer.

If you are using the latest moose let me know if you run into any problems or have questions.

Cheers,
Andrei

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev




--

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

Protrammatic selection in Glamour

Martin McClure-2
In reply to this post by Andrei Chis
Is there a way in Glamour to programmatically select an item in a list
or tree presentation? (That is, having the same effect as clicking on
the item.) I'm using the Glamour in Pharo 5.

Thanks,

-Martin

Reply | Threaded
Open this post in threaded view
|

Re: Protrammatic selection in Glamour

Andrei Chis
The #selection: message of a presentation should update the selection.
Let me know if it doesn't work as expected for you.

Cheers,
Andrei

On Sun, Oct 2, 2016 at 9:15 PM, Martin McClure <[hidden email]> wrote:
Is there a way in Glamour to programmatically select an item in a list or tree presentation? (That is, having the same effect as clicking on the item.) I'm using the Glamour in Pharo 5.

Thanks,

-Martin


Reply | Threaded
Open this post in threaded view
|

Re: Protrammatic selection in Glamour

Martin McClure-2
On 10/02/2016 02:03 PM, Andrei Chis wrote:
The #selection: message of a presentation should update the selection.
Let me know if it doesn't work as expected for you.

Thanks for the confirmation. I'd tried that, but it didn't seem to do anything. Let me experiment to make sure I'm doing what I think I'm doing.

-Martin


On Sun, Oct 2, 2016 at 9:15 PM, Martin McClure <[hidden email]> wrote:
Is there a way in Glamour to programmatically select an item in a list or tree presentation? (That is, having the same effect as clicking on the item.) I'm using the Glamour in Pharo 5.

Thanks,

-Martin



Reply | Threaded
Open this post in threaded view
|

Re: Protrammatic selection in Glamour

Tudor Girba-2
Hi Martin,

GLMBasicExamples>>treeWithInitialSelection provides an example of how to set an initial selection programatically. Does this help?

Cheers,
Doru

> On Oct 2, 2016, at 11:11 PM, Martin McClure <[hidden email]> wrote:
>
> On 10/02/2016 02:03 PM, Andrei Chis wrote:
>> The #selection: message of a presentation should update the selection.
>> Let me know if it doesn't work as expected for you.
>
> Thanks for the confirmation. I'd tried that, but it didn't seem to do anything. Let me experiment to make sure I'm doing what I think I'm doing.
>
> -Martin
>
>>
>> On Sun, Oct 2, 2016 at 9:15 PM, Martin McClure <[hidden email]> wrote:
>> Is there a way in Glamour to programmatically select an item in a list or tree presentation? (That is, having the same effect as clicking on the item.) I'm using the Glamour in Pharo 5.
>>
>> Thanks,
>>
>> -Martin
>>
>>
>

--
www.tudorgirba.com
www.feenk.com

"Problem solving efficiency grows with the abstractness level of problem understanding."





Reply | Threaded
Open this post in threaded view
|

Re: Protrammatic selection in Glamour

Martin McClure-2
On 10/02/2016 11:06 PM, Tudor Girba wrote:
> Hi Martin,
>
> GLMBasicExamples>>treeWithInitialSelection provides an example of how to set an initial selection programatically. Does this help?

Thanks! This has me much closer to where I want to be.

I can't get it to properly deselect, though. If I send "value: nil" to
the port, it transmits nil, but leaves the previous selection in the
list selected (highlighted, at least). I can deselect properly with the
mouse.

Regards,

-Martin