diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-07-04 11:24:40 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-07-04 11:24:40 +0000 |
| commit | ef8c773ea719962a8a70505d276f76210a8bb8c9 (patch) | |
| tree | 45ba9fe4de0e9ad0b96cf12c2b2fe9458cb04c6e /src/live_effects/parameter | |
| parent | Keep original path by default for LPEMirrorReflect (diff) | |
| download | inkscape-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/live_effects/parameter')
| -rw-r--r-- | src/live_effects/parameter/point.cpp | 6 | ||||
| -rw-r--r-- | src/live_effects/parameter/point.h | 3 |
2 files changed, 5 insertions, 4 deletions
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); |
