X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftags%2Fsynfig_0_61_05%2Fsynfig-core%2Fsrc%2Fsynfig%2Fparamdesc.cpp;fp=synfig-core%2Ftags%2Fsynfig_0_61_05%2Fsynfig-core%2Fsrc%2Fsynfig%2Fparamdesc.cpp;h=0000000000000000000000000000000000000000;hb=6fa8f2f38d4b0b35f8539bf94e27ae27015c7689;hp=b1159c046523b7af2fde2bb95ec7befb62e147bf;hpb=47fce282611fbba1044921d22ca887f9b53ad91a;p=synfig.git diff --git a/synfig-core/tags/synfig_0_61_05/synfig-core/src/synfig/paramdesc.cpp b/synfig-core/tags/synfig_0_61_05/synfig-core/src/synfig/paramdesc.cpp deleted file mode 100644 index b1159c0..0000000 --- a/synfig-core/tags/synfig_0_61_05/synfig-core/src/synfig/paramdesc.cpp +++ /dev/null @@ -1,99 +0,0 @@ -/* === S Y N F I G ========================================================= */ -/*! \file paramdesc.cpp -** \brief Template File -** -** $Id: paramdesc.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $ -** -** \legal -** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** -** This package is free software; you can redistribute it and/or -** modify it under the terms of the GNU General Public License as -** published by the Free Software Foundation; either version 2 of -** the License, or (at your option) any later version. -** -** This package is distributed in the hope that it will be useful, -** but WITHOUT ANY WARRANTY; without even the implied warranty of -** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -** General Public License for more details. -** \endlegal -*/ -/* ========================================================================= */ - -/* === H E A D E R S ======================================================= */ - -#ifdef USING_PCH -# include "pch.h" -#else -#ifdef HAVE_CONFIG_H -# include -#endif - -#include "paramdesc.h" -#include "value.h" - -#endif - -/* === U S I N G =========================================================== */ - -using namespace std; -using namespace etl; -using namespace synfig; - -/* === M A C R O S ========================================================= */ - -/* === G L O B A L S ======================================================= */ - -/* === P R O C E D U R E S ================================================= */ - -/* === M E T H O D S ======================================================= */ - -ParamDesc::ParamDesc(synfig::Color::BlendMethod, const String &a): - name_ (a), - local_name_ (a), - scalar_ (1.0), - critical_ (true), - hidden_ (false), - invisible_duck_ (false), - is_distance_ (false), - animation_only_ (false) -{ - set_local_name(_("Blend Method")) - .set_hint("enum") - .add_enum_value(Color::BLEND_COMPOSITE,"composite",_("Composite")) - .add_enum_value(Color::BLEND_STRAIGHT,"straight",_("Straight")) - .add_enum_value(Color::BLEND_ONTO,"onto",_("Onto")) - .add_enum_value(Color::BLEND_STRAIGHT_ONTO,"straightonto",_("StraightOnto")) - .add_enum_value(Color::BLEND_BEHIND,"behind",_("Behind")) - .add_enum_value(Color::BLEND_SCREEN,"screen",_("Screen")) - .add_enum_value(Color::BLEND_OVERLAY,"overlay",_("Overlay")) - .add_enum_value(Color::BLEND_HARD_LIGHT,"hard_light",_("Hard Light")) - .add_enum_value(Color::BLEND_MULTIPLY,"multiply",_("Multiply")) - .add_enum_value(Color::BLEND_DIVIDE,"divide",_("Divide")) - .add_enum_value(Color::BLEND_ADD,"add",_("Add")) - .add_enum_value(Color::BLEND_SUBTRACT,"subtract",_("Subtract")) - .add_enum_value(Color::BLEND_DIFFERENCE,"difference",_("Difference")) - .add_enum_value(Color::BLEND_BRIGHTEN,"brighten",_("Brighten")) - .add_enum_value(Color::BLEND_DARKEN,"darken",_("Darken")) - .add_enum_value(Color::BLEND_COLOR,"color",_("Color")) - .add_enum_value(Color::BLEND_HUE,"hue",_("Hue")) - .add_enum_value(Color::BLEND_SATURATION,"saturation",_("Saturation")) - .add_enum_value(Color::BLEND_LUMINANCE,"luminance",_("Luminance")) -// These are deprecated - .add_enum_value(Color::BLEND_ALPHA_OVER,"alphaover",_("Alpha Over")) -// .add_enum_value(Color::BLEND_ALPHA_BRIGHTEN,"alphabrighten",_("Alpha Brighten")) -// .add_enum_value(Color::BLEND_ALPHA_DARKEN,"alphadarken",_("Alpha Darken")) - ; // end of enums -} - -ParamDesc::ParamDesc(const ValueBase&, const String &a): - name_ (a), - local_name_ (a), - scalar_ (1.0), - critical_ (true), - hidden_ (false), - invisible_duck_ (false), - is_distance_ (false), - animation_only_ (false) -{ -}