projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More descriptions for layer parameters
[synfig.git]
/
synfig-core
/
src
/
modules
/
mod_gradient
/
radialgradient.cpp
diff --git
a/synfig-core/src/modules/mod_gradient/radialgradient.cpp
b/synfig-core/src/modules/mod_gradient/radialgradient.cpp
index
5c3d20b
..
825557b
100644
(file)
--- a/
synfig-core/src/modules/mod_gradient/radialgradient.cpp
+++ b/
synfig-core/src/modules/mod_gradient/radialgradient.cpp
@@
-65,13
+65,15
@@
SYNFIG_LAYER_SET_CVS_ID(RadialGradient,"$Id$");
/* === E N T R Y P O I N T ================================================= */
RadialGradient::RadialGradient():
/* === 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)
{
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
}
bool
@@
-108,10
+110,12
@@
RadialGradient::get_param_vocab()const
ret.push_back(ParamDesc("gradient")
.set_local_name(_("Gradient"))
ret.push_back(ParamDesc("gradient")
.set_local_name(_("Gradient"))
+ .set_description(_("Gradient to apply"))
);
ret.push_back(ParamDesc("center")
.set_local_name(_("Center"))
);
ret.push_back(ParamDesc("center")
.set_local_name(_("Center"))
+ .set_description(_("Center of the gradient"))
);
ret.push_back(ParamDesc("radius")
);
ret.push_back(ParamDesc("radius")
@@
-123,10
+127,12
@@
RadialGradient::get_param_vocab()const
ret.push_back(ParamDesc("loop")
.set_local_name(_("Loop"))
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"))
);
ret.push_back(ParamDesc("zigzag")
.set_local_name(_("ZigZag"))
+ .set_description(_("When checked the gradient is summetrical at the center"))
);
return ret;
);
return ret;