X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Flyr_std%2Fcurvewarp.cpp;h=4d8c76989a1a830f253b1f55769dec281bb4e726;hb=42e8f249832b9ca81691bbf76a6668aa4612117f;hp=4e6306a491264f5eb067af3bee755bb045e5310f;hpb=f914485e14ee9b40981817346ad0e2932d4ded1e;p=synfig.git diff --git a/synfig-core/src/modules/lyr_std/curvewarp.cpp b/synfig-core/src/modules/lyr_std/curvewarp.cpp index 4e6306a..4d8c769 100644 --- a/synfig-core/src/modules/lyr_std/curvewarp.cpp +++ b/synfig-core/src/modules/lyr_std/curvewarp.cpp @@ -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 ¶m, 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 ¶m)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; }