Code

New crosshairs cursor for geometry context
[inkscape.git] / src / shape-editor.h
index 9181027614aed152e658d941caf8fc3fe283d3c2..c8f5aa4191d0e6dd399612ef92a00c439477fa32 100644 (file)
@@ -19,7 +19,7 @@ namespace Inkscape { namespace NodePath { class Path; } }
 
 #include "libnr/nr-path-code.h"
 #include "libnr/nr-point.h"
-#include "libnr/nr-maybe.h"
+#include <boost/optional.hpp>
 #include <vector>
 
 class KnotHolder;
@@ -44,7 +44,7 @@ public:
     void reset_item (SubType type, bool keep_knotholder = true);
     void unset_item (SubType type, bool keep_knotholder = false);
 
-    SPItem *get_item (SubType type);
+    const SPItem *get_item (SubType type);
 
     bool has_nodepath ();
     bool has_knotholder ();
@@ -99,7 +99,7 @@ public:
     void set_type_of_segments(NRPathcode code);
 
     void move_nodes(gdouble dx, gdouble dy);
-    void move_nodes_screen(gdouble dx, gdouble dy);
+    void move_nodes_screen(SPDesktop *desktop, gdouble dx, gdouble dy);
 
     void rotate_nodes(gdouble angle, int which, bool screen);
 
@@ -114,7 +114,7 @@ public:
     void show_handles (bool show);
     void show_helperpath (bool show);
 
-    void flip (NR::Dim2 axis, NR::Maybe<NR::Point> center = NR::Nothing());
+    void flip (NR::Dim2 axis, boost::optional<NR::Point> center = boost::optional<NR::Point>());
 
     void distribute (NR::Dim2 axis);
     void align (NR::Dim2 axis);