Code

cleanup: Remove some commented-out code.
[inkscape.git] / src / nodepath.h
index 84c83be53881c8f523701f5c3871cd8fb955440f..aaa488cf3ff6f58c9d78a3c36599a1cc49d4bf66 100644 (file)
@@ -16,6 +16,7 @@
 //#include "sp-path.h"
 //#include "desktop-handles.h"
 #include "libnr/nr-path-code.h"
+#include "livarot/Path.h"
 
 #include <list>
 
@@ -126,6 +127,9 @@ class Path {
        Inkscape::XML::Node *repr;
        //STL compliant method to get the selected nodes
        void selection(std::list<Node *> &l);
+
+      /// 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;
 };
 
 
@@ -235,12 +239,13 @@ void restore_nodepath_selection (Inkscape::NodePath::Path *nodepath, GList *r);
 gboolean nodepath_repr_d_changed (Inkscape::NodePath::Path * np, const char *newd);
 gboolean nodepath_repr_typestr_changed (Inkscape::NodePath::Path * np, const char *newtypestr);
 gboolean node_key (GdkEvent * event);
+void sp_nodepath_update_repr(Inkscape::NodePath::Path *np);
 void sp_nodepath_update_statusbar (Inkscape::NodePath::Path *nodepath);
 void sp_nodepath_selected_align(Inkscape::NodePath::Path *nodepath, NR::Dim2 axis);
 void sp_nodepath_selected_distribute(Inkscape::NodePath::Path *nodepath, NR::Dim2 axis);
-void sp_nodepath_select_segment_near_point(SPItem * item, NR::Point p, bool toggle);
-void sp_nodepath_add_node_near_point(SPItem * item, NR::Point p);
-void sp_nodepath_curve_drag(Inkscape::NodePath::Node * e, double t, NR::Point delta, char * key);
+void sp_nodepath_select_segment_near_point(Inkscape::NodePath::Path *nodepath, NR::Point p, bool toggle);
+void sp_nodepath_add_node_near_point(Inkscape::NodePath::Path *nodepath, NR::Point p);
+void sp_nodepath_curve_drag(Inkscape::NodePath::Node * e, double t, NR::Point delta);
 Inkscape::NodePath::Node * sp_nodepath_get_node_by_index(int index);
 /* possibly private functions */