Store node palette in the network document rather than in the GUI state.
authorMalcolm.Wallace@cs.york.ac.uk
local dateFri, 18 Nov 2005 17:10:05
dateFri, 18 Nov 2005 17:10:05
hash20051118171005-6871e-a7d5877138eef221fab85e2f5ce8d2a527f4d691
Store node palette in the network document rather than in the GUI state.

Change the representation of the palette of node shapes very slightly.
The palette is now stored as a part of the document (network) itself,
rather than in the state of the GUI. This means when you load a new
document, you automatically get the palette it was built with. Also, a
node can now store either the name of its shape (for lookup in the
palette), or its full description, with the shape name being preferred
in most circumstances.
11 file(s) changed:
Makefile +3 -1
simple.blobpalette +10 -10
src/ContextMenu.hs +9 -5
src/Network.hs +26 -11
src/NetworkControl.hs +3 -3
src/NetworkFile.hs +14 -0
src/NetworkUI.hs +8 -2
src/NetworkView.hs +7 -3
src/Palette.hs +8 -4
src/Shape.hs +66 -1
src/State.hs +0 -11