From: cilix42 Date: Thu, 5 Jun 2008 09:01:40 +0000 (+0000) Subject: Rename param_writeSVGValue() --> param_getSVGValue() since the method doesn't actuall... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=79291918d036d77d586b6eba265d8d2ac0a7fee5;p=inkscape.git Rename param_writeSVGValue() --> param_getSVGValue() since the method doesn't actually write to SVG but only returns a ready-to-write string --- diff --git a/src/live_effects/parameter/bool.cpp b/src/live_effects/parameter/bool.cpp index 96859938c..505a70493 100644 --- a/src/live_effects/parameter/bool.cpp +++ b/src/live_effects/parameter/bool.cpp @@ -46,7 +46,7 @@ BoolParam::param_readSVGValue(const gchar * strvalue) } gchar * -BoolParam::param_writeSVGValue() const +BoolParam::param_getSVGValue() const { gchar * str = g_strdup(value ? "true" : "false"); return str; diff --git a/src/live_effects/parameter/bool.h b/src/live_effects/parameter/bool.h index e4aaabaa2..4496740e0 100644 --- a/src/live_effects/parameter/bool.h +++ b/src/live_effects/parameter/bool.h @@ -33,7 +33,7 @@ public: virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips); virtual bool param_readSVGValue(const gchar * strvalue); - virtual gchar * param_writeSVGValue() const; + virtual gchar * param_getSVGValue() const; void param_setValue(bool newvalue); virtual void param_set_default(); diff --git a/src/live_effects/parameter/enum.h b/src/live_effects/parameter/enum.h index a3df91d64..72543fd92 100644 --- a/src/live_effects/parameter/enum.h +++ b/src/live_effects/parameter/enum.h @@ -63,7 +63,7 @@ public: return true; }; - gchar * param_writeSVGValue() const { + gchar * param_getSVGValue() const { gchar * str = g_strdup( enumdataconv->get_key(value).c_str() ); return str; }; diff --git a/src/live_effects/parameter/parameter.cpp b/src/live_effects/parameter/parameter.cpp index 527f2fdd9..ebb24cc30 100644 --- a/src/live_effects/parameter/parameter.cpp +++ b/src/live_effects/parameter/parameter.cpp @@ -79,7 +79,7 @@ ScalarParam::param_readSVGValue(const gchar * strvalue) } gchar * -ScalarParam::param_writeSVGValue() const +ScalarParam::param_getSVGValue() const { Inkscape::SVGOStringStream os; os << value; diff --git a/src/live_effects/parameter/parameter.h b/src/live_effects/parameter/parameter.h index 58f4635aa..d3afec3af 100644 --- a/src/live_effects/parameter/parameter.h +++ b/src/live_effects/parameter/parameter.h @@ -58,7 +58,7 @@ public: virtual ~Parameter() {}; virtual bool param_readSVGValue(const gchar * strvalue) = 0; // returns true if new value is valid / accepted. - virtual gchar * param_writeSVGValue() const = 0; + virtual gchar * param_getSVGValue() const = 0; virtual void param_set_default() = 0; @@ -107,7 +107,7 @@ public: virtual ParamType paramType() { return SCALAR_PARAM; } virtual bool param_readSVGValue(const gchar * strvalue); - virtual gchar * param_writeSVGValue() const; + virtual gchar * param_getSVGValue() const; virtual void param_set_default(); void param_set_value(gdouble val); diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 9e7be732e..376e61bee 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -127,7 +127,7 @@ PathParam::param_readSVGValue(const gchar * strvalue) } gchar * -PathParam::param_writeSVGValue() const +PathParam::param_getSVGValue() const { if (href) { return href; diff --git a/src/live_effects/parameter/path.h b/src/live_effects/parameter/path.h index b543e610c..64c2de55c 100644 --- a/src/live_effects/parameter/path.h +++ b/src/live_effects/parameter/path.h @@ -40,7 +40,7 @@ public: virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips); bool param_readSVGValue(const gchar * strvalue); - gchar * param_writeSVGValue() const; + gchar * param_getSVGValue() const; void param_set_default(); void param_set_and_write_default(); diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp index 28d5dae70..49a47660f 100644 --- a/src/live_effects/parameter/point.cpp +++ b/src/live_effects/parameter/point.cpp @@ -68,7 +68,7 @@ PointParam::param_readSVGValue(const gchar * strvalue) } gchar * -PointParam::param_writeSVGValue() const +PointParam::param_getSVGValue() const { Inkscape::SVGOStringStream os; os << *dynamic_cast( this ); diff --git a/src/live_effects/parameter/point.h b/src/live_effects/parameter/point.h index 7a630dc0c..d963d835a 100644 --- a/src/live_effects/parameter/point.h +++ b/src/live_effects/parameter/point.h @@ -38,7 +38,7 @@ public: virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips); bool param_readSVGValue(const gchar * strvalue); - gchar * param_writeSVGValue() const; + gchar * param_getSVGValue() const; void param_setValue(Geom::Point newpoint); void param_set_default(); diff --git a/src/live_effects/parameter/random.cpp b/src/live_effects/parameter/random.cpp index a5aa014a2..889e5375b 100644 --- a/src/live_effects/parameter/random.cpp +++ b/src/live_effects/parameter/random.cpp @@ -66,7 +66,7 @@ RandomParam::param_readSVGValue(const gchar * strvalue) } gchar * -RandomParam::param_writeSVGValue() const +RandomParam::param_getSVGValue() const { Inkscape::SVGOStringStream os; os << value << ';' << startseed; diff --git a/src/live_effects/parameter/random.h b/src/live_effects/parameter/random.h index 5a9f8de62..49b114061 100644 --- a/src/live_effects/parameter/random.h +++ b/src/live_effects/parameter/random.h @@ -32,7 +32,7 @@ public: virtual ParamType paramType() { return RANDOM_PARAM; } virtual bool param_readSVGValue(const gchar * strvalue); - virtual gchar * param_writeSVGValue() const; + virtual gchar * param_getSVGValue() const; virtual void param_set_default(); virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);