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
10 ** This package is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU General Public License as
12 ** published by the Free Software Foundation; either version 2 of
13 ** the License, or (at your option) any later version.
15 ** This package is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** General Public License for more details.
21 /* ========================================================================= */
23 /* === H E A D E R S ======================================================= */
32 #include "paramdesc.h"
37 /* === U S I N G =========================================================== */
41 using namespace synfig;
43 /* === M A C R O S ========================================================= */
45 /* === G L O B A L S ======================================================= */
47 /* === P R O C E D U R E S ================================================= */
49 /* === M E T H O D S ======================================================= */
51 ParamDesc::ParamDesc(synfig::Color::BlendMethod, const String &a):
57 invisible_duck_ (false),
59 animation_only_ (false)
61 set_local_name(_("Blend Method"))
63 .add_enum_value(Color::BLEND_COMPOSITE,"composite",_("Composite"))
64 .add_enum_value(Color::BLEND_STRAIGHT,"straight",_("Straight"))
65 .add_enum_value(Color::BLEND_ONTO,"onto",_("Onto"))
66 .add_enum_value(Color::BLEND_STRAIGHT_ONTO,"straightonto",_("StraightOnto"))
67 .add_enum_value(Color::BLEND_BEHIND,"behind",_("Behind"))
68 .add_enum_value(Color::BLEND_SCREEN,"screen",_("Screen"))
69 .add_enum_value(Color::BLEND_OVERLAY,"overlay",_("Overlay"))
70 .add_enum_value(Color::BLEND_HARD_LIGHT,"hard_light",_("Hard Light"))
71 .add_enum_value(Color::BLEND_MULTIPLY,"multiply",_("Multiply"))
72 .add_enum_value(Color::BLEND_DIVIDE,"divide",_("Divide"))
73 .add_enum_value(Color::BLEND_ADD,"add",_("Add"))
74 .add_enum_value(Color::BLEND_SUBTRACT,"subtract",_("Subtract"))
75 .add_enum_value(Color::BLEND_DIFFERENCE,"difference",_("Difference"))
76 .add_enum_value(Color::BLEND_BRIGHTEN,"brighten",_("Brighten"))
77 .add_enum_value(Color::BLEND_DARKEN,"darken",_("Darken"))
78 .add_enum_value(Color::BLEND_COLOR,"color",_("Color"))
79 .add_enum_value(Color::BLEND_HUE,"hue",_("Hue"))
80 .add_enum_value(Color::BLEND_SATURATION,"saturation",_("Saturation"))
81 .add_enum_value(Color::BLEND_LUMINANCE,"luminance",_("Luminance"))
82 // These are deprecated
83 .add_enum_value(Color::BLEND_ALPHA_OVER,"alphaover",_("Alpha Over"))
84 // .add_enum_value(Color::BLEND_ALPHA_BRIGHTEN,"alphabrighten",_("Alpha Brighten"))
85 // .add_enum_value(Color::BLEND_ALPHA_DARKEN,"alphadarken",_("Alpha Darken"))
89 ParamDesc::ParamDesc(const ValueBase&, const String &a):
95 invisible_duck_ (false),
97 animation_only_ (false)