Hi Alex,
On 23 May 2012, at 00:57, Alexandre Bergel wrote:
Hi!
I've spent a bit of time in trying to port DSM to Roassal. Unfortunately not
everything goes as smooth as I wished. The task is clearly doable, but it is a bit more
than merely changing MOViewRenderer for ROMondrianViewBuilder.
For example, there is code like:
shapeOfDetailedHeader
^ MOFixedRectangleShape new width: 36; height: 10; withoutBorder; fontSize: 8;
fontFamily: 'Accuny'
In Roassal, the width and the height is defined on the element, and not the shape. A
ROBox does not know how to display text, it has to be added a ROLabel in it.
I think you are mistaken the width of a shape with the bounds of an element. For example,
if you have a complex shape, you will have shapes with different widths within the same
bounds of the overall element.
So, it should still be the responsibility of a shape to decide the visual width, and the
responsibility of the element is to decide the spatial width.
On a related note, I mentioned before that even if you have decorators, you are still
missing the possibility of the decorator to enlarge the bounds.
Cheers,
Doru
Well... I feel the safer is to revert what I have done
yesterday, and leaving DSM use Mondrian. Else if someone wants to rethink DSM a bit.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Value is always contextual."