Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-18 Thread Franck Warlouzet
Ok I was not looking the solution in Nautilus, but in Rubric ... Thanks a lot ! My eyes are alive again Franck To: pharo-dev@lists.pharo.org From: pharo-dev@lists.pharo.org CC: alain.plan...@yahoo.com Subject: Re: [Pharo-dev] Trying to use Rubric in Nautilus Date: Mon, 18 May 2015 07:38

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-18 Thread Alain Plantec via Pharo-dev
anks, > > Franck > > > To: pharo-dev@lists.pharo.org <mailto:pharo-dev@lists.pharo.org> > From: pharo-dev@lists.pharo.org <mailto:pharo-dev@lists.pharo.org> > CC: alain.plan...@yahoo.com <mailto:alain.plan...@yahoo.com> > Subject: Re: [Pharo-dev]

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-18 Thread Alain Plantec via Pharo-dev
nection to RubShoutStylerDecorator. Any idea everyone ? >> I am losing my eyes with uncolored code but I guess it is worth it. >> >> Thanks, >> >> Franck >> >> >> To: pharo-dev@lists.pharo.org <mailto:pharo-dev@lists.pharo.org> >> From

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-18 Thread Franck Warlouzet
: pharo-dev@lists.pharo.org From: pharo-dev@lists.pharo.org CC: alain.plan...@yahoo.com Subject: Re: [Pharo-dev] Trying to use Rubric in Nautilus Date: Thu, 14 May 2015 05:16:30 -0700 --Pièce jointe du message transmise-- Subject: Re: [Pharo-dev] Trying to use Rubric in Nautilus From:

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-14 Thread stepharo
thanks Alain You rock :) When you visit us I would love to see if we could brainstorm on changs in Nautilus to remove the need for RubPluggable :) I would like to remove PluggableTextWithLimits and I would love also to deprecate TextMorph. Stef

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-14 Thread Alain Plantec via Pharo-dev
readSelection: #contentsSelectionFrom: >> menu: #sourceCodeMenu:shifted:. >> >> I see that >> RubEditingArea has a policy but we could find how we can improve >> RubPluggable to use the menu: >> >> >> >>

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-14 Thread Alain Plantec via Pharo-dev
lto:pharo-dev@lists.pharo.org> > From: pharo-dev@lists.pharo.org <mailto:pharo-dev@lists.pharo.org> > CC: alain.plan...@yahoo.com <mailto:alain.plan...@yahoo.com> > Subject: Re: [Pharo-dev] Trying to use Rubric in Nautilus > Date: Wed, 13 May 2015 07:26:15 -0700 > >

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-13 Thread Franck Warlouzet
use Rubric in Nautilus Date: Wed, 13 May 2015 07:26:15 -0700 --Pièce jointe du message transmise-- Subject: Re: [Pharo-dev] Trying to use Rubric in Nautilus From: alain.plan...@yahoo.com Date: Wed, 13 May 2015 16:25:34 +0200 To: pharo-dev@lists.pharo.org see Rubric-AlainPlantec.196 in

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-13 Thread Alain Plantec via Pharo-dev
--- Begin Message --- see Rubric-AlainPlantec.196 in the Rubric repo. I’ve added RubPluggableTextMorph and RubPluggableTextMorphExample. Need to be polished certainly but it should facilitate the integration of Rubric in Nautilus. cheers Alain > On 12 May 2015, at 22:45, stepharo wrote: > > F

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-12 Thread stepharo
For fun I put the following trace in sourceCodeFrom: aTextMorph Transcript show: '.'. ^ self sourceCode And in general this method is invoked three times instead of one :) Before asking we read all the examples and I saw that selector: is used to communicate and update the co

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-12 Thread Nicolai Hess
2015-05-12 21:44 GMT+02:00 stepharo : > Thanks alain > > > Before asking we read all the examples and I saw that selector: is used to > communicate and update the code pane. > > (UIManager default newAutoAcceptTextEntryFor: self > get: #selector > set: #selector: >

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-12 Thread Alain Plantec via Pharo-dev
--- Begin Message --- Ok i see. It is possible to code an adapter with the pluggabletexmorph protocol. I will try to do it tomorrow.  Cheers Alain De:"stepharo" Date:mar j mai PM à 21:44 Objet:Re: [Pharo-dev] Trying to use Rubric in Nautilus Thanks alain Before asking we read all the e

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-12 Thread Nicolai Hess
2015-05-12 21:40 GMT+02:00 stepharo : > But nicolai I know announcement. Now the widgets of Nautilus do not use > announcement so I do not know if I > can simply replace self changed: #sourceCodeFrom: > I do not know the implication of removing sourceCodeFrom: > OK, I just thought rubric uses a

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-12 Thread stepharo
Thanks alain Before asking we read all the examples and I saw that selector: is used to communicate and update the code pane. (UIManager default newAutoAcceptTextEntryFor: self get: #selector set: #selector: class: String getEnabled: #haveClassN

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-12 Thread stepharo
But nicolai I know announcement. Now the widgets of Nautilus do not use announcement so I do not know if I can simply replace self changed: #sourceCodeFrom: I do not know the implication of removing sourceCodeFrom: Le 12/5/15 17:41, Nicolai Hess a écrit : Announcements! replace self changed:

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-12 Thread stepharo
We tried modelEditor := (RubSmalltalkMethodEditorModel new client: self). widget := modelEditor newScrolledText. widget on: self text: #sourceCodeFrom: accept: #compileSource:notifying: readSelection: #contentsSelectionFrom: menu: #sourceCodeM

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-12 Thread Alain Plantec via Pharo-dev
--- Begin Message --- Attached a simple example (RubTextStuff.st). see the use of the RubTextAccepted announcement (RubTextStuff class>>example) to do things when the code is accepted in the view. now you can also have a look at RubMethodEditingExample when the selector change, then the code in

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-12 Thread Nicolai Hess
Announcements! replace self changed: #sourceCodeFrom:. with something like self announcer announce:RubTextSetInModel. ( I am not sure what RubXXAnouncement to use) 2015-05-12 17:14 GMT+02:00 stepharo : > We tried all kind of combinations > > > modelEditor := (RubSmalltalkMethodEdit

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-12 Thread stepharo
We tried all kind of combinations modelEditor := (RubSmalltalkMethodEditorModel new client: self). widget := modelEditor newScrolledText. widget on: self text: #sourceCodeFrom: accept: #compileSource:notifying: readSelection: #contentsSelectionF

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-12 Thread stepharo
Ok we looked at it a lot :) But what is missing to use is how we can register the morph to the nautilus list so that when it changes we get invoked. In Nautilus this is self changed: #sourceCodeFrom: We tried to register via addDependent. but it did not work. We will look again at RubSmall

Re: [Pharo-dev] Trying to use Rubric in Nautilus ....

2015-05-12 Thread Alain Plantec via Pharo-dev
--- Begin Message --- Maybe you should use RubSmalltalkMethodEditorModel (one have also RubSmalltalkScriptEditorModel). Have a look at RubWorkspaceExample to see how it can be used. Alain > On 12 mai 2015, at 16:40, stepharo wrote: > > Hi > > we are trying with Franck Warlouzet to use Rubric