More descriptions for layer parameters
[synfig.git] / synfig-core / src / modules / mod_gradient / radialgradient.cpp
index 5c3d20b..825557b 100644 (file)
@@ -65,13 +65,15 @@ SYNFIG_LAYER_SET_CVS_ID(RadialGradient,"$Id$");
 /* === E N T R Y P O I N T ================================================= */
 
 RadialGradient::RadialGradient():
-       Layer_Composite(1.0,Color::BLEND_STRAIGHT),
+       Layer_Composite(1.0,Color::BLEND_COMPOSITE),
        gradient(Color::black(),Color::white()),
        center(0,0),
        radius(0.5),
        loop(false),
        zigzag(false)
 {
+       Layer::Vocab voc(get_param_vocab());
+       Layer::fill_static(voc);
 }
 
 bool
@@ -108,10 +110,12 @@ RadialGradient::get_param_vocab()const
 
        ret.push_back(ParamDesc("gradient")
                .set_local_name(_("Gradient"))
+               .set_description(_("Gradient to apply"))
        );
 
        ret.push_back(ParamDesc("center")
                .set_local_name(_("Center"))
+               .set_description(_("Center of the gradient"))
        );
 
        ret.push_back(ParamDesc("radius")
@@ -123,10 +127,12 @@ RadialGradient::get_param_vocab()const
 
        ret.push_back(ParamDesc("loop")
                .set_local_name(_("Loop"))
+               .set_description(_("When checked the gradient is looped"))
        );
 
        ret.push_back(ParamDesc("zigzag")
                .set_local_name(_("ZigZag"))
+               .set_description(_("When checked the gradient is summetrical at the center"))
        );
 
        return ret;