[Glamour] default selection in ListPresentation
by Cyrille Delaunay
Hello,
Is there a way to set a default selection to a list presentation? so that
when I open the browser, the morphic list has already a value selected.
I tried that:
|tmpBrowser|
tmpBrowser := GLMTabulator new.
tmpBrowser row: #list.
tmpBrowser transmit to: #list; andShow: [:a |
a list
display: [:input | input];
selection: #a;
yourself
].
tmpBrowser openOn: #( b c d v a d f r).
but the list still open with nothing selected
5 years, 2 months
JavaScript to MSE
by Alexandre Bergel
Hi!
Hernán has worked on an Eclipse plugging to produce MSE file from a JavaScript application. It works well.
The plugging is available on:
https://bitbucket.org/hcvazquez/mseexporterjs/wiki/Home <https://bitbucket.org/hcvazquez/mseexporterjs/wiki/Home>
Here is a teaser:
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu <http://www.bergel.eu/>
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
6 years, 7 months
Moose and Pharo?
by Alexandre Bergel
Hi!
Does the moose build uses Pharo 6? It does not look like…
How to make Moose loads in Pharo 6?
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
6 years, 10 months
cool animation using Viva...
by Alexandre Bergel
Just insect that code :-)
-=-=-=-=-=-=-=-=-=
v := RTView new.
seconds := 7.
timer := TRVITimer new cycleLength: seconds.
rotationRatio := 0.2.
shape := RTRotatedLabel new.
shape
angleInDegree: [ :cls |
| valueEnd |
valueEnd := cls numberOfMethods negated / rotationRatio.
TRVIAnimatedValue new
evaluator: [ :t | 0 interpolateTo: valueEnd at: t ];
timer: timer;
yourself ].
shape text: [ :cls | ' ' , cls name ].
shape color: (Color black alpha: 0.2).
v addAll: (shape elementsOn: Collection withAllSubclasses).
v canvas color: Color white.
v addAnimation: RTResetAllShape new.
timer start.
v
-=-=-=-=-=-=-=-=-=
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
6 years, 11 months
[ANN] Utilisation of Famix without Moose in Moose 6.
by Cyril Ferlicot Delbecque
Hi,
As we talked in another thread I tried to look at the configuration of
Moose to be able to load Famix without every Moose tool (Glamour, Roassal…).
As Stephan said, since Famix is an inactive project for now groups are
enough to manage Famix. So I made some groups to be able to get only
Famix and the moose packages needed by famix.
There is 3 groups:
- Famix (Which is only the two following groups together)
- Famix-Without-Test
- Famix-Tests
So if you have a Tool that use Famix but not Moose tools you can had
this dependency:
spec project: 'Famix' with: [
spec
className: #ConfigurationOfMoose;
versionString: #development;
loads: #( #'Famix' );
repository: 'http://smalltalkhub.com/mc/Moose/Moose/main' ].
The only problem during the loading is about MalGraphBuilderStrategy
that is missing, but this was already the case in Moose.
I hope this will help you.
--
Cyril Ferlicot
http://www.synectique.eu
165 Avenue Bretagne
Lille 59000 France
6 years, 11 months
Problem adding avatars around an arc
by Offray Vladimir Luna Cárdenas
Hi all :-),
I have been playing with some mockups for an idea now that I have
finally the time for it.
As usual I start with a hand drawn mockup like this:
https://d167tapqdyj68f.cloudfront.net/offray.withknown.com/e/e/4/e/ee4e49...
and the I start to code the pieces with dummy data.
Here is, for example, what I call the avatar wheel:
And the arcs of it could be surround by objects that, as you can see in
the mockup, could be scaled and "pilled" as they go. The surround part
is working, "individully" as the following couple of examples show:
But, when I try to compose both surrounding avatars into the same view
and arc, things get weird:
I don't know if some one could take a look into the code or propose a
debug strategy to see what's going on.
The code is in the DataViz package[1] and the playground for running the
failing visualization or to be edited it to get the working ones is at 2
[1] http://smalltalkhub.com/#!/~Offray/Dataviz
[2] http://ws.stfx.eu/EX4NR2XBM0G0
Thanks,
Offray
6 years, 11 months
Help in GTInspector
by Alexandre Bergel
Hi!
I have addressed the bug:
https://pharo.fogbugz.com/f/cases/18223/GTInspector-compose-should-use-He...
Before, when you press the ? icon in GTInspector, you have:
Now, after my fix, you have:
I hope this is fine :-)
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
6 years, 11 months
Modelling C
by Alexandre Bergel
Hi!
Today I worked on modeling C/C++ files and headers in Famix.
I have introduced the class FAMIXModule, FAMIXCompilationUnit, FAMIXHeader, FAMIXInclude
Here is an example using MSE:
'(
(FAMIX.Class (id: 1) (name ''AClass'') (sourceAnchor (ref: 3)) (container (ref: 5)))
(FAMIX.Method (id: 2) (name ''aMethod'') (parentType (ref: 1)) (sourceAnchor (ref: 4)))
(FAMIX.FileAnchor (id: 3) (element (ref: 1)) (fileName ''afile''))
(FAMIX.FileAnchor (id: 4) (element (ref: 2)) (fileName ''afile'') (startLine 3) (endLine 30) )
(FAMIX.Module (id: 5)
(compilationUnit (ref: 6))
)
(FAMIX.CompilationUnit (id: 6)
(name ''foobar.cpp'')
)
(FAMIX.Include (id: 7)
(from (ref: 6))
(to (ref: 8)))
(FAMIX.Include (id: 10)
(from (ref: 6))
(to (ref: 9)))
(FAMIX.Header (id: 8)
(name ''foobar.hpp'')
)
(FAMIX.Header (id: 9)
(name ''foobar2.hpp'')
)
)’
It would be nice if someone could review it (if there is an interest of course).
My implementation does not use Fame, simply because I do not understand how it works.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
6 years, 11 months