diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-11-10 02:08:46 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-11-10 02:08:46 +0000 |
| commit | ca1286aa677b5ff8d80fe274dfa3e759478570b3 (patch) | |
| tree | 36c7edfa575cea3d3bddfc4b034f7a35a8374ade /src/ui/tools/dynamic-base.cpp | |
| parent | Fixing bugs on update to trunk (diff) | |
| parent | Revert unintentional change. (diff) | |
| download | inkscape-ca1286aa677b5ff8d80fe274dfa3e759478570b3.tar.gz inkscape-ca1286aa677b5ff8d80fe274dfa3e759478570b3.zip | |
Update to trunk
(bzr r11950.1.195)
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] ); |
