Set the description of some parameters
[synfig.git] / synfig-core / src / modules / lyr_std / curvewarp.cpp
index 4e6306a..4d8c769 100644 (file)
@@ -169,6 +169,8 @@ CurveWarp::CurveWarp():
        bline[1].set_width(1.0f);
 
        sync();
+       Layer::Vocab voc(get_param_vocab());
+       Layer::fill_static(voc);
 }
 
 inline Point
@@ -377,61 +379,39 @@ CurveWarp::get_param(const String & param)const
        return ValueBase();
 }
 
-bool
-CurveWarp::set_param_static(const String &param, const bool x)
-{
-
-       SET_STATIC(origin, x)
-       SET_STATIC(perp_width, x)
-       SET_STATIC(start_point, x)
-       SET_STATIC(end_point, x)
-       SET_STATIC(fast, x)
-
-       return Layer::set_param_static(param, x);
-}
-
-bool
-CurveWarp::get_param_static(const String &param)const
-{
-
-       GET_STATIC(origin)
-       GET_STATIC(perp_width)
-       GET_STATIC(start_point)
-       GET_STATIC(end_point)
-       GET_STATIC(fast)
-
-
-       return Layer::get_param_static(param);
-}
-
 Layer::Vocab
 CurveWarp::get_param_vocab()const
 {
        Layer::Vocab ret;
 
        ret.push_back(ParamDesc("origin")
-                                 .set_local_name(_("Origin")));
-
+                                 .set_local_name(_("Origin"))
+                                 .set_description(_("Position of the source line"))
+       );
        ret.push_back(ParamDesc("perp_width")
                                  .set_local_name(_("Width"))
-                                 .set_origin("start_point"));
-
+                                 .set_origin("start_point")
+                                 .set_description(_("How much is expanded the result perpendicular to the source line"))
+       );
        ret.push_back(ParamDesc("start_point")
                                  .set_local_name(_("Start Point"))
-                                 .set_connect("end_point"));
-
+                                 .set_connect("end_point")
+                                 .set_description(_("First point of the source line"))
+       );
        ret.push_back(ParamDesc("end_point")
-                                 .set_local_name(_("End Point")));
-
+                                 .set_local_name(_("End Point"))
+                                 .set_description(_("Final point of the source line"))
+       );
        ret.push_back(ParamDesc("bline")
                                  .set_local_name(_("Vertices"))
                                  .set_origin("origin")
                                  .set_hint("width")
-                                 .set_description(_("A list of BLine Points")));
-
+                                 .set_description(_("List of BLine Points where the source line is curved to"))
+       );
        ret.push_back(ParamDesc("fast")
-                                 .set_local_name(_("Fast")));
-
+                                 .set_local_name(_("Fast"))
+                                 .set_description(_("When checked, renders quickly but with artifacts"))
+       );
        return ret;
 }