From 5c7360bc41952997eda3781681ad3cfaa8b81460 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Tue, 13 Feb 2007 17:18:22 +0000 Subject: isolate the nodepath-or-knotholder unit into the new ShapeEditor class which handles listeners etc. and provides a single interface to work with nodepath or knotholder; later will add another layer, ShapeEditorsCollective, which will allow us to have any number of nodepaths and knotholders simultaneously (bzr r2374) --- src/node-context.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/node-context.h') diff --git a/src/node-context.h b/src/node-context.h index fae95cf43..cf53635d1 100644 --- a/src/node-context.h +++ b/src/node-context.h @@ -36,7 +36,7 @@ struct SPNodeContext { guint drag : 1; - Inkscape::NodePath::Path *nodepath; + ShapeEditor* shape_editor; gboolean leftalt; gboolean rightalt; @@ -50,16 +50,11 @@ struct SPNodeContext { Inkscape::MessageContext *_node_message_context; - double grab_t; - int grab_node; // number of node grabbed by sp_node_context_is_over_stroke - bool hit; - NR::Point curvepoint_event; // int coords from event - NR::Point curvepoint_doc; // same, in doc coords bool cursor_drag; - bool added_node; + bool added_node; - unsigned int current_state; + unsigned int current_state; }; struct SPNodeContextClass { -- cgit v1.2.3