index 9ed9e4fb6b0c9d796a9dbb46bd02c4558feb39ee..99e183b4530c656ecca0c4ab9ec929394ab974e6 100644 (file)
struct SPCanvasItem;
namespace Inkscape {
+namespace XML { class Node; }
+
namespace UI {
class PathManipulator;
class PathManipulatorObserver;
class CurveDragPoint;
class PathCanvasGroups;
+class MultiPathManipulator;
+class Node;
struct PathSharedData {
NodeSharedData node_data;
public:
typedef SPPath *ItemType;
- PathManipulator(PathSharedData const &data, SPPath *path,
- Geom::Matrix const &edit_trans, guint32 outline_color);
+ PathManipulator(MultiPathManipulator &mpm, SPPath *path, Geom::Matrix const &edit_trans,
+ guint32 outline_color, Glib::ustring lpe_key);
~PathManipulator();
virtual bool event(GdkEvent *);
SPPath *item() { return _path; }
void selectSubpaths();
- void selectAll();
- void selectArea(Geom::Rect const &);
void shiftSelection(int dir);
- void linearGrow(int dir);
- void spatialGrow(int dir);
- void invertSelection();
void invertSelectionInSubpaths();
void insertNodes();
- void weldNodes(NodeList::iterator const &preserve_pos = NodeList::iterator());
+ void weldNodes(NodeList::iterator preserve_pos = NodeList::iterator());
void weldSegments();
void breakNodes();
void deleteNodes(bool keep_shape = true);
void showOutline(bool show);
void showHandles(bool show);
void showPathDirection(bool show);
- void setOutlineTransform(Geom::Matrix const &);
+ void setControlsTransform(Geom::Matrix const &);
+ void hideDragPoint();
NodeList::iterator subdivideSegment(NodeList::iterator after, double t);
+ NodeList::iterator extremeNode(NodeList::iterator origin, bool search_selected,
+ bool search_unselected, bool closest);
static bool is_item_type(void *item);
private:
std::string _createTypeString();
void _updateOutline();
//void _setOutline(Geom::PathVector const &);
+ void _getGeometry();
+ void _setGeometry();
+ Glib::ustring _nodetypesKey();
+ Inkscape::XML::Node *_getXMLNode();
void _attachNodeHandlers(Node *n);
void _removeNodeHandlers(Node *n);
double _getStrokeTolerance();
SubpathList _subpaths;
- PathSharedData const &_path_data;
+ MultiPathManipulator &_multi_path_manipulator;
SPPath *_path;
SPCurve *_spcurve; // in item coordinates
SPCanvasItem *_outline;
bool _show_handles;
bool _show_outline;
bool _show_path_direction;
+ Glib::ustring _lpe_key;
friend class PathManipulatorObserver;
friend class CurveDragPoint;
+ friend class Node;
};
} // namespace UI