From 87294b7ebc03156f223052ca2a6c70463df568f0 Mon Sep 17 00:00:00 2001 From: randomguy3 Date: Tue, 10 Jan 2012 15:40:11 +0000 Subject: GTK: Edge style support git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@375 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64 --- tikzit/src/common/GraphChange.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'tikzit/src/common/GraphChange.h') diff --git a/tikzit/src/common/GraphChange.h b/tikzit/src/common/GraphChange.h index 0ad0c97..63bdfad 100644 --- a/tikzit/src/common/GraphChange.h +++ b/tikzit/src/common/GraphChange.h @@ -31,6 +31,7 @@ typedef enum { NodePropertyChange, EdgePropertyChange, NodesPropertyChange, + EdgesPropertyChange, NodesShift, NodesFlip, BoundingBoxChange, @@ -63,6 +64,7 @@ typedef enum { Node *oldNode, *nwNode; Edge *oldEdge, *nwEdge; BasicMapTable *oldNodeTable, *nwNodeTable; + BasicMapTable *oldEdgeTable, *nwEdgeTable; NSRect oldBoundingBox, nwBoundingBox; GraphElementData *oldGraphData, *nwGraphData; } @@ -145,6 +147,18 @@ typedef enum { */ @property (retain) BasicMapTable *nwNodeTable; +/*! + @property oldEdgeTable + @brief A a table containing copies of a set of edges pre-change. + */ +@property (retain) BasicMapTable *oldEdgeTable; + +/*! + @property nwEdgeTable + @brief A a table containing copies of a set of edges post-change. + */ +@property (retain) BasicMapTable *nwEdgeTable; + /*! @property oldBoundingBox @brief The old bounding box. @@ -227,6 +241,19 @@ typedef enum { + (GraphChange*)propertyChangeOfNodesFromOldCopies:(BasicMapTable*)oldC toNewCopies:(BasicMapTable*)newC; +/*! + @brief Construct a property change of set of edges. + @details Construct a property change of set of edges. oldC and newC should be + constructed using the class method [Graph edgeTableForEdges:] before + and after the property change, respectively. The affected edges are + keys(oldC) = keys(newC). + @param oldC a table of copies of edges pre-change + @param newC a table of copies of edges post-change + @result A property change of a set of edges. + */ ++ (GraphChange*)propertyChangeOfEdgesFromOldCopies:(BasicMapTable*)oldC + toNewCopies:(BasicMapTable*)newC; + /*! @brief Construct a shift of a set of nodes by a given point. -- cgit v1.2.3