More descriptions for layer parameters
[synfig.git] / synfig-core / src / modules / mod_gradient / spiralgradient.cpp
index 81bd99d..b4b70c4 100644 (file)
@@ -64,13 +64,15 @@ SYNFIG_LAYER_SET_CVS_ID(SpiralGradient,"$Id$");
 /* === E N T R Y P O I N T ================================================= */
 
 SpiralGradient::SpiralGradient():
-       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),
        angle(Angle::zero()),
        clockwise(false)
 {
+       Layer::Vocab voc(get_param_vocab());
+       Layer::fill_static(voc);
 }
 
 bool
@@ -107,10 +109,12 @@ SpiralGradient::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")
@@ -122,11 +126,13 @@ SpiralGradient::get_param_vocab()const
 
        ret.push_back(ParamDesc("angle")
                .set_local_name(_("Angle"))
+               .set_description(_("Rotation of the spiral"))
                .set_origin("center")
        );
 
        ret.push_back(ParamDesc("clockwise")
                .set_local_name(_("Clockwise"))
+               .set_description(_("When checked the spiral turns clockwise"))
        );
 
        return ret;