X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Fmod_geometry%2Fcircle.cpp;h=6346eb5ebbaf7de5b88c0ef17722a55a8d72f9b7;hb=42e8f249832b9ca81691bbf76a6668aa4612117f;hp=db5ff8ae1121a2ebe2fa17ca0e50dafdeda82091;hpb=0dc2de4f87949f84f6dbc7a0310cce32eca375a4;p=synfig.git diff --git a/synfig-core/src/modules/mod_geometry/circle.cpp b/synfig-core/src/modules/mod_geometry/circle.cpp index db5ff8a..6346eb5 100644 --- a/synfig-core/src/modules/mod_geometry/circle.cpp +++ b/synfig-core/src/modules/mod_geometry/circle.cpp @@ -66,15 +66,11 @@ Circle::Circle(): radius (1), feather (0), invert (false), - falloff (FALLOFF_INTERPOLATION_LINEAR), - color_static (false), - origin_static (false), - radius_static (false), - feather_static (false), - invert_static (true), - falloff_static (true) + falloff (FALLOFF_INTERPOLATION_LINEAR) { constructcache(); + Layer::Vocab voc(get_param_vocab()); + Layer::fill_static(voc); } bool @@ -122,37 +118,6 @@ Circle::get_param(const String ¶m)const return Layer_Composite::get_param(param); } - -bool -Circle::set_param_static(const String ¶m, const bool x) -{ - - SET_STATIC(color, x) - SET_STATIC(radius, x) - SET_STATIC(feather, x) - SET_STATIC(invert, x) - SET_STATIC(origin, x) - SET_STATIC(falloff, x) - - return Layer_Composite::set_param_static(param, x); -} - - -bool -Circle::get_param_static(const String ¶m) const -{ - - GET_STATIC(color) - GET_STATIC(radius) - GET_STATIC(feather) - GET_STATIC(invert) - GET_STATIC(origin) - GET_STATIC(falloff) - - return Layer_Composite::get_param_static(param); -} - - Layer::Vocab Circle::get_param_vocab()const { @@ -160,18 +125,22 @@ Circle::get_param_vocab()const ret.push_back(ParamDesc("color") .set_local_name(_("Color")) + .set_description(_("Fill color of the layer")) ); ret.push_back(ParamDesc("radius") .set_local_name(_("Radius")) .set_origin("origin") + .set_description(_("Radius of the circle")) .set_is_distance() ); ret.push_back(ParamDesc("feather") .set_local_name(_("Feather")) .set_is_distance() + .set_description(_("Amount of feather of the circle")) ); ret.push_back(ParamDesc("origin") .set_local_name(_("Origin")) + .set_description(_("Center of the circle")) ); ret.push_back(ParamDesc("invert") .set_local_name(_("Invert"))