diff --git a/src/conn-avoid-ref.h b/src/conn-avoid-ref.h
index 3b5e6d3b5747a80e74fd8be431fae8688730c53b..c60cf7afd1c5a28ed742b37e68b4598bc79dd4eb 100644 (file)
--- a/src/conn-avoid-ref.h
+++ b/src/conn-avoid-ref.h
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;
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 */