Code

add SPCurve::get_segment_count
[inkscape.git] / src / conn-avoid-ref.h
index 28d5de28a2fcc69747502620c01a19607efe5607..29c7e69b3e6bc65ac9c83fc7e562f47a74e941fc 100644 (file)
@@ -23,7 +23,7 @@ namespace Avoid {
 class SPAvoidRef {
 public:
     SPAvoidRef(SPItem *spitem);
-    ~SPAvoidRef();
+    virtual ~SPAvoidRef();
 
     // libavoid's internal representation of the item.
     Avoid::ShapeRef *shapeRef;
@@ -31,11 +31,12 @@ 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
+    // 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:
@@ -54,7 +55,7 @@ extern GSList *get_avoided_items(GSList *list, SPObject *from,
 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;
+static const double defaultConnSpacing = 3.0;
 
 #endif /* !SEEN_CONN_AVOID_REF */