summaryrefslogtreecommitdiffstats
path: root/src/common-context.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-11-09 22:36:13 +0000
committerMarkus Engel <markus.engel@tum.de>2013-11-09 22:36:13 +0000
commitc04e30df241a3ee039077425bab9b9c37abe2854 (patch)
tree6b7904966a289832bca2636c3117c893592e5ddd /src/common-context.cpp
parentadded missing translation flags and a small text change (diff)
downloadinkscape-c04e30df241a3ee039077425bab9b9c37abe2854.tar.gz
inkscape-c04e30df241a3ee039077425bab9b9c37abe2854.zip
Moved and renamed some tool-related files.
(bzr r12785)
Diffstat (limited to '')
-rw-r--r--src/ui/tools/dynamic-base.cpp (renamed from src/common-context.cpp)12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common-context.cpp b/src/ui/tools/dynamic-base.cpp
index e896d0829..cec58dce9 100644
--- a/src/common-context.cpp
+++ b/src/ui/tools/dynamic-base.cpp
@@ -1,5 +1,5 @@
-#include "common-context.h"
+#include "ui/tools/dynamic-base.h"
#include <gtk/gtk.h>
@@ -23,7 +23,7 @@ namespace Inkscape {
namespace UI {
namespace Tools {
-SPCommonContext::SPCommonContext() :
+DynamicBase::DynamicBase() :
ToolBase(),
accumulated(NULL),
segments(NULL),
@@ -60,7 +60,7 @@ SPCommonContext::SPCommonContext() :
{
}
-SPCommonContext::~SPCommonContext() {
+DynamicBase::~DynamicBase() {
if (this->accumulated) {
this->accumulated = this->accumulated->unref();
this->accumulated = 0;
@@ -92,7 +92,7 @@ SPCommonContext::~SPCommonContext() {
}
}
-void SPCommonContext::set(const Inkscape::Preferences::Entry& value) {
+void DynamicBase::set(const Inkscape::Preferences::Entry& value) {
Glib::ustring path = value.getEntryName();
// ignore preset modifications
@@ -129,7 +129,7 @@ void SPCommonContext::set(const Inkscape::Preferences::Entry& value) {
}
/* Get normalized point */
-Geom::Point SPCommonContext::getNormalizedPoint(Geom::Point v) const {
+Geom::Point DynamicBase::getNormalizedPoint(Geom::Point v) const {
Geom::Rect drect = this->desktop->get_display_area();
double const max = MAX ( drect.dimensions()[Geom::X], drect.dimensions()[Geom::Y] );
@@ -138,7 +138,7 @@ Geom::Point SPCommonContext::getNormalizedPoint(Geom::Point v) const {
}
/* Get view point */
-Geom::Point SPCommonContext::getViewPoint(Geom::Point n) const {
+Geom::Point DynamicBase::getViewPoint(Geom::Point n) const {
Geom::Rect drect = this->desktop->get_display_area();
double const max = MAX ( drect.dimensions()[Geom::X], drect.dimensions()[Geom::Y] );