X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fnode-context.h;h=cf53635d1835a5cba437144290131332b634625e;hb=f0e5ef1c60ad148623253dc3cc5d53014724094a;hp=a9b4beb07614b37402a188dafff64d787230d65a;hpb=6b15695578f07a3f72c4c9475c1a261a3021472a;p=inkscape.git diff --git a/src/node-context.h b/src/node-context.h index a9b4beb07..cf53635d1 100644 --- a/src/node-context.h +++ b/src/node-context.h @@ -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 {