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
/
spiralgradient.cpp
diff --git
a/synfig-core/src/modules/mod_gradient/spiralgradient.cpp
b/synfig-core/src/modules/mod_gradient/spiralgradient.cpp
index
81bd99d
..
b4b70c4
100644
(file)
--- a/
synfig-core/src/modules/mod_gradient/spiralgradient.cpp
+++ b/
synfig-core/src/modules/mod_gradient/spiralgradient.cpp
@@
-64,13
+64,15
@@
SYNFIG_LAYER_SET_CVS_ID(SpiralGradient,"$Id$");
/* === E N T R Y P O I N T ================================================= */
SpiralGradient::SpiralGradient():
/* === 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)
{
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
}
bool
@@
-107,10
+109,12
@@
SpiralGradient::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")
@@
-122,11
+126,13
@@
SpiralGradient::get_param_vocab()const
ret.push_back(ParamDesc("angle")
.set_local_name(_("Angle"))
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_origin("center")
);
ret.push_back(ParamDesc("clockwise")
.set_local_name(_("Clockwise"))
+ .set_description(_("When checked the spiral turns clockwise"))
);
return ret;
);
return ret;