From a78a295c3c2df3ee1ff480302a2c2bbb4d39c4b4 Mon Sep 17 00:00:00 2001 From: "Arcadie M. Cracan" Date: Sun, 21 Feb 2010 12:40:13 +0200 Subject: Disabled unfinished connection point edit mode. Added inkscape:connection-start-point, inkscape:connection-end-point attributes for connector endpoints. This corrects the previous approach making drawings created in 0.48 version compatible with earlier versions (new attributes are silently ignored). (bzr r9103.1.1) --- src/connector-context.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/connector-context.h') diff --git a/src/connector-context.h b/src/connector-context.h index 640a03aae..bc16609de 100644 --- a/src/connector-context.h +++ b/src/connector-context.h @@ -103,8 +103,10 @@ struct SPConnectorContext : public SPEventContext { ConnectionPointMap connpthandles; SPKnot *endpt_handle[2]; guint endpt_handler_id[2]; - gchar *sid; - gchar *eid; + gchar *shref; + gchar *scpid; + gchar *ehref; + gchar *ecpid; SPCanvasItem *c0, *c1, *cl0, *cl1; }; -- cgit v1.2.3 From 847b4f57816ba691e471cf891beca6d263438f03 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Thu, 18 Mar 2010 23:21:16 -0700 Subject: Cleanup of SP_ACTIVE_DESKTOP to prepare clipboard code for reuse. (bzr r9209) --- src/connector-context.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/connector-context.h') diff --git a/src/connector-context.h b/src/connector-context.h index bc16609de..bd3805e96 100644 --- a/src/connector-context.h +++ b/src/connector-context.h @@ -47,8 +47,6 @@ enum { SP_CONNECTOR_CONTEXT_DRAWING_MODE, SP_CONNECTOR_CONTEXT_EDITING_MODE }; -static char* cc_knot_tips[] = { _("Connection point: click or drag to create a new connector"), - _("Connection point: click to select, drag to move") }; typedef std::map ConnectionPointMap; @@ -70,16 +68,16 @@ struct SPConnectorContext : public SPEventContext { SPCanvasItem *red_bpath; SPCurve *red_curve; guint32 red_color; - + // Green curve SPCurve *green_curve; - + // The new connector SPItem *newconn; Avoid::ConnRef *newConnRef; gdouble curvature; bool isOrthogonal; - + // The active shape SPItem *active_shape; Inkscape::XML::Node *active_shape_repr; @@ -90,7 +88,7 @@ struct SPConnectorContext : public SPEventContext { Inkscape::XML::Node *active_conn_repr; sigc::connection sel_changed_connection; - + // The activehandle SPKnot *active_handle; @@ -99,7 +97,7 @@ struct SPConnectorContext : public SPEventContext { SPItem *clickeditem; SPKnot *clickedhandle; - + ConnectionPointMap connpthandles; SPKnot *endpt_handle[2]; guint endpt_handler_id[2]; -- cgit v1.2.3