projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set the description of some parameters
[synfig.git]
/
synfig-core
/
src
/
modules
/
mod_example
/
filledrect.cpp
diff --git
a/synfig-core/src/modules/mod_example/filledrect.cpp
b/synfig-core/src/modules/mod_example/filledrect.cpp
index
329012f
..
20baf14
100644
(file)
--- a/
synfig-core/src/modules/mod_example/filledrect.cpp
+++ b/
synfig-core/src/modules/mod_example/filledrect.cpp
@@
-66,7
+66,7
@@
SYNFIG_LAYER_SET_CVS_ID(FilledRect,"$Id$");
/* === E N T R Y P O I N T ================================================= */
FilledRect::FilledRect():
/* === E N T R Y P O I N T ================================================= */
FilledRect::FilledRect():
- Layer_Composite(1.0,Color::BLEND_
STRAIGHT
),
+ Layer_Composite(1.0,Color::BLEND_
COMPOSITE
),
color(Color::black()),
point1(0,0),
point2(1,1),
color(Color::black()),
point1(0,0),
point2(1,1),
@@
-75,6
+75,8
@@
FilledRect::FilledRect():
bevel(0),
bevCircle(0)
{
bevel(0),
bevCircle(0)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
}
bool
@@
-115,6
+117,7
@@
FilledRect::get_param_vocab()const
ret.push_back(ParamDesc("color")
.set_local_name(_("Color"))
ret.push_back(ParamDesc("color")
.set_local_name(_("Color"))
+ .set_description(_("Fill color of the layer"))
);
ret.push_back(ParamDesc("point1")
);
ret.push_back(ParamDesc("point1")
@@
-136,10
+139,12
@@
FilledRect::get_param_vocab()const
ret.push_back(ParamDesc("bevel")
.set_local_name(_("Bevel"))
ret.push_back(ParamDesc("bevel")
.set_local_name(_("Bevel"))
+ .set_description(_("Use Bevel for the corners"))
);
ret.push_back(ParamDesc("bevCircle")
.set_local_name(_("Keep Bevel Circular"))
);
ret.push_back(ParamDesc("bevCircle")
.set_local_name(_("Keep Bevel Circular"))
+ .set_description(_("When checked the bevel is circular"))
);
return ret;
);
return ret;