summaryrefslogtreecommitdiffstats
path: root/src/conn-avoid-ref.h
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2012-11-30 19:22:44 +0000
committerMartin Owens <doctormo@gmail.com>2012-11-30 19:22:44 +0000
commit2f4efa8a787d175807a40b5bbafb1197e4dcc318 (patch)
treec4b6fa6c2fcb10f4c75c407e2c34b4c6d97f0af0 /src/conn-avoid-ref.h
parentFix for 172236 : Dropper pixmaps and onetime fix (diff)
downloadinkscape-2f4efa8a787d175807a40b5bbafb1197e4dcc318.tar.gz
inkscape-2f4efa8a787d175807a40b5bbafb1197e4dcc318.zip
Step 1. Remove junk and keep functionality.
(bzr r11894.1.1)
Diffstat (limited to 'src/conn-avoid-ref.h')
-rw-r--r--src/conn-avoid-ref.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/conn-avoid-ref.h b/src/conn-avoid-ref.h
index 4d38f2845..30b380eb7 100644
--- a/src/conn-avoid-ref.h
+++ b/src/conn-avoid-ref.h
@@ -13,14 +13,13 @@
* Released under GNU GPL, read the file 'COPYING' for more information
*/
+#include <2geom/point.h>
#include <glib.h>
#include <stddef.h>
#include <sigc++/connection.h>
class SPDesktop;
class SPItem;
-struct ConnectionPoint;
-typedef std::map<int, ConnectionPoint> IdConnectionPointMap;
namespace Avoid { class ShapeRef; }
class SPAvoidRef {
@@ -31,16 +30,11 @@ public:
// libavoid's internal representation of the item.
Avoid::ShapeRef *shapeRef;
- // Used for holding connection points for item
- IdConnectionPointMap connection_points;
-
void setAvoid(char const *value);
- void setConnectionPoints(gchar const *value);
- void addConnectionPoint(ConnectionPoint &cp);
- void updateConnectionPoint(ConnectionPoint &cp);
- void deleteConnectionPoint(ConnectionPoint &cp);
void handleSettingChange(void);
+ Geom::Point getConnectionPointPos(void);
+
// Returns a list of SPItems of all connectors/shapes attached to
// this object. Pass one of the following for 'type':
// Avoid::runningTo
@@ -48,9 +42,6 @@ public:
// Avoid::runningToAndFrom
GSList *getAttachedShapes(const unsigned int type);
GSList *getAttachedConnectors(const unsigned int type);
- Geom::Point getConnectionPointPos(const int type, const int id);
-
- bool isValidConnPointId( const int type, const int id );
private:
SPItem *item;
@@ -61,7 +52,6 @@ private:
// A sigc connection for transformed signal.
sigc::connection _transformed_connection;
- void setConnectionPointsAttrUndoable(const gchar* value, const gchar* action);
};
extern GSList *get_avoided_items(GSList *list, SPObject *from,