From 55b451bf382e0c3d5ed8728e42fbb535acfa8a33 Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Thu, 7 Nov 2013 21:44:00 +0100 Subject: First step of moving tools into appropriate namespaces. (bzr r12782) --- src/ui/tool/node.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/tool/node.h') diff --git a/src/ui/tool/node.h b/src/ui/tool/node.h index 591dd8532..e3fc6c2c8 100644 --- a/src/ui/tool/node.h +++ b/src/ui/tool/node.h @@ -106,7 +106,7 @@ protected: Handle(NodeSharedData const &data, Geom::Point const &initial_pos, Node *parent); - virtual bool _eventHandler(SPEventContext *event_context, GdkEvent *event); + virtual bool _eventHandler(Inkscape::UI::Tools::ToolBase *event_context, GdkEvent *event); virtual void dragged(Geom::Point &new_pos, GdkEventMotion *event); virtual bool grabbed(GdkEventMotion *event); virtual void ungrabbed(GdkEventButton *event); @@ -217,7 +217,7 @@ public: // temporarily public /** Customized event handler to catch scroll events needed for selection grow/shrink. */ - virtual bool _eventHandler(SPEventContext *event_context, GdkEvent *event); + virtual bool _eventHandler(Inkscape::UI::Tools::ToolBase *event_context, GdkEvent *event); Inkscape::SnapCandidatePoint snapCandidatePoint(); -- cgit v1.2.3 From ab423632c0e41eaacd513ae874640bc32a335c11 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 12 Nov 2013 23:07:48 +0100 Subject: part of patch by David Evans to fix C++11 build Fixed bugs: - https://launchpad.net/bugs/1244295 (bzr r12801) --- src/ui/tool/node.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ui/tool/node.h') diff --git a/src/ui/tool/node.h b/src/ui/tool/node.h index e3fc6c2c8..b874949f5 100644 --- a/src/ui/tool/node.h +++ b/src/ui/tool/node.h @@ -16,7 +16,13 @@ #include #include #include + +#if __cplusplus >= 201103L +#include +#else #include +#endif + #include #include #include "ui/tool/selectable-control-point.h" @@ -31,11 +37,13 @@ template class NodeIterator; } } +#if __cplusplus < 201103L namespace std { namespace tr1 { template struct hash< Inkscape::UI::NodeIterator >; } } +#endif namespace Inkscape { namespace UI { -- cgit v1.2.3