summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2012-04-07 19:17:29 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2012-04-07 19:17:29 +0000
commit42e13d16575ec1e7563c77f6571bfc09a2059146 (patch)
tree45de7bcc56930c9ae34c32c5613b48cc8d2f89bb /src
parentFix some deprecated GDK key symbols (diff)
downloadinkscape-42e13d16575ec1e7563c77f6571bfc09a2059146.tar.gz
inkscape-42e13d16575ec1e7563c77f6571bfc09a2059146.zip
gives distinguishing colors to two vector params of LPE rough hatches
(bzr r11173)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-rough-hatches.cpp4
-rw-r--r--src/live_effects/parameter/vector.cpp7
-rw-r--r--src/live_effects/parameter/vector.h1
3 files changed, 11 insertions, 1 deletions
diff --git a/src/live_effects/lpe-rough-hatches.cpp b/src/live_effects/lpe-rough-hatches.cpp
index a6fdde02a..f9ab72373 100644
--- a/src/live_effects/lpe-rough-hatches.cpp
+++ b/src/live_effects/lpe-rough-hatches.cpp
@@ -246,7 +246,6 @@ LPERoughHatches::LPERoughHatches(LivePathEffectObject *lpeobject) :
direction(_("Hatches width and dir"), _("Defines hatches frequency and direction"), "direction", &wr, this, Geom::Point(50,0)),
//
- //bender(_("Global bending"), _("Relative position to a reference point defines global bending direction and amount"), "bender", &wr, this, NULL, Geom::Point(-5,0)),
bender(_("Global bending"), _("Relative position to a reference point defines global bending direction and amount"), "bender", &wr, this, Geom::Point(-5,0))
{
registerParameter( dynamic_cast<Parameter *>(&direction) );
@@ -281,6 +280,9 @@ LPERoughHatches::LPERoughHatches(LivePathEffectObject *lpeobject) :
// hide the widgets for direction and bender vectorparams
direction.widget_is_visible = false;
bender.widget_is_visible = false;
+ // give distinguishing colors to direction and bender on-canvas params
+ direction.set_oncanvas_color(0x00ff7d00);
+ bender.set_oncanvas_color(0xffffb500);
concatenate_before_pwd2 = false;
show_orig_path = true;
diff --git a/src/live_effects/parameter/vector.cpp b/src/live_effects/parameter/vector.cpp
index 21a7222a6..3e0ac9092 100644
--- a/src/live_effects/parameter/vector.cpp
+++ b/src/live_effects/parameter/vector.cpp
@@ -137,6 +137,13 @@ VectorParam::set_origin_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mod
ori_knot_color = color;
}
+void
+VectorParam::set_oncanvas_color(guint32 color)
+{
+ vec_knot_color = color;
+ ori_knot_color = color;
+}
+
class VectorParamKnotHolderEntity_Origin : public KnotHolderEntity {
public:
VectorParamKnotHolderEntity_Origin(VectorParam *p) : param(p) { }
diff --git a/src/live_effects/parameter/vector.h b/src/live_effects/parameter/vector.h
index 5d6d1c932..f82affe16 100644
--- a/src/live_effects/parameter/vector.h
+++ b/src/live_effects/parameter/vector.h
@@ -50,6 +50,7 @@ public:
void set_vector_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color);
void set_origin_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color);
+ void set_oncanvas_color(guint32 color);
virtual bool providesKnotHolderEntities() { return true; }
virtual void addKnotHolderEntities(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item);