From bf26c1cb6feedab295da4823ef571a7e66fc36ed Mon Sep 17 00:00:00 2001 From: mjwybrow Date: Fri, 10 Feb 2006 04:23:35 +0000 Subject: * src/sp-conn-end-pair.cpp, src/sp-conn-end-pair.h, src/conn-avoid-ref.cpp, src/conn-avoid-ref.h, src/libavoid/connector.cpp, src/libavoid/connector.h, src/libavoid/visibility.cpp: Add some code to allow querying of items and connectors to find out what is attached to them. This will allow graph layout algorithms (currently being work on by Tim Dwyer) to determine a graph structure from the diagram. (bzr r107) --- src/conn-avoid-ref.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/conn-avoid-ref.h') diff --git a/src/conn-avoid-ref.h b/src/conn-avoid-ref.h index ac9295cf9..28d5de28a 100644 --- a/src/conn-avoid-ref.h +++ b/src/conn-avoid-ref.h @@ -30,6 +30,13 @@ public: void setAvoid(char const *value); void handleSettingChange(void); + + // Returns a list of SPItems of all connectors attached to this + // object. Pass one of the following for 'type': + // Avoid::ConnRef::runningTo + // Avoid::ConnRef::runningFrom + // Avoid::ConnRef::runningToAndFrom + GSList *getAttachedConnectors(const unsigned int type); private: SPItem *item; -- cgit v1.2.3