X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fnodepath.h;h=967650818764710eb0d6089b5b616a0c18206db4;hb=0e2a2cc7bb4f35dbc5150de387b2e651714b6d5b;hp=b675863d50d24d9903c0978fd454b8f23d44e3ab;hpb=e9f66287a57ce7990d83927da9fd400bd5bcf5f8;p=inkscape.git diff --git a/src/nodepath.h b/src/nodepath.h index b675863d5..967650818 100644 --- a/src/nodepath.h +++ b/src/nodepath.h @@ -73,8 +73,7 @@ operator NR::Point() const }; -/** defined in node-context.h */ -class SPNodeContext; +class ShapeEditor; namespace Inkscape { namespace NodePath { @@ -96,7 +95,6 @@ class NodeSide; */ class Node; - /** * This is a collection of subpaths which contain nodes * @@ -115,7 +113,7 @@ class Path { /** The parent path of this nodepath */ SPPath * path; /** The context which created this nodepath. Important if this nodepath is deleted */ - SPNodeContext * nodeContext; + ShapeEditor *shape_editor; /** The subpaths which comprise this NodePath */ GList * subpaths; /** A list of nodes which are currently selected */ @@ -136,6 +134,11 @@ class Path { /// true if we're showing selected nodes' handles bool show_handles; + + /// active_node points to the node that is currently mouseovered (= NULL if + /// there isn't any); we also consider the node mouseovered if it is covered + /// by one of its handles and the latter is mouseovered + static Node *active_node; }; @@ -287,6 +290,6 @@ void sp_nodepath_selected_nodes_rotate (Inkscape::NodePath::Path * nodepath, gdo void sp_nodepath_selected_nodes_scale (Inkscape::NodePath::Path * nodepath, gdouble grow, int which); void sp_nodepath_selected_nodes_scale_screen (Inkscape::NodePath::Path * nodepath, gdouble grow, int which); -void sp_nodepath_flip (Inkscape::NodePath::Path *nodepath, NR::Dim2 axis); +void sp_nodepath_flip (Inkscape::NodePath::Path *nodepath, NR::Dim2 axis, NR::Maybe center); #endif