Code

Calligraphy tool now draws in the last used color or tool style depending on the...
[inkscape.git] / src / nodepath.h
index aaa488cf3ff6f58c9d78a3c36599a1cc49d4bf66..2b6131684cb1ce8c27730780ab804fe4ad1852b6 100644 (file)
@@ -31,7 +31,7 @@ class Node;
 }
 
 
-/** 
+/**
  * Radial objects are represented by an angle and a distance from
  * 0,0.  0,0 is represented by a == big_num.
  */
@@ -130,6 +130,9 @@ class Path {
 
       /// livarot library is used for "point on path" and "nearest position on path", so we need to maintain its path representation as well
        ::Path *livarot_path;
+
+      /// true if we changed repr, to tell this change from an external one such as from undo, simplify, or another desktop
+       unsigned int local_change;
 };
 
 
@@ -182,14 +185,16 @@ class NodeSide{
        Node * other;
 /**  Position */
        NR::Point pos;
+/**  Origin (while dragging) in radial notation */
+       Radial origin_radial;
+/**  Origin (while dragging) in x/y notation */
+       NR::Point origin;
 /**  Knots are Inkscape's way of providing draggable points.  This
  *  Knot is the point on the curve representing the control point in a
  *  bezier curve.*/
        SPKnot * knot;
 /**  What kind of rendering? */
        SPCanvasItem * line;
-/**  */
-       Radial origin;
 };
 
 /**
@@ -254,6 +259,7 @@ void sp_node_selected_break (void);
 void sp_node_selected_duplicate (void);
 void sp_node_selected_join (void);
 void sp_node_selected_join_segment (void);
+void sp_node_delete_preserve (GList *nodes_to_delete);
 void sp_node_selected_delete (void);
 void sp_node_selected_delete_segment (void);
 void sp_node_selected_set_type (Inkscape::NodePath::NodeType type);