diff options
author | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-10 15:40:11 +0000 |
---|---|---|
committer | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-10 15:40:11 +0000 |
commit | 87294b7ebc03156f223052ca2a6c70463df568f0 (patch) | |
tree | 7200a2cb348b18c8d255931058ffab260f4225c3 /tikzit/src/common/GraphChange.h | |
parent | c372b719b84a320f6fb7cab6dc0d1ab94beacd78 (diff) |
GTK: Edge style support
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@375 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/common/GraphChange.h')
-rw-r--r-- | tikzit/src/common/GraphChange.h | 27 |
1 files changed, 27 insertions, 0 deletions
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; } @@ -146,6 +148,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. |