Hi doru
I have a couple of questions?
- what is the process to get in the moose association because synectique is wondering how to help moose?
- once in the association what is the decision process if any?
- who is in the moose association? is it an empty shell?
Stef
Hello,
I started to see how an implementation of a legend can be provided in
Roassal 2.
I added this methods in TRCanvas>>addLegend:..
addLegend: aDictionary
| startPos interNodeWidth|
interNodeWidth := 30.
fixedShapes isEmpty ifTrue: [ startPos := self topLeft + (10@20) ] ifFalse:
[startPos := self topLeft + (10@40)].
aDictionary associationsDo:
[ :association |
|shape|
self
addFixedShape:
(TRBoxShape new
size: 10;
translateTo: startPos;
color: association value).
shape := (TRLabelShape new
text: association key;
fontSize: 10).
shape translateTo: (shape width /2) + startPos x + 10 @ startPos y.
self
addFixedShape: shape.
startPos := startPos x + shape width + interNodeWidth @ startPos y ].
Usage example:
============================================
| v e1 e2 l |
v := RTView new.
e1 := (RTEllipse new size: 30; color: (Color blue alpha: 0.3)) element.
e2 := (RTEllipse new size: 30; color: (Color yellow alpha: 0.3)) element.
l := (RTLine new attachPoint: RTShorterDistanceAttachPoint new) edgeFrom:
e1 to: e2.
e1 @ RTDraggable.
e2 @ RTDraggable.
v canvas addLegend: ({ 'Red' -> Color red. 'very very green' -> Color
green.'blue' -> Color blue. 'Cyan' -> Color cyan. 'Cyan2' -> Color cyan})
asDictionary.
v addAll: (Array with: l with: e2 with: e1).
v open
=========================================
Questions for Roassal guys:
- Is TRCanvas the right place to add a legend? I started from here because
it allows adding fixed shapes to the view.
- how do I tell the canvas not to draw where meta-items are drawn such as
legend(s), menus, etc.
If this is correct, Leo might continue from here on and put this code in a
class to add more customizations.
tx,
Usman
Hi Pablo,
Is GraphET2 part of Moose? If no, can you please take care of this?
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi all,
I am working hard on being able to test and edit my configurations with Metaceller as well. I do this currently for my own needs: when I need to change a configuration, I change this.
The new metaceller can be opened in Moose with the command GTMetaceller2 open. I am not done yet, as some of the functionality that is in Metaceller, does not have a place in the new Metaceller. Also I have not tested all my buttons ... a few buttons even have a todo as action. For anyone who is curious: give it a try. It is in beta, so you should expect some bugs. But if you report bugs, I will fix them asap.
One of the configurations I have changed is the configuration of GToolkit, so please take a look at how it formats the code. It writes in the order of the platforms, and within a platform it first writes projects, then packages and finally groups. And within it orders them alphabetically. So in the beginning this will cause a lot of changes, but it should be more stable if everyone starts using Metaceller to change their configurations.
Please give your first impressions,
Diego
Hi,
in TRAbstractBoxShape there is the leftPosition: method wichi calls
position: but position: is not defined in TRAbstractBoxShape or its
superclasses.
I don't know if position: has been forgotten or if leftPosition: is not
suppose to be implemented.
Leo Perard
Hi all,
Does anyone know why the TextProperty underline does not work anymore in the glamour browsers? Is this a problem with the default font in Moose? Because with the original font it seems to work.
Diego
Hi all,
I am working hard on being able to test and edit my configurations with Metaceller as well. I do this currently for my own needs: when I need to change a configuration, I change this.
The new metaceller can be opened in Moose with the command GTMetaceller2 open. I am not done yet, as some of the functionality that is in Metaceller, does not have a place in the new Metaceller. Also I have not tested all my buttons … a few buttons even have a todo as action. For anyone who is curious: give it a try. It is in beta, so you should expect some bugs. But if you report bugs, I will fix them asap.
One of the configurations I have changed is the configuration of GToolkit, so please take a look at how it formats the code. It writes in the order of the platforms, and within a platform it first writes projects, then packages and finally groups. And within it orders them alphabetically. So in the beginning this will cause a lot of changes, but it should be more stable if everyone starts using Metaceller to change their configurations.
Please give your first impressions,
Diego