Hi Geraint, (This is also CC'd to bond-graph developers and dia-developers that may want to look at gap code for dia-0.90, instead of messing with the dia CVS patch I sent). Sorry for the massive posting. Did you compile your own version of Dia? I am sending you a bond-graph as I envisage it. The problem is that you will need to patch version 0.9 of dia in order to view it. Tell me if this is a problem. Simply download version 0.9 from source, replace objects/standard/line.c with my version, and replace objects/flowchart/box.c with my version (make sure you don't replace objects/standard/box.c by accident!!!). Then, do ./configure --prefix=/tmp/diabond && make && make install and then run /tmp/diabond/bin/dia bond_graph.dia.gz I hope this will compile without any trouble for you. If you are running a recent version of Linux with relatively complete gnome development libraries, it should. The version that I sent has a minor bug with some parasites appearing on the screen if you draw short lines. It's not near as clean as the bug-free (I hope) CVS-based code I committed to the dia team. I am just too lazy to fix the 0.9 version included here. I had a different idea about labeling: I labeled the transmission with simple text labels that are attached to the same anchors as the respective bonds. We could maybe improve the text label so that it can be moved around relative to its anchor. The advantage to using this kind of text label (instead of the separate [a],[b],[c] boxes you sent me) is that the labels move around with the 'transmission' as they should. Flowchart - Box has one minor problem: its upper left corner snaps to the grid. It would be better if the center point snapped to the grid, since the center point is the anchor point which determines arrow placement. We could create a new 'box' that snaps to center, and only contains one center connection point, in a bond-graph shapes library. Hope you are able to try this out. Do you see any major dia weaknesses, besides the dia arrow code? Dave.
Attachment:
line.c.gz
Description: GNU Zip compressed data
Attachment:
box.c.gz
Description: GNU Zip compressed data
Attachment:
bond_graph.dia.gz
Description: GNU Zip compressed data