Code

fix by dvlierop2 for snapping bugs 1579556 and 1579587
[inkscape.git] / src / node-context.h
index a9b4beb07614b37402a188dafff64d787230d65a..cf53635d1835a5cba437144290131332b634625e 100644 (file)
@@ -24,6 +24,10 @@ namespace Inkscape { class Selection; }
 #define SP_IS_NODE_CONTEXT(obj)         (GTK_CHECK_TYPE ((obj), SP_TYPE_NODE_CONTEXT))
 #define SP_IS_NODE_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_NODE_CONTEXT))
 
+enum { SP_NODE_CONTEXT_INACTIVE,
+       SP_NODE_CONTEXT_NODE_DRAGGING,
+       SP_NODE_CONTEXT_RUBBERBAND_DRAGGING };
+
 class SPNodeContext;
 class SPNodeContextClass;
 
@@ -32,7 +36,7 @@ struct SPNodeContext {
 
        guint drag : 1;
 
-       Inkscape::NodePath::Path *nodepath;
+       ShapeEditor* shape_editor;
 
        gboolean leftalt;
        gboolean rightalt;
@@ -46,14 +50,11 @@ struct SPNodeContext {
 
        Inkscape::MessageContext *_node_message_context;
 
-       double grab_t;
-       Inkscape::NodePath::Node * grab_node;
-       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;
 };
 
 struct SPNodeContextClass {