Code

r11451@tres: ted | 2006-04-17 22:21:33 -0700
[inkscape.git] / src / conn-avoid-ref.h
index 3b5e6d3b5747a80e74fd8be431fae8688730c53b..c60cf7afd1c5a28ed742b37e68b4598bc79dd4eb 100644 (file)
@@ -30,6 +30,14 @@ public:
 
     void setAvoid(char const *value);
     void handleSettingChange(void);
+    
+    // Returns a list of SPItems of all connectors/shapes attached to
+    // this object.  Pass one of the following for 'type':
+    //     Avoid::runningTo
+    //     Avoid::runningFrom
+    //     Avoid::runningToAndFrom
+    GSList *getAttachedShapes(const unsigned int type);
+    GSList *getAttachedConnectors(const unsigned int type);
 
 private:
     SPItem *item;
@@ -42,6 +50,12 @@ private:
     sigc::connection _transformed_connection;
 };
 
+extern GSList *get_avoided_items(GSList *list, SPObject *from,
+        SPDesktop *desktop, bool initialised = true);
+extern void avoid_item_move(NR::Matrix const *mp, SPItem *moved_item);
+extern void init_avoided_shape_geometry(SPDesktop *desktop);
+
+static const double defaultConnSpacing = 10.0;
 
 #endif /* !SEEN_CONN_AVOID_REF */