summaryrefslogtreecommitdiffstats
path: root/src/common-context.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-11-07 20:44:00 +0000
committerMarkus Engel <markus.engel@tum.de>2013-11-07 20:44:00 +0000
commit55b451bf382e0c3d5ed8728e42fbb535acfa8a33 (patch)
tree094d9faca06cfffc89a872732db4ac3ef60508d9 /src/common-context.cpp
parentFix for Bug #1247985 (Incorrect implementation of plural forms). (diff)
downloadinkscape-55b451bf382e0c3d5ed8728e42fbb535acfa8a33.tar.gz
inkscape-55b451bf382e0c3d5ed8728e42fbb535acfa8a33.zip
First step of moving tools into appropriate namespaces.
(bzr r12782)
Diffstat (limited to 'src/common-context.cpp')
-rw-r--r--src/common-context.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/common-context.cpp b/src/common-context.cpp
index 2155f9739..e896d0829 100644
--- a/src/common-context.cpp
+++ b/src/common-context.cpp
@@ -19,8 +19,12 @@
#define DRAG_DEFAULT 1.0
#define DRAG_MAX 1.0
+namespace Inkscape {
+namespace UI {
+namespace Tools {
+
SPCommonContext::SPCommonContext() :
- SPEventContext(),
+ ToolBase(),
accumulated(NULL),
segments(NULL),
currentshape(NULL),
@@ -142,6 +146,10 @@ Geom::Point SPCommonContext::getViewPoint(Geom::Point n) const {
return Geom::Point(n[Geom::X] * max + drect.min()[Geom::X], n[Geom::Y] * max + drect.min()[Geom::Y]);
}
+}
+}
+}
+
/*
Local Variables:
mode:c++