1 /* === S Y N F I G ========================================================= */
2 /*! \file paramdesc.cpp
3 ** \brief Template File
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 ** Copyright (c) 2008 Chris Moore
11 ** This package is free software; you can redistribute it and/or
12 ** modify it under the terms of the GNU General Public License as
13 ** published by the Free Software Foundation; either version 2 of
14 ** the License, or (at your option) any later version.
16 ** This package is distributed in the hope that it will be useful,
17 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ** General Public License for more details.
22 /* ========================================================================= */
24 /* === H E A D E R S ======================================================= */
33 #include "paramdesc.h"
38 /* === U S I N G =========================================================== */
42 using namespace synfig;
44 /* === M A C R O S ========================================================= */
46 /* === G L O B A L S ======================================================= */
48 /* === P R O C E D U R E S ================================================= */
50 /* === M E T H O D S ======================================================= */
52 ParamDesc::ParamDesc(synfig::Color::BlendMethod, const String &a):
58 invisible_duck_ (false),
60 animation_only_ (false)
62 set_local_name(_("Blend Method"))
64 .add_enum_value(Color::BLEND_COMPOSITE,"composite",_("Composite"))
65 .add_enum_value(Color::BLEND_STRAIGHT,"straight",_("Straight"))
66 .add_enum_value(Color::BLEND_ONTO,"onto",_("Onto"))
67 .add_enum_value(Color::BLEND_STRAIGHT_ONTO,"straightonto",_("StraightOnto"))
68 .add_enum_value(Color::BLEND_BEHIND,"behind",_("Behind"))
69 .add_enum_value(Color::BLEND_SCREEN,"screen",_("Screen"))
70 .add_enum_value(Color::BLEND_OVERLAY,"overlay",_("Overlay"))
71 .add_enum_value(Color::BLEND_HARD_LIGHT,"hard_light",_("Hard Light"))
72 .add_enum_value(Color::BLEND_MULTIPLY,"multiply",_("Multiply"))
73 .add_enum_value(Color::BLEND_DIVIDE,"divide",_("Divide"))
74 .add_enum_value(Color::BLEND_ADD,"add",_("Add"))
75 .add_enum_value(Color::BLEND_SUBTRACT,"subtract",_("Subtract"))
76 .add_enum_value(Color::BLEND_DIFFERENCE,"difference",_("Difference"))
77 .add_enum_value(Color::BLEND_BRIGHTEN,"brighten",_("Brighten"))
78 .add_enum_value(Color::BLEND_DARKEN,"darken",_("Darken"))
79 .add_enum_value(Color::BLEND_COLOR,"color",_("Color"))
80 .add_enum_value(Color::BLEND_HUE,"hue",_("Hue"))
81 .add_enum_value(Color::BLEND_SATURATION,"saturation",_("Saturation"))
82 .add_enum_value(Color::BLEND_LUMINANCE,"luminance",_("Luminance"))
83 // These are deprecated
84 .add_enum_value(Color::BLEND_ALPHA_OVER,"alphaover",_("Alpha Over"))
85 .add_enum_value(Color::BLEND_ALPHA_BRIGHTEN,"alphabrighten",_("Alpha Brighten"))
86 .add_enum_value(Color::BLEND_ALPHA_DARKEN,"alphadarken",_("Alpha Darken"))
90 ParamDesc::ParamDesc(const ValueBase&, const String &a):
96 invisible_duck_ (false),
98 animation_only_ (false)