From 3111595a227c107b0e0f4ecc2dcc3b3f48278e61 Mon Sep 17 00:00:00 2001 From: Johan Engelen Date: Tue, 18 May 2010 22:19:03 +0200 Subject: [PATCH] reduce include dependencies --- src/live_effects/effect.cpp | 2 +- src/live_effects/effect.h | 3 +-- src/live_effects/lpe-angle_bisector.cpp | 2 ++ src/live_effects/lpe-constructgrid.cpp | 4 ++-- src/live_effects/lpe-extrude.cpp | 2 ++ src/live_effects/lpe-gears.cpp | 2 +- src/seltrans.h | 1 + 7 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index f761a6a7c..6266fade0 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -29,7 +29,7 @@ #include "message-stack.h" #include "desktop.h" #include "knotholder.h" - +#include "sp-lpe-item.h" #include "live_effects/lpeobject.h" #include "live_effects/parameter/parameter.h" #include diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h index a8d34a233..681bae387 100644 --- a/src/live_effects/effect.h +++ b/src/live_effects/effect.h @@ -15,8 +15,6 @@ #include #include <2geom/forward.h> #include "ui/widget/registry.h" -#include "sp-lpe-item.h" -//#include "knotholder.h" #include "parameter/bool.h" #include "effect-enum.h" @@ -30,6 +28,7 @@ struct LivePathEffectObject; class SPLPEItem; class KnotHolder; class KnotHolderEntity; +class SPPath; namespace Gtk { class Widget; diff --git a/src/live_effects/lpe-angle_bisector.cpp b/src/live_effects/lpe-angle_bisector.cpp index 71a34a1e2..aee4f48a1 100644 --- a/src/live_effects/lpe-angle_bisector.cpp +++ b/src/live_effects/lpe-angle_bisector.cpp @@ -25,6 +25,8 @@ #include <2geom/path.h> #include <2geom/sbasis-to-bezier.h> +#include "sp-lpe-item.h" + namespace Inkscape { namespace LivePathEffect { diff --git a/src/live_effects/lpe-constructgrid.cpp b/src/live_effects/lpe-constructgrid.cpp index 4725573d7..4c6555f2d 100644 --- a/src/live_effects/lpe-constructgrid.cpp +++ b/src/live_effects/lpe-constructgrid.cpp @@ -31,8 +31,8 @@ LPEConstructGrid::LPEConstructGrid(LivePathEffectObject *lpeobject) : nr_x.param_make_integer(); nr_y.param_make_integer(); - nr_x.param_set_range(1, NR_HUGE); - nr_y.param_set_range(1, NR_HUGE); + nr_x.param_set_range(1, 1e10); + nr_y.param_set_range(1, 1e10); } LPEConstructGrid::~LPEConstructGrid() diff --git a/src/live_effects/lpe-extrude.cpp b/src/live_effects/lpe-extrude.cpp index c861515aa..5f63d0567 100644 --- a/src/live_effects/lpe-extrude.cpp +++ b/src/live_effects/lpe-extrude.cpp @@ -18,6 +18,8 @@ #include <2geom/transforms.h> #include +#include "sp-item.h" + namespace Inkscape { namespace LivePathEffect { diff --git a/src/live_effects/lpe-gears.cpp b/src/live_effects/lpe-gears.cpp index 00f7ec193..b1337d5fb 100644 --- a/src/live_effects/lpe-gears.cpp +++ b/src/live_effects/lpe-gears.cpp @@ -220,7 +220,7 @@ LPEGears::LPEGears(LivePathEffectObject *lpeobject) : */ teeth.param_make_integer(); - teeth.param_set_range(3, NR_HUGE); + teeth.param_set_range(3, 1e10); registerParameter( dynamic_cast(&teeth) ); registerParameter( dynamic_cast(&phi) ); } diff --git a/src/seltrans.h b/src/seltrans.h index 8b2810621..0183683ff 100644 --- a/src/seltrans.h +++ b/src/seltrans.h @@ -24,6 +24,7 @@ #include "selcue.h" #include "message-context.h" #include +#include "sp-item.h" struct SPKnot; class SPDesktop; -- 2.30.2