From: dooglus Date: Fri, 15 Feb 2008 13:55:34 +0000 (+0000) Subject: ParamDesc::set_scalar(String) and ParamDesc::set_hint(String) were identical. Got... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4f6a4066385e21e4d1c832f1ff128a21ef24552b;p=synfig.git ParamDesc::set_scalar(String) and ParamDesc::set_hint(String) were identical. Got rid of set_scalar(String) and use set_hint() instead everywhere. git-svn-id: http://svn.voria.com/code@1697 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/mod_geometry/outline.cpp b/synfig-core/trunk/src/modules/mod_geometry/outline.cpp index a240c8d..ca45878 100644 --- a/synfig-core/trunk/src/modules/mod_geometry/outline.cpp +++ b/synfig-core/trunk/src/modules/mod_geometry/outline.cpp @@ -798,7 +798,7 @@ Outline::get_param_vocab()const ret.push_back(ParamDesc("bline") .set_local_name(_("Vertices")) .set_origin("offset") - .set_scalar("width") + .set_hint("width") .set_description(_("A list of BLine Points")) ); diff --git a/synfig-core/trunk/src/modules/mod_gradient/curvegradient.cpp b/synfig-core/trunk/src/modules/mod_gradient/curvegradient.cpp index ee7a4b2..b0c0c35 100644 --- a/synfig-core/trunk/src/modules/mod_gradient/curvegradient.cpp +++ b/synfig-core/trunk/src/modules/mod_gradient/curvegradient.cpp @@ -493,7 +493,7 @@ CurveGradient::get_param_vocab()const ret.push_back(ParamDesc("bline") .set_local_name(_("Vertices")) .set_origin("offset") - .set_scalar("width") + .set_hint("width") .set_description(_("A list of BLine Points"))); ret.push_back(ParamDesc("gradient") diff --git a/synfig-core/trunk/src/modules/mod_particle/plant.cpp b/synfig-core/trunk/src/modules/mod_particle/plant.cpp index 3abe146..e1758f1 100644 --- a/synfig-core/trunk/src/modules/mod_particle/plant.cpp +++ b/synfig-core/trunk/src/modules/mod_particle/plant.cpp @@ -377,7 +377,7 @@ Plant::get_param_vocab()const .set_local_name(_("Vertices")) .set_description(_("A list of BLine Points")) .set_origin("offset") - //.set_scalar("width") + //.set_hint("width") ); ret.push_back(ParamDesc("offset") diff --git a/synfig-core/trunk/src/synfig/paramdesc.h b/synfig-core/trunk/src/synfig/paramdesc.h index 580294b..2e0f0ad 100644 --- a/synfig-core/trunk/src/synfig/paramdesc.h +++ b/synfig-core/trunk/src/synfig/paramdesc.h @@ -156,7 +156,6 @@ public: /*! This value determines how the value is to be presented ** to the user when editing visually. */ ParamDesc &set_scalar(const Real &n) { scalar_=n; return *this; } - ParamDesc &set_scalar(const String &h) { hint_=h; return *this; } //! Marks the parameter as not necessary for saving or copying ParamDesc ¬_critical() { critical_=false; return *this; }