Code

remove registerEditWidget, move this to SPDesktop::init instead; a noop change but...
[inkscape.git] / src / conn-avoid-ref.h
index a30dc4b9366794bb3da87d2343e6f1319be7f209..d34d8ca2e644be593e20589368326718dd51598a 100644 (file)
@@ -1,9 +1,10 @@
 #ifndef SEEN_CONN_AVOID_REF
 #define SEEN_CONN_AVOID_REF
 
-/*
+/** \file
  * A class for handling shape interaction with libavoid.
- *
+ */
+/*
  * Authors:
  *   Michael Wybrow <mjwybrow@users.sourceforge.net>
  *
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
-
+#include <glib/gslist.h>
 #include <sigc++/connection.h>
 
+struct SPDesktop;
 struct SPItem;
-namespace Avoid {
-    class ShapeRef;
-}
+namespace Avoid { class ShapeRef; }
 
 class SPAvoidRef {
 public:
     SPAvoidRef(SPItem *spitem);
-    ~SPAvoidRef();
+    virtual ~SPAvoidRef();
 
     // libavoid's internal representation of the item.
     Avoid::ShapeRef *shapeRef;
@@ -33,9 +33,9 @@ public:
     
     // Returns a list of SPItems of all connectors/shapes attached to
     // this object.  Pass one of the following for 'type':
-    //     Avoid::ConnRef::runningTo
-    //     Avoid::ConnRef::runningFrom
-    //     Avoid::ConnRef::runningToAndFrom
+    //     Avoid::runningTo
+    //     Avoid::runningFrom
+    //     Avoid::runningToAndFrom
     GSList *getAttachedShapes(const unsigned int type);
     GSList *getAttachedConnectors(const unsigned int type);
 
@@ -52,10 +52,10 @@ private:
 
 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 avoid_item_move(Geom::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 */