Hi!
I am doing some experiment to get object-centric debugging.
How can I add a new menu entry in this menu:
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi,
is it possible to embed (any) editable text field inside Roassal?
I managed to add the editor morph inside Trachel's athens canvas, however
there is no way I can access it... my guess is that TRMorph takes all the
events, or drawing the morph on the canvas destroys something.
I tried it with PluggableTextFieldMorph (shows the border of the edit
field, but no text), and TxTextEditorMorph (shows text).
Is there any way around this? Adding the morph inside AthensWrapMorph works
correctly, so my guess is that TRMorph must be doing something... perhaps I
should also add it as a submorph of TRMorph somehow?
My testing code follows:
------------------------------------------------
"opening the canvas and adding custom shape"
trCanvas := TRCanvas new.
text := SBEditableTextShape new.
trCanvas addShape: text.
trCanvas open.
------------------------------------------------
------------------------------------------------
"content of SBEditableTextShape - same as the attachement"
'From Pharo4.0 of 18 March 2013 [Latest update: #40470] on 1 February 2015
at 10:13:04.069249 pm'!
TRShape subclass: #SBEditableTextShape
instanceVariableNames: 'txMorph txModel wrapMorph textMorph'
classVariableNames: ''
poolDictionaries: ''
category: '_Sandbox'!
!SBEditableTextShape methodsFor: 'drawing' stamp: 'PeterUhnak 2/1/2015
22:10'!
drawOn: aCanvas
" aCanvas fullDrawMorph: textMorph."
aCanvas fullDrawMorph: txMorph.! !
!SBEditableTextShape methodsFor: 'initialization' stamp: 'PeterUhnak
2/1/2015 22:07'!
initialize
| string |
super initialize.
string := 'quick brown fox jumps over the lazy dog'.
txModel := string asTxModel.
txMorph := TxTextEditorMorph text: txModel.
txMorph extent: 150 @ 50.
textMorph := PluggableTextFieldMorph new.
textMorph extent: 150 @ 50.
textMorph setText: string.
textMorph ghostText: 'ghost text'.! !
------------------------------------------------
Any help is appreciated,
Peter
Hi!
Yesterday I have downloaded the last version of Moose, and I was surprised to see what I feel are functionality regression.
- If I open a Playground, and I type 3 times the key “[“ then I end up with "[ [ [ ] ] ]” whereas I would expect to have “[[[]]]”. Since I often use the playground to edit pillar code, this is not cool.
- When I use spotter, and started to type something, when the spotter window is refreshed, the selection goes at the first item, which is not great if I started to move down the selection bar and I get a refresh.
Am I the only one to see this?
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi, at the moment border width is absolute (or constant), so if scale the picture border width remains the same. Is it possible to have a border width that scales? I.e. if you have a box of size 20 and border of size 2 then when box is zoomed to 10px the border will have the width of 1px?
Uko
Hi!
I am now digging into Pillar. My goal is to be able to insert Roassal script and having it executed.
Scripts provided within [[[ ]]] may be evaluated using the variable ‘eval=true’. Here is an example:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
PRHTMLWriter defaultConfigurations anyOne
inputString: '100 factorial =
[[[eval=true
stream nextPutAll: 100 factorial asString
]]]';
outputFile: 'myFirstPillarExport.html' asFileReference;
export
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
‘stream’ is a hardcoded variable name which represents the stream on which you have to write your result. What you write in stream is pillar-friendly. This means you can write something like:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
PRHTMLWriter defaultConfigurations anyOne
inputString: '100 factorial =
[[[eval=true
stream nextPutAll: ''""'', 100 factorial asString, ''""''
]]]';
outputFile: 'myFirstPillarExport.html' asFileReference;
export
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I have tried to insert some Roassal visualization, and it works pretty well.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
PRHTMLWriter defaultConfigurations anyOne
inputString: '
!!Example of a factorial
50 factorial =
[[[eval=true
stream nextPutAll: ''""'', 100 factorial asString, ''""''.
]]]
!!Some Roassal visualizations
Here is a small Mondrian example
[[[eval=true
b := RTMondrian new.
b nodes: (1 to: 100).
b layout grid.
b build.
aView := b view.
RTHTML5Exporter new insert: aView named: ''Roassal test'' inPillarStream: stream
]]]
Another example with Grapher this time:
[[[eval=true
b := RTGrapher new.
b extent: 300 @ 200.
ds := RTStackedDataSet new.
ds interaction popupText.
ds barShape width: 10.
ds points: #(4 5 1 -2 5 6).
b add: ds.
"b axisX noLabel; noTick.
"
b build.
RTHTML5Exporter new insert: b view named: ''A Graph'' inPillarStream: stream
]]]
';
outputFile: 'myFirstPillarExport.html' asFileReference;
export
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Pillar is very well done! Congrats to the authors!
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
DiffMorph has a concept of contextClass that it uses to highlight method sources that are diffed. I’ve added a support of this feature to the glamour presentation and renderer.
Please let me know if it is ok and if I can contribute like this or there is a more formal process.
Uko
I’ve removed explicit white color form the renderer, as on the dark theme it wasn’t working well. Let me know if this is fine, because I thought that maybe a color from theme should be specified, but I didn’t find any colors in other renderers.
Uko
Hi,
Since the work on the integration of PPContext in PetitParser, there is
significant performance degradation. I have already mentioned that on
simple grammar the factor is about 2. But on complex grammar (for example,
our proprietary parser for 4D language ), we have seen that degradation is
goes well beyond this factor. So, for example, for 800K lines that we parse
in under 10 minutes without PPContext work, with the latest version it goes
beyond 2h.
I have not been able to reproduce my case on simple grammars. May be we can
have some benchmarks using open source parsers and large code bases (e.g.
PP Java Parser on JHotDraw or ArgoUML).
Currently, I circumvent this issue by using PP v1.51 but I can provide
relevant feedback and run benches on any improvements.
regards.
Usman
Hi,
I tried to download and use Moose 5.0 on a 10.6 OS X machine but hit some
issues on the way.
So far I did not try anything related to Moose 5.1.
My first attempt was to download from here:
http://moosetechnology.org/#install
However, all Moose links point to non existent files redirecting me to a
'Not Found' HTML page.
Then I followed the link to the Pharo VM download (http://pharo.org/download),
downloaded
the OS X package by clicking on the OS X 'button', and executed the Gofer
statement from the website.
Everything downloaded and installed fine.
But when I tried to run any of the Roassal demos a debugger window opened
complaining about some cairo method which could not be found.
I know that there is ongoing work in the Pharo VM towards a Cairo based
backend,
but unfortunately the Pharo VM I downloaded does not include it.
It would be nice if you could provide me with any hints on how to get a
working Moose/Roassal image.
Also let me know if there is a another/better list where I should ask such
questions.
Many thanks,
Manfred