summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-07-04 11:24:40 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-07-04 11:24:40 +0000
commitef8c773ea719962a8a70505d276f76210a8bb8c9 (patch)
tree45ba9fe4de0e9ad0b96cf12c2b2fe9458cb04c6e /src
parentKeep original path by default for LPEMirrorReflect (diff)
downloadinkscape-ef8c773ea719962a8a70505d276f76210a8bb8c9.tar.gz
inkscape-ef8c773ea719962a8a70505d276f76210a8bb8c9.zip
Remove oncanvas_editable attribute for PointParams; use their internal shape settings for the knotholder handle
(bzr r6151)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/effect.cpp3
-rw-r--r--src/live_effects/parameter/point.cpp6
-rw-r--r--src/live_effects/parameter/point.h3
3 files changed, 7 insertions, 5 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index 73ba7387a..11e5b5048 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -423,7 +423,8 @@ Effect::addPointParamHandles(KnotHolder *knotholder, SPDesktop *desktop, SPItem
if ((*p)->paramType() == POINT_PARAM) {
PointParam *pparam = static_cast<PointParam *>(*p);
KnotHolderEntity *e = dynamic_cast<KnotHolderEntity *>(*p);
- e->create(desktop, item, knotholder, pparam->handleTip());
+ e->create(desktop, item, knotholder, pparam->handleTip(),
+ pparam->knotShape(), pparam->knotMode(), pparam->knotColor());
knotholder->add(e);
}
}
diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp
index fa78ae6a4..220b618f7 100644
--- a/src/live_effects/parameter/point.cpp
+++ b/src/live_effects/parameter/point.cpp
@@ -35,11 +35,9 @@ PointParam::PointParam( const Glib::ustring& label, const Glib::ustring& tip,
Effect* effect, const gchar *htip, Geom::Point default_value)
: Geom::Point(default_value), Parameter(label, tip, key, wr, effect), defvalue(default_value)
{
- oncanvas_editable = true;
-
- knot_shape = SP_KNOT_SHAPE_SQUARE;
+ knot_shape = SP_KNOT_SHAPE_DIAMOND;
knot_mode = SP_KNOT_MODE_XOR;
- knot_color = 0x00ff0000;
+ knot_color = 0xffffff00;
handle_tip = g_strdup(htip);
}
diff --git a/src/live_effects/parameter/point.h b/src/live_effects/parameter/point.h
index bbd4d815e..4c0e6e356 100644
--- a/src/live_effects/parameter/point.h
+++ b/src/live_effects/parameter/point.h
@@ -52,6 +52,9 @@ public:
virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/);
void set_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color);
+ SPKnotShapeType knotShape() { return knot_shape; }
+ SPKnotModeType knotMode() { return knot_mode; }
+ guint32 knotColor() { return knot_color; }
/* these are overloaded from KnotHolderEntity */
virtual void knot_set(NR::Point const &p, NR::Point const &origin, guint state);