Hi Alain, Quoting Alain Rastoul <alf.mmm.cat@gmail.com>:
Le 14/05/2015 02:08, J. Vuletich (mail lists) a écrit :
A port of the code to Pharo is required, as Alain and Stef have shown. Besides, Cuis doesn't include support for Traits. I think your idea is very good, and I hope some Pharoer (Alain?) does it.
Hi Juan,
I tried Cuis, you did a very nice work here.
Thanks.
About porting, I did this first raw port to allow other peoples who complains about pharo transcript to have a look at Cuis Trancript more easily. And apart from a small window inset problem and an initial display Form I probably did not get well (and/or a clip missing somewhere?), it does the same thing than in Cuis.
Cool.
May be we should wait a little so that people can say their word about it too and eventually/if they want/can/... investigate those two morphic porting issues. In the meanwhile, a simple "fix" in the Transcript could be done too (see last Ben's post) with an extra system settings.
Sure.
About sluggishnesh and Transcript speedup , the changes you made in Cuis, as seen in git commits, are a bit intrusive (DateAndTime, AbstractFont, Strikefont ?), I don't think I know pharo enough to report them.
The only relevant changeset is 2321, in folder CoreUpdates (the DateAndTime changes are completely unrelated). The changes to Fonts are only to let #displayUnfinishedEntryOn: save the last updated X for the unfinished entry. This is needed to avoid overwriting stuff (the "bold" efeect you saw). This is a good optimization and it is the only relevant change. If you find a way to make #drawString:at:font:color: answer the x of the rightmost affected pixel, that is more amenable to Pharo, it would be equally useful.
Also I experienced another issue that exits in Cuis too:
The Transcript overwrite other morphs/windows when showing its contents during do-it
After end of execution, the world redisplays correctly but not in Pharo
(see attached screen shots)
In Cuis, the world repair is requested in the last line of #display, that reads self changed: #redraw "So any morph in front of us is repaired when Morphic cycles" This works because in #openTranscript, the Transcript is set as the model of the TranscriptWindow. An appropriate idiom for Pharo is needed here.
-- Regards,
Alain
Cheers, Juan Vuletich